mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-20 14:19:53 +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:
@@ -175,7 +175,7 @@ Standard_Integer BRepMesh_BaseMeshAlgo::addLinkToMesh(const Standard_Integer t
|
||||
aLinkIndex =
|
||||
myStructure->AddLink(BRepMesh_Edge(theFirstNodeId, theLastNodeId, BRepMesh_Frontier));
|
||||
|
||||
return Abs(aLinkIndex);
|
||||
return std::abs(aLinkIndex);
|
||||
}
|
||||
|
||||
//=================================================================================================
|
||||
@@ -197,9 +197,9 @@ TopAbs_Orientation BRepMesh_BaseMeshAlgo::fixSeamEdgeOrientation(
|
||||
const gp_Pnt2d& aPnt2_2 = aPCurve->GetPoint(aPCurve->ParametersNb() - 1);
|
||||
|
||||
const Standard_Real aSqDist1 =
|
||||
Min(aPnt1_1.SquareDistance(aPnt1_2), aPnt1_1.SquareDistance(aPnt2_2));
|
||||
std::min(aPnt1_1.SquareDistance(aPnt1_2), aPnt1_1.SquareDistance(aPnt2_2));
|
||||
const Standard_Real aSqDist2 =
|
||||
Min(aPnt2_1.SquareDistance(aPnt1_2), aPnt2_1.SquareDistance(aPnt2_2));
|
||||
std::min(aPnt2_1.SquareDistance(aPnt1_2), aPnt2_1.SquareDistance(aPnt2_2));
|
||||
if (aSqDist1 < Precision::SquareConfusion() && aSqDist2 < Precision::SquareConfusion())
|
||||
{
|
||||
return TopAbs_INTERNAL;
|
||||
|
||||
Reference in New Issue
Block a user