Search found 10 matches

Go to advanced search

by kianwee
Thu Feb 18, 2016 2:09 pm
Forum: Python scripting and macros
Topic: From pythonocc to freecad
Replies: 0
Views: 646

From pythonocc to freecad

Hi I am trying to convert pythonocc objects to freecad objects. However, when I run the Part.__fromPythonOCC__ i receive an error: "OCCError: No SWIG wrapped library loaded" What seems to be the problem here ? I have attached the script here for reference: from OCC.BRepBuilderAPI import BRepBuilderA...
by kianwee
Thu Feb 18, 2016 1:55 pm
Forum: Python scripting and macros
Topic: Normalise u,v of face
Replies: 8
Views: 938

Re: Normalise u,v of face

Hi ickby, thanks alot, I will read up on parametric surfaces to have a better idea.
by kianwee
Thu Feb 18, 2016 12:05 pm
Forum: Python scripting and macros
Topic: Normalise u,v of face
Replies: 8
Views: 938

Re: Normalise u,v of face

Its kind of different, let me paste the code for the loft surface here. I believe i mean something like reparameterise the surface. If you run the code and print the parameterrange of the face, its [0.0,1.0,0.0,1.0]. The domain of the surface is divided locally within the surface and uv is normalise...
by kianwee
Thu Feb 18, 2016 2:58 am
Forum: Python scripting and macros
Topic: Normalise u,v of face
Replies: 8
Views: 938

Re: Normalise u,v of face

But I have manage to do it with this example, a loft surface. Freecad automatically normalive the UV of a complex surface. Is it because of the way the surface is defined ? loft_subdivide.png Anyway I did a work around: subdivide_extrude_workaround.png for anyone who is interested I paste the code h...
by kianwee
Wed Feb 17, 2016 9:22 am
Forum: Python scripting and macros
Topic: Normalise u,v of face
Replies: 8
Views: 938

Normalise u,v of face

Hi all, I have been trying to subdivide an extrusion shown here: extrude.png So I try to subdivide it according to the u v parameter of each face and this is what i got: subdivide_extrude.png What I realise is that the ParameterRange of each face is not normalise or trimmed (I am not sure how to cal...
by kianwee
Tue Jul 21, 2015 4:00 am
Forum: Users Showcase
Topic: kilian roof with freecad python api
Replies: 4
Views: 1954

Re: kilian roof with freecad python api

thanks !
by kianwee
Tue Jul 07, 2015 8:05 am
Forum: Users Showcase
Topic: kilian roof with freecad python api
Replies: 4
Views: 1954

Re: kilian roof with freecad python api

I just realise i can post the whole script here. Here is the script. import FreeCAD from FreeCAD import Base, Part, Draft, MakeBottle def curve(points): geomCurve = Part.BezierCurve() geomCurve.setPoles(points) edge = Part.Edge(geomCurve) return(edge) def create_hoops(centre_edge, num_seg): edge_len...
by kianwee
Tue Jul 07, 2015 7:58 am
Forum: Users Showcase
Topic: kilian roof with freecad python api
Replies: 4
Views: 1954

kilian roof with freecad python api

Hi I just started using Freecad python api for a project I am working on, I did a simple architectural example called the kilian roof. Just like to share the script and hope that it will be useful for people learning freecad python api. You can download the python script here https://drive.google.co...
by kianwee
Sun Aug 31, 2014 4:58 am
Forum: Open discussion
Topic: Visual Programming with Dynamo atop Freecad API?
Replies: 39
Views: 10157

Re: Visual Programming with Dynamo atop Freecad API?

Just an add on other than dynamo there are other open-source visual programming tools that are platform independent, here are a few:

coral - https://code.google.com/p/coral-repo/

vistrails - http://www.vistrails.org/index.php/Main_Page
by kianwee
Wed May 07, 2014 7:57 am
Forum: Help on using FreeCAD
Topic: visual scripting environment for free cad
Replies: 14
Views: 2864

Re: visual scripting environment for free cad

Yup i agree with bitacovir, a visual scripting environment will also make python scripting more available to the users. It could be a very interesting development.

Go to advanced search