Part: Fix compiler warnings [-Wodr]

Type 'struct EdgePoints' violates the C++ One Definition Rule because it's defined in two different translation units
This commit is contained in:
wmayer
2024-12-12 15:58:57 +01:00
committed by Chris Hennes
parent 6780d8a514
commit 7c3164ff61
2 changed files with 10 additions and 0 deletions

View File

@@ -152,12 +152,17 @@ PartExport std::vector<TopoShape> getPyShapes(PyObject *obj) {
return ret;
}
namespace
{
struct EdgePoints {
gp_Pnt v1, v2;
std::list<TopoDS_Edge>::iterator it;
TopoDS_Edge edge;
};
}
PartExport std::list<TopoDS_Edge> sort_Edges(double tol3d, std::list<TopoDS_Edge>& edges)
{
tol3d = tol3d * tol3d;

View File

@@ -3119,6 +3119,9 @@ TopoShape& TopoShape::makeElementWires(const std::vector<TopoShape>& shapes,
return makeElementCompound(wires, nullptr, SingleShapeCompoundCreationPolicy::returnShape);
}
namespace
{
struct EdgePoints
{
@@ -3145,6 +3148,8 @@ struct EdgePoints
}
};
}
TopoShape TopoShape::reverseEdge(const TopoShape& edge)
{
Standard_Real first = NAN;