Skip to content

Commit

Permalink
in find_local_switch_sequence_trimesh if source==target then return a…
Browse files Browse the repository at this point in the history
… empty sequence
  • Loading branch information
zlyfunction committed Oct 19, 2023
1 parent 975c6f4 commit 4da0b70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wmtk/multimesh/utils/find_local_switch_sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ std::vector<PrimitiveType> find_local_switch_sequence_trimesh(
const Tuple& target)
{
// TODO: assert that base_source and base_target use the same global CID
if (source == target) {
return std::vector<PrimitiveType>{};
}

// circulate
Tuple cur_tuple = source;
Expand Down

0 comments on commit 4da0b70

Please sign in to comment.