From 9663bd040e756f204c2b1b700cb7eecbab488c49 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 4 Jan 2023 15:24:59 +0100 Subject: [PATCH] Replace `iter` in `ray_face` test suite --- crates/fj-kernel/src/algorithms/intersect/ray_face.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/fj-kernel/src/algorithms/intersect/ray_face.rs b/crates/fj-kernel/src/algorithms/intersect/ray_face.rs index f4e1f03e06..e992bea77f 100644 --- a/crates/fj-kernel/src/algorithms/intersect/ray_face.rs +++ b/crates/fj-kernel/src/algorithms/intersect/ray_face.rs @@ -154,7 +154,6 @@ mod tests { }, builder::FaceBuilder, insert::Insert, - iter::ObjectIters, partial::{Partial, PartialFace, PartialObject}, services::Services, }; @@ -252,7 +251,8 @@ mod tests { .translate([1., 1., 0.], &mut services.objects); let edge = face - .half_edge_iter() + .exterior() + .half_edges() .find(|edge| { let [a, b] = edge.vertices(); a.global_form().position() == Point::from([1., 0., 1.]) @@ -286,7 +286,9 @@ mod tests { .translate([1., 1., 1.], &mut services.objects); 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.]) })