cad-editor/src/io
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven d8c60c32d4 fix(3d): revolve axis and OBJ import use the Z-up world, not stale Y-up
The truck B-rep pipeline is Z-up (solids extrude/raise along Z, profile
wires convert pass-through), but two spots still assumed a Y-up world:
- REVOLVE swapped the axis/origin to (x, z, y), so the revolve axis sat
  in the XZ plane while the profile sat in XY → wrong solid. Use the
  axis/origin straight through.
- OBJ import kept Y-up coordinates as-is on the (now Z-up) viewport, so
  imported meshes lay on their side. Rotate +90° about X on import
  (positions + normals): (x, y, z) → (x, -z, y).

EXTRUDE (sweep along +Z) and the box/cylinder primitives were already
Z-up and unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 11:03:03 +03:00
..
mod.rs fix(io): drop more parser-garbage entities to prevent OOM on open 2026-05-21 10:39:39 +03:00
obj.rs fix(3d): revolve axis and OBJ import use the Z-up world, not stale Y-up 2026-06-04 11:03:03 +03:00
pdf_export.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
plot_style.rs chore: drop dead scene/IO helpers + simplify XATTACH command state 2026-05-16 00:10:20 +03:00
print_to_printer.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
step.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
stl.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
xref.rs feat: honour LUNITS / LUPREC unit formatting + INSUNITS scaling on insert 2026-05-20 05:43:55 +03:00