Support planar circle tangent snapping

This commit is contained in:
ramox81 committed 2026-08-21 16:49:49 +03:00
1 parent 5b4c1da881
commit 390d42a63a
4 files changed
+121 -3

No files matched your search

+8 -1
View File
@@ -29,8 +29,15 @@ pub enum SnapHint {
pub enum TangentGeom {
/// Infinite line through these two world-space points.
Line { p1: [f32; 3], p2: [f32; 3] },
/// Circle/arc.
/// Round geometry in the world XY plane.
Circle { center: [f32; 3], radius: f32 },
/// Complete circle in an arbitrary world-space plane.
PlanarCircle {
center: [f32; 3],
axis_x: [f32; 3],
axis_y: [f32; 3],
radius: f32,
},
}
/// A 1-D entity (line, arc, polyline) represented as an ordered set of