Coding - Rework of Math global functions to stl (#833)

Majority of functions now simply call same functions from std namespace.
Functions that duplicate std namespace functionality are declared
deprecated.
Calls of deprecated functions are replaced with std functions calls.
This commit is contained in:
Dmitrii Kulikov
2025-11-17 14:20:24 +00:00
committed by GitHub
parent 1a246afa2e
commit c479f6e000
1205 changed files with 12672 additions and 11286 deletions
+3 -3
View File
@@ -1704,7 +1704,7 @@ Standard_Real BRep_Tool::MaxTolerance(const TopoDS_Shape& theShape,
for (; anExpSS.More(); anExpSS.Next())
{
const TopoDS_Shape& aCurrentSubShape = anExpSS.Current();
aTol = Max(aTol, Tolerance(TopoDS::Face(aCurrentSubShape)));
aTol = std::max(aTol, Tolerance(TopoDS::Face(aCurrentSubShape)));
}
}
else if (theSubShape == TopAbs_EDGE)
@@ -1712,7 +1712,7 @@ Standard_Real BRep_Tool::MaxTolerance(const TopoDS_Shape& theShape,
for (; anExpSS.More(); anExpSS.Next())
{
const TopoDS_Shape& aCurrentSubShape = anExpSS.Current();
aTol = Max(aTol, Tolerance(TopoDS::Edge(aCurrentSubShape)));
aTol = std::max(aTol, Tolerance(TopoDS::Edge(aCurrentSubShape)));
}
}
else if (theSubShape == TopAbs_VERTEX)
@@ -1720,7 +1720,7 @@ Standard_Real BRep_Tool::MaxTolerance(const TopoDS_Shape& theShape,
for (; anExpSS.More(); anExpSS.Next())
{
const TopoDS_Shape& aCurrentSubShape = anExpSS.Current();
aTol = Max(aTol, Tolerance(TopoDS::Vertex(aCurrentSubShape)));
aTol = std::max(aTol, Tolerance(TopoDS::Vertex(aCurrentSubShape)));
}
}