I have released a new version of stl2dat-cp, a tool that generates .dat
files for LDraw from .stl
files.
The new version 1.40 includes:
A fix for a bug in
stl_edge::dump
, which was causing erroneous output for some improperly generated STL files. This bug led to unauthorized memory access (SIGSEGV).I have added the
-swapyz
option, as LDraw has swapped Y and Z coordinates compared to STL.
When combined with the switch -m 0 0 0 2.5 0 0 0 -2.5 0 0 0 2.5
, where 2.5 is the conversion factor from mm to LDraw units, and a negative transformation along the Z axis (which corresponds to Y), it is possible to generate LDraw models with the correct sizes and orientations.
Ondřej Tůma 😎
⏺ https://mcbig.cz ⏺ https://keybase.io/mcbig ⏺ bluesky ⏺ twitter