Skip to content

Commit

Permalink
Merge pull request #161 from mockersf/panic-trimesh-intersection-plane
Browse files Browse the repository at this point in the history
intersection_with_plane: insert adjacencies in the correct order
  • Loading branch information
sebcrozet authored Oct 1, 2023
2 parents aefe2a6 + 01d43db commit 01f6983
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/query/split/split_trimesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,13 @@ impl TriMesh {
}
};
let mut add_segment_adjacencies_symmetric = |idx_a: usize, idx_b| {
add_segment_adjacencies(idx_a, idx_b);
add_segment_adjacencies(idx_b, idx_a);
if idx_a < idx_b {
add_segment_adjacencies(idx_a, idx_b);
add_segment_adjacencies(idx_b, idx_a);
} else {
add_segment_adjacencies(idx_b, idx_a);
add_segment_adjacencies(idx_a, idx_b);
}
};

let mut intersections_found = HashMap::default();
Expand Down

0 comments on commit 01f6983

Please sign in to comment.