diff --git a/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.cpp b/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.cpp index 5e5b64b233..c85c826aab 100644 --- a/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.cpp +++ b/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.cpp @@ -476,7 +476,7 @@ IfcGeom::Representation::Triangulation::Triangulation(const BRep& shape_model) /// Generates UVs for a single mesh using box projection. /// @todo Very simple impl. Assumes that input vertices and normals match 1:1. -inline std::vector IfcGeom::Representation::Triangulation::box_project_uvs(const std::vector& vertices, const std::vector& normals) +std::vector IfcGeom::Representation::Triangulation::box_project_uvs(const std::vector& vertices, const std::vector& normals) { std::vector uvs; uvs.resize(vertices.size() / 3 * 2); @@ -504,9 +504,7 @@ inline std::vector IfcGeom::Representation::Triangulation::box_project_u return uvs; } -// Welds vertices that belong to different faces - -inline int IfcGeom::Representation::Triangulation::addVertex(int material_index, const gp_XYZ & p) { +int IfcGeom::Representation::Triangulation::addVertex(int material_index, const gp_XYZ & p) { const bool convert = settings().get(IteratorSettings::CONVERT_BACK_UNITS); const double X = convert ? (p.X() / settings().unit_magnitude()) : p.X(); const double Y = convert ? (p.Y() / settings().unit_magnitude()) : p.Y(); @@ -525,7 +523,7 @@ inline int IfcGeom::Representation::Triangulation::addVertex(int material_index, return i; } -inline void IfcGeom::Representation::Triangulation::addEdge(int n1, int n2, std::map, int>& edgecount, std::vector>& edges_temp) { +void IfcGeom::Representation::Triangulation::addEdge(int n1, int n2, std::map, int>& edgecount, std::vector>& edges_temp) { const Edge e = Edge((std::min)(n1, n2), (std::max)(n1, n2)); if (edgecount.find(e) == edgecount.end()) edgecount[e] = 1; else edgecount[e] ++; diff --git a/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.h b/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.h index 4da99272fb..ecb71f374c 100644 --- a/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.h +++ b/src/ifcgeom_schema_agnostic/IfcGeomRepresentation.h @@ -172,9 +172,9 @@ namespace IfcGeom { static std::vector box_project_uvs(const std::vector &vertices, const std::vector &normals); private: - // Welds vertices that belong to different faces + /// Welds vertices that belong to different faces int addVertex(int material_index, const gp_XYZ& p); - inline void addEdge(int n1, int n2, std::map, int>& edgecount, std::vector >& edges_temp); + void addEdge(int n1, int n2, std::map, int>& edgecount, std::vector >& edges_temp); Triangulation(); Triangulation(const Triangulation&);