Skip to content

Commit

Permalink
Tune TBB conditionals in the preprocessing edge collapsing algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
nmnobre committed Jul 5, 2023
1 parent 1f81d74 commit aed140d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Simplification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ void floatTetWild::collapsing(std::vector<Vector3>& input_vertices, std::vector<
}

//real update
#ifndef FLOAT_TETWILD_USE_TBB
// std::unordered_set<int> n_v_ids;//get this info before real update for later usage
std::vector<int> n_v_ids;//get this info before real update for later usage
for (int f_id:new_f_ids) {
Expand All @@ -372,6 +373,7 @@ void floatTetWild::collapsing(std::vector<Vector3>& input_vertices, std::vector<
}
}
vector_unique(n_v_ids);
#endif

v_is_removed[v1_id] = true;
input_vertices[v2_id] = p;
Expand Down

0 comments on commit aed140d

Please sign in to comment.