parry
parry copied to clipboard
infinite loop in intersection_with_local_plane in some cases
I have infinite loop in intersection_with_local_plane in some cases in this block: https://github.com/dimforge/parry/blob/3a41ac21c5ded2337937cc450d2cbf64a31c9d38/src/query/split/split_trimesh.rs#L584-L600 I think the cheking "if !seen" should be repeated inside the loop:
...
'traversal: while let Some(current) = next {
if seen[*current] {
break;
}
seen[*current] = true;
polyline_indices.push([prev as u32, *current as u32]);
for neighbor in &index_adjacencies[*current] {
...