Files
Daniel e478636982 Sketch: a 2-Point or Center Rectangle corner clicked on a curve stays on it (#18756) (#18757)
* Sketch: a rectangle corner clicked on a curve stays on it (#18756)

The 2-Point and Center Rectangle tools showed the "On", "Mid" or "X" snap
at the pointer and then sent only the click's coordinates, and their
commands took only [x, y], so the corner was left free. A Line's point
clicked on the same curve is kept on it.

sketch.rectangle.two_point (p0, p1) and sketch.rectangle.center (center,
corner) now take the snaps sketch.point takes: "mid:<line>",
"on:<curve>:x,y", "x:<a>+<b>:x,y", a model vertex or a point on a model
edge. A corner snapped onto a curve, a midpoint or a crossing is the
point the snap made, held by the snap's constraints (one, or two at a
crossing), so deleting them frees the rectangle again. A corner snapped to
a model vertex is a point of its own joined to the projected vertex by one
Coincident. The reply's constraints list the holding constraints with the
rectangle's own. A snap is made in the sketch being edited, so a snapped
corner for another sketch is refused.

The tools send those snaps as themselves. A click on an existing point
still goes as coordinates, where connect joins the two. A stored snap
whose curve is gone by the second click (the Undo button between the two
clicks) goes as the place clicked, so the tool does not refuse click after
click. In a drawing sheet's sketch the tools send coordinates and the
commands refuse a snap as every sheet snap is refused.

The snap prefixes are one list in the engine, read by the commands, their
schemas and the rectangle tools. skills/solidcraft-modeling/reference.md
describes the snap forms.

The Rounded and 3-Point Rectangle, the polygons and the slots are not
changed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Sketch: say which readers share SNAP_PREFIXES and which keep their own copies

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Sketch: rectangle corner docs name "vertex:x,y,z" and expressions over other points

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 03:19:54 +00:00
..