127 Commits

Author SHA1 Message Date
superGeometry 0bd3f44977 Each piece is a body: picking some copies of a pattern uses just those
A Subtract given a bolt and its first copy cut all six bolts of the pattern
(the original and copies from the first on counted as "the whole pattern"),
while its card said 2 bodies and the other copies vanished from the preview.
Now a pattern counts as whole only when the original and every copy were
picked. The step keeps that with it (whole), worked out the first time it
runs, so a pattern picked whole still stays whole when its count changes.
Changing a step's picks works it out again.

A Subtract (or any tool) opened again with everything picked now takes taps
straight into its list of bodies; before, taps did nothing until its slot was
tapped.

The crankshaft hand build was redone this way: Subtract 01 reopened, the four
other bolts tapped (6 bodies), and it still matches the code build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:03:36 +02:00
superGeometry a791ffad5e Build stress tests: a crankshaft, helical gears and a propeller, by code and by hand
Three hard parts built step by step in tests, and the crankshaft built again by
hand on a phone-sized screen. The hand build matches the code build's volume
to within 3 mm3 of 2.2 million.

Engine fixes found on the way:
- Volume and area measured to a millionth (ocFree.ts). replicad's measure was
  1.2% over on the propeller's spline faces and put its centre of mass off the
  axis.
- A face's point and normal read straight off its surface: the old way leaked
  engine memory on spline faces, and a twisted gear outline ran it out.
- Lofts through single closed curves whose starts already line up are made as
  one smooth side (loftAlign.ts). A propeller blade came out in six strips and
  its root fillet failed.
- Picked edges are found again more reliably after a rebuild; a near match is
  only used when nothing better is found.
- Sweeps along straight runs, round-about paths, slivers skipped.

Fixes in the app:
- Subtract can pick a body that sits flush inside another one (the face under
  the finger on the other body counts), and never picks its own preview.
- Thread: tapping the middle of a revolved shank picks its seam line; it now
  takes the round face under the finger.
- Sketch: typed end points join the shape they land on; Values can clear a
  box; arcs follow the side tapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:37:12 +02:00
superGeometry 4465a430fe Fillet overflow: a round too big for a face beside it cuts on through
When the kernel gives up on a round because it's bigger than a face beside
it (a 3 mm round on a 2 mm plate's edge), the round is built from its own
cross-section and cut away with booleans instead: still exactly round, it
cuts on through that face's far edge (overflow, keep surface). A note says
so. Straight edges between flat faces and round edges of cylinders, like
the G2 blend, which now shares this code.

Two rounds side by side that would run into each other along their length
(both edges of a block narrower than the two) still don't fit: refused,
not cut into a ridge.

Also: a comment in tests/bodyparity.test.ts that wasn't valid UTF-8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 23:00:49 +02:00
superGeometry c74770930a Fillet chord width, G2 and setback; sweep twist; closed and guided loft; VR
- Fillet, Size: Radius or Chord width (straight across the round, face to
  face). The radius is worked out along each edge, so faces meeting at a
  changing angle still get the width asked for.
- Fillet, Blend: Round or Smooth (G2) - the bend eases in from flat at both
  faces (no line in reflections). Straight edges between flat faces (cut
  away, or added in an inside corner) and round edges of cylinders.
- Fillet, Corner setback: where three or more rounded edges meet, they stop
  short and one smooth patch joins them. Too small a setback is refused with
  the size it needs; a patch that wouldn't close is refused, not kept.
- Sweep, Twist: the profile turns round the path from start to end (it
  follows the path's own non-spinning frame), with End size or without.
- Loft: Closed loop (from the last profile back to the first) and Add guide
  (a curve the body follows through the profiles).
- VR: with a headset, View in VR in the right column. The model floats in
  front of you; trigger picks a face, grip grabs it to move and turn it, both
  grips or the stick size it, B / Y comes back.
- Help text updated; tests/bodyparity.test.ts covers each new kernel option.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 22:30:39 +02:00
superGeometry 2036d7b8eb Sketch fillet on a corner, polygon presets, variable fillet, sweep end size
- Sketch Fillet / Chamfer: tap the corner itself (of a line chain, rectangle or
  polygon) to round it; two lines that meet still work.
- Polygon: its button names the shape (Triangle, Square, Pentagon, Hexagon,
  Octagon); a second tap on the running tool opens those choices. Tools with
  variants run on the first tap and show the variants on the next.
- Clearer hints for sketch Fillet, Move, Scale and Pattern.
- Fillet: Type Constant or Variable - a start and an end radius along each
  edge, with Flip ends.
- Sweep: End size - the profile grows or shrinks evenly along the path.
- Help text updated; tests/bodyparity.test.ts covers the variable fillet and
  the sweep end size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:52:27 +02:00
superGeometry 03b340a733 Picking a thing arms its tool; right-click and hold menus; two-distance chamfer, symmetric extrude
- An edge picked: Fillet is ready (its dot, and a number typed is the radius).
  Move/Rotate Edge stays in the list (M).
- A face picked: a number typed starts Offset Face with it (Total: the wall left).
- The hint says what the armed tool does and how (drag, or type).
- Right-click on the model opens a menu by the pointer: a running tool's Done
  and Cancel, or the selection's tools and Deselect All, then Zoom to Fit and
  the view switches (grid, axes, edges, hidden edges). A stray right-click no
  longer throws a tool's work away.
- Fingers, pens and headset controllers: press and hold still for the same menu.
- History: right-click a step for Edit, Show/Hide, Suppress, Delete.
- A tool's problem shows as a red line in its card, with a warning mark by
  the title (not only in the hint).
- Chamfer: Equal distance or Two distances, with Flip sides.
- Extrude: Sides - One side or Symmetric (the distance each way).
- Help text updated; tests/bodyparity.test.ts covers the new kernel options.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:38:42 +02:00
superGeometry 1d40bd0daf The view's drawing buffer isn't kept; a list that isn't one is a damaged step
- The 3D view no longer keeps its drawing buffer between frames (the browser
  shows each frame the quick way, which matters on phones). The library's
  picture and the screenshot draw the view right before they read it, as
  they already did.
- A step whose tools, bodies, edges or faces aren't a list (a damaged file)
  is refused as damaged before it runs, instead of tripping the code and
  being put into words afterwards (with the raw error in the console).
- The perf test checks memory only when it can collect garbage first (run
  with --expose-gc, as its first line says); without it, it failed on
  garbage not yet collected.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 19:54:58 +02:00
superGeometry 9963abe841 Speed: big sketches, drags and previews across all tools
From a review of the code for speed, each measured on the saved projects.

- A sketch's regions: pieces, their ends and holes were compared each with
  every other. A plate with 900 holes took 1.1 s, now 70 ms; 200 lines
  crossing in a grid took 23 s, now 70 ms.
- Dragging a value in any tool (extrude, fillet, move, scale, offset...)
  asked for a rebuild on every pointer move, also when the snapped value was
  the same: 150 moves were 150 rebuilds, now one per value (19).
- Each preview shown rebuilt the whole History list and refreshed the
  selection tool twice: 11 ms a preview on a 208 step project, now 3. The
  list is rebuilt when what its rows show changes.
- A reference image's picture is no longer sent to the engine (it never
  reads it), and a step's big values (an imported model) are fingerprinted
  once instead of hashed on every rebuild: 17 ms to under 5 for 5 MB.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 19:40:49 +02:00
superGeometry 80e348744a BIM drawings: faster to open, lighter to drag
Profiled on every saved project (the model built, then the views drawn):
guitar 14.0 s to 9.9 s, fan 14.0 to 11.6, jet 21.2 to 19.1, arc reactor
2.1 to 1.2, drill 4.0 to 3.6 (in the app: open in 3.5 s, was 4.6).

- Each body's exact box is worked out once, not again for every view (the
  side and top views took 0.85 s each on a fan, now 0.25).
