mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-30 06:57:48 +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:
@@ -222,7 +222,7 @@ BRepProj_Projection::BRepProj_Projection(const TopoDS_Shape& Wire,
|
||||
|
||||
// compute the ratio of the scale transformation
|
||||
Standard_Real Scale = PC.Distance(P);
|
||||
if (Abs(Scale) < Precision::Confusion())
|
||||
if (std::abs(Scale) < Precision::Confusion())
|
||||
throw Standard_ConstructionError("Projection");
|
||||
Scale = 1. + mdis / Scale;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user