Commit Graph
38 Commits
Author SHA1 Message Date
Formsmith746 34528e6393 feat: improve shape tools and project previews 2026-08-28 13:24:32 +03:00
Formsmith746 2486b998c8 release: SketchForge 1.0.7 2026-08-24 12:55:20 +03:00
Formsmith746 aff1ca8f98 fix: import dense STL meshes 2026-08-23 13:45:27 +03:00
Formsmith746 1100e4f718 release: SketchForge 1.0.5 2026-08-23 13:28:52 +03:00
Formsmith746 95b029e274 feat: improve modeling, exports, and hosted deployment 2026-08-23 10:20:57 +03:00
Formsmith746 fa5b2954a5 fix: keep imported STL objects after import
Release local/web v1.0.4. Fixes #65
2026-08-18 11:10:19 +03:00
Formsmith746 399dab9aa3 feat: add automated desktop release pipeline 2026-08-17 16:04:52 +03:00
Formsmith a42922c4f3 release: publish v1.0.0 2026-08-10 16:15:32 +03:00
Formsmith decf33521a fix: keep grouped object IDs unique 2026-08-03 18:54:15 +03:00
Formsmith c5f34422e4 release: publish v0.9.0 modeling update 2026-08-02 17:38:53 +03:00
Formsmith 4526a62c5f Merge remote-tracking branch 'origin/main'
# Conflicts:
#	apps/web/src/lib/skfProject.ts
2026-07-28 14:54:53 +03:00
Formsmith edbb11c97d release: improve rendering architecture and dark mode 2026-07-28 14:52:59 +03:00
Big OnionandClaude Opus 4.8 c931a55616 fix: keep .skf ZIP mtime within DOS date range in all timezones
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]>
2026-07-26 12:33:03 -04:00
Formsmith fe161f8d75 release: add sketch revolve and configurable gears 2026-07-24 11:55:44 +03:00
Formsmith 5dde9faceb Support SKF hashing over HTTP 2026-07-20 13:10:11 +03:00
Formsmith c5ce5a80f0 Ship shared projects and CAD reliability updates 2026-07-19 15:58:52 +03:00
Formsmith 3a7db063e7 Revert "Merge PR #29: add metric screw hole cutters"
This reverts commit bdab56468c, reversing
changes made to 70e45bb966.
2026-07-16 12:37:54 +03:00
Formsmith bdab56468c Merge PR #29: add metric screw hole cutters
# Conflicts:
#	apps/web/src/components/SketchForgeEditor.tsx
#	apps/web/src/components/WorkplaneViewport.tsx
#	apps/web/src/lib/workplaneShapes.ts
#	apps/web/src/types/sketchforge.ts
2026-07-16 12:35:05 +03:00
Formsmith 70e45bb966 Checkpoint SKF project format and export updates 2026-07-16 12:30:39 +03:00
Formsmith 400c4bf86e Improve editor history, CAD tools, and ruler workflows 2026-07-14 09:43:37 +03:00
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 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 648d520422 Add toolbar buttons ruler and cut previews 2026-06-18 08:56:40 +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 7457c94581 Persist project workspace settings 2026-06-13 10:26:40 +03:00
Formsmith fb54762ef0 Move web app into apps workspace 2026-06-08 22:19:00 +03:00