1
0
mirror of https://github.com/kristov/ldraw2stl.git synced 2025-05-15 14:20:11 -07:00
ceade 708cca9627 Changes to handling BFC
There are two major changes here:

1) Previously I was inverting the winding of verticies only when calculating the normal. This was the wrong approach and I instead needed to invert the order of the verticies before calculating the normal. This is because most STL processing software (eg: Slic3r) will recalculate the normals based off the winding (correctly).

2) I *think* I am doing proper BFC handling now, although TBH the BFC handling logic in ldraw is super complex to me. See: https://www.ldraw.org/article/415 ("Rendering Engine Guidelines").
2020-05-03 02:34:13 +02:00
2020-05-03 02:34:13 +02:00
2020-04-30 21:50:18 +02:00

ldraw2stl

Convert LEGO LDraw files to STL, for super-sizing and 3d printing!!

  1. 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

  2. Install LeoCAD so you can find your parts (optional)

  3. 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
No description provided
Readme 66 KiB
Languages
Perl 100%