8 Commits

Author SHA1 Message Date
superGeometry 8de2367a0c Stress tests: a phone stand, an ice cube tray, a headphone hook, a spanner, a planter, a door handle
== A phone stand (plane at angle, offset edge, through-all cut) ==

A phone stand built by code and by hand on a phone, the two matching:
a base, a back leaning at 75 degrees on a plane through its top edge, a
lip raised from an Offset Edge line, a cable hole cut through all, the
lip chamfered and the back's top rounded. What it turned up:

- A join that only touches along an edge (the back stood on the base's
  edge) made two solids meeting at an edge and was called sound. Health
  now counts pinched edges (more than two faces round them) and such a
  body is not healthy; the join says "only touches the body along an
  edge" and to let them overlap.
- A rectangle's height typed 93 came out 92.999999999999 (the solver's
  float noise, shown, saved and built). Values a hair off a clean one
  are put on it when the constraints stay as well met.
- Cut with Through all on a sketch on a face went out into the air and
  cut nothing: with no way picked yet, a through-all cut now goes into
  the body (Flip direction still turns it).
- Once a chamfer's preview showed, its edge was gone from the view, so
  tapping it again could not un-pick it: a tap near a picked edge's own
  line now drops it.

== An ice cube tray (draft, two-way pattern, shell, lettering) ==

An ice cube tray built by code and by hand on a phone, the two the same:
one pocket pulled down with a 6 degree draft as a body of its own,
patterned four along and two across, all eight subtracted from the
block, the block shelled from below (walls 2 thick round every pocket),
the rim rounded, ICE typed on the front and raised. What it turned up:

- Subtract's clearance box sat between the first two bodies: over the
  middle of the tray, on the pockets still to be tapped, and a tap meant
  for one opened its number pad over half the tray. It moves down the
  screen, clear of the bodies.
- With many bodies taken away, the signs (to swap the bodies round)
  were pushed aside onto bodies still to be tapped, and a tap meant for
  a pocket swapped the tray out. Past two, only the first keeps a sign.
- A pattern running, its first body picked, the view's taps go to its
  direction: four pockets to pattern across could only be had by
  starting again from Items. Now a body tapped in Items joins the
  running pattern (or leaves it).

== A headphone hook (symmetric, up to a plane, thread) ==

A headphone hook built by code and by hand on a phone, the two the
same to the face: a C clamp pulled Symmetric, an arm pulled Up to a
plane 50 out, a lip raised and rounded, a screw hole cut up through the
jaw and threaded M7. What it turned up:

- With Symmetric on, the box still read Distance, and 30 typed for a
  clamp 30 wide made it 30 each way, 60 in all. The box reads "Each
  side" and the hint says to type half the whole width.
- Up to a plane with the distance box left at 0: Done did nothing.
  The distance only has to be set when the ends are a distance.
- Fillet: tapping a picked edge to drop it took the picked edge even
  when the tap was on another edge nearer; now the nearer real edge
  wins.
- The radius dot catches taps for some 40 px round it, so an edge
  near it could not be picked or dropped. A tap on it that doesn't
  move, away from the dot itself, now goes to the model.

== A spanner (pieces pulled up at once, polygon, corner rounds) ==

A spanner built by code and by hand on a phone, the two the same to the
face: two circles and a bar pulled up 6 as one, an open jaw cut through
all, a hexagon 10 across flats cut through the ring end, the inside
corners rounded and the hexagon chamfered. What it turned up:

- New project kept the last project's view: left looking up from below,
  a tap meant for the top picked the bottom face. A new project starts
  from the default view.
- Through all with Auto, on a sketch on a body's face, went up off the
  face: a tower 354 high was added instead of the jaw cut. Auto on a
  body's face now goes into it, as a cut does.
- The Polygon's Values only took a radius to a corner: a hex 10 across
  its flats meant typing 5.7735. It takes Across flats too, kept as the
  radius dimension that makes it.

== A planter (loft square to round, shell, circular sketch pattern) ==

A planter built by code and by hand on a phone, the two the same to the
face: lofted from a square foot to a round mouth on an Offset Plane,
shelled open at the mouth, four drain holes (one circle, patterned round
in the sketch) cut through the floor, the rim rounded. What it turned up:

- The loft leaves the mouth's circle in five pieces, where the square's
  corners run up to it. A tap on the rim picked one quarter, and its
  fillet could not be made ("would damage the body"). A tap on a piece
  of a circle now takes the whole circle, and a tap drops it whole.

== A door handle (sweep along line, arc, line; sketch mirror; countersinks) ==

A lever door handle built by code and by hand on a phone, the two the
same to the face: a plate with rounded corners, two screw holes (one
circle mirrored in the sketch) cut through and countersunk, a round bar
swept up from the plate along a line, a centre arc and a line, its end
rounded. What it turned up:

- Mirror (Copy) applied on the first tap on the axis, but kept the shape
  picked and its card still read "Apply (1)", so a second tap made the
  same copy again, on top of the first. A mirrored copy now lets go of
  the shape, and a copy exactly on a curve already there is not made
  ("Those copies are there already").

Health: a body where more than two faces meet on one edge (pieces
touching only along a line) is no longer called clean. The drill's
housing halves have one such seam each, where the grip runs into the
wall and the inside and outside meet; the drill test allows that one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:54:00 +02:00
superGeometry d55b4193f4 Subtract / Intersect: tap a + or - sign to swap the bodies round
Picked in the wrong order, one tap fixes it: a "-" body becomes the one
changed and the one that was takes its place; the "+" swaps with the
first of the others. Signs that would sit on each other (a peg through
a plate) go side by side, and clear of the clearance box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:29:31 +02:00
superGeometry 9c6818592c Subtract: a clearance, cut from the body, the others or both
Subtract gets a Clearance (typed in a value box on the model, with a
drop-down for which bodies give way) for parts that must fit or move:
- from the body: a hole the clearance bigger all round than its peg;
- from the others: each is cut by the body grown by the clearance;
- from both/all: half each, in turn - a peg through a plate becomes a
  hole r + gap/2 and a pin r - gap/2, every pair the gap apart.
Bodies are grown a piece at a time (the kernel's offset of a body in two
pieces fails), and only bodies as they were are grown or brought in.
tests/clearance.test.ts: exact volumes and gaps, 32 checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:00:08 +02:00
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 0d57e2a642 Plain guide text for every tool, Offline mode, and phone buttons that say their names
- Every tool's guide text rewritten for beginners: what to tap, in order, in
  everyday words. An empty project says to start with Sketch, which pulses.
- More -> Offline mode: the app's files are kept on the device (a service
  worker and a file list the build writes), so it opens with no connection.
  While online, a new version is downloaded in the background.
- Phones sideways: the guide text shows with History open, the sketch tools
  show their names until one is picked (tap it again to see them), and the
  right column's buttons are wider.
- Touch screens: press and hold any icon button to see its name.
- Phones: the Snap and Units cards are no taller than History.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 00:13:24 +02:00
superGeometry 505734ec38 Subtract / Intersect marks: the + and - drawn as two bars, centred in their circles (the font's signs sat on its baseline, off the middle)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:23:31 +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