Commit Graph

280 Commits

Author SHA1 Message Date
superGeometry a448d87ea5 Shell: cut-outs between one wall and two apart
A pocket 1.7 mm from a hole could be shelled with 0.5 mm walls and with
2.5 mm walls, but not with 1 or 1.5: OpenCascade's offset of the whole body
gives up where the offsets of two cut-outs run into each other, and the
step said the walls don't fit. One more way is tried last: the hollow is
put together from what is cut out of the body - the box round it brought
in by the wall, less each lump the box holds besides the body (the hole's
room, the pocket's) grown by the wall on its own. The same shape as the
body offset inward; the lumps just overlap. It is held to the wall asked
for: nowhere nearer the body's skin than that.

Tests: the hole and the pocket at 1 and 1.5 (volumes worked out by hand,
the tube and the pocket's walls one lump), two pockets 1.5 apart, a row of
hole, hole, pocket.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 14:34:02 +02:00
superGeometry 5088a5c9fd A moved body's faces are still the faces of the steps that made them
A body moved, turned, mirrored or copied in a pattern had its faces put
down to the Move (or, by chance of where it landed, to a mix of the Move
and the step that made them, with no word of which of that step's faces
each was). A pick on it then knew only where its face had been: make the
block wider and a fillet on the moved block's corner rounded another
corner, with no word; put a Move in before a fillet and the fillet's edges
were "gone".

Each face of a moved body now keeps its step, and where its body has been
moved to since: asked which of its step's faces it is, it is taken back to
where the step made it. So a pick follows the body through earlier
changes, a Move put in before a step leaves it its picks, and a face a
Freeform Face step made can be reshaped after its body was moved. Later
steps on the moved body carry this on. Picks saved before name the Move:
that answer is kept beside (the page is told too, for "pick it again" and
for an edge a sketch follows).

Tests: gridmoved (22).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 14:22:37 +02:00
superGeometry 777720540b Flat faces with a great many holes are meshed by the engine itself
OpenCascade's mesher takes time and memory by the square of the holes in
one face: a plate with 400 holes took 5 s and 700 MB to show, and half a
minute and 2.9 GB to send out as STL. A flat face with 30 outlines or more
is now cut into triangles here (earcut), between the very points its
neighbours' meshes have along its edges, so the mesh stays closed. The
same plate: shown in half a second less of meshing with no memory to speak
of, an edit on it twice as fast, out as STL in 4 s and 163 MB. 900 holes:
1.4 s (13 s and 1.3 GB before).

Earcut leaves out points that lie in line with their neighbours (rows of
square holes lost corners): no three points are in line for it, and the
triangles without area that makes are taken out again. The body's edge
lines come from the same points. A point wanted on such a face (a push, a
shell's checks) is found the same way.

Tests: plates with 144 round, 144 square and 400 round holes - shown,
closed, of the part's volume, out as STL closed, a face pushed, a side pulled.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 14:10:58 +02:00
superGeometry 3e00e60b37 A shown body no longer keeps its mesh in the kernel
The view's triangles were left on a body once it was shown, and stayed for
as long as the kernel held the body - which, for a body one of its tools
made, is for good. They are taken off once the view has them: every edit
works on a copy of the body, which has none, so nothing read them again.
Dragging a fillet on a 44-face plate 400 times: 811 MB, now 496 MB; a shell
on it 100 times: 595 MB, now 496 MB. No slower.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 13:06:36 +02:00
superGeometry 337c802689 Engine review: memory given back, meshes come in as solids, sweeps that say why
Memory. The kernel build frees nothing when most of its things are deleted
(one do-nothing function stands in for their destructors): a deleted handle
still counted as a user of its shape, so no body the engine made was ever
freed, and each tool kept what it had worked out. Now each is told to let go
before it is deleted (release.ts): shape handles emptied, explorers pointed
at nothing, booleans cleared and given a last tiny job so they drop their
bodies. The validity check, which left over half a megabyte behind per check
of a 35-face part, is pointed at nothing before it goes. A body's copy is
written out and read back (the kernel's copier keeps both bodies for good).
Rebuilding a hole 1500 times took the engine from 100 MB to 595 MB, now to
199 MB; a face pushed on a 44-face plate 400 times, 1871 MB, now 811 MB; a
shell on it 200 times broke the engine, now it doesn't.

Meshing. A body is meshed a few hundred faces at a time (meshing.ts): the
kernel's mesher kept working notes on every face and edge at once - a body
of 4 500 faces took 1.3 GB, one of 40 000 the 4 GB a browser allows. Same
triangles, same order. STL is written from that mesh, of a copy of the body
(the print mesh no longer stays on the model). A face's own triangles are
made for that face alone, not by meshing its whole body.

STL and 3MF meshes in. A closed mesh comes in as one solid, its flat
triangles merged (the reader hands back loose triangles; every file came in
as loose faces until Repaired, a 12-triangle block too). A binary file is
told from a text one by its length (a blank heading and round sizes made the
reader take it for text: a 10 mm cube out of a 3MF couldn't be read). Up to
250 000 triangles; more is refused at once with the count (it used to run
the engine out of memory). A broken-down engine is no longer taken for an
unreadable file.

Sweep. Facing the same way along a path that runs in the profile's own
plane never returned; a profile that changes size or turns left a sweep in
pieces at a sharp corner: both refused in words. Joins and cuts made by a
step go through one checked boolean. An unknown mode is a damaged step, not
a step that does nothing.

Tests: gridloft (340), gridio (51: up to a face or plane, STEP and STL out
and back, meshes in, split by a body, copies, memory over 400 rebuilds).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 12:59:39 +02:00
superGeometry 835816fef1 Engine review: faces with holes, Shell, a join's stray edge; grid tests
Each operation tried over a grid of shapes, places and sizes, every
result held to a volume worked out by hand. What that found:

- A face with a hole in it pulled out: the hole was closed with a lid
  (the slab added took the face's outer outline only). Pushed in with a
  boss standing on it: refused, "would break the body into pieces".
  The slab now stops at each hole's own walls, and such a face goes the
  exact way first (a round hole stays one true cylinder).
- Shell, where two faces are closer together than two walls (a pocket
  1.7 mm from a hole, a hole 2 mm from a side): the pocket's walls were
  left out without a word (the pocket a window into the hollow), the
  tube round a hole in the opened face ended a wall and a half short of
  the opening, and a broken shell came out "repaired" a sixth too
  light. Shell now takes a result only if it is sound, has a wall
  behind every face it kept and nothing left deep inside, trying each
  way in turn; the opening is cut from the hollow's own floor. What
  still can't be built says why (walls would run into each other; a
  pocket in the opened face would be left loose).
- A join where an edge of one body lay in a face of the other left that
  edge lying across the face, bounding nothing: taken for a gap,
  "would tear the body open". Such edges are taken out of every
  boolean's result.

Tests: grid.ts and gridbooleans (65), gridextrude (152), gridfaces
(122), gridfillet (126), gridshapes (98), gridshell (48), gridsizes (90).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 00:20:23 +02:00
superGeometry f692ac9e92 Connect: a bridge never folds through itself
Where the faces are wide for how close they are (or far to the side of
each other), no curve of the plain kind turns gently enough, and the
bridge was swept along one anyway: its inner side ran backwards, a solid
through itself that no join or cut could use (a triangle to anything:
"the shapes only just overlap", or a body left torn).

- Two arcs of circles, the gentlest way from one face to the other, where
  the plain curve would fold.
- Where that folds too and the faces face each other: the outline slides
  along the curve instead of turning with it (two wide plates close
  together, one a little to the side).
- The fold check carries the outline along the curve (an arch's top went
  unchecked) and takes it as far between the two ends' as it has got.
- A sweep that went wrong without saying so (a bridge of 128 mm3 for one
  of 30 000) is no longer taken for the bridge.
- Tests: 50 pairs of outlines, joined, cut and as a body of its own -
  all sound (14 were, before this week).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 23:31:32 +02:00
superGeometry 3bc4c143ba Review fixes: Connect never leaves a damaged body, Add Another, Other plane
- Connect's result is checked like any other edit's: a join that tore the
  body open, or a cut that broke it, went through without a word.
- The bridge from the faces' very edges that can't be joined or cut: made
  the other way (a little inside the edges), on the bodies as they were.
- Create Variable from a field, then Add Another: the field gets its own
  variable, not the last one made; a bad name or value comes back as typed.
- Other plane: only while the sketch is empty, and a shape just started is
  dropped with the old plane.
- Tests: 50 pairs of outlines connected (join and cut); moved, mirrored and
  patterned bodies' edge lines.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 22:54:30 +02:00
superGeometry 23e7932c7d Faster rebuilds: no measuring or meshing the same shape twice
- A step's working copy of a body keeps the body's known volume: a big
  housing was measured again on every step (a quarter of a small cut).
- A cut that gives back one solid in a group: its volume, known already,
  isn't measured again.
- Each face of a shown body: middle and area from one measuring, not two.
- A body moved, turned, mirrored or patterned: its mesh is the original's,
  moved (a fan's rotated casing: 3 s of meshing to 12 ms; a pattern no
  longer meshes every copy).

A small cut on the drill's housing: 2.5 s to 1.5 s; the drill built from
nothing: 40 s to 32 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 22:03:12 +02:00
superGeometry 0646991d21 Connect: the bridge starts on the faces' edges
Joined or cut, each end was set back into its body and the outline began
changing into the other face's from there: where it left the face it was
already part way to it (a 20 x 30 top into a small round end left the top
as 19.5 x 28.9, inside its edges). Now it is swept face to face from the
faces' own outlines, and a straight plug of each outline goes back into
its body; where that can't be made one clean solid (a curved face, a
triangle into a square), the bridge is made as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 18:46:18 +02:00
superGeometry 52bbe0acb1 Window build test: Other plane, drawing ways kept, Add Another variable
- A new, empty sketch has Other plane in its tools: seen square-on it took
  the face in front, and the side plane was a trip to the Views menu away.
- The way each sketch tool draws (Rectangle: Center...) survives a reload.
- Create Variable has Add Another: makes it and opens a fresh one.
- Window test compares the hand build at W 900, H 1800 as typed on the
  model's tags in the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 13:33:47 +02:00
superGeometry 3f2f8811c3 Window build test: sketches follow their planes, points typed with variables
A parametric triple-glazed window for passive buildings, built by code
(tests/window.test.ts: 22 variables, every part's volume, no clashes,
glass cover, seal contact, ten variable sets) and by hand on a phone-sized
screen (tests/fixtures/window-hand.json). The hand build matches the code
build part for part, in volume and in place, after the variables change.

What the hand build found:
- A sketch drawn on a construction plane stayed where it was drawn when the
  plane's offset (or its variable) changed. It now follows the plane.
- A sketch used by a feature and shown again in Items couldn't be tapped
  through the bodies. It now draws on top, like a fresh one.
- A centre's X / Y typed with a variable ("Ws/2 - S/2") was worked out once
  and forgotten. The centre is now held there and follows the variable.
- A point's card had no X / Y. Typed, the point is locked there, with a
  variable kept.
- Editing a plane: From offered the plane itself and later planes, and
  named its base just "Plane". It now leaves those out and says "XZ plane",
  "Plane 02" or "Face of Body 1".
- After a shape's first tap the hint still said "Tap the centre". It now
  says what's next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 12:55:23 +02:00
superGeometry 5090030843 Loft: guide curves along the sides, connection points; Fill: continuity per edge
- Loft > Guide curves: any number of curves that each run through every
  profile; the sides follow them.
- Loft > Connections: a point on each profile in turn, and the loft joins
  them (a square's corner to a point on a circle, or a twist).
- Both work by resampling the profiles on one shared parametrisation, with
  sections added between profiles that the guides pull into place. Sharp
  corners stay sharp; smooth profiles stay smooth (C2).
- The old guide is now called Centre line.
- Fill: each body edge of the boundary can have its own continuity (G0,
  G1, G2); the setting for all stays as the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 11:32:01 +02:00
superGeometry 495e1cef79 Split Body: several planes and other bodies at once
- More planes: a body cut into slices in one step.
- Split with bodies: cut along other bodies' surfaces; those bodies stay as
  they are. A plane isn't needed when bodies are picked.
- Every piece becomes a body; the biggest keeps the original's place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:58:07 +02:00
superGeometry 7368d01b62 Files: GLB export, 3MF import, each body in a file of its own
- Export GLB: the bodies' meshes with smooth normals and their colours
  (see-through ones blended), named, Y up and in metres as glTF wants.
- Insert > File takes 3MF: the exact model packed in one of ours, else the
  file's meshes (components placed, its units turned into mm).
- Export each body separately: STL, STEP, 3MF or GLB, one file per body
  named after it, together in a ZIP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:45:49 +02:00
superGeometry 2c9fc953fd Items: Reveal in Items from the model
Right-click a body, face, edge, plane or sketch curve: Reveal in Items opens
the panel, unfolds the folder or heading it's under, scrolls to its row and
flashes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:42:59 +02:00
superGeometry 66acab2163 Drawings: intersection marks, dimensions snap to an even spacing
- Intersection Mark (under Centrelines): tap two straight edges and both
  are drawn on, thin, to where they'd meet - a rounded corner's sharp corner.
- A straight dimension dragged near a parallel one of the same view snaps
  in line with it, or one standard step out or in from it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:41:51 +02:00
superGeometry f2fdb5acc7 Drawings: Horizontal, Vertical and Block title blocks, a revision table
- Horizontal: a strip along the bottom of the frame (two rows on a narrow
  sheet). Vertical: a column down the right, the revision table at its top.
  Block: the corner block with a revision table above it.
- The views keep off whichever side the title block takes.
- Revisions are added and removed in the Title block section; the newest
  becomes the title block's revision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:39:31 +02:00
superGeometry 2d36f9f20d Sketch: fully defined curves in green, which pick stays put, linked Project and Pattern
- Curves the constraints hold completely draw green in the sketch being
  edited (from the rank of the constraints' Jacobian), with a note when the
  whole sketch is fully defined.
- A toggle on the constraint bar: the first or the last picked curve stays put.
- Project as Sketch makes linked curves that follow the body's edges.
- Linear and circular sketch patterns keep their copies tied to the
  originals: change one and the copies follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:35:40 +02:00
superGeometry f6eb68c07e Selection: box directions and kinds, a list for overlapping faces, Select Through
- Box selection: left to right takes what's wholly inside; right to left
  (drawn dashed) whatever it touches - faces under the box and edges
  crossing it count.
- While dragging the box: Tab cycles everything / bodies / faces / edges;
  B, F, E and A pick one. The hint says which.
- A tap on faces of several bodies in the same place: a list by the
  pointer to choose which.
- Select Through (Ctrl+Shift+S, or in the right-click menu): corners,
  edges and sketches behind the faces in front can be picked; the bodies
  show see-through while it's on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:29:06 +02:00
superGeometry 3d9cb2533b Fill: a surface over a network of curves
- Tools > Fill: tap the curves and edges round the surface (any sketches,
  any bodies' edges) and, if wanted, guide curves across it that the
  surface passes through. It's an open body of its own.
- Along body edges it can just touch (G0), be tangent to the face there
  (G1), or match its curvature (G2) - G2 says so when it can't be held.
- Starts with the curves and edges picked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:25:45 +02:00
superGeometry e0a8f6a982 Sweep: profile position, orientation and corners; Loft: start and end continuity
Sweep
- Profile position: where it is, or on the path's start (moved to the
  nearer end and turned square to the path).
- Orientation: normal to path (it turns with the path), or parallel to
  profile (it keeps facing the same way).
- Corners: round or mitre.

Loft
- Start and End: free, tangent (G1) or smooth (G2), each with a magnitude
  - the body leaves the first shape (meets the last) straight out of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:21:32 +02:00
superGeometry c675482277 Section View: Section only, a 2D section, and Normal to Section
- Section only: just the cut faces (and their outline), the rest of the
  model gone.
- 2D section: seen straight on and without perspective, flat like a
  drawing - the cut filled, the edges beyond it drawn in light lines.
- Normal to Section: look straight at the cut from the side cut away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:17:58 +02:00
superGeometry 93e355ced8 Display modes: zebra stripes and a curvature map
- Analysis in Display modes: Off, Zebra stripes, Curvature map.
- Zebra: stripes reflected in the bodies (a kink shows a crease between
  faces, a jump a gap); upright or horizontal, 4 to 48 of them.
- Curvature map: red where a face is domed, green where it's flat, blue
  where it's hollow; a slider sets the radius shown in full colour
  (0.5 mm to 5 m). Worked out from the mesh's normals, per vertex.
- Both keep the section's cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:16:16 +02:00
superGeometry 272aee1888 History: a breakpoint (roll back without deleting) and Merge
- A step's menu: Insert Breakpoint After - the later steps are off and
  greyed under a bar, the model as it was there. New steps go in at the
  breakpoint (before the ones it switched off). Remove on the bar (or in
  the menu) switches them all on again.
- Merge History…: every step becomes the bodies as they are now (each kept
  exactly, with its id, so names, colours, materials and folders stay).
  Keep the sketches and keep the variables are ticked by default. Undo
  takes it back.
- The dialog can show tick boxes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:58:01 +02:00
superGeometry 8468f8409d Keyboard: shortcuts for the tools and views, a command search, and a cheat sheet
- X or Ctrl+F: search every command by part of its name; what the picked
  thing offers comes first, the ones used last when nothing is typed.
  Up/Down pick, Enter runs, Right completes the name, Esc closes.
- Letters: L A C R G I O T start a sketch with that drawing tool; E Extrude,
  F Fillet, H Shell, M Move/Rotate, N Translate, P Project as Sketch,
  S Scale, V Revolve, W Sweep - each as a tap on its button would.
  Ctrl+U / B / I: Union, Subtract, Intersect.
- Ctrl (or Alt) + 1 the default view, 2-7 front, back, top, bottom, right, left.
- Space over a face zooms to it.
- ?: the list of keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:38:18 +02:00
superGeometry 9160a0669d Extrude: Through all, Up to a face or plane, a start offset, a draft angle, and Intersect
- Ends: Distance, Through all (Flip direction turns it), or Up to - a face
  (flat: its whole plane; round: split there, the part at the shape kept)
  or a plane, picked like any slot.
- Start: it begins that far from the shape along its normal.
- Draft angle: the sides lean in (negative: out) from the shape's plane.
- Result gains Intersect (only what's in both stays), for Revolve, Sweep,
  Loft and Pattern too; Connect keeps its four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:31:01 +02:00
superGeometry c0a1fe72cf Drawings: the sheets in their own pane, apart from the drawing's tools
- The left column: the tools at the top (Exit Drawing, Views, Dimensions,
  Centrelines, Note, Image, Delete); under them a Sheets pane of its own,
  shaded, with its count.
- The pane: a row of small buttons (new, copy, delete, Print / PDF all,
  DXF all; names as tips), the find box, then the list, which scrolls by
  itself, so with hundreds of drawings the tools stay where they are.
- The list keeps where it was scrolled to; opened, the open drawing is in
  sight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:56:01 +02:00
superGeometry 7d14d5f525 Drawings: the frame's fields measured out from the centring marks (ISO 5457)
The numbered and lettered fields were the frame split evenly from the
filing margin, so the centring mark in the middle of the sheet fell inside
a field (between 4 and 5 on A3). Now the fields are 50 mm, measured out
both ways from the centring marks, the end fields taking what's left: the
centring marks are always on a field line, on every sheet size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:51:32 +02:00
superGeometry 7620d398f6 Drawings: a picked body gets its own drawing; Print / PDF all, DXF, DXF all; find among many
- Bodies picked as Drawings is tapped: the drawing of just them opens, or a
  new one is made for them (titled with their names, set out like the last
  drawing; the very first asks its preferences). Before, the bodies chosen
  for a drawing were drawn with all the others since a project could hold
  several drawings: fixed.
- Print / PDF all: every drawing, each on its own page of its own size, in
  one print (save as one PDF).
- DXF (this drawing) in the bar; DXF all: every drawing as a DXF in one
  .zip. AutoCAD R12, mm, y up: exact lines, arcs and circles, text, solid
  arrowheads, sections' hatching as lines, details cut to their circle;
  layers VISIBLE, THIN, HIDDEN (dashed), CENTER, TEXT.
- More than 8 drawings: a box over the list to find one by its title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:43:09 +02:00
superGeometry 21e4e28850 Drawings: the project's drawings listed under the tools on the left
- Under Exit Drawing, Views, Dimensions and the rest: each drawing (tap to
  open it, the open one lit), then New drawing, Copy drawing, Delete drawing.
- The menu in the top bar is gone; on a phone the list shows as icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:03:20 +02:00
superGeometry 90822d82c9 Drawings: as many drawings as wanted in one project
- Drawings ▾ in the drawing's bar lists the project's drawings: tap one to
  open it; New drawing (its preferences first, its own title), Copy this
  one, Delete this one (Undo brings it back).
- Drawings in the BIM menu opens the one open last, else the first.
- Each drawing keeps its own sheet, views, dimensions and notes.
- Projects saved with one drawing open it as their first; nothing is lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:55:27 +02:00
superGeometry bdcb66b4a6 Drawings: Arrange lays every dimension out the way a technical drawing has it
Dimensions > Arrange (ISO 129-1):
- Outside the view, on the side nearest what each measures.
- Rows 10 mm out, then 7 mm apart; shorter nearer the view, longer
  further out, so no extension line crosses a dimension line. Dimensions
  that meet end to end share a row (a chain).
- The value in the middle, or just past the end when it doesn't fit
  between the arrows; no two values on top of each other.
- A radius's or diameter's leader points away from the middle of its view,
  out past it, no two the same way.
- Slanted ones stand 10 mm off; angles stay. The overall sizes too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:51:06 +02:00
superGeometry 997156bb88 Drawings: the overall sizes are dimensions like the others: picked, moved, given text, taken off
- The width, height and depth the drawing puts on by itself can be picked
  and dragged (out or in, value along), given a distance, text and a
  tolerance, like a dimension put on by hand. They still follow the model.
- Delete takes one off; Overall sizes, off and on again, brings them back
  where they were moved to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:45:40 +02:00
superGeometry 3363a7f140 Drawings: drag a dimension straight away to move it out or in and slide its value along
- A dimension or note moves as soon as it's dragged, no tap to pick first
  (views still move only by their handle).
- Dragging a length or distance across its line sets how far out it sits;
  along it, slides its value. Past an end, the dimension line runs out under
  the value; near the middle it snaps back to the middle.
- A picked dimension shows its distance from what it measures, to type
  exactly, and Centre text once its value has been slid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:19:16 +02:00
superGeometry 4bbf53e7a8 Drawings: what a dimension tool would take lights up under the pointer
- With a dimension tool on, the edge, arc or circle, point (corner, middle,
  centre) or view a tap would take is drawn in blue under the mouse, and
  the pointer becomes a hand.
- Only what that tool can take: Radius lights up circles and arcs, not
  straight lines; Line Length lights up lines only.
- Same thickness at any zoom; it goes away when the pointer leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:09:49 +02:00
superGeometry a58fa408e7 Drawings: a tap picks, only what's picked moves; a picked view has a move handle and its scale
- A tap on a view, dimension or note picks it; a drag from something not
  picked moves the sheet, so nothing moves by accident while looking round.
- A picked view shows a round handle in its middle: dragging it moves the
  view. Held anywhere else, the sheet moves.
- Its scale sits on a chip under the handle (tap for the list), instead of
  in the bar.
- A picked dimension or note moves by dragging it.
- The handle is the same size at any zoom and follows the view and the
  camera.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:04:07 +02:00
superGeometry 2b7b29ab41 Drawings: zoom and move round the sheet
- The mouse wheel zooms where the cursor is (the paper under it stays put),
  about 8 % a notch; two fingers pinch to zoom and move together; a touchpad
  pinch zooms and a sideways swipe moves.
- Dragging the empty paper moves it (a tap still picks nothing); the middle
  or right button moves it whatever is under it.
- A double tap on the empty paper goes closer there, or back to all of it.
- Zoom buttons at the bottom right: out, how close (tap: all of the sheet),
  in; keys + and - and F.
- Zooming only changes what of the sheet is shown: lines stay sharp at any
  zoom and the sheet isn't drawn again. It can't be lost off screen, and it
  stays fitted when the window or the sheet size changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 21:52:38 +02:00
superGeometry 60c66fd731 Tools for checking the app: sg in the console, a project checker, pictures without a browser, a shared test kit, version.json
- sg (the browser's console): the project, tool, hint, open window,
  selection, errors and bodies in one look; pick things by name; list and
  run what's offered; read and set the open window's rows (slots, numbers,
  choices, toggles); give a waiting slot a face or edge; Done / Cancel;
  wait for the engine; each body's health; open a project. sg.help() lists it.
- npm run check <project>: rebuilds it step by step and says what each step
  made, changed or took away, its error, and how sound each body is.
- npm run render <project> <out.png>: a shaded picture with edges from any
  side, drawn without a browser.
- tests/kit.ts: the engine started once, check / done, and quick sketches,
  shapes and steps (wrap.test.ts uses it).
- version.json on the site: the commit it was built from; npm run live says
  whether main is live (--wait until it is).
- The engine measures each body's health on request (valid, closed, solids,
  faces, volume, box).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 21:23:25 +02:00
superGeometry c9562582d9 Project as Sketch for a sketch's shapes: onto a plane or flat face, square to it
- Pick a sketch's shapes, then Project as Sketch, then a plane, a flat
  face or XY / XZ / YZ: a new sketch there with the shapes drawn onto it
  square to it (on a face, it stays on that face).
- Lines stay lines and circles stay circles where the planes are parallel;
  tilted, a circle comes out as a spline. A side two shapes share is drawn
  once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 20:40:44 +02:00
superGeometry 31ed4ad14b Drawings: base and projected views, view scales, arc angles, min-max distances, pictures; Project as Edge, Wrap & Emboss, edge tools
Drawings
- Base View: the model from any side (front, back, top, bottom, left,
  right) or any isometric corner, put where it is tapped, at its own scale.
- Projected View: tap a view, then beside it for the view square on (lined
  up with it, first or third angle), or past a corner for an isometric one.
  Projected from sections and added views too; deleting a view takes what
  was made from it along.
- Scales per view: the isometric view and added views have their own; the
  front, top and side views share the sheet's (they line up).
- Arc Angle: the angle an arc goes round, past 180 degrees too.
- Min-Max Distance: between any two of a point, an edge, a circle or an
  arc; the nearest, or the farthest with Max.
- Images: a picture from the device on the sheet, moved by dragging, made
  bigger or smaller in the bar.

Modelling
- Project as Edge (beta): a sketch drawn onto the faces of a body seen
  from it, or edges onto a face; the faces are split along them.
- Wrap & Emboss (beta): a sketch wrapped round a round face with its
  lengths kept, raised from it or sunk into it.
- Edges: Plane - Through Edge, Project as Sketch, Project as Edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:26:37 +02:00
superGeometry a728e74d91 Drawings: section and detail views, angles, tolerances, centrelines, notes that point; toolbars that fit what is picked
Drawings, after a study of how a professional CAD app does them:
- Section View: draw the cut line on a view (corners, middles and centres
  snap), tap the side it goes on. The model is cut there and the view is
  lined up with its parent: cut faces hatched at 45 degrees, "A-A" under it,
  a chain line with thick ends, arrows and letters on the parent. Flip turns
  it round; dragging slides it along its line.
- Detail View: a circle on a view, drawn bigger where it is tapped, with its
  letter and scale ("B (2:1)"); its scale can be changed when it is picked.
  Dimensions can be put on details and sections.
- Dimensions: Point-to-Line, Line-to-Line, Line-to-Line Angle, 3-Point Angle
  beside Line Length, Point-to-Point, Radius, Diameter. Points snap to the
  middles of edges too.
- Text and tolerance on any dimension (double tap, or the bar when picked):
  text before and after, symmetrical, deviation (stacked), limits, basic.
- Centrelines: centre mark, 2-point and 2-line centrelines.
- A note tapped on an edge points at it with a leader.
- The first drawing asks its title, sheet, scale and views first.
- Angle precision, centreline and hatching line widths, ANSI E.
- Fixed: a second note started while one was open lost the first (and threw);
  taps off the paper made notes outside the sheet; the note box ran off a
  phone's screen.

Picking in 3D:
- A round face shows only what works on it: Axis - Cylinder (on its axis),
  Fillet and Chamfer of its rims, Pattern, Translate, Rotate, Mirror of its
  body. Sketch, Extrude, Plane and the other flat-face tools are left out.
- A body has Fillet and Chamfer of all its edges, and Create Drawing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:14:41 +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 76d597bdab Phones and tablets: Enter AR - the model in your room through the camera
- On a phone or tablet the top bar says Enter AR (shown where the browser
  can do AR: Chrome on Android). A headset still says Enter VR.
- Point it at the floor or a table: a ring shows where the model goes; tap
  to put it there (tap again to move it). Two fingers: pinch to size it,
  twist to turn it; it stops at real size on the way.
- Over the camera: Exit AR at the top, a short hint at the bottom, the
  scale (1:1 as the zero) at the left.
- Help text updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 10:08:42 +02:00
superGeometry 70f17540f8 VR: a scale over the left hand, 1:1 in the middle; sizing stops at real size
- A tape over the left hand shows the model's scale: 1:1 (real size) is the
  zero, 2:1 and 4:1 above, 1:2 and 1:4 below; it slides under a pointer and
  the number on top is the scale now (2.6:1, 1:37).
- Right stick up / down sizes it and stops at real size on the way (a buzz;
  let go and push again to go on), as both grips already did.
- Size changes no longer pop up a message (the scale shows it).
- Help text updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 00:37:50 +02:00
superGeometry 7d580425d3 VR is a viewer: your model in your room, at real size, through passthrough
- Enter VR opens passthrough where the headset has it (else a dark room).
  Only the bodies show: no grid, axes, sketches, planes or highlights.
- The model starts at real size in front of you (a big one on the floor).
- Right trigger: put it down where the ray meets a table or the floor (the
  headset's room scan, else the floor), standing up and facing you, with a
  soft shadow under it.
- Grip: pick it up, move and turn it. Both grips: size it; it stops at
  real size on the way.
- A: real size / hand size. B: bring it back in front of you. Y: X-Ray.
  Right stick: turn it or size it. Left stick: raise or lower it.
- Hold X: the wheel (Real size, Hand size, Bring here, X-Ray, Edges, Exit).
- The in-VR editing (picking, tool wheel, tool numbers) is gone.
- Help text updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 00:18:42 +02:00
superGeometry a8b031ea7f VR: a tool wheel on each hand, picking corners, edges and faces, B/Y reused
- The ray lights up the corner, edge or face it points at (same priority as
  on the screen); the trigger picks it, with a buzz and a short note.
- Hold A: the right wheel, the tools for what's picked (Done and Cancel while
  one runs). Hold X: the left wheel - Undo, Redo, Recenter, X-Ray, Edges,
  Deselect All, Exit VR. Tilt the stick to a button and let go, or point the
  other hand at it and pull the trigger.
- B no longer leaves VR: it cancels the running tool, or undoes. Y redoes.
  A quick tap on A is Done; on X it recenters the model.
- While a tool runs, a card over the right hand shows its number: right
  stick up / down sets it, a flick left / right goes to the next one. Its
  problem shows in red.
- Glass round buttons with the app's icons; drawn only when something changes.
- Help text updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 00:00:53 +02:00
superGeometry ae49d30f8f VR: Enter VR in the top bar; left stick moves the model up and down
- The VR button moves from the bottom of the right column (on a headset the
  column's bigger buttons push it out of sight) to the top bar: a blue
  Enter VR beside Items. It shows on a headset always, elsewhere when a
  headset can be used; if the browser can't open VR, it says why.
- Left stick up / down moves the model up / down (half a metre a second at
  full tilt); the right stick still sizes it. The sticks go by time, not by
  frame.

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