Skip to content

Commit

Permalink
chore: don’t panic in EPA
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Jun 23, 2024
1 parent 96f680f commit 42ad7c6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/query/epa/epa3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,16 @@ impl Face {

pub fn next_ccw_pt_id(&self, id: usize) -> usize {
if self.pts[0] == id {
1
Some(1)
} else if self.pts[1] == id {
2
Some(2)
} else {
assert_eq!(self.pts[2], id);
0
log::debug!(
"Hit unexpected state in EPA: found index {}, expected: {}.",
self.pts[2],
id
);
Some(0)
}
}

Expand Down

0 comments on commit 42ad7c6

Please sign in to comment.