- The model drawn without its threads is meshed with only what a drawing
  reads, not everything the 3D view needs (seconds on a guitar).
- Dragging a note or dimension reuses the views' placed outlines (24 ms a
  frame on the drill's sheet, now 10), and the sheet is redrawn once a
  frame at most however often the pointer moves.
- The copy of the sheet for printing and SVG files is made when asked for,
  not on every redraw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:48:48 +02:00
superGeometry 6106f7f4c3 BIM drawings: mesh views match the exact ones, views cut at the frame
More stress tests: every sheet option on several projects (1776 sheets),
and the mesh drawing compared line by line with the exact one.

- The mesh views' depth buffer took big flat triangles as up to 20 pixels
  larger than they are: a panel hid its own edges beside them (a closet's
  doors drawn dashed). Seen lines now match the exact drawing on every
  project that can be drawn both ways.
- A tangent line lying on a seen edge or outline gives way to it (a face
  split in two, seen edge on, came out as a thin line).
- Many balloons on a small sheet: those with no room round the view go to
  the nearest free place on the sheet, not off the paper.
- A scale too big for the sheet: the views, their dimensions and balloons
  are cut at the frame instead of drawn over it and the title block, and
  the properties say so.
- Drawings opened while a project is still loading wait for its model
  (it said there were no bodies to draw).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 17:46:24 +02:00
superGeometry 300b507c4d BIM drawings: fast on big models, threads drawn as drawings show them
Stress tested on every saved project, every sheet size, both projection
methods and every title block.

