discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Specification of CSG file format?

BC
Bob Cousins
Mon, May 18, 2015 7:41 PM

I extracted a YACC style grammar from importCSG.py in FreeCAD. It's a bit
long to post so I have put it into github.
https://github.com/bobc/csg_tool/blob/master/grammar/CSG.y I have run the
file through yacc and it seems ok, otherwise I have not verified the syntax.

FreeCAD seems to support most of the CSG functions, notable exceptions are
hull, minkowksi and a handful of others including glide, offset, resize,
subdiv.

bob

On 17 May 2015 at 23:53, bobc bobcousins42@googlemail.com wrote:

I am interested in this too, I am just thinking of writing a parser, so a
grammar would be useful. If there is nothing already, I will try to put one
together.

bob

--
View this message in context:
http://forum.openscad.org/Specification-of-CSG-file-format-tp12676p12681.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I extracted a YACC style grammar from importCSG.py in FreeCAD. It's a bit long to post so I have put it into github. https://github.com/bobc/csg_tool/blob/master/grammar/CSG.y I have run the file through yacc and it seems ok, otherwise I have not verified the syntax. FreeCAD seems to support most of the CSG functions, notable exceptions are hull, minkowksi and a handful of others including glide, offset, resize, subdiv. bob On 17 May 2015 at 23:53, bobc <bobcousins42@googlemail.com> wrote: > I am interested in this too, I am just thinking of writing a parser, so a > grammar would be useful. If there is nothing already, I will try to put one > together. > > bob > > > > -- > View this message in context: > http://forum.openscad.org/Specification-of-CSG-file-format-tp12676p12681.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
TP
Torsten Paul
Mon, May 18, 2015 8:20 PM

On 05/18/2015 09:41 PM, Bob Cousins wrote:

FreeCAD seems to support most of the CSG functions, notable
exceptions are hull, minkowksi and a handful of others including
glide, offset, resize, subdiv.

Both glide and subdiv are not implemented in OpenSCAD (only
throw an assertion error).

With the latest release there is at least also text().

Note there is also a Google Summer of Code project going on which
plans to create an importer for BRL-CAD that will read CSG files.
(http://brlcad.org//wiki/User:Andrei.ilinca24)

ciao,
Torsten.

On 05/18/2015 09:41 PM, Bob Cousins wrote: > FreeCAD seems to support most of the CSG functions, notable > exceptions are hull, minkowksi and a handful of others including > glide, offset, resize, subdiv. > Both glide and subdiv are not implemented in OpenSCAD (only throw an assertion error). With the latest release there is at least also text(). Note there is also a Google Summer of Code project going on which plans to create an importer for BRL-CAD that will read CSG files. (http://brlcad.org//wiki/User:Andrei.ilinca24) ciao, Torsten.