e7cade47ce
A new test puts every constraint on every kind of curve it is offered for (line, arc, circle, ellipse, part of an ellipse, rectangle, polygon, spline, polyline; 15,178 cases) and measures from the curves themselves whether it is then true. 2,678 were not, or were refused though nothing stood in their way. All hold now.
The solver:
- Its steps were damped by each parameter's own share. A sketch with room to spare - most are - then stepped furthest in the direction that helped least: a line given a length drew its ends together sideways until it stood upright, and stopped, the length not met. Damped the same in every direction: the step is the shortest one that does it.
- A point put on a rectangle's side, a polygon's, a polyline's, a spline's or an ellipse was taken and did nothing (its measure was always 0). Each is measured now: an ellipse by its own equation, the others from the nearest place on them.
- Tangent was offered for a circle with anything - a rectangle, a spline, an ellipse - and taken, and did nothing. Offered for what it can do: a circle or an arc with a line or another of them, and (new) a line with an ellipse. Two circles: measured with its sign, so the last of the way is not crept.
- A shape with a size of its own (rectangle, ellipse, polygon, arc) keeps it sooner than its place: a rectangle whose corner was put on a point 60 away came out 0.00001 tall. (Not while dragged: a corner pulled is still the shape pulled about.)
- A line asked to lie a way it is far from (Vertical on one nearly level, an angle 130 degrees off, Perpendicular to one it is nearly parallel to) is turned there about its middle first, its length kept. Left to the steps it got there by shrinking; one given a far angle ended a speck.
- A dragged point lags the pointer a third as much on a long jump.
The buttons:
- Horizontal / Vertical for two points (a centre and a corner, two ends): the solver had it, no button gave it.
- Unlock on a circle takes off the size Lock put on it (it was left behind, and the circle kept its size).
- Refused with no lock anywhere, it no longer says locked points stop it.
- A constraint picked is named with a capital ("Distance dimension").
In the app, each by its own button on the line: Horizontal, Vertical (a line; two points), Parallel, Perpendicular, Equal (lines; circles), Tangent (line and circle, two circles, line and ellipse; not offered for circle with rectangle or ellipse), Concentric, Coincident (two points; a point on a circle, a rectangle, an ellipse), Midpoint, Symmetry, Lock and Unlock (a point, a circle, a rectangle) - each true once on, lit, its mark shown, and off again. Sizes typed: a line's length and angle (120 and -45 from 7.6, length kept), a circle's diameter, a rectangle's width and height, the angle between two lines, the distance between two points and from a point to a line. An L-shaped outline drawn with Line (its joins and H/V made as drawn), four lengths typed, the fifth refused when it contradicts and taken when it agrees; a corner locked: all six lines defined, and a drag moves nothing; two lengths off: a corner dragged changes only those, the outline square and closed. A dimension picked by its mark and deleted, undone, redone.
Tests: constraintmatrix 15,178 of 15,178; constraints 15; constraintbreak 218 steps, 0 broke (drag frames that could not follow 11 -> 3); dragspeed, cornerdrag, hvconflict, sketchtools, sketchdefined, sketchpattern, links, alignmove, ellipsearc, phonestand, projectfuzz, projectlean as before.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>