BREP_STL2STEP
First-class BREP-family STL-to-STEP CLI crate. It depends on
BREP_reconstruction; its binary name is stl-to-step.
Run it from the repository root with:
or install from this checkout with cargo install --path BREP_STL2STEP.
The command writes input.step beside input.stl, refuses to replace an existing STEP or
JSON report unless --force is supplied, and writes through a temporary file before the
destination is replaced. STL coordinates default to millimetres; --unit accepts mm,
cm, m, micron, inch, or foot (and aliases accepted by --help).
Recognition preserves safe analytic plane, cylinder, and cone regions in a hybrid model;
full spheres, ring tori, capped cylinders, and capped cones also have direct analytic
paths. Other repairable closed input can fall back to a faceted BREP unless
--strict-analytic is set. Use --report-json PATH for the schema-version 2 JSON report;
the command always prints a human-readable terminal report.
Exit statuses are 0 for success, 2 for usage, 3 for STL input, 4 for conversion,
and 5 for output I/O. Run stl-to-step --help for all recognition and tolerance options.
The package is versioned 0.2.1, released 2026-09-11; it contains only this
binary. It publishes after BREP_reconstruction.