Skip to content

Commit

Permalink
Replace iter in ray_face test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 4, 2023
1 parent 20f7314 commit 9663bd0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/fj-kernel/src/algorithms/intersect/ray_face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ mod tests {
},
builder::FaceBuilder,
insert::Insert,
iter::ObjectIters,
partial::{Partial, PartialFace, PartialObject},
services::Services,
};
Expand Down Expand Up @@ -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.])
Expand Down Expand Up @@ -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.])
})
Expand Down

0 comments on commit 9663bd0

Please sign in to comment.