- Freeform or very big models are drawn from their meshes (a depth buffer,
  the mesh's own edge lines, outlines from the normals, round outlines put
  right on the surface, the view's box from the solids): the drill draws in
  4 s instead of a minute, a fan in seconds instead of minutes.
- Threads are drawn plain with a thin line at the thread's depth (ISO 6410);
  the valve's six threads took the exact hidden lines minutes. The plain
  model is kept apart, reusing the steps before the first thread.
- Only the views the sheet shows are drawn, one at a time with progress;
  the other side view is drawn when the projection changes.
- Parts hidden inside a housing get a balloon on their hidden lines.
- Balloons stay off the overall dimensions, other views, other balloons and
  the title block (a ring further out when there's no room).
- The automatic scale takes an in-between one (1:3) where the next standard
  one would leave most of the sheet empty.
- Dimensioning an edge twice picks the one it has; a long parts list stops
  at half the sheet and points to the technical sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 17:02:41 +02:00
superGeometry 41984d3092 BIM: a drawing workspace - dimension by tapping, notes, sheet properties
The BIM card gets a grip to drag it anywhere (it opens there again) and an
X that leaves BIM.

Drawings is now a workspace: tools at the left, the sheet, its properties
at the right.
- Dimensions by tapping: Line Length (a straight edge), Point-to-Point (two
  corners), Radius and Diameter (a circle or arc seen face on). Each lands
  off its edge at once; drag it to move it. The kernel now hands over each
  seen edge as a line or a circle for this.
- Notes: tap where, type, Enter; double tap one to write it again.
- Drag a view to move it: the projected views stay lined up with the front
  one. Delete takes off what is picked; everything undoes.
- Views: front, top, side, isometric each on or off; hidden lines; put the
  views back.
- Properties: title, portrait or landscape, ISO A4 to A0 and ANSI A to D,
  a longer list of scales, projection, title block (empty, border, simple,
  with parts list), date format, balloons, units, precision, decimal comma,
  line widths.
- The frame has grid zones (numbers along, letters down); the title block
  shows the units; the projection symbol is cone first, then its end view.
- Bodies picked before opening Drawings are the ones drawn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:38:31 +02:00
superGeometry 79a69ca9a5 BIM: drawings - views with hidden lines, dimensions, balloons, title block
Drawings opens from BIM (the left column, and inside BIM): the bodies on a
sheet of paper at a true standard scale.

- The kernel projects each body with exact hidden line removal: front, top,
  the side view and an isometric one, each body's edges kept apart so a
  balloon can point at it. Hidden edges lying under seen ones are left out.
- First-angle projection (ISO) by default, third angle as an option, with
  the projection symbol in the title block.
- Paper A4 to A1 inside an ISO 5457 frame; the largest standard scale the
  views fit at, or one chosen.
- Overall dimensions: width and height on the front view, depth on the side.
- Balloons carry the technical sheet's item numbers; the parts list above
  the title block (item, qty, name, material, mass) is the same list.
- ISO 7200 title block: title, owner, author, date, scale, size, drawing
  number, revision, sheet; its fields are the technical sheet's too.
- Print / PDF at the paper's size, SVG download, tap the sheet to zoom.
  The options are saved with the project.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:06:17 +02:00
superGeometry da321a17f4 BIM: real materials for bodies, and the technical sheet
BIM sits under Tools in the left column: Materials, Technical Sheet,
Drawings and Assemblies (the last two say they are coming next).

Materials: a library of 29 real materials in six classes (metals,
plastics, concrete and masonry, wood, glass and stone, insulation and
boards), each with identity (class, the standard of its grade), how it
shows (a colour, see-through for glass) and its technical data:
physical (density, stiffness, Poisson's ratio, strengths) and thermal
(conductivity, specific heat, expansion). Tap a body, then a material;
the card lists every body with its material and mass. Also from the
body's own column: Material.

Technical Sheet: a title block (project, number, revision, author,
company, date, units), the parts list (item, material, volume, area,
mass, centre of mass, size, totals) and every material used with its
data. Prints or saves as a PDF; the parts list downloads as CSV. Item
numbers are the ones the drawings will use.

The engine measures each body's volume, area, centre of mass and box on
the solid. The worker now takes one message at a time (a request that
arrived during a rebuild ran the same steps at once).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:21:39 +02:00
superGeometry bd64c83a82 A full round leaves one clean face; a body's faces are its own step's
From a project that stopped half way.

Two roundings that use up the face between them (4 mm on both corners
of an 8 mm end): the sliver left was closed, but its ends stayed on the
top and bottom faces as edges millionths of a mm long - picked with the
rest of an outline, and what later fillets, cuts and edge moves there
failed on. The flat faces are made again without them, and the two
roundings become the one half cylinder they are. Old picks of such an
edge are passed over.

A new body's face on the same plane as a face of another body (both on
the ground, both as tall) was put down to that body's step: change it
and steps on this one lost their faces. It is the new step's now; the
old answer is kept beside it so projects saved with it still open.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 10:50:14 +02:00
superGeometry d1e6813928 Projected edges follow the body they came from
Project on a body's edge makes a sketch curve that stays on that edge:
on every rebuild the engine puts it where the edge is now and solves the
sketch again with it held, so what is dimensioned to it moves with it
(a hole 8 mm from another part's wall stays 8 mm from it). What is tied
to a moved curve is carried along first, so a distance keeps its side.

The page takes the moved curves as the sketch's own (no undo step, no
second rebuild: a sketch that comes out the same to the last digit is
the same sketch to the steps made from it). In the sketch a followed
curve is held by the solver, drawn in its own colour, and has Unlink
and Delete; moved, cut or copied there it becomes a plain curve.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 10:09:07 +02:00
superGeometry 225bd7e021 Only the steps that read what changed are rebuilt
- A change to a step used to rebuild every step after it. Each step now
  notes what it reads of the model as it runs (which bodies, sketches,
  planes); when an earlier step changes, a step that read nothing of what
  changed is put back as it was. On the valve (96 steps), one step changed
  at a time: 337 of the 555 steps after them not rebuilt, 74 s of rebuilds
  against 176 s.
- What a step builds no longer depends on which steps were rebuilt before
  it (helper solids took their sizes from a counter that ran on from step
  to step: the same project could come out a hair different).
- Test: deps - real projects, one size of one step nudged, every rebuild
  the same (bodies, volumes, faces, edges, errors) as building from nothing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 03:07:09 +02:00
superGeometry 7d7d0960df Previews rest after rebuilds that cost the engine a lot of memory
Some steps cost OpenCascade tens of MB on every rebuild (a fillet on a
cone's rim ~45 MB, a thread ~75 MB), never given back. Dragging one of
their sizes rebuilt it some 20 times a second: gigabytes in a few seconds.
The page now watches what rebuilds cost and, when it is a lot, lets the
next preview wait up to 0.4 s (the drag's last value is always shown): a
3 s drag of such a fillet is 9 rebuilds, not 60. Steps that cost nothing
are as quick as before. A spare engine is also got ready, and swapped in,
in the middle of a drag - not only once it ends.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 02:04:27 +02:00
superGeometry 9217cc937e Freeform Face is the cage's own smooth surface, its border on the face's edges
- The shaped face is built from the cage itself (a patch per cell, as a
  freeform body is), not one surface fitted through a cloud of points: the
  same every time, with no fit to fail. The cage's border points are put on
  the face's edge and the surface's border made to run through them, turning
  a corner where the face does; by an inward corner (an L, a T) the surface
  is kept from swelling past the edge.
- A new cage's border goes through the face's corners, inward ones too.
- The lines between the patches aren't drawn or picked: it looks one face.
- Where the cage can't follow the face (too coarse for its corners, a cage
  laid before this), the fitted way is used as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 02:02:57 +02:00
superGeometry b63833b611 Steps stay on the face they were made on; Connect shows without a guide
- A step built on a face or an edge of an extrusion or a revolve now knows
  which sketch curve that face came from, and finds it by that. Before, it
  took the face of the same step nearest to where the pick used to be: a
  comb's teeth moved apart put the boss on the wrong tooth, two holes moved
  past each other swapped which one a later step changed - with no word.
  Picks saved before this are found as they were.
- Connect: two faces are enough. The bridge shows at once, bowed by Bend; a
  sketch curve can still be tapped for it to follow, and let go again.
- Connect between outlines that don't pair up (a square to an L, to a
  triangle): each end as one smooth curve, a little inside the face's edge.
  A bridge that can't be made without a guide says so in its own words.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 00:58:39 +02:00
superGeometry 52d03e4dde Engine hardening: a mutation sweep of real projects, and the fixes it found
- A step with a size typed far too big (an axis a billion mm away) ran the
  engine out of memory showing it, and every step after failed with engine
  words. Now refused at once: nothing may reach past 10 km from the origin,
  or be scaled away to a speck; a huge shape's mesh is no finer than
  1/50 000 of its size.
- A step whose saved values are broken (a direction that is an empty list,
  a number missing from a point) could hang a rebuild for minutes. Refused
  as damaged, at once; code-level errors read as words, not "x is not
  iterable".
- The engine breaking down (out of memory, a fault inside OpenCascade): a
  fresh one is loaded and the rebuild done again; a step that breaks a fresh
  engine too is refused from then on, the rest of the project still built.
  Past 1200 MB the engine is replaced before the next rebuild.
- Freeform Face: on outlines with inward corners (L, T, U) one point pulled
  out by the corner folded the face over: points of the cage's surface past
  the face's edge are left out, and a fill that fails is tried through
  fewer points. A triangular face takes a cage.
- Tests: mutate (real projects replayed with one value of one step changed
  to 0, negative, tiny, huge, nothing, a missing reference: refused in
  words or left sound, never a crash or minutes), leak (the engine's memory
  cost of a rebuild, step by step), harden, and the L / T / U / triangle
  faces.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 00:17:32 +02:00
superGeometry 7442b13910 Connect follows an edited guide even where it turns too tightly
A guide with a corner tighter than the bridge is wide is rounded off a little
at a time (its ends kept square to the faces) until the bridge fits, instead
of the step failing and the bridge vanishing. The guide is followed smoothly
through its points (Catmull-Rom), and the bridge eases onto it with a smooth
curve that meets it going its way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 21:09:05 +02:00
superGeometry a9919395b3 Connect sweeps the faces' outlines; Freeform Face is a cage edited in Freeform
Connect: the bridge is face A's outline swept along the guide (or a curve
straight out of each face) into face B's outline, so it starts and ends
exactly on the faces: no patch grid, no step. It never turns tighter than it
is wide, eases onto a guide square to the face, and a Cut between two faces
of one body makes a tunnel. Size defaults to 100%.

Freeform Face: a quad cage laid over the face (its border round the face's
edge, locked) and shaped in the Freeform tool - pick points, edges or faces
and move them with the gimbal on the face's axes. Cells across 3/5/7/9, Add
edge loop and Add detail; Edit Freeform reopens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 21:03:08 +02:00
superGeometry b20d93a32f Connect follows a guide curve; Freeform Face edits again, with a gimbal
- Connect asks for a guide: a sketch curve (a spline drawn from one face to
  the other); the bridge runs along it, its ends pulled onto the faces'
  middles, whichever way round it was drawn.
- A face made by Freeform Face shows Edit Freeform when selected: the step
  opens again with its points, and the 3 / 5 / 7 / 9 grid presets.
- Picked points move with the move/rotate gimbal, lined up with the face:
  along it, out of it, within a plane, or turned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:14:36 +02:00
superGeometry 623dfb7a8e Freeform with sketch bodies: Connect, Freeform Face, faint back of the cage, no engine leaks
- Freeform edit: cage points and lines behind the shape are drawn faint.
- Connect: a smooth freeform bridge between two picked faces, Auto / Add /
  New body / Cut, Bend and Size; it narrows in tight bends and lengthens its
  straight ends instead of folding through itself.
- Freeform Face: a flat face becomes a smooth surface through a grid of
  points you pull out or push in; its edges stay put. Faces with holes and
  shapes that would cross the body are refused.
- Thicken "both" builds one solid (two halves fused leaked ~50 MB a rebuild).
- The engine is restarted in the background (a warmed spare swapped in when
  idle) once its memory passes 500 MB: OpenCascade leaks on booleans with
  freeform bodies.
- Stress test of freeform bodies against sketch bodies: every boolean both
  ways, extrudes, fillets, shells, transforms, patterns (541 checks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:47:49 +02:00
superGeometry 63a8236bde Lid built by hand on a phone: the fixes it found
- A short edge tapped in its middle (a 3 mm slab's upright corner) is the
  edge, not the corner point 11 px away.
- Sketch from a straight view (Top, Front...) finds a thin face square to
  the view that the 9x9 sample grid missed (it went on the origin plane
  behind a 3 mm slab's front).
- A new sketch on a face knows the face's outline before anything is drawn:
  Offset on the face's edge works as the first step (it did nothing), and
  makes the sketch with the linked offset in it.
- A second offset of the face's edge right by the first: the tap goes to
  the edge when it's nearer the edge than the offset.
- A fillet's edges matched by step must still be much the same edge, and
  never a seam: a lid made round said "radius too big" (its corners went to
  the cylinder's seam); now "the edges are gone, pick them again".
- The hand-built lid is a fixture: rebuilt 100 x 60 with corners 10 it
  matches the formula exactly; made round, the lip follows the circle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:25:32 +02:00
superGeometry 86835f6588 References that never grab the wrong face, sketches that follow the model, UI fixes
- Every face remembers the step that made it (edges: the steps either side).
  A fillet, shell, sketch or thread picks only from its own step's faces and
  edges; when they are gone it says so ("tap this step and pick again")
  instead of quietly using a different one. Re-opening the step drops the
  gone picks with a toast so a new tap is all it takes.
- Offset of a face's edge in a sketch on that face is linked: it is rebuilt
  from the face's outline every time, so a lip or groove follows the face
  when it changes size or its corners change. Card: distance, flip, delete.
- Angle box keeps expressions; Variables turns off when there are none;
  toasts stay clear of the keypad, panels and lists; auto-plane toast names
  the plane; thread remembers the last pitch per size; gallery thumbnails
  fill in after the first build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:05:01 +02:00
superGeometry e13a0d6a5e Enclosure stress build: exact-fit fillets, long threads, patterns that change count
A box built the usual way (rounded, shelled, screw bosses with threaded
holes, vents patterned and subtracted) and then resized, re-counted and
switched off step by step:

- Fillets and chamfers that use a face up exactly (4 mm on both edges of an
  8 mm block, a full round) failed where 3.999 worked: retried a hair
  smaller, the same shape to a millionth of a mm.
- Shell with walls exactly as thick as the corners are round (2 and 2)
  failed: retried a hair thicker (sharp inside corners).
- Threads: a long groove (40 turns, an M3 boss hole 20 mm deep) cut
  nothing and failed after 40 s. The groove is now made in pieces of
  8 whole turns: 1.5 s, and M10 x 30 went from 2.7 s to 0.8 s.
- A thread whose hole is gone (its boss switched off) latched onto the
  nearest face - the box's rounded corner - and threaded it for 75 s. It
  now keeps to round faces of the kind and size picked, and says the hole
  is gone.
- A whole pattern picked for Subtract/Delete stays whole when its count
  changes (made 9: all 9 cut; made 3: still works), copies of copies
  included. Copies picked one by one that are gone are left out with a note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 17:34:22 +02:00
superGeometry 03ed32c740 Abuse sweep: typos, nonsense values, damaged files, messy sketches
- Pattern: up to 1000 copies (a typo like 30000 used to build them all, and
  again each time the project opened); spacing or angle 0 is refused instead
  of stacking every copy in one place.
- Revolve: a shape across the axis says so (was "could not compute this").
- Thread: a pitch under 0.2 mm says it is too fine; a failed fine pitch says
  "try a coarser pitch", not "slightly different".
- Value boxes: 5,5 (decimal comma), 5. and +5 are read; 1,000 is not guessed;
  "30 deg" works in angle boxes and as an angle variable; sizes over 1000 km
  are refused. Variables can't be named sin, pi, deg and the like.
- Deleting a variable that steps use: they keep their sizes as plain numbers
  (every rebuild said "can't be evaluated").
- Imports: an empty, damaged or wrong STL/STEP is refused with the reason,
  not added as a failed step holding the broken file; a damaged or newer
  project file says so in words; reference images are kept at 2048 px (a
  12 MB photo went into the project) and an unreadable one (HEIC) says why.
- Sketch: a spline crossing itself (a hand-drawn loop past its start, a
  figure 8) is split where it crosses: it had no region to extrude.
- Tests: limits, resize (a part's first sizes changed: every later step
  follows), self-crossing splines, the new value-box cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 16:28:44 +02:00
superGeometry 9cd59bfc28 Targeted sweep after the phone valve build: the same kinds of bugs found elsewhere
- A step opened from History brings what it works on into view (only when
  some of it is off screen, never zooming in).
- On a phone, History and Items close when any tool opens (they covered the
  step's arrow and value box; before, only a sketch closed History).
- Cancel after changing an early step's value is instant: the engine keeps the
  saved project's results while a step is previewed (10.7 s rebuild before).
- Freeform's "tap a plane" step has XY / XZ / YZ and the project's planes as
  buttons, like Sketch.
- A tool waiting for a body (Repair Body, Split...) takes a tapped corner too:
  on an STL a tap lands on a triangle corner almost everywhere.
- Text: after placing it, the hint says to type in the card.
- Typed variables kept in the remaining value boxes (feature numbers, Rotate,
  Tilt); hints for the control-point spline and Join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 15:58:32 +02:00
superGeometry c30abdf92f Valve by hand on a phone, first third: the fixes it found
- A sketch not made into anything yet shows through bodies and can be tapped there (a pocket sketched through the middle of a body was invisible and out of reach)
- Shape sizes typed with a variable while drawing (bore, bore/4) stay linked to it
- Size boxes take ^, sqrt, sin, cos, tan, abs and pi (36/sqrt(3) for a hex); an unreadable size says so
- A sketch on a face, or one opened again, comes into the free part of the screen
- Phone: opening a sketch from History closes History
- Rectangle hint follows its variant (Center, 3 Points)
- Fillet flyout keeps the picked edges; a full-circle revolve hides its sketch; History's eye hides sketches/planes/axes instead of switching them off, and a switched-off sketch says so
- Valve code build: the left port is threaded now (both threads went into the right one), and the check counts each port

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 15:19:54 +02:00
superGeometry 14dd3898f6 Shell with every face of a body picked (a ball tapped, then Shell) hollows it sealed, with a note, instead of failing with "try a smaller thickness"
Found building the valve's ball by hand on a phone: a ball has one round face, so tapping it picks every face there is, and nothing is left to be the wall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:53:10 +02:00
superGeometry 24e516c812 Ball valve stress test: a 1" brass ball valve built in code with all 23 kinds of step (96 steps, 10 bodies), and the geometry fixes it found.
- Split: a plane crossing a round face's seam twice (the top off a ball turned round the pipe's axis) gave an empty, broken half with no error. The halves are now checked (sound, and adding up to the body), with the tolerant split as the fallback.
- Sweep: flat and round faces of a swept body come out as true planes and cylinders, not curved patches that only look flat. Move Face, Replace Face and fillets treat them as such now.
- Scale Face leaves a side alone that keeps its place (scaled 1 that way): a lever's side runs from the hub to the tip and can't tilt.
- Replace Face on a face that ends on a round boss from one side (a lever's arm on its hub) no longer runs out past the boss: the region stays on the face's side of the boss's axis.
- Thread on a round face that isn't a whole ring (a stem with flats cut along it) is checked against what the groove really overlaps, so it no longer fails with "try a slightly different pitch".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:50:35 +02:00
superGeometry e8292106c0 Drill build test reshaped after the reference photo (208 steps, 45 bodies), and a plain message for a kernel failure.
The drill now has the photo's shape and parts. The motor housing and the foot are each built from a side outline and a front outline (Intersect), with their sharp edges rounded. The grip is lofted through four rounded-square sections. It also has:
- a black rear cap, a framed vent grille, a label plate, the two-speed slider on top and an LED in the foot;
- black rubber over the grip's back and front, with a stripe down its side;
- a notched silver collar, the clutch ring with its numbers, and a chuck with two ribbed sleeves, a silver nose and three jaws closing to a point;
- a black slide-on battery with a sloped front, the red release button and a "48V Lithium-ion" panel.
The housing and battery are hollowed by taking away copies drawn a wall smaller; the housing then gets a round opening for the gearbox.

- When both the tolerant boolean and the plain one fail with no shape, the step now says that the geometry engine couldn't work it out there, instead of "This shape has not type, it is null". The plain-cut fallback for an invalid tolerant cut is guarded the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 23:16:50 +02:00
superGeometry ae88149180 Drill build test: a cordless drill-driver at 1:1, built in code (132 steps, 33 bodies), and five geometry fixes it found.
Its parts: a housing in two halves (barrel, grip, foot, shelled, with vents and slots for the trigger and the direction switch) under a rubber overmold; the motor with its fan; a planetary gearbox (ring gear, sun, three planets, carrier and spindle); the collar, numbered clutch ring, a keyless chuck with three jaws and a 6 mm bit; trigger, direction switch and switch module; the wires down the grip; a battery in two halves with four 18650 cells, terminals, a release button and an "18V LI-ION" label.

- Shell with no face picked (a sealed hollow) gave back only the inner core: the battery case came out solid. It now keeps the wall round a closed void.
- In the app, a Shell that fell back to an offset copy always failed: a closed shell from the offset was spotted by its class name, which the app's build renames. It is now asked of the shape itself.
- A subtract whose tolerant cut leaves faces that don't meet up uses the plain cut when that one is clean (the direction switch's slot through the housing).
- A cut's volume check counts from meshes when the measured volume of a sound result is off (shelled loft faces: two 120 mm³ terminal slots "took" 920 and were refused).
- A repair of a broken body must keep its volume counted from a mesh: "fixed faces" had added 764 mm³ to the housing, and splitting it later left pieces inside out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:39:49 +02:00
superGeometry f9867107fb Guitar stress test: a steel-string acoustic built in code with 21 kinds of step (143 steps, 38 bodies), and four geometry fixes it found.
- A closed spline is now one smooth periodic curve, its seam halfway along a span. Its start point was a seam that no fillet could pass, so rounding the bottom edge of a body pulled up from a guitar outline failed at any radius.
- Replace Face carries a curved side on along its tangent when the side meets the face along a straight edge (a spline side pulled straight). Moving a heel's foot down ran the foot off along the heel instead.
- Delete Face removes the picked faces together first. A slot's two walls and floor could not be removed one at a time.
- A sweep path's curves are chained end to end. They were used in list order, so a path with a sketch fillet (its arc added last) stopped at the fillet. A string swept over a rounded saddle came out 11 mm long instead of 658, with no error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:45:39 +02:00
superGeometry 07dad071d3 Speed: a rebuild sends and draws only the bodies it changed. Every rebuild (each move of a cut or extrude drag too) sent every body's triangles from the geometry worker to the page, and the view rebuilt them all for the graphics card - 3.8 MB a move on the jet engine for one body changed (0.9 MB now). Meshes have a key: an unchanged one goes across as its key only, and the view keeps what it drew for it. Join / cut checks work out a body's volume, gaps and hair-thin faces once per shape (the target's volume was measured twice and the result's three times, and the body before the step was checked again on each drag move - slow on a freeform's curved faces)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 20:47:24 +02:00
superGeometry 4af534f04c Scale: X / Y / Z now stretches any body along one direction (not only freeforms - boxes, fillets, holes, threads are rebuilt face by face), and a new Scale by reference: tap two points, type what their distance should be and everything scales to it - for bodies and in sketches (the sketch's dimensions scale with it)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:01:11 +02:00
superGeometry c13cd89af0 Extrude (and revolve, sweep, loft): a curved side is one face however the curve was split in the sketch - pieces of one circle in a row (an arc drawn as two arcs, a line ending on it) become one arc, pieces of one spline one spline. Each piece made its own face with an edge down the round side, which broke later unions and threads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 15:59:02 +02:00
superGeometry f6cc115c14 Desk lamp stress test: a fully parametric lamp (base, turret, two arms, head, shade) built by code and by hand on a phone, both driven by the same variables and matching in every pose (tests/desklamp.test.ts, tests/fixtures/desklamp-hand.json). Fixes found on the way:
- A formula typed into the canvas size boxes (circle, arc, line length, extrude distance, fillet, thread, shell, offset) is kept as a formula; dragging the arrow unlinks it
- A line started on the origin stays held there
- A point snaps to the nearest spot (a line end over a side's middle), so the constraint is kept
- Taper has fx, up to 1000 %; number fields take variables with units
- Rotate Around Axis: Angle has fx, Pivot X/Y/Z fields, and they show again when it's opened from History
- A tapered extrude merges touching pieces first
- Windows with fields (Variables): a close X, a tap outside closes, and a long list scrolls with a bar while the buttons stay in sight

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 01:06:52 +02:00
superGeometry 7b96f2f0fe 3MF and STL as smooth as a print can show: round faces followed within 0.01 mm and a facet per 3° (the 3MF used the view's coarse mesh, so a slicer showed round faces as polygons). Test: tests/threemfmesh.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 22:55:45 +02:00
superGeometry 3fe7285e86 Offset Face on a sweep's end around a bend, tilting a shell's rim, a fillet ending on a moved face; About without the GitHub button
- Offset Face on a sweep's end, pushed in again and again (a user's S-curve tube, 19 pushes): pushes on the bend failed. The end's plane cuts an S-shaped path in more than one place and only the first crossing was tried; and the disc cut along the path was far wider than the tube, so on a tight bend it folded over itself ("could not compute") or bit into the tube's next turn ("break into pieces"). The crossing at the face is taken, and the disc is just wider than the tube. The 19 pushes rebuild in 3.6 s (17 s). Test: tests/sweeppushes.test.ts
- Move Face tilting the rim a Shell leaves round its opening (a flat face with a hole) failed at any angle: its region was cut into 11 cells by every neighbour's surface, and joining them failed. Now its outline's region less its hole's. Test: tests/rimtilt.test.ts
- A fillet that ends on a face being moved, and can't be taken off alone (one link of a fillet chain): its cylinder was carried on as an endless one, which carved a groove and left a scrap of the old face standing (the stray-cylinder bug). It now carries on along its own corner, between the two faces it rounds, and ends on the moved face. Test: tests/movefillet.test.ts (a user's part)
- About: no "On GitHub" button

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 21:34:41 +02:00
superGeometry 4915426d98 Speed, tool windows, welcome first, About in the app, Offset Face on a sweep pushed in twice
- The pulsing More button and NEW badge animated a glow (box-shadow) without end: a repaint every frame, in every open tab, kept the graphics card busy. Now a ring that grows and fades (transform and opacity only), six times, then still. The welcome window's Full screen button pulses the same way.
- The welcome window shows as soon as the projects are read, not after the geometry kernel has loaded and the model is built behind it.
- A tool's window: double-tap its grip to fold it down to its name, and again to open it (it used to put the window back in its own place).
- Delete in a tool's window, in the tools and in saved views takes one tap. Items, History and the project gallery keep two.
- More -> About shows the README in the app (less the link to open it and the developer docs), not GitHub.
- Offset Face on the end of a sweep pushed in a second time: the new end is found where the path crosses it, not only at the path's end. Test: tests/sweepend.test.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 20:45:21 +02:00
superGeometry 326b3a105b Offset Face on the end of a sweep, pushed in: the tube gets shorter along its path and its new end is square to the path there (round, as big as the profile). It slid the old end's plane in, cutting the bending tube on a slant. The paths sweeps run along are kept while the model builds; a sweep's end is found by being square to its path's end. Test: tests/sweepend.test.ts (a user's S-curve tube, and the fan's spoke: exactly 10 mm shorter)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 20:24:02 +02:00
superGeometry 1f2e8706a1 Sweep: a tube along a spline comes out whole. The profile followed the path's own Frenet frame, which flips half a turn where a bend changes side (an S curve) and is undefined where the path runs straight - the tube broke into pieces that jumped sideways (a circle off the path's centre most of all) and came out short (a user's S-curve 152 of 160 mm long, the fan's guard spokes 90.6 of 95.2). It now keeps its turn round the path (corrected Frenet), and needs far fewer triangles to draw. Test: tests/sweepgaps.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 20:06:43 +02:00
superGeometry 94257a5fac Offset Face: a face's corner slides along the body's edge where its two neighbouring walls meet, so it stays on both. It was moved along each wall on its own and halfway between was taken: with walls at different angles (the rim a Shell leaves on a chamfer) that was off both, and slanted patches stood past the moved face as fins - it looked like an extrusion. And the tool shows as Offset Face while it runs: its own entry in the column (not Extrude / Revolve / Sweep / Loft), just the distance (no Join / Cut / New or taper, which make it an extrusion), and a hint on which way the face moves. Test: tests/shellrim.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 19:47:32 +02:00
superGeometry 03ef03b0ba Taper on straight-edged shapes makes flat sides (planes, built face by face) instead of a lofted B-spline - so a sloped side gets the full face list (Sketch, Move/Rotate Face, Extrude...). Items: what's selected in the view (a double-clicked body, a plane, an axis, an image) lights up in the list and scrolls into sight
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:21:01 +02:00
superGeometry d2c31b1669 Every long dash (—) in the project replaced with a plain hyphen (-): the app's texts, Help, README, comments, styles and tests (433 in 91 files)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 14:01:30 +02:00
superGeometry 91a32c393f Second interface round from your list:
- A sketch shape (or flat face) tapped: Extrude's arrow as before, and beside it in the column Revolve, Sweep and Loft from the same shape — drag the arrow for Extrude, tap one of them for that tool (the card's "Revolve instead / Sweep instead" are gone)
- A freeform's face, edge or point picked: only what applies to it (Edit Freeform, Move/Rotate Body, Mirror, Patterns, Delete Body) — fillet, chamfer, offset face… were listed too
- Every list of what can be done with what's picked has its groups apart with a dim line (picking, moving / patterns, making, combining, construction, colour, delete)
- Cards: their own actions (Select all, Add detail…) in a row of their own inside the card — they shared the Cancel / Done row and were pushed out of it; the card's values, actions and Cancel / Done apart with a dim line
- Freeform: two facing faces picked → Symmetry puts the mirror midway between them; the symmetry plane is kept with the shape (there again, and shown, the next time it's edited), with the symmetry mark at its corner
- Freeform surface: points on its open border picked → Extend surface: a face beyond each border edge between them, outwards in the surface, as long as the edges; the new points are picked, ready to drag (tests/extendborder.test.ts)
- Construction planes carry a mark at a corner for how they were made: offset ⇡, midplane ⇹, 3 points ∴, on curve ∿, perpendicular ⊥, at an angle ∠, parallel ∥ (older projects: told from the name)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:30:29 +02:00
superGeometry 9c0b7070d1 Interface round from your list, plus speed:
- Dragging the arrow of a selected face or shape orbited the view instead (since the last push: a pause meant for double taps also caught a drag). Fixed
- Tablets and up: Items runs the full height like History; with Items open the top bar centres in the room beside it (it overlapped Items on a tablet); the view cube sits below the top bar (it was beside Items / More)
- Working… sits below the hint line (they overlapped)
- Items: each kind (Bodies, Sketches, Planes & axes, Images) folds away under its heading
- Every value box is also a scroll wheel: a click opens the numpad / types, a press and drag left or right turns the value down or up
- Every drag has a value box by the pointer that stays after letting go (Move/Rotate, Move Face/Edge, Scale, Scale Face; Freeform while dragging): tap it to type
- Typing during a drag goes into the value box on screen: no second blue "Enter ↵ apply · Esc cancel" box
- Cards tighter with a mouse; on tablets and desktops Cancel is only in the card (not also in the tool column)
- Right-click steps back: what's half done or picked, then the drawing tool, then out of the sketch; in other tools it backs out, in Freeform it lets go of the picks, then finishes
- Move/Rotate Edge and Move/Rotate Face have their own icons; a straight edge picked shows its Move/Rotate gimbal (it was the fillet dot; Fillet / Chamfer are in the list)
- Move/Rotate Face: move it every way and turn it about its normal too — on a body of flat faces, the faces round it follow (it only pushed and tilted)
- Subtract / Intersect open a tool: "Select a body to remove from, then a body to subtract from it", a + on the body changed and − on the ones it's changed with, Keep modified body / Keep subtracted bodies (bodies picked first are filled in)
- Section View: the cut is a solid cap (a stencil marks the inside; the inside of the far wall used to show through, edges and all), outlined with a thick line
- Freeform: press on empty space and drag a box to pick the cage points inside; picked edges thick, points bigger, faces filled; Symmetry (across X / Y / Z through the middle, or across a tapped cage edge): points moved move their mirror images, points on the plane stay on it
- Freeform scale stress test (tests/freeformscale.test.ts, 634 checks: 5 cages × all / half / a face / a point × 12 factors from 0.01 to 100 and lopsided; whole bodies uniform and per axis, copies too): all clean, and the right size
- Speed: a body's size is worked out once (every join measured it again for a tolerance); Delete Face reads the result's faces once per try — deleting a hole in the jet's casing 8.5 → 5.6 s, the jet's whole build 41 → 38 s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:57:06 +02:00