Search found 2876 matches

Go to advanced search

by ickby
Fri May 24, 2019 8:11 am
Forum: Announcements & Features
Topic: New Workbench MeshTools
Replies: 13
Views: 608

Re: New Workbench MeshTools

HarryGeier wrote:
Fri May 24, 2019 7:59 am
Who maintains MESH Workbench ?
Werner himself maintains and extends it
by ickby
Tue May 21, 2019 9:36 am
Forum: Python scripting and macros
Topic: Importing FreeCAD in an external project environment
Replies: 19
Views: 480

Re: Importing FreeCAD in an external project environment

This sound like a version mismatch between your system python and FreeCAD python. An ABI interface change would lead to such errors. In your FreeCAD info we see it uses 3.6.7, could you check what your system version is? If they do not match it is basically impossible to use freecad as library in a ...
by ickby
Mon May 20, 2019 6:51 pm
Forum: Developers corner
Topic: circular arcs in coin3d
Replies: 2
Views: 108

Re: circular arcs in coin3d

OpenGL cannot do arcs or any curved geometry. It ist all triangles and Line Segments. So that is basically what you need to go for and approximate a circle to line segments. The coin spline classes do the same, and I don't think it would be useful to approximate a circle with a spline to be approxim...
by ickby
Thu May 16, 2019 6:04 am
Forum: Python scripting and macros
Topic: Add property to object for lens modelling
Replies: 11
Views: 308

Re: Add property to object for lens modelling

tomatix7 wrote:
Wed May 15, 2019 4:05 pm
I tried to do it with materials, but I couldn't figure out how this works. I can create a scripted object, but I don't manage to create a part object with refractive index property.
What is wrong with the provided example? it creates a Part object with custom properties.
by ickby
Thu May 16, 2019 4:40 am
Forum: FEM
Topic: FEM post processing pipeline with scalar value export .obj .stl
Replies: 22
Views: 500

Re: FEM post processing pipeline with scalar value export .obj .stl

Kurt has a package on the daily PPA that I think fixes this https://launchpad.net/~freecad-maintainers/+archive/ubuntu/freecad-daily I would suggest to pull all the dependencies from there. I think this all works now, but its only 1 day old. Thanks, that worked perfectly! I was able to expose the v...
by ickby
Wed May 15, 2019 12:41 pm
Forum: Python scripting and macros
Topic: Add property to object for lens modelling
Replies: 11
Views: 308

Re: Add property to object for lens modelling

But we do have Material module... And refractive index is a material property. There should be a way to use material module for the purpose; if there isn't, we shold look into how to improve it.
Thats a good idee! Maybe bernd knows how to use it, he worked heavily on it
bernd wrote: Ping
by ickby
Wed May 15, 2019 10:52 am
Forum: Python scripting and macros
Topic: Add property to object for lens modelling
Replies: 11
Views: 308

Re: Add property to object for lens modelling

You need to create a scripted object: class Lens: def __init__(self, obj): obj.addProperty("App::PropertyFloat", "Refractive index", "Lens Workbench").Refractive_index = 1.0 obj.Proxy = self FreeCAD.newDocument() a=FreeCAD.ActiveDocument.addObject("Part::FeaturePython","MyLens") Lens(a) https://www....
by ickby
Mon May 13, 2019 11:23 am
Forum: FEM
Topic: FEM post processing pipeline with scalar value export .obj .stl
Replies: 22
Views: 500

Re: FEM post processing pipeline with scalar value export .obj .stl

I'm on ubuntu 18.10 (windows test are done on my employers windows machine). WIth python3 and QT5 there is a error that pyside2 does not install the correct shiboken cmake files... I will try your script, maybe I missed something :)
by ickby
Mon May 13, 2019 10:42 am
Forum: FEM
Topic: FEM post processing pipeline with scalar value export .obj .stl
Replies: 22
Views: 500

Re: FEM post processing pipeline with scalar value export .obj .stl

As a base one would need to access the VTK pipeline data to have something to make a filter with. This raises an exception for me on windows conda builds ... Yes because the "getPythonObject" method of the property was never implemented. I looked up some code and it seems to be easy to do, but as s...
by ickby
Mon May 13, 2019 8:26 am
Forum: FEM
Topic: FEM post processing pipeline with scalar value export .obj .stl
Replies: 22
Views: 500

Re: FEM post processing pipeline with scalar value export .obj .stl

I think you are rigth, sgrogan, there are quite some potential issues. VTK build with wrong python/qt/occ versions could all mess up the import. So the whole idea may be to brittle to be usefull for FreeCAD. I tried to do some testing on kubuntu 18.10 but already failed at building FreeCAD with pyth...

Go to advanced search