Compare SurfaceVertex instances based on ID

This commit is contained in:
Hanno Braun 2022-10-12 15:01:12 +02:00
parent 74a9fa546b
commit 6e446a23ad

View File

@ -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();
}