Commit Graph
12 Commits
Author SHA1 Message Date
Andy Aragon 80b12ee9f7 feat: add B-Rep STEP import with exact round-trip
Import STEP/STP files as tessellated mesh bodies (Tier 1) while retaining
each body's exact OpenCascade B-Rep, normalized to the body's local frame
(lib/stepImport). On STEP export, re-emit imported bodies from that stored
B-Rep with the editor's placement reapplied via rigid kernel ops: rigid and
uniform-scaled placements stay exact analytic geometry, and non-uniform
resize degrades to valid B-splines (Tier 2). Closes import -> edit -> export.

A shared lazy occt-wasm loader (lib/brepKernel) is reused by import and
export so the kernel loads at most once per session, on first use.
2026-06-29 15:03:32 +03:00
Andy Aragon b292cc14eb feat: add B-Rep STEP export via brepjs + OpenCascade
Reconstruct parametric box/cylinder/sphere shapes as exact OpenCascade
B-Rep solids and write a named, colored multi-body STEP assembly, cutting
holes via boolean subtraction (only against bodies they overlap). brepjs
and the 22 MB occt-wasm kernel load lazily on first export, so the initial
bundle is unchanged.

Unsupported shape kinds are skipped with an in-app notice. Cones are exact
in the kernel but skipped pending an upstream occt-wasm multi-solid STEP
writer fix that drops conical surfaces.

occt-wasm runtime is staged into public/occt by scripts/copy-occt-wasm.mjs
(gitignored) and loaded outside the bundler; the optional brepkit /
opencascade kernel backends are aliased away in next.config.
2026-06-29 15:03:32 +03:00
Formsmith c3ed07a32e Add reversible edge tools and view cube fixes 2026-06-28 16:06:01 +03:00
Formsmith 57361a3b2a Release v0.2.0 with Docker deployment 2026-06-20 10:07:33 +03:00
Formsmith 2d0ed7ef23 checkpoint: stabilize editor geometry and workspace settings 2026-06-19 21:47:13 +03:00
Formsmith 8174e5560d Add Boolean Intersection and refresh toolbar icons 2026-06-19 10:37:32 +03:00
Formsmith 648d520422 Add toolbar buttons ruler and cut previews 2026-06-18 08:56:40 +03:00
Formsmith 753a1c2833 Add workspace editor tools 2026-06-14 22:08:55 +03:00
Formsmith 7457c94581 Persist project workspace settings 2026-06-13 10:26:40 +03:00
Formsmith 4abe6c1d9d Prevent project sync echo from rehydrating editor 2026-06-13 09:01:18 +03:00
Formsmith 51bfb7fa5f Update editor resize behavior 2026-06-12 14:05:36 +03:00
Formsmith fb54762ef0 Move web app into apps workspace 2026-06-08 22:19:00 +03:00