rename addEdge overload to registerEdgeCount

So it won't be confused with addEdge that actually does add an edge to edges_.
This commit is contained in:
Andrej730
2024-09-25 15:12:56 +05:00
parent 6ac40b4ab3
commit aad66f94a3
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ int IfcGeom::Representation::Triangulation::addVertex(int item_id, int material_
return i;
}
void IfcGeom::Representation::Triangulation::addEdge(int n1, int n2, std::map<std::pair<int, int>, int>& edgecount) {
void IfcGeom::Representation::Triangulation::registerEdgeCount(int n1, int n2, std::map<std::pair<int, int>, int>& edgecount) {
const Edge e = Edge((std::min)(n1, n2), (std::max)(n1, n2));
edgecount[e] ++;
}
+1 -1
View File
@@ -216,7 +216,7 @@ namespace IfcGeom {
edges_.push_back(i1);
}
void addEdge(int n1, int n2, std::map<std::pair<int, int>, int>& edgecount);
void registerEdgeCount(int n1, int n2, std::map<std::pair<int, int>, int>& edgecount);
void resetWelds() {
weld_offset_ += welds.size();
@@ -293,9 +293,9 @@ void ifcopenshell::geometry::OpenCascadeShape::Triangulate(ifcopenshell::geometr
} else {
t->addFace(item_id, surface_style_id, dict[n1], dict[n2], dict[n3]);
t->addEdge(dict[n1], dict[n2], edgecount);
t->addEdge(dict[n2], dict[n3], edgecount);
t->addEdge(dict[n3], dict[n1], edgecount);
t->registerEdgeCount(dict[n1], dict[n2], edgecount);
t->registerEdgeCount(dict[n2], dict[n3], edgecount);
t->registerEdgeCount(dict[n3], dict[n1], edgecount);
}
}
}