The .skf writer pinned the ZIP entry mtime to a UTC-based epoch
(new Date("1980-01-01T00:00:00.000Z")). fflate encodes ZIP mtimes as
DOS dates using local-time getters and rejects years outside 1980-2099.
In any timezone west of UTC that instant is 1979-12-31 locally, so
exporting or saving a project (e.g. Save to shared) threw
"date not in range 1980-2099".
Build the pinned epoch from local components (new Date(1980, 0, 1)) so
the year is always 1980 regardless of timezone. Add a regression test
that exports under Etc/GMT+12 and round-trips the project.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
- Unit: cover the kernel-free helpers (shapeYawDegrees, worldAabb,
aabbsOverlap) and the new "step" export filename.
- E2E: drive the real exportShapesToStep/importedShapeFromStep against
the actual OpenCascade kernel (loaded from node_modules), asserting
primitives, holes, AABB gating, cones, and import->re-export all
conserve volume. Add tests/vitest.e2e.config.ts and a test:e2e script.
Bump occt-wasm 3.6.0 -> 3.6.1, which fixes the multi-solid STEP writer
that dropped a cone's lateral CONICAL_SURFACE. Verified end-to-end: a
cone keeps its full surface and exact volume in a multi-solid assembly,
so cones now map to exact B-Rep alongside box/cylinder/sphere.
- Add "cone" to EXACT_KINDS and restore the cone build branch
(full and truncated cones, honoring resized footprint).
- Drop the obsolete cone-bug skip and its special-cased reason string.
- brepKernel: clear the cached promise on a failed load so a transient
kernel fetch failure can be retried instead of poisoning the session.
- Update the export panel copy to list cones as exact geometry.
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.
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.
Add a feature bullet, an "AI Scene Bridge (MCP)" section (enable bridge mode,
connect the MCP server, tools table, example prompt), and project-layout entries
for apps/mcp, the scene route, and docs/scene-bridge.
Co-Authored-By: Claude Opus 4.8 <[email protected]>