From 20f73149f33d52c17b3e12cf086bd333fc04ebdc Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 4 Jan 2023 15:23:32 +0100 Subject: [PATCH] Replace `iter` in `face_point` test suite --- crates/fj-kernel/src/algorithms/intersect/face_point.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/fj-kernel/src/algorithms/intersect/face_point.rs b/crates/fj-kernel/src/algorithms/intersect/face_point.rs index 78c2dcadec..6d858e3818 100644 --- a/crates/fj-kernel/src/algorithms/intersect/face_point.rs +++ b/crates/fj-kernel/src/algorithms/intersect/face_point.rs @@ -138,7 +138,6 @@ mod tests { algorithms::intersect::{face_point::FacePointIntersection, Intersect}, builder::FaceBuilder, insert::Insert, - iter::ObjectIters, partial::{Partial, PartialFace, PartialObject}, services::Services, }; @@ -292,7 +291,8 @@ mod tests { let intersection = (&face, &point).intersect(); let edge = face - .half_edge_iter() + .exterior() + .half_edges() .find(|edge| { let [a, b] = edge.vertices(); a.global_form().position() == Point::from([0., 0., 0.]) @@ -321,7 +321,9 @@ mod tests { let intersection = (&face, &point).intersect(); let vertex = face - .vertex_iter() + .exterior() + .half_edges() + .flat_map(|half_edge| half_edge.vertices()) .find(|vertex| { vertex.global_form().position() == Point::from([1., 0., 0.]) })