2 Commits

Author SHA1 Message Date
superGeometry 2433833eef A thread's clearance on a bolt with a head; a lifted spline split keeps its heights; printing a drawing from a phone; STEP files of several solids, tested (asked for: "ok do all you can" - of the list of what to test next: undo inside each tool, 3D splines beyond Sweep, picking with every tool, thread clearance on awkward bolts, STEP files of several bodies, Print / PDF of drawings).
- Thread clearance. A bolt with a head, cut from a block with a clearance: the hole's thread ran into the bolt's (0.027 off it, not the 0.2 asked). The thread put back on the grown body was measured from that body's own round face, whose centre and direction are the kernel's choice and differ from the bolt's: the turns started somewhere else. It is measured from the first thread's own point and axis now, over its own stretch. The grooves are filled back in by taking the threaded stretch out and putting a clean ring in (filling them one by one left edges the kernel could not grow). tests/threadclearance.test.ts, 13 checks: the plain bolt at 0.1, 0.2, 0.4; a headed bolt; its head chamfered after the thread; a rod cut by a threaded nut; clearance taken from the bolt, and from both - each the gap asked (0.1998 to 0.2000).
- A spline with points off the plane, split or trimmed: its pieces keep their heights (they fell flat on the plane). A loft along a lifted spline as its guide: tested. tests/spline3d.test.ts, 22 checks.
- Print / PDF of a drawing, of all drawings, and of the Technical Sheet: the page was put back the moment print() returned. On a phone it returns at once, before the preview has drawn anything - a blank page, or the app. It is put back when printing is over.
- tests/stepimport.test.ts, 12 checks: a STEP of four solids (two touching, one sunk in another) comes in as four bodies, each its size, sound; the same file in metres and in inches; Windows line ends; one then moved, one cut by another, one deleted; two files in one project; forty solids; a file cut short, not STEP, empty - said in plain words. Nothing to fix.
In the app: undo and redo inside Offset Face, Extrude, Fillet, Chamfer, Shell, Move/Rotate Face, Edge and Body, Scale, both patterns, Thread, Subtract, Revolve - each step back in turn, nothing to fix; every tool started from every kind of pick (216 starts): none failed to open, no errors; Print / PDF pressed with the print window held: the sheet (420 x 297) in the page until printing is over, then gone, twice in a row the same.
Tests: threadclearance 13, thread, clearance 32, spline3d 22, sketchtools, exports 25, projectlean 29, stepimport 12, drawing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 17:29:38 +02:00
superGeometry 4f93cfbf83 Undo inside a tool; a thread cut with clearance; the phone's sketch line in two rows; undo / redo the bar's height; a sketch's steps in History pick what they made (asked for, six points: "when I want to subtract a thread and I put clearance, it always fails ... on mobile, when I hit sketch ... I have to scroll right in a box that is only a button wide. Maybe you can make that option window 2 buttons tall? ... in sketch, if I close a shape, it should automatically exit the line type ... the undo and redo buttons should be the same as the ones on the bottom bar. Same bar height ... in history, if I make changes in a sketch, I want those changes to be selectable from that history action so I can edit them ... when I ... select a vertex and I move it around, and I hit undo, that undo should change the last modification, not go back to the extruding action ... I want full history control").
- Undo. With a tool open (Move Vertex, Move Edge or Face, Extrude, Fillet, Move/Rotate, any of them), Undo closed the tool - all of what was done in it gone - and then took back the step before it as well. Each change made in an open tool is a step of its own now (a drag of its handle, a value typed, an option, something more picked): Undo takes the last one back, Redo puts it back, and the handles go with them. With nothing left to take back in the tool, Undo closes it; the next is the project's.
- Thread and clearance. The kernel cannot grow a thread's helical faces, so Subtract with a clearance round a threaded body failed every time. Such a body is grown another way: its grooves filled back in (what it was before its thread), that grown, and the same thread cut on it again - over the same stretch, from the same start, its V that much less deep so its sides stand the clearance off the first thread's sides (out by the clearance alone they stood half of it). tests/threadclearance.test.ts, 9 checks: an M10 bolt through a block, clearances 0.1, 0.2 and 0.4 - cut, sound, the bolt untouched, and the hole exactly that far from the bolt at its nearest (0.0999, 0.1998, 0.3996).
- A phone held upright, in a sketch with a tool's own parts on the line (Line on, a point placed): two rows of buttons, a picture over its name each, all in view. It was one row to slide, a button and a half wide.
- Undo and redo are the bar's height on every screen (49 to 61; they were 52, 48 on a phone), and sit on its line.
- History: each step listed under a sketch remembers the curves it made or changed. Tapped, the sketch opens with them picked, their sizes on the line to change.
- Closing a shape: looked at, and already so - the drawing tool is put down and the sketch stays open (line, rectangle, circle, polygon, ellipse, by touch).
In the app: a corner dragged three times with its gimbal, then Undo, Undo, Redo, Undo, Undo (each step back in turn, the gimbal with it), Undo again (the tool closes), Done after another drag and Undo (that step only); a rectangle and two circles drawn, their steps tapped in History (two circles picked; the rectangle picked and its width typed); the sketch line at 390 wide in two rows; undo against the line at four sizes.
Tests: threadclearance 9, clearance 32, thread 15, sketchtools, constraints, projectlean, exports as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 16:14:55 +02:00