Skip to content

Commit

Permalink
insert adjacencies in the correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Aug 31, 2023
1 parent 7155e57 commit 01d43db
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 01d43db

Please sign in to comment.