const Handle(Geom_BSplineCurve)& BSplC,
gp_Pnt2d& LeftBot, gp_Pnt2d& RightTop)
{
- Standard_Real Comp1=0, DComp1=0, cur, f, l;
+ Standard_Real Comp1=0, DComp1=0, cur, f = 0.0, l = 0.0;
Standard_Real Tol = Precision::PConfusion()/10;
Standard_Integer i = 1, Bnd1, Bnd2;
Standard_Boolean DIsNull= Standard_False;
const TColStd_Array1OfReal& Arr,
gp_Pnt2d& LeftBot, gp_Pnt2d& RightTop)
{
- Standard_Real Comp=0,DComp=0,Tmp1,Tmp2;
+ Standard_Real Comp=0,DComp=0,Tmp1=0.0,Tmp2=0.0;
Standard_Real Tol=Precision::PConfusion()/10;
Standard_Integer N, NUp=0, NLo=0;
if(Index==1)
//Control tangents at the extremities to know if the
//reparametring is possible and calculate the tangents
//at the extremities of the function of change of variable.
- Standard_Real tangent[2];
+ Standard_Real tangent[2] = { 0.0, 0.0 };
gp_Pnt Pcons,Pc3d;
gp_Vec Vcons,Vc3d;
TopoDS_Face face;
Standard_Integer jfp = 0,ii;
Standard_Integer ic,icplus,icmoins,icplus2,
- sense,index,indice,isurf1,isurf2;
+ sense,index = 0,indice,isurf1,isurf2;
Standard_Integer cbplus=0, n3d=0,IVtx = 0,nb;
Standard_Boolean sameside,trouve,isfirst;
Standard_Real pardeb ,parfin,xdir,ydir;
Handle(ChFiDS_ChamfSpine) chsp[2];
- Standard_Real d[4], dis[2];
+ Standard_Real d[4], dis[2] = { 0.0, 0.0 };
Standard_Integer j;
TopoDS_Face F[4];
Standard_Real tmpang, tmd;
Standard_Real Uf = FirstParameter(IE);
Standard_Real Ul = LastParameter(IE);
- Standard_Real StartRad, par, rad;
+ Standard_Real StartRad = 0.0, par, rad;
Standard_Integer i;
for (i = 1; i < parandrad.Length(); i++)
{
gp_Pnt ptonsurf;
gp_Vec vectg,normale,tgtrst;
- Standard_Real paramlin;
+ Standard_Real paramlin = 0.0;
Standard_Integer nbLin = slin.Length();
Quantity_Color Graphic3d_ArrayOfPrimitives::BoundColor(const Standard_Integer aRank) const
{
- Standard_Real r,g,b;
+ Standard_Real r = 0.0, g = 0.0, b = 0.0;
BoundColor(aRank,r,g,b);
return Quantity_Color(r,g,b,Quantity_TOC_RGB);
}
//-- aucun point du triangle n a ete trouve assez proche
//-- on recherche les 3 points les plus proches de P
//-- dans chacun des tableaux
- Standard_Real Dist3[3],u3[3],v3[3];
+ Standard_Real Dist3[3],u3[3] = { 0.0, 0.0, 0.0 },v3[3] = { 0.0, 0.0, 0.0 };
Dist3[0]=Dist3[1]=Dist3[2]=RealLast();
for(U=resu0,i=0; i<SU1; i++,U+=du1) {
for(V=resv0,j=0; j<SV1; V+=dv1,j++) {
}
if(NoIntersectionWithTriangle == Standard_False) {
gp_XYZ spLieu=BegO.XYZ()+((EndO.XYZ()-BegO.XYZ())*param);
- Standard_Real dPiE[3], dPtPi[3], sigd;
+ Standard_Real dPiE[3] = { 0.0, 0.0, 0.0 }, dPtPi[3], sigd;
Standard_Integer is = 0;
Standard_Integer sEdge=-1;
Standard_Integer sVertex=-1;
}
if(NoIntersectionWithTriangle == Standard_False) {
gp_XYZ spLieu=BegO.XYZ()+((EndO.XYZ()-BegO.XYZ())*param);
- Standard_Real dPiE[3], dPtPi[3], sigd;
+ Standard_Real dPiE[3] = { 0.0, 0.0, 0.0 }, dPtPi[3], sigd;
Standard_Integer is = 0;
Standard_Integer sEdge=-1;
Standard_Integer sVertex=-1;
for ( ; i < nb_lights; i++, alight++ )
{
OpenGl_Light rep;
+ memset(&rep,0,sizeof(rep));
switch( alight->LightType )
{
default:
{
Standard_Boolean IsTrimmed[2] = {Standard_False, Standard_False};
- Standard_Real Vsingular[2]; //for surfaces of revolution
+ Standard_Real Vsingular[2] = { 0.0 , 0.0 }; //for surfaces of revolution
Standard_Real f = 0., l = 0., dt = 0.;
const Standard_Real eps = 0.01;
TopoDS_Edge aEdge;
TopoDS_Vertex aVer;
- Standard_Real aPar, aDist;
+ Standard_Real aPar=0.0, aDist;
if (IsVertexOnFaceBound (aSVer, aFace1, aEdge, aVer, aPar, aDist)) {
// aSVer contacts aFace's boundary
gp_Pnt pt;
Standard_Integer mpt[2]; mpt[0] = mpt[1] = 0;
- Standard_Real t, tpar[2], isoValue=0.;
+ Standard_Real t, tpar[2] = { 0.0, 0.0 }, isoValue=0.;
Standard_Real mindist2;
Standard_Real mind2[2];
mindist2 = mind2[0] = mind2[1] = 4*prec*prec;
gp_Pnt P1; gp_Vec D1_C1; C1->D1(T1,P1,D1_C1);
// D1_C2 : D1(C2(P1))
- Standard_Real T2;
+ Standard_Real T2 = 0.0;
Standard_Boolean projok = ::FUN_ProjectPoint(P1,C2,FC2,LC2,T2);
if ( !projok ) {
return Standard_False;
myTole = Precision::Angular(); // NYI
- Standard_Real pref; Standard_Boolean ok = ::FUN_hasparam(I, pref);
+ Standard_Real pref=0.0; Standard_Boolean ok = ::FUN_hasparam(I, pref);
if (!ok) {FUN_Raise(); return;}
// <myP3d> :
{
TopOpeBRepDS_ListIteratorOfListOfInterference itL1(L1);
for (;itL1.More(); itL1.Next()) {
const Handle(TopOpeBRepDS_Interference)& I = itL1.Value();
- TopOpeBRepDS_Kind GT,ST;Standard_Integer G,S;
+ TopOpeBRepDS_Kind GT = TopOpeBRepDS_UNKNOWN, ST = TopOpeBRepDS_UNKNOWN; Standard_Integer G,S = 0;
FUN_HDS_data(I,GT,G,ST,S);
// interference face1/edge/face2
Standard_Boolean fef = Standard_True;