From 052c1d199ecf6cbf689b1d76494315abd56eccac Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 7 Oct 2022 12:23:13 +0200 Subject: [PATCH] Use `GlobalEdge` identity for validation --- crates/fj-kernel/src/objects/edge.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/fj-kernel/src/objects/edge.rs b/crates/fj-kernel/src/objects/edge.rs index 0dfe9fd5d..cea9abbc4 100644 --- a/crates/fj-kernel/src/objects/edge.rs +++ b/crates/fj-kernel/src/objects/edge.rs @@ -51,8 +51,15 @@ impl HalfEdge { the half-edge's global form" ); assert_eq!( - &vertices_in_normalized_order, - global_form.vertices(), + vertices_in_normalized_order + .access_in_normalized_order() + .clone() + .map(|global_vertex| global_vertex.id()), + global_form + .vertices() + .access_in_normalized_order() + .clone() + .map(|global_vertex| global_vertex.id()), "The global forms of a half-edge's vertices must match the \ vertices of the half-edge's global form" );