feat(ucs): align UCS Face origin and axes to nearest vertex and edge

This commit is contained in:
yztink committed 2026-10-03 22:32:57 -07:00
1 parent 6840687f32
commit 973d7b0bb6
3 files changed
+191 -7

No files matched your search

+1 -7
View File
@@ -352,13 +352,7 @@ impl OpenCADStudio {
use crate::scene::model::solid_model;
let face =
solid_model::nearest_planar_face(body, pick.to_array())?;
solid_model::planar_face_normal(body, face)
})
.and_then(|normal| {
super::super::helpers::ucs_from_normal(
pick,
glam::DVec3::from_array(normal),
)
solid_model::planar_face_ucs(body, face, pick.to_array())
});
match built {
Some(ucs) => {