Fix validation check in Cycle

It didn't do the check, if the cycle had only one edge.
This commit is contained in:
Hanno Braun 2022-10-11 16:58:09 +02:00
parent 9279d78a4e
commit a1e235f028

View File

@ -53,6 +53,7 @@ impl Cycle {
"Edges in cycle do not connect" "Edges in cycle do not connect"
); );
} }
}
// Verify that the edges form a cycle // Verify that the edges form a cycle
if let Some(first) = half_edges.first() { if let Some(first) = half_edges.first() {
@ -67,7 +68,6 @@ impl Cycle {
); );
} }
} }
}
Self { Self {
surface, surface,