Commit Graph
32 Commits
Author SHA1 Message Date
Francisco Rivero 733d1bea8d Merge remote-tracking branch 'origin/main' into codex/screw-hole-cutters
# Conflicts:
#	apps/web/src/components/WorkplaneViewport.tsx
2026-07-14 01:26:38 +09:00
Francisco Rivero 737fe14a41 feat: add metric screw hole cutters 2026-07-14 01:16:45 +09:00
Formsmith 20731043e4 release: publish v0.6.0 2026-07-11 20:34:13 +03:00
Francisco Rivero fd76c5bd96 Add SVG import extrusion 2026-07-07 23:59:36 +09:00
Formsmith 57dcc10867 fix: allow Docker static export with MCP route 2026-07-05 13:05:09 +03:00
Formsmith 5b0ea94e7b Release SketchForge 0.5 edge tools 2026-07-05 12:28:23 +03:00
Andy Aragon a0fa3559b3 feat: enable cone STEP export and harden kernel load
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.
2026-06-29 15:03:32 +03:00
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 5ed0e61cb8 Revert "AI Scene Bridge (MCP)" 2026-06-26 15:31:37 +03:00
BloodSteynandClaude Opus 4.8 dee2765538 Add AI scene bridge (V1): MCP -> /api/scene -> editor
Additive fork feature letting an MCP server (driven by Claude) push parametric
WorkplaneShape[] scenes into the running SketchForge editor. The Node side never
writes browser storage; it stages a command file that an in-page poller applies
through the editor's existing updateProjectShapes() save path.

- Phase 1: apps/web/src/app/api/scene/route.ts — stages/serves commands behind the
  existing same-origin guard, with its own monotonic stagingRevision (separate from
  the app's project revision).
- Phase 2: apps/web/src/lib/sceneBridge.ts (SceneTransport seam + polling transport)
  and a useSceneBridge poller hook in page.tsx (gated on ?bridge=1), which creates
  unknown projects and hydrates via updateProjectShapes; defers while dragging.
- Phase 3: apps/mcp/ MCP server — set_scene/get_scene/add_shapes/list_kinds. zod
  validates the ShapeKind union enum + base numerics, then reuses the app's own
  sceneShape/canonicalizeShape for defaults/canonicalisation (no hand-authored ranges).
- Phase 4: docs/scene-bridge/README.md plus vitest cases for the route handler and
  the schema validator.

Staged scenes live under .codex/pending-scenes/ (gitignored). MCP registered via
.mcp.json. npm run test: 29 passing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-26 13:34:44 +02: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 272fac5069 Remove obsolete shapes sidebar 2026-06-19 10:41:17 +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 66023aab7c Anchor inspector resize edits 2026-06-15 12:56:23 +03:00
Formsmith 5d9d14c714 Fix local project thumbnails 2026-06-15 12:31:22 +03:00
Formsmith 4ba8cb723c Organize test files 2026-06-14 22:13:39 +03:00
Formsmith 753a1c2833 Add workspace editor tools 2026-06-14 22:08:55 +03:00
Formsmith 962559f582 Show dimensions for primitive inspectors 2026-06-13 15:56:06 +03:00
Formsmith 7457c94581 Persist project workspace settings 2026-06-13 10:26:40 +03:00
Formsmith f1d914e2c3 Extract workplane overlay components 2026-06-13 09:33:10 +03:00
Formsmith a54ccfb0cf Pin rotation wheel during drag 2026-06-13 09:13:15 +03:00
Formsmith 4abe6c1d9d Prevent project sync echo from rehydrating editor 2026-06-13 09:01:18 +03:00
Formsmith 1fcd471a0f Keep Vercel demo config out of local repo 2026-06-12 22:00:17 +03:00
Formsmith a77605537b Add Vercel live demo mode 2026-06-12 21:14:51 +03:00
Formsmith 515e52bed6 Use transparent README logo 2026-06-12 21:02:56 +03:00
Formsmith 10bc5aa3f0 Fix rotated resize anchoring 2026-06-12 20:33:19 +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