mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +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:
parent
078f916446
commit
d533dafb56
@ -22,7 +22,9 @@
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Adaptor3d_HVertex,Standard_Transient)
|
||||
|
||||
Adaptor3d_HVertex::Adaptor3d_HVertex ()
|
||||
{}
|
||||
: myTol(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Adaptor3d_HVertex::Adaptor3d_HVertex (const gp_Pnt2d& P,
|
||||
|
@ -60,8 +60,17 @@ static void GetConeApexParam(const gp_Cone& C, Standard_Real& U, Standard_Real&
|
||||
}
|
||||
|
||||
|
||||
Adaptor3d_TopolTool::Adaptor3d_TopolTool () : myNbSamplesU(-1),nbRestr(0),idRestr(0)
|
||||
|
||||
Adaptor3d_TopolTool::Adaptor3d_TopolTool ()
|
||||
: myNbSamplesU(-1),
|
||||
myNbSamplesV(-1),
|
||||
nbRestr(0),
|
||||
idRestr(0),
|
||||
Uinf(0.0),
|
||||
Usup(0.0),
|
||||
Vinf(0.0),
|
||||
Vsup(0.0),
|
||||
nbVtx(0),
|
||||
idVtx(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -62,6 +62,18 @@ static Standard_Boolean lesparam(const Standard_Integer iordre,
|
||||
|
||||
AdvApp2Var_Context::
|
||||
AdvApp2Var_Context()
|
||||
: myFav(0),
|
||||
myOrdU(0),
|
||||
myOrdV(0),
|
||||
myLimU(0),
|
||||
myLimV(0),
|
||||
myNb1DSS(0),
|
||||
myNb2DSS(0),
|
||||
myNb3DSS(0),
|
||||
myNbURoot(0),
|
||||
myNbVRoot(0),
|
||||
myJDegU(0),
|
||||
myJDegV(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,25 @@ Standard_EXPORT Standard_Boolean AppBlend_GetContextApproxWithNoTgt();
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
AppBlend_AppSurf::AppBlend_AppSurf ():done(Standard_False) {}
|
||||
AppBlend_AppSurf::AppBlend_AppSurf ()
|
||||
: done(Standard_False),
|
||||
dmin(0),
|
||||
dmax(0),
|
||||
tol3d(0.0),
|
||||
tol2d(0.0),
|
||||
nbit(0),
|
||||
udeg(0),
|
||||
vdeg(0),
|
||||
knownp(Standard_False),
|
||||
tol3dreached(0.0),
|
||||
tol2dreached(0.0),
|
||||
paramtype(Approx_ChordLength),
|
||||
continuity(GeomAbs_C2)
|
||||
{
|
||||
critweights[0]=0.4;
|
||||
critweights[1]=0.2;
|
||||
critweights[2]=0.4;
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
@ -62,12 +80,21 @@ AppBlend_AppSurf::AppBlend_AppSurf (const Standard_Integer Degmin,
|
||||
const Standard_Real Tol3d,
|
||||
const Standard_Real Tol2d,
|
||||
const Standard_Integer NbIt,
|
||||
const Standard_Boolean KnownParameters):
|
||||
done(Standard_False),dmin(Degmin),dmax(Degmax),
|
||||
tol3d(Tol3d),tol2d(Tol2d),nbit(NbIt),knownp(KnownParameters)
|
||||
const Standard_Boolean KnownParameters)
|
||||
: done(Standard_False),
|
||||
dmin(Degmin),
|
||||
dmax(Degmax),
|
||||
tol3d(Tol3d),
|
||||
tol2d(Tol2d),
|
||||
nbit(NbIt),
|
||||
udeg(0),
|
||||
vdeg(0),
|
||||
knownp(KnownParameters),
|
||||
tol3dreached(0.0),
|
||||
tol2dreached(0.0),
|
||||
paramtype(Approx_ChordLength),
|
||||
continuity(GeomAbs_C2)
|
||||
{
|
||||
continuity = GeomAbs_C2;
|
||||
paramtype = Approx_ChordLength;
|
||||
critweights[0]=0.4;
|
||||
critweights[1]=0.2;
|
||||
critweights[2]=0.4;
|
||||
|
@ -54,9 +54,16 @@ AppDef_LinearCriteria::AppDef_LinearCriteria(const AppDef_MultiLine& SSP,
|
||||
const Standard_Integer FirstPoint,
|
||||
const Standard_Integer LastPoint):
|
||||
mySSP(SSP),
|
||||
myQuadraticWeight(0.0),
|
||||
myQualityWeight(0.0),
|
||||
myPntWeight(FirstPoint, LastPoint),
|
||||
myE(0)
|
||||
myLength(0.0),
|
||||
myE(0),
|
||||
IF(0),
|
||||
IL(0)
|
||||
{
|
||||
memset (myEstimation, 0, sizeof (myEstimation));
|
||||
memset (myPercent, 0, sizeof (myPercent));
|
||||
myPntWeight.Init(1.);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,11 @@
|
||||
#include <AppParCurves_ConstraintCouple.hxx>
|
||||
|
||||
AppParCurves_ConstraintCouple::
|
||||
AppParCurves_ConstraintCouple() {}
|
||||
AppParCurves_ConstraintCouple()
|
||||
: myIndex(-1),
|
||||
myConstraint(AppParCurves_NoConstraint)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
AppParCurves_ConstraintCouple::
|
||||
|
@ -58,7 +58,11 @@ AppParCurves_Gradient::
|
||||
const Standard_Real Tol3d,
|
||||
const Standard_Real Tol2d,
|
||||
const Standard_Integer NbIterations):
|
||||
ParError(FirstPoint, LastPoint,0.0) {
|
||||
ParError(FirstPoint, LastPoint,0.0),
|
||||
AvError(0.0),
|
||||
MError3d(0.0),
|
||||
MError2d(0.0)
|
||||
{
|
||||
|
||||
// Standard_Boolean grad = Standard_True;
|
||||
Standard_Integer j, k, i2, l;
|
||||
|
@ -46,7 +46,10 @@ static Standard_Integer ComputeDegree(const TColStd_Array1OfInteger& mults,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve() {}
|
||||
AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve()
|
||||
: myDegree(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
@ -56,7 +59,8 @@ AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve() {}
|
||||
|
||||
AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve
|
||||
(const Standard_Integer NbPol):
|
||||
AppParCurves_MultiCurve(NbPol)
|
||||
AppParCurves_MultiCurve(NbPol),
|
||||
myDegree(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,11 @@
|
||||
#define tabPoint Handle(TColgp_HArray1OfPnt)::DownCast (ttabPoint)
|
||||
#define tabPoint2d Handle(TColgp_HArray1OfPnt2d)::DownCast (ttabPoint2d)
|
||||
|
||||
AppParCurves_MultiPoint::AppParCurves_MultiPoint() {}
|
||||
AppParCurves_MultiPoint::AppParCurves_MultiPoint()
|
||||
: nbP(0),
|
||||
nbP2d(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
AppParCurves_MultiPoint::AppParCurves_MultiPoint (const Standard_Integer NbPoles,
|
||||
|
@ -56,6 +56,9 @@ const AppParCurves_Constraint LastC)
|
||||
myInvOrder = Standard_True;
|
||||
myHangChecking = Standard_True;
|
||||
alldone = Standard_False;
|
||||
tolreached = Standard_False;
|
||||
currenttol3d = 0.0;
|
||||
currenttol2d = 0.0;
|
||||
Perform(Line);
|
||||
}
|
||||
|
||||
@ -84,6 +87,9 @@ const AppParCurves_Constraint LastC)
|
||||
myMaxSegments = MAXSEGM;
|
||||
myInvOrder = Standard_True;
|
||||
myHangChecking = Standard_True;
|
||||
tolreached = Standard_False;
|
||||
currenttol3d = 0.0;
|
||||
currenttol2d = 0.0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -133,6 +133,8 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor3d_
|
||||
const GeomAbs_Shape Order,
|
||||
const Standard_Integer MaxDegree,
|
||||
const Standard_Integer MaxSegments)
|
||||
: myMaxError2d1(0.0),
|
||||
myMaxError2d2(0.0)
|
||||
{
|
||||
#ifdef OCCT_DEBUG_CHRONO
|
||||
t_total = t_init = t_approx = t_uparam = 0;
|
||||
|
@ -329,7 +329,9 @@ static Standard_Boolean NonSingularProcessing(const gp_Vec& theDU,
|
||||
//--------------------------------------------------------------------------------
|
||||
ApproxInt_ImpPrmSvSurfaces::ApproxInt_ImpPrmSvSurfaces( const TheISurface& ISurf
|
||||
,const ThePSurface& PSurf):
|
||||
MyIsTangent(Standard_False),
|
||||
MyHasBeenComputed(Standard_False),
|
||||
MyIsTangentbis(Standard_False),
|
||||
MyHasBeenComputedbis(Standard_False),
|
||||
MyImplicitFirst(Standard_True),
|
||||
MyZerImpFunc(PSurf,ISurf)
|
||||
@ -338,7 +340,9 @@ ApproxInt_ImpPrmSvSurfaces::ApproxInt_ImpPrmSvSurfaces( const TheISurface& ISurf
|
||||
//--------------------------------------------------------------------------------
|
||||
ApproxInt_ImpPrmSvSurfaces::ApproxInt_ImpPrmSvSurfaces( const ThePSurface& PSurf
|
||||
,const TheISurface& ISurf):
|
||||
MyIsTangent(Standard_False),
|
||||
MyHasBeenComputed(Standard_False),
|
||||
MyIsTangentbis(Standard_False),
|
||||
MyHasBeenComputedbis(Standard_False),
|
||||
MyImplicitFirst(Standard_False),
|
||||
MyZerImpFunc(PSurf,ISurf)
|
||||
|
@ -29,7 +29,9 @@
|
||||
//--------------------------------------------------------------------------------
|
||||
ApproxInt_PrmPrmSvSurfaces::ApproxInt_PrmPrmSvSurfaces( const ThePSurface& Surf1
|
||||
,const ThePSurface& Surf2):
|
||||
MyIsTangent(Standard_False),
|
||||
MyHasBeenComputed(Standard_False),
|
||||
MyIsTangentbis(Standard_False),
|
||||
MyHasBeenComputedbis(Standard_False),
|
||||
MyIntersectionOn2S(Surf1,Surf2,TOLTANGENCY)
|
||||
{
|
||||
|
@ -26,7 +26,10 @@
|
||||
//=======================================================================
|
||||
BRepBlend_CurvPointRadInv::BRepBlend_CurvPointRadInv
|
||||
(const Handle(Adaptor3d_HCurve)& C1,
|
||||
const Handle(Adaptor3d_HCurve)& C2) : curv1(C1), curv2(C2)
|
||||
const Handle(Adaptor3d_HCurve)& C2)
|
||||
: curv1(C1),
|
||||
curv2(C2),
|
||||
choix(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,8 @@ BRepBlend_Extremity::BRepBlend_Extremity (const gp_Pnt& P,
|
||||
const Standard_Real Tol) :
|
||||
pt(P),
|
||||
tang(gp_Vec(0,0,0)),
|
||||
param(Param),u(W),tol(Tol),isvtx(Standard_False),
|
||||
param(Param),u(W),v(0.0),
|
||||
tol(Tol),isvtx(Standard_False),
|
||||
hastang(Standard_False)
|
||||
{}
|
||||
|
||||
|
@ -18,7 +18,10 @@
|
||||
#include <IntSurf_Transition.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
BRepBlend_PointOnRst::BRepBlend_PointOnRst () {}
|
||||
BRepBlend_PointOnRst::BRepBlend_PointOnRst ()
|
||||
: prm(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BRepBlend_PointOnRst::BRepBlend_PointOnRst(const Handle(Adaptor2d_HCurve2d)& A,
|
||||
|
@ -68,10 +68,13 @@ BRepBlend_RstRstConstRad::BRepBlend_RstRstConstRad
|
||||
surf1(Surf1), surf2(Surf2), rst1(Rst1), rst2(Rst2),
|
||||
cons1(Rst1, Surf1), cons2(Rst2, Surf2),
|
||||
guide(CGuide), tguide(CGuide),
|
||||
istangent(Standard_True), maxang(RealFirst()), minang(RealLast()),
|
||||
distmin(RealLast()),
|
||||
mySShape(BlendFunc_Rational)
|
||||
{}
|
||||
prmrst1(0.0), prmrst2(0.0),
|
||||
istangent(Standard_True), ray(0.0),
|
||||
choix(0), normtg(0.0), theD(0.0),
|
||||
maxang(RealFirst()), minang(RealLast()),
|
||||
distmin(RealLast()), mySShape(BlendFunc_Rational)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NbVariables
|
||||
|
@ -174,8 +174,13 @@ BRepBlend_RstRstLineBuilder::BRepBlend_RstRstLineBuilder
|
||||
const Handle(Adaptor3d_HSurface)& Surf2,
|
||||
const Handle(Adaptor2d_HCurve2d)& Rst2,
|
||||
const Handle(Adaptor3d_TopolTool)& Domain2):
|
||||
sol(1,2), surf1(Surf1), domain1(Domain1),
|
||||
surf2(Surf2), domain2(Domain2), rst1(Rst1), rst2(Rst2)
|
||||
done(Standard_False), sol(1, 2), surf1(Surf1),
|
||||
domain1(Domain1), surf2(Surf2),
|
||||
domain2(Domain2), rst1(Rst1), rst2(Rst2),
|
||||
tolesp(0.0), tolgui(0.0), pasmax(0.0),
|
||||
fleche(0.0), param(0.0), rebrou(Standard_False),
|
||||
iscomplete(Standard_False), comptra(Standard_False), sens(0.0),
|
||||
decrochdeb(Blend_NoDecroch), decrochfin(Blend_NoDecroch)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,12 @@
|
||||
BRepBlend_SurfCurvConstRadInv::BRepBlend_SurfCurvConstRadInv
|
||||
(const Handle(Adaptor3d_HSurface)& S,
|
||||
const Handle(Adaptor3d_HCurve)& C,
|
||||
const Handle(Adaptor3d_HCurve)& Cg) : surf(S),curv(C),guide(Cg)
|
||||
const Handle(Adaptor3d_HCurve)& Cg)
|
||||
: surf(S),
|
||||
curv(C),
|
||||
guide(Cg),
|
||||
ray(0.0),
|
||||
choix(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,11 @@
|
||||
//=======================================================================
|
||||
BRepBlend_SurfPointConstRadInv::BRepBlend_SurfPointConstRadInv
|
||||
(const Handle(Adaptor3d_HSurface)& S,
|
||||
const Handle(Adaptor3d_HCurve)& C) : surf(S), curv(C)
|
||||
const Handle(Adaptor3d_HCurve)& C)
|
||||
: surf(S),
|
||||
curv(C),
|
||||
ray(0.0),
|
||||
choix(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -66,10 +66,12 @@ BRepBlend_SurfRstConstRad::BRepBlend_SurfRstConstRad
|
||||
const Handle(Adaptor3d_HCurve)& CGuide):
|
||||
surf(Surf), surfrst(SurfRst), rst(Rst), cons(Rst,SurfRst),
|
||||
guide(CGuide), tguide(CGuide),
|
||||
istangent(Standard_True), theD(0.), maxang(RealFirst()), minang(RealLast()),
|
||||
distmin(RealLast()),
|
||||
mySShape(BlendFunc_Rational)
|
||||
{}
|
||||
prmrst(0.0), istangent(Standard_True),
|
||||
ray(0.0), choix(0), normtg(0.0),
|
||||
theD(0.), maxang(RealFirst()), minang(RealLast()),
|
||||
distmin(RealLast()), mySShape(BlendFunc_Rational)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NbVariables
|
||||
|
@ -212,8 +212,13 @@ BRepBlend_SurfRstLineBuilder::BRepBlend_SurfRstLineBuilder
|
||||
const Handle(Adaptor3d_HSurface)& Surf2,
|
||||
const Handle(Adaptor2d_HCurve2d)& Rst,
|
||||
const Handle(Adaptor3d_TopolTool)& Domain2):
|
||||
sol(1,3),surf1(Surf1), domain1(Domain1),
|
||||
surf2(Surf2), rst(Rst), domain2(Domain2)
|
||||
done(Standard_False), sol(1, 3), surf1(Surf1),
|
||||
domain1(Domain1), surf2(Surf2), rst(Rst),
|
||||
domain2(Domain2), tolesp(0.0), tolgui(0.0),
|
||||
pasmax(0.0), fleche(0.0), param(0.0),
|
||||
rebrou(Standard_False), iscomplete(Standard_False),
|
||||
comptra(Standard_False), sens(0.0),
|
||||
decrochdeb(Standard_False), decrochfin(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -581,8 +581,11 @@ Standard_Real BRepBuilderAPI_FastSewing::Compute3DRange()
|
||||
BRepBuilderAPI_FastSewing::NodeInspector::
|
||||
NodeInspector(const NCollection_Vector<FS_Vertex>& theVec,
|
||||
const gp_Pnt& thePnt,
|
||||
const Standard_Real theTol):
|
||||
myVecOfVertexes(theVec), myPoint(thePnt), myResID(-1)
|
||||
const Standard_Real theTol)
|
||||
: myVecOfVertexes(theVec),
|
||||
myPoint(thePnt),
|
||||
myResID(-1),
|
||||
myIsFindingEnable(Standard_False)
|
||||
{
|
||||
mySQToler = theTol*theTol;
|
||||
}
|
||||
|
@ -82,6 +82,9 @@ static Standard_Boolean CheckThin(const TopoDS_Shape& w,
|
||||
//=======================================================================
|
||||
|
||||
BRepCheck_Face::BRepCheck_Face (const TopoDS_Face& F)
|
||||
: myIntres(BRepCheck_NoError),
|
||||
myImbres(BRepCheck_NoError),
|
||||
myOrires(BRepCheck_NoError)
|
||||
{
|
||||
Init(F);
|
||||
myIntdone = Standard_False;
|
||||
|
@ -111,6 +111,11 @@ inline Standard_Boolean IsOriented(const TopoDS_Shape& S)
|
||||
//=======================================================================
|
||||
|
||||
BRepCheck_Shell::BRepCheck_Shell(const TopoDS_Shell& S)
|
||||
: myNbori(0),
|
||||
myCdone(Standard_False),
|
||||
myCstat(BRepCheck_NoError),
|
||||
myOdone(Standard_False),
|
||||
myOstat(BRepCheck_NoError)
|
||||
{
|
||||
Init(S);
|
||||
}
|
||||
|
@ -130,6 +130,9 @@ static Standard_Boolean GetPnt2d(const TopoDS_Vertex &theVertex,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BRepCheck_Wire::BRepCheck_Wire(const TopoDS_Wire& W)
|
||||
: myCdone(Standard_False),
|
||||
myCstat(BRepCheck_NoError),
|
||||
myGctrl(Standard_False)
|
||||
{
|
||||
Init(W);
|
||||
}
|
||||
|
@ -31,7 +31,12 @@
|
||||
|
||||
//============================================================================
|
||||
BRepClass3d_Intersector3d::BRepClass3d_Intersector3d()
|
||||
: done(Standard_False),hasapoint(Standard_False)
|
||||
: U(0.0),
|
||||
V(0.0),
|
||||
W(0.0),
|
||||
done(Standard_False),
|
||||
hasapoint(Standard_False),
|
||||
state(TopAbs_UNKNOWN)
|
||||
{
|
||||
}
|
||||
//============================================================================
|
||||
|
@ -61,7 +61,8 @@ static void Trans(Standard_Real parmin, IntCurveSurface_TransitionOnCurve& tran,
|
||||
//function : BRepClass3d_SClassifier
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BRepClass3d_SClassifier::BRepClass3d_SClassifier()
|
||||
BRepClass3d_SClassifier::BRepClass3d_SClassifier()
|
||||
: myState(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,9 @@ void BRepClass3d_SolidClassifier::Load(const TopoDS_Shape& S) {
|
||||
}
|
||||
|
||||
BRepClass3d_SolidClassifier::BRepClass3d_SolidClassifier(const TopoDS_Shape& S)
|
||||
: aSolidLoaded(Standard_True),explorer(S)
|
||||
: aSolidLoaded(Standard_True),
|
||||
explorer(S),
|
||||
isaholeinspace(Standard_False)
|
||||
{
|
||||
#if LBRCOMPT
|
||||
STAT.NbConstrShape++;
|
||||
|
@ -771,7 +771,10 @@ Standard_Boolean BRepClass3d_SolidExplorer::FindAPointInTheFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
BRepClass3d_SolidExplorer::BRepClass3d_SolidExplorer()
|
||||
BRepClass3d_SolidExplorer::BRepClass3d_SolidExplorer()
|
||||
: myReject(Standard_True),
|
||||
myFirstFace(0),
|
||||
myParamOnEdge(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,12 @@ namespace
|
||||
Standard_Real Distance; //!< Distance between sub-shapes
|
||||
|
||||
//! Uninitialized constructor for collection.
|
||||
BRepExtrema_CheckPair() {}
|
||||
BRepExtrema_CheckPair()
|
||||
: Index1(0),
|
||||
Index2(0),
|
||||
Distance(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
//! Creates new pair of sub-shapes.
|
||||
BRepExtrema_CheckPair (Standard_Integer theIndex1,
|
||||
|
@ -74,7 +74,9 @@ public:
|
||||
Init (Sbase, Pbase, Skface, Angle, Fuse, Modify);
|
||||
}
|
||||
|
||||
BRepFeat_MakeDPrism()
|
||||
BRepFeat_MakeDPrism()
|
||||
: myAngle(RealLast()),
|
||||
myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,11 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm () {}
|
||||
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm ()
|
||||
: myBnd(0.0),
|
||||
myTol(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@ -19,7 +19,10 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_MakePrism::BRepFeat_MakePrism () {}
|
||||
inline BRepFeat_MakePrism::BRepFeat_MakePrism ()
|
||||
: myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@ -19,7 +19,10 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol () {}
|
||||
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol ()
|
||||
: myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@ -19,7 +19,16 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm () {}
|
||||
inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm ()
|
||||
: myHeight1(0.0),
|
||||
myHeight2(0.0),
|
||||
mySliding(Standard_False),
|
||||
myBnd(0.0),
|
||||
myTol(0.0),
|
||||
myAngle1(RealLast()),
|
||||
myAngle2(RealLast())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@ -19,5 +19,9 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_RibSlot::BRepFeat_RibSlot ()
|
||||
{}
|
||||
inline BRepFeat_RibSlot::BRepFeat_RibSlot ()
|
||||
: myFuse(Standard_False),
|
||||
mySliding(Standard_False),
|
||||
myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
@ -24,6 +24,7 @@
|
||||
//purpose : Constructor
|
||||
//=======================================================================
|
||||
BRepGProp_Sinert::BRepGProp_Sinert()
|
||||
: myEpsilon(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
//purpose : Constructor
|
||||
//=======================================================================
|
||||
BRepGProp_Vinert::BRepGProp_Vinert()
|
||||
: myEpsilon(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,10 @@ static Standard_Boolean Is2DClosed(const TopoDS_Shape& theShape,
|
||||
//function : BRepLib_FindSurface
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BRepLib_FindSurface::BRepLib_FindSurface()
|
||||
BRepLib_FindSurface::BRepLib_FindSurface()
|
||||
: myTolerance(0.0),
|
||||
myTolReached(0.0),
|
||||
isExisted(Standard_False)
|
||||
{
|
||||
}
|
||||
//=======================================================================
|
||||
|
@ -173,7 +173,9 @@ static Standard_Boolean Project(const Handle(Geom2d_Curve)& C,
|
||||
//=======================================================================
|
||||
|
||||
BRepLib_MakeEdge::BRepLib_MakeEdge()
|
||||
{}
|
||||
: myError(BRepLib_PointProjectionFailed)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : BRepLib_MakeEdge
|
||||
|
@ -135,8 +135,12 @@ private:
|
||||
{
|
||||
public:
|
||||
BRepLib_BndBoxVertexSelector(const TopTools_IndexedMapOfShape& theMapOfShape)
|
||||
: BRepLib_BndBoxVertexSelector::Selector(), myMapOfShape (theMapOfShape)
|
||||
{}
|
||||
: BRepLib_BndBoxVertexSelector::Selector(),
|
||||
myMapOfShape (theMapOfShape),
|
||||
myTolP(0.0),
|
||||
myVInd(0)
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Boolean Reject (const Bnd_Box& theBox) const
|
||||
{
|
||||
|
@ -49,6 +49,8 @@ static void CutSketch (MAT2d_SequenceOfSequenceOfGeometry& Figure,
|
||||
//purpose : Constructeur vide.
|
||||
//=============================================================================
|
||||
BRepMAT2d_BisectingLocus::BRepMAT2d_BisectingLocus()
|
||||
: isDone(Standard_False),
|
||||
nbContours(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,8 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BRepMAT2d_LinkTopoBilo::BRepMAT2d_LinkTopoBilo()
|
||||
: current(0),
|
||||
isEmpty(Standard_True)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -92,6 +92,7 @@ BRepMesh_Delaun::BRepMesh_Delaun (
|
||||
myCircles (new NCollection_IncAllocator(
|
||||
IMeshData::MEMORY_BLOCK_SIZE_HUGE))
|
||||
{
|
||||
memset (mySupVert, 0, sizeof (mySupVert));
|
||||
if (isFillCircles)
|
||||
{
|
||||
InitCirclesTool (theCellsCountU, theCellsCountV);
|
||||
@ -106,6 +107,7 @@ BRepMesh_Delaun::BRepMesh_Delaun(IMeshData::Array1OfVertexOfDelaun& theVertices)
|
||||
: myCircles (theVertices.Length(), new NCollection_IncAllocator(
|
||||
IMeshData::MEMORY_BLOCK_SIZE_HUGE))
|
||||
{
|
||||
memset (mySupVert, 0, sizeof (mySupVert));
|
||||
if ( theVertices.Length() > 2 )
|
||||
{
|
||||
myMeshData = new BRepMesh_DataStructureOfDelaun(
|
||||
@ -126,6 +128,7 @@ BRepMesh_Delaun::BRepMesh_Delaun(
|
||||
myCircles ( theVertices.Length(), new NCollection_IncAllocator(
|
||||
IMeshData::MEMORY_BLOCK_SIZE_HUGE))
|
||||
{
|
||||
memset (mySupVert, 0, sizeof (mySupVert));
|
||||
if ( theVertices.Length() > 2 )
|
||||
{
|
||||
Init( theVertices );
|
||||
@ -143,6 +146,7 @@ BRepMesh_Delaun::BRepMesh_Delaun(
|
||||
myCircles ( theVertexIndices.Length(), new NCollection_IncAllocator(
|
||||
IMeshData::MEMORY_BLOCK_SIZE_HUGE))
|
||||
{
|
||||
memset (mySupVert, 0, sizeof (mySupVert));
|
||||
perform(theVertexIndices);
|
||||
}
|
||||
|
||||
@ -158,6 +162,7 @@ BRepMesh_Delaun::BRepMesh_Delaun (const Handle (BRepMesh_DataStructureOfDelaun)&
|
||||
myCircles (theVertexIndices.Length (), new NCollection_IncAllocator(
|
||||
IMeshData::MEMORY_BLOCK_SIZE_HUGE))
|
||||
{
|
||||
memset (mySupVert, 0, sizeof (mySupVert));
|
||||
perform (theVertexIndices, theCellsCountU, theCellsCountV);
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,8 @@ public:
|
||||
//! Constructor.
|
||||
BRepMesh_DelaunayDeflectionControlMeshAlgo()
|
||||
: myMaxSqDeflection(-1.),
|
||||
myIsAllDegenerated(Standard_False)
|
||||
myIsAllDegenerated(Standard_False),
|
||||
myCircles(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
@ -107,6 +108,11 @@ private:
|
||||
//! Contains geometrical data related to node of triangle.
|
||||
struct TriangleNodeInfo
|
||||
{
|
||||
TriangleNodeInfo()
|
||||
: isFrontierLink(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
gp_XY Point2d;
|
||||
gp_XYZ Point;
|
||||
Standard_Boolean isFrontierLink;
|
||||
|
@ -45,6 +45,12 @@ public:
|
||||
|
||||
//! Constructor. Initializes empty provider.
|
||||
BRepMesh_EdgeParameterProvider()
|
||||
: myIsSameParam(Standard_False),
|
||||
myFirstParam(0.0),
|
||||
myOldFirstParam(0.0),
|
||||
myScale(0.0),
|
||||
myCurParam(0.0),
|
||||
myFoundParam(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -103,6 +103,7 @@ namespace
|
||||
BndBox2dTreeSelector(const Standard_Real theTolerance)
|
||||
: myMaxLoopSize(M_PI * theTolerance * theTolerance),
|
||||
mySelfSegmentIndex(-1),
|
||||
mySegment(0),
|
||||
myIndices(256, new NCollection_IncAllocator(IMeshData::MEMORY_BLOCK_SIZE_HUGE))
|
||||
{
|
||||
}
|
||||
|
@ -38,8 +38,9 @@ public: //! @name mesher API
|
||||
gp_Pnt2d* Point2; // / using indices.
|
||||
|
||||
Segment()
|
||||
: Point1(NULL)
|
||||
, Point2(NULL)
|
||||
: EdgePtr(NULL),
|
||||
Point1(NULL),
|
||||
Point2(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,10 @@ namespace
|
||||
myParamsForbiddenToRemove(theParamsForbiddenToRemove),
|
||||
myControlParamsForbiddenToRemove(theControlParamsForbiddenToRemove),
|
||||
myAllocator(new NCollection_IncAllocator(IMeshData::MEMORY_BLOCK_SIZE_HUGE)),
|
||||
myControlParamsToRemove(new IMeshData::MapOfReal(1, myAllocator))
|
||||
myControlParamsToRemove(new IMeshData::MapOfReal(1, myAllocator)),
|
||||
myCurrParam(0.0),
|
||||
myCurrControlParam(0.0),
|
||||
myPrevControlParam(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@ public:
|
||||
|
||||
//! Constructor.
|
||||
BRepMesh_NURBSRangeSplitter()
|
||||
: mySurfaceType(GeomAbs_OtherSurface)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -116,6 +116,7 @@ static void CopyRanges (const TopoDS_Shape& toedge, const TopoDS_Shape& fromedge
|
||||
//=======================================================================
|
||||
|
||||
BRepTools_ReShape::BRepTools_ReShape()
|
||||
: myStatus(-1)
|
||||
{
|
||||
myConsiderLocation = Standard_False;
|
||||
}
|
||||
|
@ -63,7 +63,10 @@ static Standard_Real GetNextParamOnPC(const Handle(Geom2d_Curve)& aPC,
|
||||
//function : BRepTools_WireExplorer
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BRepTools_WireExplorer::BRepTools_WireExplorer()
|
||||
BRepTools_WireExplorer::BRepTools_WireExplorer()
|
||||
: myReverse(Standard_False),
|
||||
myTolU(0.0),
|
||||
myTolV(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,13 @@ static StatistiquesFClass2d STAT;
|
||||
|
||||
|
||||
BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const Standard_Real TolUV)
|
||||
: Toluv(TolUV), Face(aFace) {
|
||||
: Toluv(TolUV),
|
||||
Face(aFace),
|
||||
U1(0.0),
|
||||
V1(0.0),
|
||||
U2(0.0),
|
||||
V2(0.0)
|
||||
{
|
||||
|
||||
#if LBRCOMPT
|
||||
STAT.NbConstrShape++;
|
||||
|
@ -48,7 +48,12 @@ static
|
||||
//function : BRepTopAdaptor_TopolTool
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BRepTopAdaptor_TopolTool::BRepTopAdaptor_TopolTool () : myFClass2d(NULL)
|
||||
BRepTopAdaptor_TopolTool::BRepTopAdaptor_TopolTool ()
|
||||
: myFClass2d(NULL),
|
||||
myU0(0.0),
|
||||
myV0(0.0),
|
||||
myDU(0.0),
|
||||
myDV(0.0)
|
||||
{
|
||||
myNbSamplesU=-1;
|
||||
}
|
||||
|
@ -36,7 +36,8 @@ public: //! @name Constructor
|
||||
//! Constructor
|
||||
BVH_Distance()
|
||||
: BVH_Traverse <NumType, Dimension, BVHSetType, NumType>(),
|
||||
myDistance (std::numeric_limits<NumType>::max())
|
||||
myDistance (std::numeric_limits<NumType>::max()),
|
||||
myIsDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,10 @@
|
||||
template<class T, int N>
|
||||
BVH_DistanceField<T, N>::BVH_DistanceField (const Standard_Integer theMaximumSize,
|
||||
const Standard_Boolean theComputeSign)
|
||||
: myMaximumSize (theMaximumSize),
|
||||
: myDimensionX(0),
|
||||
myDimensionY(0),
|
||||
myDimensionZ(0),
|
||||
myMaximumSize (theMaximumSize),
|
||||
myComputeSign (theComputeSign),
|
||||
myIsParallel (Standard_False)
|
||||
{
|
||||
|
@ -38,7 +38,8 @@ public: //! @name Constructor
|
||||
//! Constructor
|
||||
BVH_PairDistance()
|
||||
: BVH_PairTraverse <NumType, Dimension, BVHSetType, NumType>(),
|
||||
myDistance (std::numeric_limits<NumType>::max())
|
||||
myDistance (std::numeric_limits<NumType>::max()),
|
||||
myIsDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -77,9 +77,17 @@ static Standard_Boolean DiscretPar(const Standard_Real DU,
|
||||
//purpose :
|
||||
//=============================================================================
|
||||
Bisector_BisecCC::Bisector_BisecCC()
|
||||
: sign1(0.0),
|
||||
sign2(0.0),
|
||||
currentInterval(0),
|
||||
shiftParameter(0.0),
|
||||
distMax(0.0),
|
||||
isEmpty(Standard_True),
|
||||
isConvex1(Standard_False),
|
||||
isConvex2(Standard_False),
|
||||
extensionStart(Standard_False),
|
||||
extensionEnd(Standard_False)
|
||||
{
|
||||
shiftParameter = 0;
|
||||
isEmpty = Standard_False;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
@ -51,6 +51,15 @@ IMPLEMENT_STANDARD_RTTIEXT(Bisector_BisecPC,Bisector_Curve)
|
||||
// purpose :
|
||||
//=============================================================================
|
||||
Bisector_BisecPC::Bisector_BisecPC()
|
||||
: sign(0.0),
|
||||
bisInterval(0),
|
||||
currentInterval(0),
|
||||
shiftParameter(0.0),
|
||||
distMax(0.0),
|
||||
isEmpty(Standard_True),
|
||||
isConvex(Standard_False),
|
||||
extensionStart(Standard_False),
|
||||
extensionEnd(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,11 @@
|
||||
// purpose :
|
||||
//=============================================================================
|
||||
Bisector_PointOnBis::Bisector_PointOnBis()
|
||||
: param1(0.0),
|
||||
param2(0.0),
|
||||
paramBis(0.0),
|
||||
distance(0.0),
|
||||
infinite(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -44,9 +44,13 @@ BlendFunc_CSConstRad::BlendFunc_CSConstRad(const Handle(Adaptor3d_HSurface)& S,
|
||||
const Handle(Adaptor3d_HCurve)& C,
|
||||
const Handle(Adaptor3d_HCurve)& CG) :
|
||||
|
||||
surf(S),curv(C),guide(CG),istangent(Standard_True),
|
||||
maxang(RealFirst()), minang(RealLast()),mySShape(BlendFunc_Rational)
|
||||
{}
|
||||
surf(S),curv(C),guide(CG), prmc(0.0),
|
||||
istangent(Standard_True), ray(0.0),
|
||||
choix(0), normtg(0.0), theD(0.0),
|
||||
maxang(RealFirst()), minang(RealLast()),
|
||||
mySShape(BlendFunc_Rational)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@ -40,9 +40,14 @@ BlendFunc_ChAsym::BlendFunc_ChAsym(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HCurve)& C) :
|
||||
surf1(S1),surf2(S2),
|
||||
curv(C), tcurv(C),
|
||||
param(0),
|
||||
dist1(RealLast()),
|
||||
angle(RealLast()),
|
||||
tgang(RealLast()),
|
||||
FX(1, 4),
|
||||
DX(1, 4, 1, 4),
|
||||
istangent(Standard_True),
|
||||
choix(0),
|
||||
distmin(RealLast())
|
||||
{
|
||||
}
|
||||
|
@ -30,7 +30,12 @@
|
||||
BlendFunc_ChAsymInv::BlendFunc_ChAsymInv(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C) :
|
||||
surf1(S1),surf2(S2),curv(C),
|
||||
surf1(S1),surf2(S2),
|
||||
dist1(RealLast()),
|
||||
angle(RealLast()),
|
||||
tgang(RealLast()),
|
||||
curv(C), choix(0),
|
||||
first(Standard_False),
|
||||
FX(1, 4),
|
||||
DX(1, 4, 1, 4)
|
||||
{
|
||||
|
@ -51,16 +51,17 @@ BlendFunc_ConstRad::BlendFunc_ConstRad(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C)
|
||||
:
|
||||
surf1(S1),surf2(S2),
|
||||
curv(C), tcurv(C),
|
||||
istangent(Standard_True),
|
||||
xval(1,4),
|
||||
E(1,4), DEDX(1,4,1,4), DEDT(1,4),
|
||||
D2EDX2(4,4,4),
|
||||
D2EDXDT(1,4,1,4), D2EDT2(1,4),
|
||||
maxang(RealFirst()), minang(RealLast()),
|
||||
distmin(RealLast()),
|
||||
mySShape(BlendFunc_Rational)
|
||||
surf1(S1),surf2(S2),
|
||||
curv(C), tcurv(C),
|
||||
istangent(Standard_True), param(0.0),
|
||||
ray1(0.0), ray2(0.0),
|
||||
choix(0), xval(1, 4),
|
||||
E(1,4), DEDX(1,4,1,4), DEDT(1,4),
|
||||
D2EDX2(4,4,4),
|
||||
D2EDXDT(1,4,1,4), D2EDT2(1,4),
|
||||
maxang(RealFirst()), minang(RealLast()),
|
||||
distmin(RealLast()),
|
||||
mySShape(BlendFunc_Rational)
|
||||
{
|
||||
// Initialisaton of cash control variables.
|
||||
tval = -9.876e100;
|
||||
|
@ -28,9 +28,16 @@
|
||||
|
||||
BlendFunc_ConstRadInv::BlendFunc_ConstRadInv(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C):
|
||||
surf1(S1),surf2(S2),curv(C)
|
||||
{}
|
||||
const Handle(Adaptor3d_HCurve)& C)
|
||||
: surf1(S1),
|
||||
surf2(S2),
|
||||
curv(C),
|
||||
ray1(0.0),
|
||||
ray2(0.0),
|
||||
choix(0),
|
||||
first(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
void BlendFunc_ConstRadInv::Set(const Standard_Real R,
|
||||
const Standard_Integer Choix)
|
||||
|
@ -38,7 +38,12 @@
|
||||
BlendFunc_ConstThroat::BlendFunc_ConstThroat(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C)
|
||||
: BlendFunc_GenChamfer(S1,S2,C)
|
||||
: BlendFunc_GenChamfer(S1,S2,C),
|
||||
istangent(Standard_False),
|
||||
param(0.0),
|
||||
Throat(0.0),
|
||||
normtg(0.0),
|
||||
theD(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,13 @@
|
||||
BlendFunc_ConstThroatInv::BlendFunc_ConstThroatInv(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C)
|
||||
: BlendFunc_GenChamfInv(S1,S2,C)
|
||||
: BlendFunc_GenChamfInv(S1,S2,C),
|
||||
Throat(0.0),
|
||||
param(0.0),
|
||||
sign1(0.0),
|
||||
sign2(0.0),
|
||||
normtg(0.0),
|
||||
theD(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -34,8 +34,13 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
BlendFunc_Corde::BlendFunc_Corde(const Handle(Adaptor3d_HSurface)& S,
|
||||
const Handle(Adaptor3d_HCurve)& CG) :
|
||||
surf(S),guide(CG)
|
||||
const Handle(Adaptor3d_HCurve)& CG)
|
||||
: surf(S),
|
||||
guide(CG),
|
||||
dis(0.0),
|
||||
normtg(0.0),
|
||||
theD(0.0),
|
||||
istangent(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -28,8 +28,12 @@
|
||||
//=======================================================================
|
||||
BlendFunc_GenChamfInv::BlendFunc_GenChamfInv(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C) :
|
||||
surf1(S1),surf2(S2),curv(C)
|
||||
const Handle(Adaptor3d_HCurve)& C)
|
||||
: surf1(S1),
|
||||
surf2(S2),
|
||||
curv(C),
|
||||
choix(0),
|
||||
first(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -34,8 +34,12 @@
|
||||
BlendFunc_GenChamfer::BlendFunc_GenChamfer(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& CG)
|
||||
: surf1(S1),surf2(S2),curv(CG),
|
||||
distmin(RealLast())
|
||||
: surf1(S1),
|
||||
surf2(S2),
|
||||
curv(CG),
|
||||
choix(0),
|
||||
tol(0.0),
|
||||
distmin(RealLast())
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -35,10 +35,12 @@ BlendFunc_Ruled::BlendFunc_Ruled(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C) :
|
||||
|
||||
surf1(S1),surf2(S2),curv(C),
|
||||
istangent(Standard_True),
|
||||
distmin(RealLast())
|
||||
{}
|
||||
surf1(S1),surf2(S2),curv(C),
|
||||
istangent(Standard_True),
|
||||
normtg(0.0), theD(0.0),
|
||||
distmin(RealLast())
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Integer BlendFunc_Ruled::NbEquations () const
|
||||
{
|
||||
|
@ -24,9 +24,13 @@
|
||||
|
||||
BlendFunc_RuledInv::BlendFunc_RuledInv(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_HCurve)& C) :
|
||||
surf1(S1),surf2(S2),curv(C)
|
||||
{}
|
||||
const Handle(Adaptor3d_HCurve)& C)
|
||||
: surf1(S1),
|
||||
surf2(S2),
|
||||
curv(C),
|
||||
first(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
void BlendFunc_RuledInv::Set(const Standard_Boolean OnFirst,
|
||||
const Handle(Adaptor2d_HCurve2d)& C)
|
||||
|
@ -34,7 +34,12 @@ static TCollection_ExtendedString blank("");
|
||||
|
||||
|
||||
|
||||
CDF_Store::CDF_Store() {}
|
||||
CDF_Store::CDF_Store()
|
||||
: myHasSubComponents(Standard_False),
|
||||
myIsMainDocument(Standard_False),
|
||||
myStatus(PCDM_SS_No_Obj)
|
||||
{
|
||||
}
|
||||
CDF_Store::CDF_Store(const Handle(CDM_Document)& aDocument):myHasSubComponents(Standard_False) {
|
||||
|
||||
myMainDocument = aDocument;
|
||||
|
@ -33,6 +33,7 @@ static CDM_MetaDataLookUpTable& getLookUpTable(){
|
||||
}
|
||||
CDM_MetaData::CDM_MetaData(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aPath,const TCollection_ExtendedString& aFileName,const Standard_Boolean ReadOnly):
|
||||
myIsRetrieved(Standard_False),
|
||||
myDocument(NULL),
|
||||
myFolder(aFolder),
|
||||
myName(aName),
|
||||
myHasVersion(Standard_False),
|
||||
@ -44,6 +45,7 @@ myIsReadOnly(ReadOnly)
|
||||
|
||||
CDM_MetaData::CDM_MetaData(const TCollection_ExtendedString& aFolder, const TCollection_ExtendedString& aName, const TCollection_ExtendedString& aPath,const TCollection_ExtendedString& aVersion,const TCollection_ExtendedString& aFileName,const Standard_Boolean ReadOnly):
|
||||
myIsRetrieved(Standard_False),
|
||||
myDocument(NULL),
|
||||
myFolder(aFolder),
|
||||
myName(aName),
|
||||
myVersion(aVersion),
|
||||
|
@ -28,7 +28,8 @@ CDM_Reference::CDM_Reference(const Handle(CDM_Document)& aFromDocument, const Ha
|
||||
myToDocument(aToDocument),
|
||||
myFromDocument(aFromDocument.operator->()),
|
||||
myReferenceIdentifier(aReferenceIdentifier),
|
||||
myDocumentVersion(aToDocumentVersion)
|
||||
myDocumentVersion(aToDocumentVersion),
|
||||
myUseStorageConfiguration(Standard_False)
|
||||
{}
|
||||
|
||||
CDM_Reference::CDM_Reference(const Handle(CDM_Document)& aFromDocument, const Handle(CDM_MetaData)& aToDocument, const Standard_Integer aReferenceIdentifier, const Handle(CDM_Application)& anApplication, const Standard_Integer aToDocumentVersion, const Standard_Boolean UseStorageConfiguration):
|
||||
|
@ -234,7 +234,12 @@ Standard_Real CPnts_AbscissaPoint::Length(const Adaptor2d_Curve2d& C,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
CPnts_AbscissaPoint::CPnts_AbscissaPoint() : myDone(Standard_False)
|
||||
CPnts_AbscissaPoint::CPnts_AbscissaPoint()
|
||||
: myDone(Standard_False),
|
||||
myL(0.0),
|
||||
myParam(0.0),
|
||||
myUMin(0.0),
|
||||
myUMax(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -231,9 +231,21 @@ void CPnts_UniformDeflection::Perform()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
CPnts_UniformDeflection::CPnts_UniformDeflection ()
|
||||
{
|
||||
myDone = Standard_False;
|
||||
CPnts_UniformDeflection::CPnts_UniformDeflection ()
|
||||
: myDone(Standard_False),
|
||||
my3d(Standard_False),
|
||||
myFinish(Standard_False),
|
||||
myTolCur(0.0),
|
||||
myControl(Standard_False),
|
||||
myIPoint(0),
|
||||
myNbPoints(0),
|
||||
myDwmax(0.0),
|
||||
myDeflection(0.0),
|
||||
myFirstParam(0.0),
|
||||
myLastParam(0.0),
|
||||
myDu(0.0)
|
||||
{
|
||||
memset (myParams, 0, sizeof (myParams));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -28,8 +28,10 @@
|
||||
Contap_ArcFunction::Contap_ArcFunction ():
|
||||
myMean(1.),
|
||||
myType(Contap_ContourStd),
|
||||
myDir(0.,0.,1.)
|
||||
{}
|
||||
myDir(0.,0.,1.),
|
||||
myCosAng(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void Contap_ArcFunction::Set(const Handle(Adaptor3d_HSurface)& S)
|
||||
|
@ -30,7 +30,13 @@
|
||||
|
||||
static const Standard_Real Tolpetit = 1.e-8;
|
||||
|
||||
Contap_ContAna::Contap_ContAna (): done(Standard_False) {}
|
||||
Contap_ContAna::Contap_ContAna ()
|
||||
: done(Standard_False),
|
||||
nbSol(0),
|
||||
typL(GeomAbs_OtherCurve),
|
||||
prm(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
void Contap_ContAna::Perform (const gp_Sphere& S,
|
||||
const gp_Dir& D)
|
||||
|
@ -23,13 +23,18 @@
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
Contap_Point::Contap_Point ():
|
||||
onarc(Standard_False),isvtx(Standard_False),ismult(Standard_False),
|
||||
myInternal(Standard_False)
|
||||
{}
|
||||
uparam(0.0), vparam(0.0), paraline(0.0),
|
||||
onarc(Standard_False), prmarc(0.0), isvtx(Standard_False),
|
||||
ismult(Standard_False), myInternal(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
Contap_Point::Contap_Point (const gp_Pnt& Pt,
|
||||
const Standard_Real U,
|
||||
const Standard_Real V):
|
||||
pt(Pt),uparam(U),vparam(V),onarc(Standard_False),isvtx(Standard_False),
|
||||
ismult(Standard_False),myInternal(Standard_False)
|
||||
{}
|
||||
pt(Pt),uparam(U),vparam(V),
|
||||
paraline(0.0), onarc(Standard_False),
|
||||
prmarc(0.0), isvtx(Standard_False),
|
||||
ismult(Standard_False), myInternal(Standard_False)
|
||||
{
|
||||
}
|
@ -32,11 +32,19 @@ Contap_SurfFunction::Contap_SurfFunction ():
|
||||
myMean(1.),
|
||||
myType(Contap_ContourStd),
|
||||
myDir(0.,0.,1.),
|
||||
myAng(0.0),
|
||||
myCosAng(0.), // PI/2 - Angle de depouille
|
||||
tol(1.e-6),
|
||||
valf(0.0),
|
||||
Usol(0.0),
|
||||
Vsol(0.0),
|
||||
Fpu(0.0),
|
||||
Fpv(0.0),
|
||||
tangent(Standard_False),
|
||||
computed(Standard_False),
|
||||
derived(Standard_False)
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
void Contap_SurfFunction::Set(const Handle(Adaptor3d_HSurface)& S)
|
||||
{
|
||||
|
@ -38,7 +38,11 @@
|
||||
//=======================================================================
|
||||
|
||||
DBRep_HideData::DBRep_HideData()
|
||||
{}
|
||||
: myView(-1),
|
||||
myFocal(0.0),
|
||||
myAngle(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Set
|
||||
|
@ -26,6 +26,10 @@ IMPLEMENT_STANDARD_RTTIEXT(Draw_Drawable3D,Standard_Transient)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Draw_Drawable3D::Draw_Drawable3D() :
|
||||
myXmin(0.0),
|
||||
myXmax(0.0),
|
||||
myYmin(0.0),
|
||||
myYmax(0.0),
|
||||
isVisible(Standard_False),
|
||||
isProtected(Standard_False),
|
||||
myName(NULL)
|
||||
|
@ -277,7 +277,8 @@ Draw_Interpretor::Draw_Interpretor(const Draw_PInterp& p) :
|
||||
isAllocated(Standard_False),
|
||||
myInterp(p),
|
||||
myDoLog(Standard_False),
|
||||
myDoEcho(Standard_False)
|
||||
myDoEcho(Standard_False),
|
||||
myFDLog(-1)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ Draw_Marker2D::Draw_Marker2D(const gp_Pnt2d& P, const Draw_MarkerShape T,
|
||||
|
||||
Draw_Marker2D::Draw_Marker2D(const gp_Pnt2d& P, const Draw_MarkerShape T,
|
||||
const Draw_Color& C, const Standard_Real /*RSize*/) :
|
||||
myPos(P), myCol(C), myTyp(T)
|
||||
myPos(P), myCol(C), myTyp(T), mySiz(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Draw_Marker3D,Draw_Drawable3D)
|
||||
//=======================================================================
|
||||
Draw_Marker3D::Draw_Marker3D(const gp_Pnt& P, const Draw_MarkerShape T,
|
||||
const Draw_Color& C, const Standard_Integer S) :
|
||||
myPos(P), myCol(C), myTyp(T), mySiz(S), myIsRSiz(Standard_False)
|
||||
myPos(P), myCol(C), myTyp(T), mySiz(S), myRSiz(0.0), myIsRSiz(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ Draw_Marker3D::Draw_Marker3D(const gp_Pnt& P, const Draw_MarkerShape T,
|
||||
|
||||
Draw_Marker3D::Draw_Marker3D(const gp_Pnt& P, const Draw_MarkerShape T,
|
||||
const Draw_Color& C, const Standard_Real RSize) :
|
||||
myPos(P), myCol(C), myTyp(T), myRSiz(RSize), myIsRSiz(Standard_True)
|
||||
myPos(P), myCol(C), myTyp(T), mySiz(0), myRSiz(RSize), myIsRSiz(Standard_True)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ Draw_View::Draw_View(Standard_Integer theId,
|
||||
myFrameX1 (0),
|
||||
myFrameY1 (0)
|
||||
{
|
||||
memset (myType, 0, sizeof (myType));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -68,6 +69,7 @@ Draw_View::Draw_View(Standard_Integer theId,
|
||||
myFrameX1 (0),
|
||||
myFrameY1 (0)
|
||||
{
|
||||
memset (myType, 0, sizeof (myType));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -96,6 +98,7 @@ Draw_View::Draw_View(Standard_Integer theId,
|
||||
myFrameX1 (0),
|
||||
myFrameY1 (0)
|
||||
{
|
||||
memset (myType, 0, sizeof (myType));
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -130,6 +133,7 @@ Draw_View::Draw_View(Standard_Integer theId,
|
||||
myFrameX1 (0),
|
||||
myFrameY1 (0)
|
||||
{
|
||||
memset (myType, 0, sizeof (myType));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -1453,7 +1453,9 @@ DrawWindow::DrawWindow() :
|
||||
next(firstWindow),
|
||||
previous(NULL),
|
||||
myMemHbm(NULL),
|
||||
myUseBuffer(Standard_False)
|
||||
myUseBuffer(Standard_False),
|
||||
myCurrPen(0),
|
||||
myCurrMode(0)
|
||||
{
|
||||
if (firstWindow) firstWindow->previous = this;
|
||||
firstWindow = this;
|
||||
|
@ -370,7 +370,13 @@ class Segment
|
||||
friend class DrawWindow;
|
||||
public :
|
||||
//constructeur
|
||||
Segment () {}
|
||||
Segment ()
|
||||
: x1(0),
|
||||
y1(0),
|
||||
x2(0),
|
||||
y2(0)
|
||||
{
|
||||
}
|
||||
//destructeur
|
||||
~Segment () {}
|
||||
|
||||
|
@ -32,6 +32,7 @@ IMPLEMENT_STANDARD_RTTIEXT(DrawDim_Dimension,Draw_Drawable3D)
|
||||
//=======================================================================
|
||||
DrawDim_Dimension::DrawDim_Dimension()
|
||||
: is_valued(Standard_False),
|
||||
myValue(0.0),
|
||||
myTextColor(Draw_blanc)
|
||||
{
|
||||
}
|
||||
|
@ -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;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user