mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
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:
@@ -407,7 +407,7 @@ int IfcGeom::Representation::Triangulation::addVertex(int item_id, int material_
|
|||||||
return i;
|
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));
|
const Edge e = Edge((std::min)(n1, n2), (std::max)(n1, n2));
|
||||||
edgecount[e] ++;
|
edgecount[e] ++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ namespace IfcGeom {
|
|||||||
edges_.push_back(i1);
|
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() {
|
void resetWelds() {
|
||||||
weld_offset_ += welds.size();
|
weld_offset_ += welds.size();
|
||||||
|
|||||||
@@ -293,9 +293,9 @@ void ifcopenshell::geometry::OpenCascadeShape::Triangulate(ifcopenshell::geometr
|
|||||||
} else {
|
} else {
|
||||||
t->addFace(item_id, surface_style_id, dict[n1], dict[n2], dict[n3]);
|
t->addFace(item_id, surface_style_id, dict[n1], dict[n2], dict[n3]);
|
||||||
|
|
||||||
t->addEdge(dict[n1], dict[n2], edgecount);
|
t->registerEdgeCount(dict[n1], dict[n2], edgecount);
|
||||||
t->addEdge(dict[n2], dict[n3], edgecount);
|
t->registerEdgeCount(dict[n2], dict[n3], edgecount);
|
||||||
t->addEdge(dict[n3], dict[n1], edgecount);
|
t->registerEdgeCount(dict[n3], dict[n1], edgecount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user