From aad66f94a30775d22a60f7b4012a46c52c752427 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 25 Sep 2024 15:12:56 +0500 Subject: [PATCH] rename addEdge overload to registerEdgeCount So it won't be confused with addEdge that actually does add an edge to edges_. --- src/ifcgeom/IfcGeomRepresentation.cpp | 2 +- src/ifcgeom/IfcGeomRepresentation.h | 2 +- .../kernels/opencascade/OpenCascadeConversionResult.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ifcgeom/IfcGeomRepresentation.cpp b/src/ifcgeom/IfcGeomRepresentation.cpp index c1457a8119..1da38a69de 100644 --- a/src/ifcgeom/IfcGeomRepresentation.cpp +++ b/src/ifcgeom/IfcGeomRepresentation.cpp @@ -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, int>& edgecount) { +void IfcGeom::Representation::Triangulation::registerEdgeCount(int n1, int n2, std::map, int>& edgecount) { const Edge e = Edge((std::min)(n1, n2), (std::max)(n1, n2)); edgecount[e] ++; } diff --git a/src/ifcgeom/IfcGeomRepresentation.h b/src/ifcgeom/IfcGeomRepresentation.h index 8d137d8eb1..a58bca380c 100644 --- a/src/ifcgeom/IfcGeomRepresentation.h +++ b/src/ifcgeom/IfcGeomRepresentation.h @@ -216,7 +216,7 @@ namespace IfcGeom { edges_.push_back(i1); } - void addEdge(int n1, int n2, std::map, int>& edgecount); + void registerEdgeCount(int n1, int n2, std::map, int>& edgecount); void resetWelds() { weld_offset_ += welds.size(); diff --git a/src/ifcgeom/kernels/opencascade/OpenCascadeConversionResult.cpp b/src/ifcgeom/kernels/opencascade/OpenCascadeConversionResult.cpp index e15d28dc70..a3f2ae7609 100644 --- a/src/ifcgeom/kernels/opencascade/OpenCascadeConversionResult.cpp +++ b/src/ifcgeom/kernels/opencascade/OpenCascadeConversionResult.cpp @@ -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); } } }