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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user