3 Commits

Author SHA1 Message Date
superGeometry 093046340f Sketch: part of an ellipse is a curve of its own, and that is what a round edge seen at a slant projects to.
A projected curved edge was a spline through 24 points with only its ends shown; now, where the edge is part of a circle or of an ellipse, the curve in the sketch is that part of an ellipse exactly - a centre, two ends, nothing between.
- The ellipse can have a start and a sweep (a0, sweep); without them it is whole, as before. Its two ends are points like an arc's: picked, snapped to, dimensioned, chained.
- Project and the curves that follow an edge make one when every point of the edge is on it (to a millionth of its size); else the spline as before. A curve an older project holds as a spline stays a spline (sizes may be tied to its points), and a face's own outline is untouched.
- It keeps the end it ran from when the body changes; moved, turned, mirrored and offset it is the same part; trimmed or split it becomes an open spline through 13 of its points.
- A shape closed with one extrudes to the right volume (a quarter of 20 x 10, 5 high: 785.40).
tests/ellipsearc.test.ts: 10 checks (the pieces, the extrude, a half disc followed from a tipped plane and made bigger). tests/projectlean.test.ts: 29. In the app: Project on the top rim of a half disc from a plane tipped 60 degrees gives half an ellipse 20 by 10 that follows the edge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 19:11:57 +02:00
superGeometry 179383d383 Sketch splines: a row of dots no more. The offset of a curve projected from an edge "made multiple points again": Offset wrote four points for every span of the curve it came from, so the projected curve's 24 (out of sight) came out as 97 dots.
- Any spline in the sketch being edited shows its two ends (a closed one none); the points between, the ones it is shaped by, come up when the curve is picked and go again when it is let go. Picked, they are tapped and dragged as before. So an offset, a text's outline, a freehand stroke, a free copy of an edge all look like the curve they are, and are still shaped point by point.
- Offset of a spline keeps only the points the new curve needs (within a five-thousandth of its size): 29 where it was 97 for half an ellipse.
(A curve that follows an edge still never shows more than its ends: those points are the edge's, not the user's.)
tests/projectlean.test.ts: 24 checks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 18:24:10 +02:00
superGeometry 110eb695e5 Project in a sketch: a curved edge came in "full of points" - a spline through 24 dots, where the edge it copies has two ends.
- A curve that follows its edge (linked: it is made again from the edge whenever the body changes) shows only its two ends, as the edge has: those are the points to pick, snap to, dimension and drag. The points between are the edge's shape and stay as exact as they were (24 of them, out of sight). Sketches made before look right at once.
- A free copy (the edge is not there yet when the sketch is made, or a sketch's curves projected to another plane) is the user's to shape: a whole circle seen at a slant, or an ellipse, is a true ellipse; anything else a spline with the fewest points that hold it within a two-thousandth of its size (control points where those do it with fewer).
- Unlink turns the 24 into the few the curve needs.
- A face's own outline is untouched.
(The sketch's two kinds of spline both run straight at their ends, so part of an ellipse cannot be "two ends and a handle" at this accuracy: 15 points. Hence the ends-only showing for the ones that follow an edge, which is every one in the sketch this was seen in.)
tests/projectlean.test.ts: 22 checks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 18:04:41 +02:00