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:
Hakan SevenandClaude Opus 5.5 committed 2026-10-07 08:50:05 +03:00
1 parent 29392de267
commit fae64886ee
6 files changed
+150 -28

No files matched your search

+3
View File
@@ -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.