Search found 2069 matches

Go to advanced search

by keithsloan52
Mon Mar 26, 2012 4:34 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

>>> [w.isClosed() for w in App.ActiveDocument.ActiveObject.Shape.Wires] [True] [/code] Added this to my DXF diag and it produced True for all layers other than E layer which produced [ False, False, False ] Is that correct? I got it wrong its layer B that produced [ False, False, False ]
by keithsloan52
Sun Mar 25, 2012 9:15 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

shoogen wrote:
keithsloan52 wrote: >>> [w.isClosed() for w in App.ActiveDocument.ActiveObject.Shape.Wires]
[True]
[/code]
Added this to my DXF diag and it produced True for all layers other than E layer which produced
[ False, False, False ]

Is that correct?
by keithsloan52
Sun Mar 25, 2012 8:54 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

This problem is not limited to dxf import. It can happen with vanilla CSG. http://www.thingiverse.com/thing:19929 is a good example. maybe we should implement an Refine-Shape-Feature and offer it as an option, so it can be enabled by the user, only if needed, to circumvent Problems that are caused ...
by keithsloan52
Sun Mar 25, 2012 8:30 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

Tried adding s = obj.Shape.removeSplitter() obj.Shape = s To end of my extrude function but made no difference For diagnosics also added obj.Shape.check() at end of dxf and extrude, always reported none which I assume was goodness. I also output shape.isClosed() at the end of theh dxf function and w...
by keithsloan52
Sun Mar 25, 2012 7:06 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

If I delete some of the imports from example8 it loads okay. So muct be dealing with the fact that they are separate lines at least. The import an the creation of single faces works fine, even on example008. Even the extrusions give valid result. Then OpenCascade has problems to do the intersection...
by keithsloan52
Sun Mar 25, 2012 5:38 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

Well my understanding was that shoogen had this working with his code.
The code does quite a lot of post processing of the DXF file.
Perhaps he can comment.

If I delete some of the imports from example8 it loads okay. So muct be dealing with the fact that they are separate lines at least.
by keithsloan52
Sun Mar 25, 2012 4:57 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

I am trying to incorporate shoogens import DXF code into importCSG. It works on some files like openscad's example7, but fails on example8 giving an error message "A fatal error occured when running boolean operation" Not sure of the best way to debug. Seems like it is after a import of a ...
by keithsloan52
Sat Mar 24, 2012 4:11 pm
Forum: Developers corner
Topic: Export FreeCAD to OpenSCAD CSG.
Replies: 28
Views: 5676

Re: Export FreeCAD to OpenSCAD CSG.

Something weird going on. Compared to the original file viewed in FreeCAD If I look at the file in OpenSCAD its very elongated in the direction of the extrusion. If I export to STL from OpenSCAD and load into FreeCAD it still looks elongated. If I export the original file from FreeCAD as STL and the...
by keithsloan52
Sat Mar 24, 2012 9:29 am
Forum: Developers corner
Topic: Export FreeCAD to OpenSCAD CSG.
Replies: 28
Views: 5676

Re: Export FreeCAD to OpenSCAD CSG.

Yes I corrected the float bug when you mentioned it. Relevant bits of ExportCSG.py here ( The forum won't let me upload a py ot txt file ) def vector2d(v): return [v[0],v[1]] def vertexs2polygon(vertex): pointstr=','.join(['[%f, %f]' % tuple(vector2d(v.Point)) for v in vertex]) return 'polygon ( poi...
by keithsloan52
Sat Mar 24, 2012 5:50 am
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 34164

Re: Import CSG files from OpenSCAD.

Questions for shoogen. I see you have code for fustrum both a Class and a Loft implementation and currently the loft implementation is enabled. Surely there is a disadvantage for the loft version in that it exposes two polygons that the user can edit and if they change the number of sides to be diff...

Go to advanced search