forked from 1b-agent/opencadstudio-upstream
fix(snap): arc segments of a polyline offer their centre and quadrants
Center and Quadrant found nothing on a polyline's bulge segments: the lightweight and heavy polylines carried no snap points for them, and a polyline split into several wires kept its points on one piece whose box the others' never reached. Each arc segment now carries its centre and quadrants, hovering the segment offers its centre, and a wire's box covers its snap points. Fixes #1640 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
29392de267
commit
fae64886ee
6 files changed
+150
-28
No files matched your search
@@ -4,6 +4,9 @@
|
||||
pub enum SnapHint {
|
||||
/// Geometric center of a circle, arc, or ellipse.
|
||||
Center,
|
||||
/// Centre of one arc segment of a chain (a polyline). Snaps like
|
||||
/// `Center`, but does not make the wire count as round.
|
||||
ArcCenter,
|
||||
/// Area centroid of a closed polyline.
|
||||
GeometricCenter,
|
||||
/// Point entity location.
|
||||
|
||||
Reference in new issue
Block a user