3 Commits

Author SHA1 Message Date
superGeometry 6e30ce44e0 Variables, gone through while building a pipe flange that every size of is a variable: what did not work, mended (asked for: "go into variables and do the same thing while building something complex that makes sense to have variables").
The flange, built by hand in the app: ten variables (outer size, bore, thickness, hub wall, the hub's size worked out from bore and wall, hub height, how many bolt holes, their size, the bolt circle worked out from the others, the chamfer); a disc, a hub on its top face, a bore through both, a bolt hole placed by a variable, patterned by a variable and cut, a chamfer. Its volume is the formula's to the hundredth of a cubic millimetre, and stays so through every change of every variable.
What that found:
- A variable's name typed into a size on the line was made the number it came to, and the link never kept. And a size that followed a variable, opened and closed again, was cut loose from it. (The line is the only way to type a size since it became the only UI.) Now the formula is kept; a size that follows one says so ("od / 2 = 60 mm"), its box opens on the formula, closed unchanged it does nothing, and it is not dragged sideways (a finger sliding off it would cut it loose). The box has ƒx: one of the project's variables, or a new one from what is typed. What can't be read is said, with the name no variable has.
- The project's unit changed, every plain number in a formula was read in the new one: a flange 160 mm across was 160 inches. Nothing changes size now: each formula that would is given the unit its plain lengths were typed in ("160 mm", "od / 2 + 5 mm"); a count, a factor and an angle are left as they are. And the unit is the project's own before its formulas are read (it was set after, so the model was a step behind).
- A chain of variables stopped at eight deep: the ninth "couldn't be evaluated". Any depth now; one that uses itself, round any number of others, is refused. Each is worked out once (a variable used twice by each of thirty built on one another was a thousand million readings).
- More to write formulas with: floor, ceil, round (how many fit: floor(length / pitch)), min and max of several, asin, acos, atan.
- New Variable: a value refused closed the window with what was typed gone - it stays to put right. A name that differs from another only in its capitals is refused. A name no variable has is named. An angle (30 deg) is taken, as it was in the list. One made again by the same name says it changed. Deleting: capitals count (W gone is not w gone); another variable that still uses it is named; a point placed by it keeps its place.
- A variable with no place of its own had no tag in the view: a point placed by one, the count of a ring of holes cut into the body, one that only other variables are made from. All ten of the flange's have one.
Not done, found on the way: a pattern started from a hole's face copies the whole body (holes by the count of a variable are a pin, patterned, then cut - as here); a sketch pattern's count is a plain number.
In the app: the ten variables made in the window one after another; names refused (sin, max, m, 2x), a value that uses itself, an unknown name, a formula cut short, a number too big; the flange built step by step with each size typed as its variable; nine changes of variables in the list of them all, each volume the formula's; 0, 1 and 2.6 holes, a bore bigger than the flange, a thickness below zero, each put back; undo and redo; inches, centimetres and back; a size changed from its tag in the view; a pattern's count edited to n + 2; the typing box at phone width.
Tests: variablesflange 22 (the hand-built project: its variables changed alone, together, to formulas, to awkward values and back, and through three units); unitchange 22; units 55 (27 new); vartags 20; the rest as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 10:52:17 +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 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