mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 05:08:13 +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:
@@ -1787,7 +1787,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferSubShape(
|
||||
STEPConstruct_Assembly mkitem;
|
||||
|
||||
// make location for assembly placement
|
||||
if (Abs(aLoc.ScaleFactor() - 1.0) > Precision::Confusion())
|
||||
if (std::abs(aLoc.ScaleFactor() - 1.0) > Precision::Confusion())
|
||||
{
|
||||
if (aStepModel->InternalParameters.WriteScalingTrsf)
|
||||
FP->AddWarning(
|
||||
@@ -1796,7 +1796,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferSubShape(
|
||||
else
|
||||
FP->AddWarning(start, "The shape has a scaling factor, skipped");
|
||||
}
|
||||
if (Abs(aLoc.ScaleFactor() - 1.0) < Precision::Confusion()
|
||||
if (std::abs(aLoc.ScaleFactor() - 1.0) < Precision::Confusion()
|
||||
|| !aStepModel->InternalParameters.WriteScalingTrsf)
|
||||
{
|
||||
// create a new axis2placement3d
|
||||
|
||||
Reference in New Issue
Block a user