From 6e446a23ad2c15cfcd85acc6df3d4ff15de11ce0 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 15:01:12 +0200 Subject: [PATCH] Compare `SurfaceVertex` instances based on ID --- crates/fj-kernel/src/algorithms/sweep/edge.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/fj-kernel/src/algorithms/sweep/edge.rs b/crates/fj-kernel/src/algorithms/sweep/edge.rs index 5bbd90650..17f3d7de0 100644 --- a/crates/fj-kernel/src/algorithms/sweep/edge.rs +++ b/crates/fj-kernel/src/algorithms/sweep/edge.rs @@ -169,7 +169,9 @@ impl Sweep for (HalfEdge, Color) { // Need to compare surface forms here, as the global forms might // be coincident when sweeping circles, despite the vertices // being different! - if prev_last.surface_form() != next_first.surface_form() { + if prev_last.surface_form().id() + != next_first.surface_form().id() + { edges[j] = edges[j].clone().reverse(); }