forked from 1b-agent/opencadstudio-upstream
fix review feedback for OTRACK projection and OtrackHit API
Co-authored-by: dichhead <330471626+dichhead@users.noreply.github.com>
This commit is contained in:
1 parent
2f6caacece
commit
97f94a2bfe
2 files changed
+6
-1
No files matched your search
+5
-1
@@ -780,7 +780,11 @@ bg={bg_ms:.1}ms n={view_count}"
|
||||
.chain(self.otrack_cross)
|
||||
.filter_map(|(base, _dir)| {
|
||||
let b = ost_project(base, view_rot, eye, ob);
|
||||
(b.x.is_finite() && a.x.is_finite()).then_some((b, a))
|
||||
(b.x.is_finite()
|
||||
&& b.y.is_finite()
|
||||
&& a.x.is_finite()
|
||||
&& a.y.is_finite())
|
||||
.then_some((b, a))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
@@ -170,6 +170,7 @@ pub(crate) fn wire_source(wire: &WireModel) -> Option<DimensionAssociationSource
|
||||
/// Object-snap-tracking alignment: the cursor projected onto a ray from an
|
||||
/// acquired tracking point.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
pub struct OtrackHit {
|
||||
/// Cursor projected onto the tracking ray.
|
||||
pub aligned: DVec3,
|
||||
|
||||
Reference in new issue
Block a user