mirror of
https://github.com/kristov/ldraw2stl.git
synced 2025-05-15 14:20:11 -07:00
There was bad behaviour if there were nested include files combined with a recursive invert flag, resulting in incorrect surface normals for sub-parts. For example try ldraw/parts/3020.dat before this commit. This is not the best way to solve the problem, but it may suffice for now. IMO the best way would be to "flip" the invert flag between states, rather than explcitely set it to 1 or 0. That way recursively setting invert would simply flip the flag.
ldraw2stl
Convert LEGO LDraw files to STL, for super-sizing and 3d printing!!
-
Get the ldraw parts archive at :
wget http://www.ldraw.org/library/updates/complete.zip unzip complete.zip bin/dat2stl --file ldraw/parts/3894.dat --ldrawdir ./ldraw
-
Install LeoCAD so you can find your parts (optional)
-
Make a note of the .dat file name in LeoCAD, and then run:
bin/dat2stl --file /usr/share/ldraw/parts/3894.dat --ldrawdir ./ldraw --scale 4 > 3894.stl
For a 4X scale one of those!
Description
Languages
Perl
100%