Skip to content

Commit

Permalink
Change minimum half_edge count to 1
Browse files Browse the repository at this point in the history
Forgot about the fact that a single circle counts as a cycle
  • Loading branch information
A-Walrus committed Mar 16, 2023
1 parent 7eb19cd commit fc1f51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/validate/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ impl CycleValidationError {
config: &ValidationConfig,
errors: &mut Vec<ValidationError>,
) {
// If there are less than two half edges
if cycle.half_edges().nth(1).is_none() {
// If there are no half edges
if cycle.half_edges().next().is_none() {
errors.push(Self::NotEnoughHalfEdges.into());
return;
}
Expand Down

0 comments on commit fc1f51a

Please sign in to comment.