mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Coding - Reorganize code with constexpr #68
After rework Precision.hxx some local variables can be marked as constexpr
This commit is contained in:
@@ -482,7 +482,7 @@ Handle(Geom_Curve) GeomConvert_CurveToAnaCurve::ComputeEllipse(const Handle(Geom
|
||||
}
|
||||
|
||||
Handle(Geom_Curve) res;
|
||||
Standard_Real prec = Precision::PConfusion();
|
||||
constexpr Standard_Real prec = Precision::PConfusion();
|
||||
|
||||
Standard_Real AF,BF,CF,DF,EF,Q1,Q2,Q3,c2n;
|
||||
Standard_Integer i;
|
||||
|
@@ -249,7 +249,7 @@ Standard_Boolean GeomConvert_SurfToAnaSurf::GetCylByLS(const Handle(TColgp_HArra
|
||||
aLBnd(4) = aStartPoint(4) + aDR;
|
||||
|
||||
//
|
||||
Standard_Real aTol = Precision::Confusion();
|
||||
constexpr Standard_Real aTol = Precision::Confusion();
|
||||
math_MultipleVarFunction* aPFunc;
|
||||
GeomConvert_FuncCylinderLSDist aFuncCyl(thePoints, thePos.Direction());
|
||||
aPFunc = (math_MultipleVarFunction*)&aFuncCyl;
|
||||
@@ -767,7 +767,7 @@ Handle(Geom_Surface) GeomConvert_SurfToAnaSurf::ConvertToAnalytical(const Standa
|
||||
Standard_Real U1, U2, V1, V2;
|
||||
mySurf->Bounds(U1, U2, V1, V2);
|
||||
Standard_Boolean aDoSegment = Standard_False;
|
||||
Standard_Real aTolBnd = Precision::PConfusion();
|
||||
constexpr Standard_Real aTolBnd = Precision::PConfusion();
|
||||
Standard_Integer isurf = 0;
|
||||
if (Umin < U1 || Umax > U2 || Vmin < V1 || Vmax > V2)
|
||||
{
|
||||
|
Reference in New Issue
Block a user