Vendored truck-stepio (writer only): an intersection curve's second surface was written at the first one's id (duplicate ids for every boolean edge), and revolved surfaces lost their orientation (the modeling-surface sense was always true; inverted or mirrored revolutions came out inside out). Export now writes intersection edges as C1 cubic B-splines through exact points, so files carry plain 3D curves and no redundant surfaces. Vendored truck-meshalgo: hinted parameter searches that run off a B-spline's domain are rejected or clamped (meshing their grid never finished). STEP import: straight revolution profiles are bounded in the meridian plane and stop at the axis; loops on revolutions start away from the axis; face extents include edge end points. Edges between pieces of one split surface draw as seams. kernel::step_validate checks a STEP file (duplicate ids, dangling references, dense numbering); the oracle replay now exports every rebuilt part, validates it and re-imports it with no warnings and the same volume (all 32 rebuildable cases pass). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
22 lines
466 B
Markdown
22 lines
466 B
Markdown
# truck-stepio
|
|
|
|
[](https://crates.io/crates/truck-stepio) [](https://docs.rs/truck-stepio)
|
|
|
|
Reads/writes STEP files from/to truck.
|
|
|
|
## Sample Codes
|
|
|
|
### shape-to-step
|
|
|
|
convert from truck shape json to step file.
|
|
|
|
#### usage
|
|
|
|
```bash
|
|
shape-to-step <input shape file> [output shape file]
|
|
```
|
|
|
|
### step-to-mesh
|
|
|
|
Parse STEP data, extract shape, and meshing.
|