* Sketch Dimension: point or circle to the edge of a circle or arc (#4064) Adds PointCircleDistance and CircleCircleDistance (edge-based, like #1863): solver, constructive seed, drawing, command wiring, tests, UI scenarios and docs. Saved designs gain two constraint kinds, in one pending format file. Fixes #4064. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Sketch Dimension scenario: pick the circle at its top edge (#4064) The bottom edge sits under the Dimension tool's status hint in the scenario window, so the second click never reached the tool. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -196,8 +196,8 @@ Scripts use the same command, with a midpoint reference in the `points` array:
|
||||
The solver is SolidCraft's own (damped Gauss–Newton with degree-of-freedom analysis). Constraints:
|
||||
coincident, horizontal/vertical, parallel, perpendicular, tangent, equal, concentric, collinear,
|
||||
midpoint, symmetry, fix, curvature (G2) and polygon. **Sketch Dimension** (D) adds linear,
|
||||
aligned, horizontal, vertical, point-to-line, line-to-circle, radius, diameter and angle
|
||||
dimensions. Each is a parameter
|
||||
aligned, horizontal, vertical, point-to-line, line-to-circle, point-to-circle, circle-to-circle,
|
||||
radius, diameter and angle dimensions. Each is a parameter
|
||||
(`d1`, `d2`, …), so it can hold an expression.
|
||||
|
||||
Press D, click what you want to measure and type the value: as soon as the click settles the
|
||||
@@ -230,6 +230,13 @@ far the edge reaches past the line instead. An arc is measured to the circle it
|
||||
the distance to the centre, click the centre point instead of the edge. In scripts:
|
||||
`{"command": "sketch.dimension", "params": {"entities": ["l1", "c1"], "value": 5}}`.
|
||||
|
||||
A point and a circle or arc measure from the point to the circle's edge, along the radius
|
||||
through the point: 0 puts the point on the circle, and a point inside the circle measures how
|
||||
far within the edge it lies. Two circles or arcs measure between their edges, along the line
|
||||
through their centres: the gap between them (0 when they touch), how far they overlap when they
|
||||
cross, or, when one lies inside the other, the narrowest gap between them (the thinnest part of
|
||||
the wall). For the distance between the centres, click the two centre points instead.
|
||||
|
||||
A dimension the sketch can't take, because the geometry is already fixed by other constraints
|
||||
and dimensions, is added as a driven (reference) dimension instead: it is shown in
|
||||
parentheses, measures the sketch, and has no value to edit.
|
||||
|
||||
@@ -31,7 +31,7 @@ and help is welcome: see [CONTRIBUTING.md](../CONTRIBUTING.md).
|
||||
and the rank of its Jacobian gives the remaining degrees of freedom. Constraints: coincident,
|
||||
point on curve, horizontal/vertical, parallel, perpendicular, tangent, curvature (G2), equal,
|
||||
concentric, collinear, midpoint, symmetry, fix; linear, aligned, horizontal, vertical,
|
||||
point-to-line, line-to-circle, radius, diameter, angle, arc sweep, arc length and slot length dimensions driven
|
||||
point-to-line, line-to-circle, point-to-circle, circle-to-circle, radius, diameter, angle, arc sweep, arc length and slot length dimensions driven
|
||||
by parameters. Over-constraining edits are rejected; fully constrained geometry turns black.
|
||||
Dragging solves the sketch every frame and rebuilds the model once, when the drag ends.
|
||||
Select a line or its two endpoints, type its dimension and press Enter to commit one undo
|
||||
|
||||
Reference in New Issue
Block a user