5 Commits

Author SHA1 Message Date
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 03ebeafc3b Speed: measured in the app (watering can, 160-mm ruler with 3700 faces / 11 000 edges) and fixed the slow spots; every faster way is checked against the old one:
- Freeform redraw while dragging or moving a slider: 21 ms -> ~1 ms. The smooth surface is a fixed weighted sum of the cage points for a given layout: the weights are worked out once per layout (subdivisionPlan, the same rules as subdivide + limitPoints, matching them to 1e-5 mm on 6 kinds of cage) and the GPU buffers are refilled in place
- Freeform self-crossing check: 11 -> 5 ms (cached weights, number keys)
- Showing a rebuilt model: 386 -> 16 ms for the ruler (its corners were de-duplicated by comparing every pair; now by position, same corners in the same order — tests/speed.test.ts)
- Picking (hover and tap): 10-14 -> 0.7 ms for the ruler (one combined matrix, no allocation, canvas size read once, far edge pieces skipped first)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:49:48 +02:00
superGeometry eee2805f5f Freeform a beginner can use with no values to work out (checked: the watering can rebuilt in 34 taps and slider moves on a phone-sized screen, only its sizes typed — tests/fixtures/wateringcan-beginner.json, checked in tests/wateringcan.test.ts):
- A new box, cylinder or sphere starts with its size and rows in the card; a cylinder has a face straight to the front (it used to take a 22.5° turn, a 4 x 4 x 5 scale and two edge loops)
- Extrude on one face pulls it out in steps with Length, Bend, Taper and Steps sliders: a spout in one go (each step's tilt and offset used to be worked out with sines and cosines)
- Bridge faces on two faces looking the same way arches into a handle by itself, with Arch and Segments sliders (each ring of the arc used to be placed by hand)
- Inset has an amount slider
- Tap a face again for the face behind it (a handle's end face hidden behind its own arm couldn't be reached)
- Cards can have sliders; the step being adjusted stays live until the next tap or step, and Undo takes it back whole
Tests: sized shapes, sweep (lands on its arc, ends tapered, clean), arched bridge (closed, wound right, clean, arches out)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:23:45 +02:00
superGeometry 90429a7d94 Fixes from building a watering can with the Freeform tool on a phone-sized screen (and by code: tests/wateringcan.test.ts, one freeform with a 2 mm wall: open top, rising spout with a flared tip, bridged handle; the hand-built cage is checked too, tests/fixtures/wateringcan-hand.json):
- Touch screens: every tap adds to the selection (a second tap drops it) — there was no way to pick two faces on a phone
- Undo/Redo step through the cage changes while Freeform is open (Ctrl+Z used to throw the whole edit away, the Undo button undid an older project step underneath)
- Move / Turn / Scale with exact X, Y, Z values in the card (Scale per axis too: a 40 mm cylinder made 160 x 200); a shape standing on the ground scales up from it; Enter in those fields applies instead of finishing the shape
- Bridge faces: two faces picked become a tube between them in one step (before: delete both, then tap every rim point)
- A new shape is framed; Fit frames the cage being shaped (it framed an empty scene) and keeps clear of the tool card
- A still press on the gimbal is a tap on what's under it (its arrows lay over the next faces: picking four cap faces got one)
- Picking takes whichever is closest: a point, an edge or the middle of the face under the finger (points always won within a fingertip, so faces of a detailed cage couldn't be tapped); points hidden behind the shape don't take taps on it; edges get a small depth allowance (half a tall cylinder's edges couldn't be picked)
- One tap on empty space with nothing picked no longer finishes the whole shape (a stray tap ended it half made)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:08:22 +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