Skip to content

Commit

Permalink
Merge pull request #1761 from hannobraun/robust
Browse files Browse the repository at this point in the history
Robust
  • Loading branch information
hannobraun authored Apr 11, 2023
2 parents e28e559 + 8aedc52 commit b03685b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1,765 deletions.
5 changes: 3 additions & 2 deletions crates/fj-kernel/src/algorithms/intersect/ray_face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ impl Intersect for (&HorizontalRayToTheRight<3>, &Face) {

let [a, b, c, d] = [a, b, c, d]
.map(|point| [point.x, point.y, point.z])
.map(|point| point.map(Scalar::into_f64));
.map(|point| point.map(Scalar::into_f64))
.map(|[x, y, z]| robust::Coord3D { x, y, z });

if fj_math::robust::orient3d(a, b, c, d) == 0. {
if robust::orient3d(a, b, c, d) == 0. {
return Some(RayFaceIntersection::RayHitsFaceAndAreParallel);
} else {
return None;
Expand Down
2 changes: 0 additions & 2 deletions crates/fj-math/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#![warn(missing_docs)]

pub mod robust;

mod aabb;
mod arc;
mod circle;
Expand Down
Loading

0 comments on commit b03685b

Please sign in to comment.