Skip to content

Commit

Permalink
Fix build failure with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
unageek committed Sep 11, 2024
1 parent 7fb2b57 commit 9988e3b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions include/kigumi/Triangle_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ class Triangle_mesh {
void finalize() {
std::vector<std::pair<Vertex_index, Face_index>> map;
map.reserve(3 * faces_.size());
Face_index fi{0};
for (const auto& face : faces_) {
map.emplace_back(face[0], fi);
map.emplace_back(face[1], fi);
map.emplace_back(face[2], fi);
++fi;
{
Face_index fi{0};
for (const auto& face : faces_) {
map.emplace_back(face[0], fi);
map.emplace_back(face[1], fi);
map.emplace_back(face[2], fi);
++fi;
}
}

parallel_sort(map.begin(), map.end());
Expand Down

0 comments on commit 9988e3b

Please sign in to comment.