mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-31 07:17:46 +08:00
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:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user