127 Commits

Author SHA1 Message Date
superGeometry aacfad6e49 Fixes from building a turbofan jet engine with every tool, by code and then by hand on a phone-sized screen, the beginner way (tests/jet.test.ts; the hand build is tests/fixtures/jet-hand.json, 118 steps: casing, rotor, combustor, nut, sensor pod and stand each come out the same as by code to 0.01 cm³). Image to trace, Axis, Revolve (with travel: a coil), Shell, Loft, Sweep along a model edge, Extrude with Taper, Pattern Linear / Circular, Union / Subtract / Intersect, Split Body and Delete, Replace / Scale / Offset Face, Delete Face, Fillet, Chamfer, Thread, Text, Import (STL) and Repair, Move/Rotate, Scale per axis, a thickened Freeform sheet, variables and a dimension driven by one:
- Import: every STL failed (OpenCascade's reader gives a compound, the import wanted the shell) — the app's own STL exports too. Read as one solid, or loose faces for Repair
- A whole ellipse turned all the way round is made in two halves: the one-face ring took one fuel nozzle, then came out inside out
- Union that leaves a gap (a coil wound round a hollowed cowl): the tolerant join closes it
- Split Body with faces lying on the plane (a coil's end on the cutaway plane): tolerant split instead of "could not compute"
- A join checked by volume allows for the measuring of big many-faced bodies (a name raised on a 1.9-litre casing was refused)
- Image: on the Floor / Front / Side, its middle at X / Y typed, opened right after inserting (it lay on the floor and could only be dragged there)
- Construct → Axis: Along X / Y / Z through a point typed (in an empty project "select face or edge" was a dead end)
- Arc by centre on a phone: X / Y of the centre, Radius, Start and End angle (anticlockwise); a lip round 257 snapped to 260
- Sketch: the project's planes by name in the plane card, and in a straight-on view with one facing you the card shows instead of the origin plane
- Planes by name in Replace Face, Split Body, Mirror, Offset Plane; Scale Face says which way (along X)
- Ellipse card has Angle; a size typed after X / Y goes along X (an ellipse typed 44 long went up)
- Double tap on a shape opens its sketch every time (the first tap opens Extrude, which took the second as "leave", grabbed its arrow, or counted it late)
- Sketch Move/Rotate: its gimbal grabs only when dragged (a point picked by mistake took every tap: Apply (0))
- Sketch Mirror on a phone: shapes tapped join the selection (a second circle was refused as "not a straight line"); the mirror line is an axis only (an image edge-on, a seam underneath took the tap)
- Sketch on a face: a shape tapped off the face is the whole shape drawn (a flange round a pylon's top came out as a ring with a 6-deep pocket)
- A tool waiting for a pick takes a body picked in Items (Repair Body sat on "select body")
- Freeform surface: Centre X / Y / Z while it's placed (it lands on the face's middle, 1.43 off)
- Shell: a face tapped on the preview counts as the body's (the front end, tapped from inside through the end already open, stayed shut); Clear in the faces list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:02:02 +02:00
superGeometry cd8273bc41 Fixes from building a desk arc lamp by hand on a phone-sized screen, the beginner way, with the tools the other builds didn't use: Revolve, Fillet, Chamfer, Sweep, Shell, Plane offset, Pattern Circular, Subtract (and by code: tests/lamp.test.ts; the hand build is tests/fixtures/lamp-hand.json, same 185 x 120 x 226 size, same vents, same bulb):
- A tapped shape opens Extrude; its card now has "Revolve instead" and "Sweep instead" (there was no way from there to turn the shapes already picked)
- Revolve and Sweep take more taps on the sketch's shapes (two stacked rectangles couldn't be turned together)
- A side of a rectangle or outline can be the Revolve axis (only separate lines could)
- A round edge gives an axis through its centre: Pattern Circular round a lamp shade's rim (round edges were refused)
- Sweep: one tap on a path takes the whole joined run (line, arc, line), tap a piece again to drop it — the short pieces were hard to hit
- Line on a touch screen: the card takes Length and Angle after the first tap (no hover, so there was nowhere to type them, and the next point was off the screen)
- Tapping the Line tool again ends the line under way (it carried on the chain)
- Changing drawing tool starts a new chain: a line drawn after an arc was tied to the line before the arc, and the solver dragged both 40 mm across
- Undo / Redo while drawing stops the shape under way (it went on from the undone point)
- A tap a fingertip from a snap point counted as a drag back to the finger: nothing could be drawn near a model corner on a plane
- A full circle's centre snaps (the end of the stem: only its rim did)
- Drawing started on a model point stays there (typing a radius slid the bulb's outline 1 mm off the socket's centre)
- An arc tapped between two points stays joined to them (typing its radius pulled it loose)
- Picking: a corner or edge just behind a thin wall isn't picked through it (the stem's end 2 mm above the inside of the shade was picked instead of that face)
- Construction planes are drawn round the middle of the model (a plane through the shade was drawn round the floor below it)
- A body of a pattern picked: "Whole Pattern" selects the rest (eight vents to subtract were eight double-taps)
- Subtract with many tools: one fused, volume-checked cut (cutting eight vents one by one lost the shape)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 01:28:03 +02:00
superGeometry 065d243e91 Fixes from building a small church by hand on a phone-sized screen, the beginner way (and by code: tests/church.test.ts, inside 250 x 250 x 250; both remove exactly the openings' volume; the hand build is tests/fixtures/church-hand.json):
- Extrude has Taper (how big the far end is, down to a point): a spire, a pyramid, a cone in one step — it used to need a plane, a second sketch and Loft
- A centre rectangle typed 100 x 150 came out 200 x 300; and a typed shape can be placed with Enter or Done in the card (it waited for a second tap)
- Add / Cut with no body named act on what they run into (a nave "added" to its tower became a separate body)
- In a straight-on view (Front, Back…) Sketch goes on the face you're looking at — the one seen most over the screen — not the origin plane through the middle of the building
- All shapes on a face sketch takes what was drawn: windows drawn on a wall were cut as the wall around them (the face's outline made them holes)
- A New body extruded from a face measures its own height (68 typed for a spire went 102 down into the tower: "total" through the body)
- Moving sketch curves lets go of their ties to curves that stay (a circle snapped to a window's corner dragged the window along)
- Deleting a step frees its sketch back into view; a sketch on a face hides once everything drawn on it is used

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 00:40:14 +02:00
superGeometry f69d95bf26 Fixes from building a ruler with cut numbers through the tools on a phone-sized screen (and by code: tests/ruler.test.ts, 160 x 30 x 3, a tick every mm, 0-15, engraved 0.6 deep, removed volume exact):
- Text: points closer than a thousandth of the size are merged (Roboto's "8" had zero-length edges and the cut failed with "hair-thin faces")
- Extrude from a sketch: "All shapes" picks every shape at once, holes left as holes (200 ticks and numbers can't be tapped one by one)
- Rebuilding a model with thousands of edges: listing a shape's edges/faces was quadratic (11000 edges: 21.7 s -> 42 ms); fuseAll joins as a balanced tree. The ruler rebuilds in 7 s instead of 85
- Phones: a tap on a thin shape (a 0.3 mm tick) picks the shape, not its outline
- Sketch Move shows dX/dY; Pattern keeps the direction it was given (spacing typed afterwards used to turn it diagonal)
- The sketch origin snaps only while sketch guide points are on (numbers placed either side of it all jumped onto it)
- The text size is remembered across reloads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:02:16 +02:00
superGeometry 25c3b361e1 Thread tool: tap a round face (or a hole's rim, which is what a finger hits in a small hole) → Thread. A shank drawn at the nominal size gets an outside thread, a hole drawn at the tap-drill size an inside one; the pitch starts at the ISO coarse pitch and the panel says what that makes (M10 × 1.5 outside thread); left-hand as an option; editable from History. The kernel cuts an ISO 60° V groove swept along an exact helix (a line wound on a cylinder: fitted spline helices drift and fail past ~20 turns), stopping just short of both ends (a groove running out through an end face made OpenCascade cut nothing, or the whole rod), and checks the cut against the groove's exact volume, trying another start angle if OpenCascade trips on one. Tests: screw and nut, left hand, too-coarse pitch, flat face refused, and M3–M24 rods and nuts in both hands (40 cases)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 20:35:49 +02:00
superGeometry d3177a5681 Join / cut: OpenCascade can get a boolean wrong without saying so (a helical thread only just overlapping the core it's joined to came out at 5x the volume, still 'valid'); the result's volume is now checked against what a union or cut can be, the plain boolean tried, else a clear message (overlap them more) in ~2 s instead of 22 s of repair ending in 'hair-thin faces'. Test: an M10 x 1.5 screw and nut built as a user would (tests/screwnut.test.ts)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:53:20 +02:00
superGeometry 1ed6e3d054 Checked the last commits against the code before them (350 random face edits, old vs new, each difference worked out by hand) and fixed what that found: a delete must leave the faces away from it standing (most of each: deleting a plate's top or a box's whole side wall no longer leaves just the pocket or the boss); a fillet taken off around a face edit goes back on its own edge only, checked all along it (an L's front edge whose middle happened to lie on both planes got one too); a round face swept past half a turn offsets all the way round (the cells it covers, as for L-shaped flat faces); merging faces that lie on one surface is tidying only, so OpenCascade failing at it no longer fails the edit. Tests: tests/faceeditcases.test.ts (each case against its exact volume), and a refused side-wall delete in deleteheal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:42:12 +02:00
superGeometry 1a3a89b6f0 Offset a round face whose end runs into a curved neighbour (a twisted corner patch where a chamfer meets a fillet): that surface has no one way to carry on, so the flat faces round it bound the region instead of leaving it open (it ran off out of the part and was refused); and where there's no material under the old round face (past its end), what's under it is filled too, so no hollow groove is left. The user's part as a test (tests/fixtures/offsetface.json): the fillet goes from R5 to R8.5, the patch closes, 16 to 15 faces, nothing past the part, nothing repaired
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:24:51 +02:00
superGeometry 4d29e4e7fd Tilting a face with inward corners (an L, a notch cut into it) moves all of it, not just its convex part: its neighbours' surfaces cut its plane into cells, and the region it moves through is the cells it covers, joined. Moving the bottom edge of such a face (with a fillet along its top) no longer loses the fillet's edge and gets refused. The user's part as a test (tests/fixtures/moveedge.json): one tilted face, 13 faces, the 3 fillets kept, nothing repaired
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:04:45 +02:00
superGeometry 0cd9793a71 Turning a face a fillet ends on no longer leaves pieces of the fillet's cylinder behind, and fillets can be deleted wherever they are: each neighbour bounds the fill on the side the fillet itself is on (an end face may be a pocket wall facing it), a round fillet's fill is bounded by its chord (the corner it rounded can stick out past the part's box when its faces meet at an angle other than 90°), and a face move takes a fillet off this way when the old way can't. The user's part as a test (tests/fixtures/rotatedface.json): 13 faces, no stray cylinders, nothing repaired; Fillet 01 deletes to exactly its rounding
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:55:08 +02:00
superGeometry 4ac5a9a60b Delete face / fillet / chamfer as if it was never there: the neighbours carry on along their own surfaces until they meet. Fill behind them or take away in front of them, bounded by the face's own surface (or a box round it) inside the body's box, every result checked: each face left lies on a surface the part already had (nothing invented), the deleted face is gone, the faces a fillet rounded are still there, and only what was round it changed; the smallest such change wins. A fillet goes as a whole: all pieces of its surface, its smooth chain, or (mitred corners) its same-radius pieces. Tests: 16 features (fillets, chains, chamfers, holes through / blind / at the edge, inside fillets, boss bases, pocket floors, a fillet with a hole through it) and a fuzz that fillets a random edge then deletes it — back to exactly the original part
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:37:51 +02:00
superGeometry f0630e0db1 Fill to Plane: an open freeform surface becomes a solid by filling the gap down (or up, or across) to a plane — sides straight to it along its normal, the bottom the surface's outline projected flat on it. One cut of the swept surface and its outside sewn (fast); a surface folding back over itself as seen from the plane is cut patch by patch and joined (slower, right); a side-on plane or a solid body gets a clear message. From the freeform tool ("Fill to a plane…"), the body's actions, or Tools; editable in History; tested with tilted planes, planes above, across and beside, overhangs, then unions, fillets and moves
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 17:32:32 +02:00
superGeometry 411cfea6eb Stress everything: whole-project fuzz (every feature kind, saves and loads, earlier steps deleted and changed, exports), store and file-reader fuzz, a perf test. Fixes: a drag that came back to where it began left the project at its last in-between frame; undo snapshots kept a full copy of imported models each (100 edits with a 6 MB import: 770 MB → 100 MB, edits 11 ms → 0.1 ms); rebuild cache keys grew with the square of the project (now chained hashes: +73 MB → +1 MB, change rebuild 24 → 9 ms); DXF reading let NaN and zero-length curves into sketches; OBJ with broken face indices crashed with a raw error. Break-it generators shared in tests/fuzzkit.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:31:52 +02:00
superGeometry fcc12e2f70 Repair tool in the kernel: staged, shape-preserving fixes (tolerances and edge curves rebuilt, faces fixed, gaps sewn at growing tolerances, missing flat faces filled, hair-thin faces removed and their slot closed, split faces merged, skins made solid, inside-out turned round), each kept only if it helps without changing volume or size; edits that would be refused for gaps, bad faces or slivers are repaired automatically first (noted in History); Tools → Repair Body adds a Repair step (turns loose faces / imported meshes into a solid); health checks moved to kernel/health.ts; tests with shapes broken on purpose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:02:47 +02:00
superGeometry 6977cc318b Freeforms: a freeform that passes through itself (point pulled through the body, faces folded) or collapses is refused with a message and shows red while editing; edits on solid freeform bodies are now checked like any body's (a broken union used to slip through); new cage tools: Add edge loop, Extrude faces, Inset, Add detail; stress test and a mug built from a cylinder, joined to a plate and other freeforms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 15:45:01 +02:00
superGeometry 629134cf6a Edits work on real deep copies (replicad's clone() shared the shape), so a failed or refused edit can never change an earlier step's result; break-it test also checks that, with a quick default size
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 11:27:30 +02:00
superGeometry c041214f5b Geometry engine hardening: every solid edit is checked (one valid closed solid, no hair-thin faces, no crumbs, not split by edits that shouldn't split, no inside-out lumps) or refused with a message; hollow shells become solids with a void; booleans never modify their inputs (earlier steps could change after a failed edit); friendly fillet/chamfer errors; a randomized break-it test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 11:19:41 +02:00
superGeometry 1fd3a949c9 Arrows always follow the finger (exact point on the arrow's line under it, any zoom); fillets: never pushed straight through, put back or the edge left sharp with a note in History; phones: a line's next point follows the finger and is placed on lift, a pinch cancels it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 09:04:00 +02:00
superGeometry f050c83aaf Face/edge/corner edits never tear a body open (the step stops with a message), a face pushed over a fillet without hair-thin faces, step names never repeat after a delete, options card stays compact on phones
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 23:15:00 +02:00
superGeometry a62a1043bd Appearance back in the column, plane tools, Body 1/2 names, drop-to-join, fold-safe vertex moves
- Appearance (camera, ortho, grid, axes) back in the right column; the cube's button keeps Views
- Trailing line preview hidden only on phone-sized screens
- Corner/edge moves that would fold a flat-faced body through itself stop with a
  message instead of falling back to a mangled shape
- Bodies named Body 1, Body 2… (Surface n for open surfaces)
- Constraints window grows upward from its button; Apply buttons are blue
- Dragging a point onto another point snaps and joins them (Coincident)
- Plane: Through 3 Points, On Curve at Point, Perpendicular to Edge at Point,
  Through Edge at Angle, Parallel to Face at Point

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:30:55 +02:00
superGeometry 88b59d9b66 Softer body colours (old projects follow), Transparency next to Color, open freeform surfaces named Surface in Items
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:16:42 +02:00
superGeometry 7badbf40c6 Offset / move a flat face with inward corners (zigzag, L): keep its whole outline
The half-space trick clipped such faces to their convex part; they now carry
each edge on along its own neighbour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:24:34 +02:00
superGeometry 72804cf110 Valid edge moves on concave faces, Stop button, independent copies + Link, smoother freeforms, sketch Copy to Plane, install prompt
- Move edge/vertex: bent faces are split by ear clipping in their own plane
  (concave faces no longer self-cross); results are checked with BRepCheck
- Stop next to the spinner: restarts the engine and takes back the change
- Copies of freeforms are their own freeforms unless Link is on; editing a
  copy no longer changes the original; copy panel stays after a drag
- Freeform patches fitted through limit-surface points (creases ~5x smaller);
  odd holes filled after refining the cage once (same shape)
- Cage points: bigger reach, drawn on top, quick taps don't deselect
- Sketch Copy to Plane (gimbal), live numpad preview for fillet / panel values
- Variables as one Insert entry; ƒx offers existing variables or a new one
- Font list as a drop-down; install-to-home-screen offer with PNG icons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:12:36 +02:00
superGeometry dd43842030 0.3.0: clean edge moves, round-face arrows, freeform Fill hole / Thickness, share, fonts
- Move edge on flat-faced bodies: only the edge's two corners move (faces that
  bend are split), so repeated moves no longer pile up extra geometry
- Offset arrows on round faces (a hole's wall) point out of the material, the
  way dragging moves them
- Freeform: Fill hole (tap an edge of the hole) and Thickness… from selection;
  a new surface plane starts with the move gimbal; Union with an open surface
  explains how to close it first
- Share button next to each export and Save (phones / tablets)
- Text: choose a font (Sans, Serif, Mono, Narrow, Bold caps, Script) or import
  a .ttf / .otf / .woff
- History: the ! folds out what's wrong; Items + History open by default on
  computers and tablets, History on phones; phones: File / More close Items
- More: Reset cache & update above About; wider project name box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 15:05:21 +02:00
superGeometry 250060f3e8 Help panel, README guide, revolve/extrude fixes, layout polish
- Extrude cutting through a body drawn from its own (projected) edges: tolerant
  booleans, so near-coincident walls count as overlapping
- Revolve with a spline that leaves the axis: open fit splines leave their
  ends heading to their neighbour (mirrored end points); exact spline edges
  are C1; a revolve that still fails retries with fitted curves
- Point-edges at a revolve's pole no longer count as open edges
- Help (More → Help): every button explained, fits phones, tablets, PC, headsets
- README: a beginner's guide plus a reference for AI assistants
- Right column at the middle of the right edge on every device; view cube in
  the corner; More no longer covers it on phones
- Phones sideways: option menus stay within the tool column's height
- Warning line moved clear of the bottom buttons and gives way to panels
- Sketch: "Select last" picks what the last step made; with the numpad on,
  lines leave no Length panel behind
- Numpad on by default on phones, tablets and headsets, off on computers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 12:24:07 +02:00
superGeometry 9d32e89d48 Phone landscape layout, press-and-hold tool names on touch, Union only joins touching bodies
- Short screens (phones held sideways): icon tool column between the top bar
  and one bottom row (undo + section/measure/isolate); Items fits above it with
  the tools beside it; constraint column under the view cube; nothing overlaps
- Touch: press and hold a tool to see its name; let go on it to use it, slide
  off to cancel
- Union of bodies that don't touch is refused with a message (and not added)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 10:45:51 +02:00
superGeometry fd5ca47813 supergeometry.app
A free, open-source CAD modeler that runs in the browser on any device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 01:58:43 +02:00