We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fb2b57 commit 9988e3bCopy full SHA for 9988e3b
include/kigumi/Triangle_mesh.h
@@ -105,12 +105,14 @@ class Triangle_mesh {
105
void finalize() {
106
std::vector<std::pair<Vertex_index, Face_index>> map;
107
map.reserve(3 * faces_.size());
108
- Face_index fi{0};
109
- for (const auto& face : faces_) {
110
- map.emplace_back(face[0], fi);
111
- map.emplace_back(face[1], fi);
112
- map.emplace_back(face[2], fi);
113
- ++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);
114
+ ++fi;
115
+ }
116
}
117
118
parallel_sort(map.begin(), map.end());
0 commit comments