LDraw.org Discussion Forums
LDraw parts or models as OpenSCAD files - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: LDraw parts or models as OpenSCAD files (/thread-27221.html)



LDraw parts or models as OpenSCAD files - Robert Schiele - 2023-03-25

Hello together,

In case anyone is interested here I extended an original implementation from Danny Staple that allows converting LDraw model or part files into OpenSCAD files. The tool to do so can be found at https://github.com/orionrobots/ldraw-to-scad or as an installable PyPi package at https://pypi.org/project/ldraw-to-scad/ . I also translated the whole parts library to OpenSCAD files. The automatically translated files can be found at https://github.com/schiele/openscad-ldraw .

Note that the parts in the LDraw library are typically non-manifold, meaning that you will experience some trouble when generating solids out of those models. Rendering images should work easily though.