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

+3 -1
View File
@@ -25,8 +25,10 @@ fn to_render(circle: &Circle) -> RenderEntity {
// definition answers here, in the tessellation and in a trim.
let curve = crate::entities::curve::circle_curve(circle);
let snap_pts = crate::entities::curve::snap_from(&curve).snap_pts;
let tangent = TangentGeom::Circle {
let tangent = TangentGeom::PlanarCircle {
center: [cwx as f32, cwy as f32, cwz as f32],
axis_x: [ax.0 as f32, ax.1 as f32, ax.2 as f32],
axis_y: [ay.0 as f32, ay.1 as f32, ay.2 as f32],
radius: rf,
};