Skip to content

Commit

Permalink
Use GlobalEdge identity for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 19, 2022
1 parent ded2361 commit 052c1d1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions crates/fj-kernel/src/objects/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
Expand Down

0 comments on commit 052c1d1

Please sign in to comment.