Search found 13133 matches

Go to advanced search

by wmayer
Fri Oct 19, 2018 12:30 pm
Forum: Python scripting and macros
Topic: Automatically detect rotational symetry
Replies: 1
Views: 43

Re: Automatically detect rotational symetry

If you have a rotational body then an axis must exist where all sections of this body with planes that are perpendicular to the axis are circles. And out of symmetry reasons the axis must go trough the center of gravity of the body. The Python API of a shape offers the attribute "PrincipalProperties...
by wmayer
Fri Oct 19, 2018 11:38 am
Forum: Forum in Deutsch
Topic: Layer, Folien, vereinfachte Darstellung - welche Möglichkeit gibt es in Freecad?
Replies: 26
Views: 488

Re: Layer, Folien, vereinfachte Darstellung - welche Möglichkeit gibt es in Freecad?

Es gibt sicher Methoden, vereinfachte Darstellungen für Objekte zu berechen und einzublenden. Ich benutze meine Gitter-Maps, die Berechnung von annähernden Mesh wäre auch eine Idee. Beim Bau-CAD gibt es ja den Begriff Level of Detail, wo man die Häuser mehr oder weniger genau ausprägt. Sowas könnte...
by wmayer
Fri Oct 19, 2018 7:54 am
Forum: Developers corner
Topic: icons and overlays with python
Replies: 4
Views: 143

Re: icons and overlays with python

The actual algorithm is implemented here: https://github.com/FreeCAD/FreeCAD/blob/master/src/Gui/BitmapFactory.cpp#L571 The whole trick is to open a QPainter on an existing QPixmap and then use drawPixmap to paint the overlay icon on top of it. Important for the overlay icon is that the background i...
by wmayer
Thu Oct 18, 2018 6:13 pm
Forum: Help on using FreeCAD
Topic: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28
Replies: 51
Views: 1339

Re: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

Does anyone know, why SpaceNavigatorDevice.cpp does also open the spacenav driver? You can ignore this class. It's the implementation of the Coin3d developers who also implemented the original Quarter library but inside FreeCAD we don't use it. Instead we handle the space mouse support in our own c...
by wmayer
Thu Oct 18, 2018 6:02 pm
Forum: Help on using FreeCAD
Topic: Regression on deleting constraints?
Replies: 10
Views: 168

Re: Regression on deleting constraints?

There are for sure use cases where a recompute() is needed when deleting an object from the document and since the vast majority of commands are implemented that way that the document is up-to-date when invoking them it's probably best to leave this line. Now the sketcher is something special in sev...
by wmayer
Thu Oct 18, 2018 1:24 pm
Forum: Forum in Deutsch
Topic: SOLVED: C++ Position unter Mauscursor
Replies: 2
Views: 75

Re: C++ Position unter Mauscursor

Meine bisherige Recherche deutet darauf, dass ich dafür einen ViewProvider implementieren muss, der von View- und/oder SelectionObserver erben sollte - kann mir das jemand bestätigen Das ist falsch und außerdem auch nicht einfach umzusetzen. Die Klasse DocumentObject und seine Erben hat die virtuel...
by wmayer
Thu Oct 18, 2018 12:35 pm
Forum: Pull Requests
Topic: Extending python persistence interface
Replies: 10
Views: 227

Re: Extending python persistence interface

It would be possible to pass a stream to and from the functions (I find it important to avoid data copies, hence no strings) But actually the real reading/restoring part is the smallest code portion, most is python specific handling of buffers and objects. As I want to expose this for properties I ...
by wmayer
Thu Oct 18, 2018 9:21 am
Forum: Pull Requests
Topic: Extending python persistence interface
Replies: 10
Views: 227

Re: Extending python persistence interface

Some comments: Inside the UserDocu tags of the XML files you should remove the leading spaces of new lines otherwise the tool tips look quite messy. The methods Persistence::dumpToPython and Persistence::restoreFromPython are too Python-specific. Wouldn't it be more useful to return/pass a std::stri...
by wmayer
Thu Oct 18, 2018 8:31 am
Forum: Forum in Deutsch
Topic: FreeCAD navigation Maus
Replies: 28
Views: 906

Re: FreeCAD navigation Maus

… das wird ein interessantes Experiment! Ich überlege schon, ob ich FC.18 neu aufsetze - man lernt bestimmt was dazu. Jedenfalls user.cfg(old) unterschieben geht schon mal nicht. FC benutzt eine "frische" cfg und beharrt darauf.... Ich bemühe schon mal die Suchfunktion. Klar kann man FreeCAD eine b...
by wmayer
Thu Oct 18, 2018 8:18 am
Forum: Help on using FreeCAD
Topic: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28
Replies: 51
Views: 1339

Re: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

IMO, the old X11-event based code should not be removed but a CMake option should be provided so that people who build their own FreeCAD still can switch back to the X11 method in case the polling method doesn't work. And to avoid an ifdef/else/endif mess and thus to keep maintenance low I suggest t...

Go to advanced search