mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0031035: Coding - uninitialized class fields reported by Visual Studio Code Analysis
Added initialization of fields that had not initialization Added default constructors to classes without constructors
This commit is contained in:
@@ -55,7 +55,8 @@
|
||||
Extrema_ExtCC::Extrema_ExtCC (const Standard_Real TolC1,
|
||||
const Standard_Real TolC2)
|
||||
: myIsFindSingleSolution(Standard_False),
|
||||
myDone (Standard_False)
|
||||
myDone (Standard_False),
|
||||
myIsPar(Standard_False)
|
||||
{
|
||||
myC[0] = 0; myC[1] = 0;
|
||||
myInf[0] = myInf[1] = -Precision::Infinite();
|
||||
|
@@ -38,7 +38,19 @@
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
Extrema_ExtCC2d::Extrema_ExtCC2d()
|
||||
: myIsFindSingleSolution(Standard_False)
|
||||
: myIsFindSingleSolution(Standard_False),
|
||||
myDone(Standard_False),
|
||||
myIsPar(Standard_False),
|
||||
mynbext(0),
|
||||
inverse(Standard_False),
|
||||
myv1(0.0),
|
||||
myv2(0.0),
|
||||
mytolc1(0.0),
|
||||
mytolc2(0.0),
|
||||
mydist11(0.0),
|
||||
mydist12(0.0),
|
||||
mydist21(0.0),
|
||||
mydist22(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -41,9 +41,20 @@
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <Extrema_ExtPS.hxx>
|
||||
|
||||
Extrema_ExtCS::Extrema_ExtCS()
|
||||
Extrema_ExtCS::Extrema_ExtCS()
|
||||
: myS(NULL),
|
||||
myDone(Standard_False),
|
||||
myIsPar(Standard_False),
|
||||
myuinf(0.0),
|
||||
myusup(0.0),
|
||||
myvinf(0.0),
|
||||
myvsup(0.0),
|
||||
mytolC(0.0),
|
||||
mytolS(0.0),
|
||||
myucinf(0.0),
|
||||
myucsup(0.0),
|
||||
myStype(GeomAbs_OtherSurface)
|
||||
{
|
||||
myDone = Standard_False;
|
||||
}
|
||||
|
||||
Extrema_ExtCS::Extrema_ExtCS(const Adaptor3d_Curve& C,
|
||||
|
@@ -119,6 +119,8 @@ ExtremaExtElC_TrigonometricRoots::
|
||||
const Standard_Real Cte,
|
||||
const Standard_Real Binf,
|
||||
const Standard_Real Bsup)
|
||||
: NbRoots(0),
|
||||
infinite_roots(Standard_False)
|
||||
{
|
||||
Standard_Integer i, nbessai;
|
||||
Standard_Real cc ,sc, c, s, cte;
|
||||
@@ -232,10 +234,9 @@ Extrema_ExtElC::Extrema_ExtElC ()
|
||||
myDone = Standard_False;
|
||||
myIsPar = Standard_False;
|
||||
myNbExt = 0;
|
||||
|
||||
for (Standard_Integer i = 0; i < 6; i++)
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[i] = RealLast();
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
@@ -294,6 +295,10 @@ Extrema_ExtElC::Extrema_ExtElC (const gp_Lin& theC1,
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
myIsPar = Standard_False;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
const gp_Dir &aD1 = theC1.Position().Direction(),
|
||||
&aD2 = theC2.Position().Direction();
|
||||
@@ -460,6 +465,10 @@ Extrema_ExtElC::Extrema_ExtElC (const gp_Lin& C1,
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
if (PlanarLineCircleExtrema(C1, C2))
|
||||
{
|
||||
@@ -631,6 +640,10 @@ Method:
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 the reference of the ellipse ...
|
||||
gp_Dir D = C1.Direction();
|
||||
@@ -744,6 +757,10 @@ Method:
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the hyperbola...
|
||||
gp_Dir D = C1.Direction();
|
||||
@@ -839,6 +856,10 @@ Method:
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the parabola...
|
||||
gp_Dir D = C1.Direction();
|
||||
@@ -900,6 +921,10 @@ Extrema_ExtElC::Extrema_ExtElC (const gp_Circ& C1,
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
//
|
||||
aTolA=Precision::Angular();
|
||||
aTolD=Precision::Confusion();
|
||||
|
@@ -39,10 +39,9 @@ Extrema_ExtElC2d::Extrema_ExtElC2d()
|
||||
myDone = Standard_False;
|
||||
myIsPar = Standard_False;
|
||||
myNbExt = 0;
|
||||
|
||||
for (Standard_Integer i = 0; i < 8; i++)
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[i] = RealLast();
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +69,10 @@ Method:
|
||||
myDone = Standard_False;
|
||||
myIsPar = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
gp_Vec2d D1(C1.Direction());
|
||||
gp_Vec2d D2(C2.Direction());
|
||||
@@ -125,6 +128,10 @@ Method:
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the circle ...
|
||||
gp_Dir2d D = C1.Direction();
|
||||
@@ -172,6 +179,10 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Lin2d& C1,
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the ellipse ...
|
||||
gp_Dir2d D = C1.Direction();
|
||||
@@ -219,6 +230,10 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Lin2d& C1, const gp_Hypr2d& C2)
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the parabole ...
|
||||
gp_Dir2d D = C1.Direction();
|
||||
@@ -255,6 +270,10 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Lin2d& C1, const gp_Parab2d& C2)
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the parabole ...
|
||||
gp_Dir2d D = C1.Direction();
|
||||
@@ -289,6 +308,10 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Circ2d& C1, const gp_Circ2d& C2)
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
myDone = Standard_True;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
gp_Pnt2d O1 = C1.Location();
|
||||
gp_Pnt2d O2 = C2.Location();
|
||||
@@ -339,6 +362,10 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Circ2d& C1, const gp_Elips2d& C2)
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
Standard_Integer i, j;
|
||||
|
||||
@@ -368,6 +395,10 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Circ2d& C1, const gp_Hypr2d& C2)
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
Standard_Integer i, j;
|
||||
|
||||
@@ -397,6 +428,10 @@ Extrema_ExtElC2d::Extrema_ExtElC2d (const gp_Circ2d& C1, const gp_Parab2d& C2)
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
Standard_Integer i, j;
|
||||
|
||||
|
@@ -155,6 +155,10 @@ Extrema_ExtPExtS::Extrema_ExtPExtS()
|
||||
myDone(Standard_False),
|
||||
myNbExt(0)
|
||||
{
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
@@ -178,6 +182,10 @@ Extrema_ExtPExtS::Extrema_ExtPExtS (const gp_Pnt&
|
||||
myDone(Standard_False),
|
||||
myNbExt(0)
|
||||
{
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
Initialize (theS,
|
||||
theUmin,
|
||||
theUsup,
|
||||
@@ -205,6 +213,10 @@ Extrema_ExtPExtS::Extrema_ExtPExtS (const gp_Pnt&
|
||||
myDone(Standard_False),
|
||||
myNbExt(0)
|
||||
{
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
Initialize (theS,
|
||||
theS->FirstUParameter(),
|
||||
theS->LastUParameter(),
|
||||
|
@@ -143,8 +143,20 @@ void Extrema_ExtPS::TreatSolution (const Extrema_POnSurf& PS,
|
||||
//=======================================================================
|
||||
|
||||
Extrema_ExtPS::Extrema_ExtPS()
|
||||
: myS(NULL),
|
||||
myDone(Standard_False),
|
||||
myuinf(0.0),
|
||||
myusup(0.0),
|
||||
myvinf(0.0),
|
||||
myvsup(0.0),
|
||||
mytolu(0.0),
|
||||
mytolv(0.0),
|
||||
d11(0.0),
|
||||
d12(0.0),
|
||||
d21(0.0),
|
||||
d22(0.0),
|
||||
mytype(GeomAbs_OtherSurface)
|
||||
{
|
||||
myDone = Standard_False;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -27,9 +27,22 @@
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
Extrema_ExtSS::Extrema_ExtSS()
|
||||
Extrema_ExtSS::Extrema_ExtSS()
|
||||
: myS2(NULL),
|
||||
myDone(Standard_False),
|
||||
myIsPar(Standard_False),
|
||||
myuinf1(0.0),
|
||||
myusup1(0.0),
|
||||
myvinf1(0.0),
|
||||
myvsup1(0.0),
|
||||
myuinf2(0.0),
|
||||
myusup2(0.0),
|
||||
myvinf2(0.0),
|
||||
myvsup2(0.0),
|
||||
mytolS1(0.0),
|
||||
mytolS2(0.0),
|
||||
myStype(GeomAbs_OtherSurface)
|
||||
{
|
||||
myDone = Standard_False;
|
||||
}
|
||||
|
||||
Extrema_ExtSS::Extrema_ExtSS(const Adaptor3d_Surface& S1,
|
||||
|
@@ -51,6 +51,11 @@ les algorithmes math_FunctionRoot et math_FunctionRoots.
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_FuncExtCS::Extrema_FuncExtCS()
|
||||
: myC(NULL),
|
||||
myS(NULL),
|
||||
myt(0.0),
|
||||
myU(0.0),
|
||||
myV(0.0)
|
||||
{
|
||||
myCinit = Standard_False;
|
||||
mySinit = Standard_False;
|
||||
|
@@ -56,6 +56,12 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_FuncExtSS::Extrema_FuncExtSS ()
|
||||
: myS1(NULL),
|
||||
myS2(NULL),
|
||||
myU1(0.0),
|
||||
myV1(0.0),
|
||||
myU2(0.0),
|
||||
myV2(0.0)
|
||||
{
|
||||
myS1init = Standard_False;
|
||||
myS2init = Standard_False;
|
||||
@@ -68,6 +74,10 @@ Extrema_FuncExtSS::Extrema_FuncExtSS ()
|
||||
|
||||
Extrema_FuncExtSS::Extrema_FuncExtSS (const Adaptor3d_Surface& S1,
|
||||
const Adaptor3d_Surface& S2)
|
||||
: myU1(0.0),
|
||||
myV1(0.0),
|
||||
myU2(0.0),
|
||||
myV2(0.0)
|
||||
{
|
||||
myS1 = (Adaptor3d_SurfacePtr)&S1;
|
||||
myS2 = (Adaptor3d_SurfacePtr)&S2;
|
||||
|
@@ -26,6 +26,9 @@
|
||||
#include <Standard_TypeMismatch.hxx>
|
||||
|
||||
Extrema_FuncPSNorm::Extrema_FuncPSNorm ()
|
||||
: myS(NULL),
|
||||
myU(0.0),
|
||||
myV(0.0)
|
||||
{
|
||||
myPinit = Standard_False;
|
||||
mySinit = Standard_False;
|
||||
@@ -34,6 +37,8 @@ Extrema_FuncPSNorm::Extrema_FuncPSNorm ()
|
||||
//=============================================================================
|
||||
Extrema_FuncPSNorm::Extrema_FuncPSNorm (const gp_Pnt& P,
|
||||
const Adaptor3d_Surface& S)
|
||||
: myU(0.0),
|
||||
myV(0.0)
|
||||
{
|
||||
myP = P;
|
||||
myS = (Adaptor3d_SurfacePtr)&S;
|
||||
|
@@ -36,7 +36,18 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Extrema_GLocateExtPC::Extrema_GLocateExtPC() { }
|
||||
Extrema_GLocateExtPC::Extrema_GLocateExtPC()
|
||||
: myC(NULL),
|
||||
mydist2(0.0),
|
||||
myismin(Standard_False),
|
||||
myDone(Standard_False),
|
||||
myumin(0.0),
|
||||
myusup(0.0),
|
||||
mytol(0.0),
|
||||
type(GeomAbs_OtherCurve),
|
||||
numberext(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -107,9 +107,20 @@ static void GetSurfMaxParamVals (const Adaptor3d_Surface& theS,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_GenExtCS::Extrema_GenExtCS()
|
||||
: myDone(Standard_False),
|
||||
mytmin(0.0),
|
||||
mytsup(0.0),
|
||||
myumin(0.0),
|
||||
myusup(0.0),
|
||||
myvmin(0.0),
|
||||
myvsup(0.0),
|
||||
mytsample(0),
|
||||
myusample(0),
|
||||
myvsample(0),
|
||||
mytol1(0.0),
|
||||
mytol2(0.0),
|
||||
myS(NULL)
|
||||
{
|
||||
myDone = Standard_False;
|
||||
myInit = Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -133,7 +133,6 @@ private:
|
||||
|
||||
|
||||
Standard_Boolean myDone;
|
||||
Standard_Boolean myInit;
|
||||
Standard_Real mytmin;
|
||||
Standard_Real mytsup;
|
||||
Standard_Real myumin;
|
||||
|
@@ -26,9 +26,15 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Extrema_GenExtPC::Extrema_GenExtPC () {
|
||||
myDone = Standard_False;
|
||||
myInit = Standard_False;
|
||||
Extrema_GenExtPC::Extrema_GenExtPC ()
|
||||
: myDone(Standard_False),
|
||||
myInit(Standard_False),
|
||||
mynbsample(0),
|
||||
myumin(0.0),
|
||||
myusup(0.0),
|
||||
mytolu(0.0),
|
||||
mytolF(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
@@ -217,7 +217,16 @@ Processing:
|
||||
- update table TbSel.
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
Extrema_GenExtPS::Extrema_GenExtPS()
|
||||
Extrema_GenExtPS::Extrema_GenExtPS()
|
||||
: myumin(0.0),
|
||||
myusup(0.0),
|
||||
myvmin(0.0),
|
||||
myvsup(0.0),
|
||||
myusample(0),
|
||||
myvsample(0),
|
||||
mytolu(0.0),
|
||||
mytolv(0.0),
|
||||
myS(NULL)
|
||||
{
|
||||
myDone = Standard_False;
|
||||
myInit = Standard_False;
|
||||
|
@@ -101,6 +101,19 @@ private:
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_GenExtSS::Extrema_GenExtSS()
|
||||
: myu1min(0.0),
|
||||
myu1sup(0.0),
|
||||
myv1min(0.0),
|
||||
myv1sup(0.0),
|
||||
myu2min(0.0),
|
||||
myu2sup(0.0),
|
||||
myv2min(0.0),
|
||||
myv2sup(0.0),
|
||||
myusample(0),
|
||||
myvsample(0),
|
||||
mytol1(0.0),
|
||||
mytol2(0.0),
|
||||
myS2(NULL)
|
||||
{
|
||||
myDone = Standard_False;
|
||||
myInit = Standard_False;
|
||||
|
@@ -46,6 +46,7 @@ Methode:
|
||||
-----------------------------------------------------------------------------*/
|
||||
{
|
||||
myDone = Standard_False;
|
||||
mySqDist = RealLast();
|
||||
|
||||
Standard_Real Uinf = Tool1::FirstParameter(C1);
|
||||
Standard_Real Usup = Tool1::LastParameter(C1);
|
||||
|
@@ -32,6 +32,8 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_GenLocateExtCS::Extrema_GenLocateExtCS()
|
||||
: myDone(Standard_False),
|
||||
mySqDist(RealLast())
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -23,9 +23,12 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Extrema_GenLocateExtPC::Extrema_GenLocateExtPC()
|
||||
{
|
||||
myDone = Standard_False;
|
||||
Extrema_GenLocateExtPC::Extrema_GenLocateExtPC()
|
||||
: myDone(Standard_False),
|
||||
mytolU(0.0),
|
||||
myumin(0.0),
|
||||
myusup(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
@@ -30,6 +30,8 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Extrema_GenLocateExtSS::Extrema_GenLocateExtSS()
|
||||
: myDone(Standard_False),
|
||||
mySqDist(RealLast())
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -218,7 +218,9 @@ static Standard_Boolean _Hessian (const Adaptor2d_Curve2d& C1,
|
||||
Extrema_GlobOptFuncCCC0::Extrema_GlobOptFuncCCC0(const Adaptor3d_Curve& C1,
|
||||
const Adaptor3d_Curve& C2)
|
||||
: myC1_3d(&C1),
|
||||
myC2_3d(&C2)
|
||||
myC2_3d(&C2),
|
||||
myC1_2d(NULL),
|
||||
myC2_2d(NULL)
|
||||
{
|
||||
myType = 1;
|
||||
}
|
||||
@@ -229,7 +231,9 @@ Extrema_GlobOptFuncCCC0::Extrema_GlobOptFuncCCC0(const Adaptor3d_Curve& C1,
|
||||
//=======================================================================
|
||||
Extrema_GlobOptFuncCCC0::Extrema_GlobOptFuncCCC0(const Adaptor2d_Curve2d& C1,
|
||||
const Adaptor2d_Curve2d& C2)
|
||||
: myC1_2d(&C1),
|
||||
: myC1_3d(NULL),
|
||||
myC2_3d(NULL),
|
||||
myC1_2d(&C1),
|
||||
myC2_2d(&C2)
|
||||
{
|
||||
myType = 2;
|
||||
@@ -266,7 +270,9 @@ Standard_Boolean Extrema_GlobOptFuncCCC0::Value(const math_Vector& X,Standard_Re
|
||||
Extrema_GlobOptFuncCCC1::Extrema_GlobOptFuncCCC1(const Adaptor3d_Curve& C1,
|
||||
const Adaptor3d_Curve& C2)
|
||||
: myC1_3d(&C1),
|
||||
myC2_3d(&C2)
|
||||
myC2_3d(&C2),
|
||||
myC1_2d(NULL),
|
||||
myC2_2d(NULL)
|
||||
{
|
||||
myType = 1;
|
||||
}
|
||||
@@ -277,7 +283,9 @@ Extrema_GlobOptFuncCCC1::Extrema_GlobOptFuncCCC1(const Adaptor3d_Curve& C1,
|
||||
//=======================================================================
|
||||
Extrema_GlobOptFuncCCC1::Extrema_GlobOptFuncCCC1(const Adaptor2d_Curve2d& C1,
|
||||
const Adaptor2d_Curve2d& C2)
|
||||
: myC1_2d(&C1),
|
||||
: myC1_3d(NULL),
|
||||
myC2_3d(NULL),
|
||||
myC1_2d(&C1),
|
||||
myC2_2d(&C2)
|
||||
{
|
||||
myType = 2;
|
||||
@@ -334,7 +342,9 @@ Standard_Boolean Extrema_GlobOptFuncCCC1::Values(const math_Vector& X,Standard_R
|
||||
Extrema_GlobOptFuncCCC2::Extrema_GlobOptFuncCCC2(const Adaptor3d_Curve& C1,
|
||||
const Adaptor3d_Curve& C2)
|
||||
: myC1_3d(&C1),
|
||||
myC2_3d(&C2)
|
||||
myC2_3d(&C2),
|
||||
myC1_2d(NULL),
|
||||
myC2_2d(NULL)
|
||||
{
|
||||
myType = 1;
|
||||
}
|
||||
@@ -345,7 +355,9 @@ Extrema_GlobOptFuncCCC2::Extrema_GlobOptFuncCCC2(const Adaptor3d_Curve& C1,
|
||||
//=======================================================================
|
||||
Extrema_GlobOptFuncCCC2::Extrema_GlobOptFuncCCC2(const Adaptor2d_Curve2d& C1,
|
||||
const Adaptor2d_Curve2d& C2)
|
||||
: myC1_2d(&C1),
|
||||
: myC1_3d(NULL),
|
||||
myC2_3d(NULL),
|
||||
myC1_2d(&C1),
|
||||
myC2_2d(&C2)
|
||||
{
|
||||
myType = 2;
|
||||
|
@@ -27,6 +27,7 @@ Extrema_LocateExtCC::Extrema_LocateExtCC (const Adaptor3d_Curve& C1,
|
||||
const Adaptor3d_Curve& C2,
|
||||
const Standard_Real U0,
|
||||
const Standard_Real V0)
|
||||
: mySqDist(RealLast())
|
||||
{
|
||||
Standard_Real TolU = C1.Resolution(Precision::Confusion());
|
||||
Standard_Real TolV = C2.Resolution(Precision::Confusion());
|
||||
|
@@ -35,6 +35,7 @@ Extrema_LocateExtCC2d::Extrema_LocateExtCC2d (const Adaptor2d_Curve2d& C1,
|
||||
const Adaptor2d_Curve2d& C2,
|
||||
const Standard_Real U0,
|
||||
const Standard_Real V0)
|
||||
: mySqDist(RealLast())
|
||||
{
|
||||
Standard_Real TolU = Extrema_Curve2dTool::Resolution(C1, Precision::Confusion());
|
||||
Standard_Real TolV = Extrema_Curve2dTool::Resolution(C2, Precision::Confusion());
|
||||
|
Reference in New Issue
Block a user