Search found 3195 matches

Go to advanced search

by looo
Tue Mar 07, 2017 8:40 am
Forum: Developers corner
Topic: Subfolder for Python modules
Replies: 151
Views: 13449

Re: Subfolder for Python modules

as we use multiple directories to store packages, I think this isn't that easy to achieve. Maybe it is possible with the __path__ variable of a module: https://docs.python.org/2/tutorial/modules.html#packages-in-multiple-directories regarding this line https://github.com/FreeCAD/FreeCAD/blob/master/...
by looo
Mon Mar 06, 2017 11:37 pm
Forum: Developers corner
Topic: Subfolder for Python modules
Replies: 151
Views: 13449

Re: Subfolder for Python modules

As you may know, this issue is caused by freecad not properly dealing with python modules. Just would like to mentions it is not about the modules! replace module with package in my post. For me a module was the same as a package, but regarding this I definitely meant a package. In FreeCAD we call ...
by looo
Mon Mar 06, 2017 7:20 pm
Forum: Developers corner
Topic: Subfolder for Python modules
Replies: 151
Views: 13449

Re: Subfolder for Python modules

As you may know, this issue is caused by freecad not properly dealing with python modules. At startup every Module-directory (eg. Fem) is added to the sys.path. This way we don't need a __init__.py in the Mod-dirs but have this annoying naming issues. I think this should be fixed the proper way. But...
by looo
Mon Mar 06, 2017 10:47 am
Forum: Install / Compile
Topic: Failed to initialise Shiboken.BaseWrapper type
Replies: 13
Views: 1797

Re: Failed to initialise Shiboken.BaseWrapper type

Which option are you using to run cmake? I wonder because, if python3 is the default version on your system, cmake should use this version by default... and then the build should fail anyway.

Please test if this branch work for you: https://github.com/looooo/FreeCAD/tree/python3-cmake
by looo
Sun Mar 05, 2017 8:59 pm
Forum: Forum in Deutsch
Topic: Unfold einer Klemme
Replies: 24
Views: 3148

Re: Unfold einer Klemme

Das ist leider noch nicht so ausgereift. Der Quellcode ist hier mit drin:
https://github.com/looooo/nurbs installieren mit cmake, braucht aber pybind11
Bsp für freecad: https://github.com/looooo/nurbs/blob/ma ... ap_test.py
by looo
Sat Mar 04, 2017 11:05 am
Forum: Forum in Deutsch
Topic: Unfold einer Klemme
Replies: 24
Views: 3148

Re: Unfold einer Klemme

Allerdings geht das ganze dann in den plastischen Bereich und dann wirds schwierig... Das ist ja das Ziel der ganzen Umformerei: das Blech plastisch zu verformen, damit es auch diese Form behält. Die Abwicklung soll die Ursprungsform ergeben und muss deshalb die plastische Verformung berücksichtige...
by looo
Sat Mar 04, 2017 10:36 am
Forum: Install / Compile
Topic: Failed to initialise Shiboken.BaseWrapper type
Replies: 13
Views: 1797

Re: Failed to initialise Shiboken.BaseWrapper type

you have installed shiboken for python2 and python3? With this commit cmake takes the default config for shiboken and pyside. And maybe in your case this is the python3 version... You can try setting the variables manually: cmake -DPYTHON_SUFFIX=..., #look for this file <ShibokenConfigPYTHON_SUFFIX....
by looo
Sat Mar 04, 2017 7:30 am
Forum: Developers corner
Topic: Sketcher - draw hexagon bug?
Replies: 11
Views: 1166

Re: Sketcher - draw hexagon bug?

thanks for solving this issue! I will have a closer look for PyInt_Checks, for the remaining python3 changes.
by looo
Fri Mar 03, 2017 11:58 am
Forum: Forum in Deutsch
Topic: Unfold einer Klemme
Replies: 24
Views: 3148

Re: Unfold einer Klemme

Ein allgemeiner Ansatz für solche Probleme wär sicher ein Interessantes Thema. Der Algorythmus den ich fürs Abwickeln von Netzen verwende arebeitet mit finiten elementen um lineare membran spannungen zwischen den Abbildungen zu minimieren. Für dieses Beispiel sind diese sowieso null, da die Flächen ...
by looo
Thu Mar 02, 2017 8:38 pm
Forum: Forum in Deutsch
Topic: Unfold einer Klemme
Replies: 24
Views: 3148

Re: Unfold einer Klemme

die rundung sollte abgewickelt ein bisschen anders ausschauen. Es scheint so als hätte der algorythmus Probleme mit dem schräg geschnittenen Zylinder. Habs einmal mittels dem meshabwickler probiert den ich vor einiger zeit geschrieben hab: abwicklung.png vielleicht wärs ja möglich den mesh-abwickel-...

Go to advanced search