-
-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Labels
Description
parry/src/query/split/split_trimesh.rs
Lines 584 to 598 in b72ccd4
| 'traversal: while let Some(current) = next { | |
| seen[*current] = true; | |
| polyline_indices.push([prev as u32, *current as u32]); | |
| for neighbor in index_adjacencies[*current].iter() { | |
| if *neighbor != prev && *neighbor != first { | |
| prev = *current; | |
| next = Some(neighbor); | |
| continue 'traversal; | |
| } else if *neighbor != prev && *neighbor == first { | |
| // If the next index is same as the first, close the polyline and exit | |
| polyline_indices.push([*current as u32, first as u32]); | |
| next = None; | |
| continue 'traversal; | |
| } |
when none of condition it will hang infinitely