1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0024399: ICC warnings 3280 "declaration hides..."

Renamed local variables to avoid ICC compiler warnings about repeated names
This commit is contained in:
ski 2013-11-26 18:17:10 +04:00 committed by bugmaster
parent 9f37b47ddd
commit 75259fc556
24 changed files with 237 additions and 238 deletions

View File

@ -489,31 +489,31 @@ const
{ {
// Boucle de calcul du nombre de points de passage afin de dimensionner // Boucle de calcul du nombre de points de passage afin de dimensionner
// les matrices. // les matrices.
Standard_Integer IncPass, IncTan, IncCurv, CCol; Standard_Integer aIncPass, aIncTan, aIncCurv, aCCol;
Standard_Integer i; Standard_Integer i;
AppParCurves_Constraint Cons; AppParCurves_Constraint Cons;
IncPass = 0; aIncPass = 0;
IncTan = 0; aIncTan = 0;
IncCurv = 0; aIncCurv = 0;
for (i = TheConstraints->Lower(); i <= TheConstraints->Upper(); i++) { for (i = TheConstraints->Lower(); i <= TheConstraints->Upper(); i++) {
Cons = (TheConstraints->Value(i)).Constraint(); Cons = (TheConstraints->Value(i)).Constraint();
if (Cons >= 1) { if (Cons >= 1) {
IncPass++; // IncPass = nbre de points de passage. aIncPass++; // IncPass = nbre de points de passage.
} }
if (Cons >= 2) { if (Cons >= 2) {
IncTan++; // IncTan= nbre de points de tangence. aIncTan++; // IncTan= nbre de points de tangence.
} }
if (Cons == 3) { if (Cons == 3) {
IncCurv++; // IncCurv = nbre de pts de courbure. aIncCurv++; // IncCurv = nbre de pts de courbure.
} }
} }
Standard_Integer nb3d = ToolLine::NbP3d(SSP); Standard_Integer nb3d = ToolLine::NbP3d(SSP);
Standard_Integer nb2d = ToolLine::NbP2d(SSP); Standard_Integer nb2d = ToolLine::NbP2d(SSP);
CCol = nb3d* 3 + nb2d* 2; aCCol = nb3d* 3 + nb2d* 2;
return CCol*IncPass + IncTan*(CCol-1) + 3*IncCurv; return aCCol*aIncPass + aIncTan*(aCCol-1) + 3*aIncCurv;
} }

View File

@ -432,7 +432,7 @@ const TopoDS_Wire& BRepAdaptor_CompCurve::Wire() const
void BRepAdaptor_CompCurve::Prepare(Standard_Real& W, void BRepAdaptor_CompCurve::Prepare(Standard_Real& W,
Standard_Real& Delta, Standard_Real& Delta,
Standard_Integer& CurIndex) const Standard_Integer& theCurIndex) const
{ {
Standard_Real f,l, Wtest, Eps; Standard_Real f,l, Wtest, Eps;
Standard_Integer ii; Standard_Integer ii;
@ -450,26 +450,26 @@ const TopoDS_Wire& BRepAdaptor_CompCurve::Wire() const
// Find the index // Find the index
Standard_Boolean Trouve = Standard_False; Standard_Boolean Trouve = Standard_False;
if (myKnots->Value(CurIndex) > Wtest) { if (myKnots->Value(theCurIndex) > Wtest) {
for (ii=CurIndex-1; ii>0 && !Trouve; ii--) for (ii=theCurIndex-1; ii>0 && !Trouve; ii--)
if (myKnots->Value(ii)<= Wtest) { if (myKnots->Value(ii)<= Wtest) {
CurIndex = ii; theCurIndex = ii;
Trouve = Standard_True; Trouve = Standard_True;
} }
if (!Trouve) CurIndex = 1; // Out of limits... if (!Trouve) theCurIndex = 1; // Out of limits...
} }
else if (myKnots->Value(CurIndex+1) <= Wtest) { else if (myKnots->Value(theCurIndex+1) <= Wtest) {
for (ii=CurIndex+1; ii<=myCurves->Length() && !Trouve; ii++) for (ii=theCurIndex+1; ii<=myCurves->Length() && !Trouve; ii++)
if (myKnots->Value(ii+1)> Wtest) { if (myKnots->Value(ii+1)> Wtest) {
CurIndex = ii; theCurIndex = ii;
Trouve = Standard_True; Trouve = Standard_True;
} }
if (!Trouve) CurIndex = myCurves->Length(); // Out of limits... if (!Trouve) theCurIndex = myCurves->Length(); // Out of limits...
} }
// Invert ? // Invert ?
const TopoDS_Edge& E = myCurves->Value(CurIndex).Edge(); const TopoDS_Edge& E = myCurves->Value(theCurIndex).Edge();
TopAbs_Orientation Or = E.Orientation(); TopAbs_Orientation Or = E.Orientation();
Standard_Boolean Reverse; Standard_Boolean Reverse;
Reverse = (Forward && (Or == TopAbs_REVERSED)) || Reverse = (Forward && (Or == TopAbs_REVERSED)) ||
@ -477,15 +477,15 @@ const TopoDS_Wire& BRepAdaptor_CompCurve::Wire() const
// Calculate the local parameter // Calculate the local parameter
BRep_Tool::Range(E, f, l); BRep_Tool::Range(E, f, l);
Delta = myKnots->Value(CurIndex+1) - myKnots->Value(CurIndex); Delta = myKnots->Value(theCurIndex+1) - myKnots->Value(theCurIndex);
if (Delta > PTol*1.e-9) Delta = (l-f)/Delta; if (Delta > PTol*1.e-9) Delta = (l-f)/Delta;
if (Reverse) { if (Reverse) {
Delta *= -1; Delta *= -1;
W = l + (W-myKnots->Value(CurIndex)) * Delta; W = l + (W-myKnots->Value(theCurIndex)) * Delta;
} }
else { else {
W = f + (W-myKnots->Value(CurIndex)) * Delta; W = f + (W-myKnots->Value(theCurIndex)) * Delta;
} }
} }

View File

@ -31,18 +31,18 @@ BRepBlend_AppFunc::BRepBlend_AppFunc(Handle(BRepBlend_Line)& Line,
void BRepBlend_AppFunc::Point(const Blend_AppFunction& Func, void BRepBlend_AppFunc::Point(const Blend_AppFunction& Func,
const Standard_Real Param, const Standard_Real Param,
const math_Vector& Sol, const math_Vector& theSol,
Blend_Point& Pnt)const Blend_Point& Pnt)const
{ {
Pnt.SetValue(Func.Pnt1(), Func.Pnt2(), Pnt.SetValue(Func.Pnt1(), Func.Pnt2(),
Param, Param,
Sol(1), Sol(2), Sol(3), Sol(4)); theSol(1), theSol(2), theSol(3), theSol(4));
} }
void BRepBlend_AppFunc::Vec(math_Vector& Sol, void BRepBlend_AppFunc::Vec(math_Vector& theSol,
const Blend_Point& Pnt)const const Blend_Point& Pnt)const
{ {
Pnt.ParametersOnS1(Sol(1),Sol(2)); Pnt.ParametersOnS1(theSol(1),theSol(2));
Pnt.ParametersOnS2(Sol(3),Sol(4)); Pnt.ParametersOnS2(theSol(3),theSol(4));
} }

View File

@ -32,18 +32,18 @@ BRepBlend_AppFuncRst::BRepBlend_AppFuncRst (Handle(BRepBlend_Line)& Line,
void BRepBlend_AppFuncRst::Point(const Blend_AppFunction& Func, void BRepBlend_AppFuncRst::Point(const Blend_AppFunction& Func,
const Standard_Real Param, const Standard_Real Param,
const math_Vector& Sol, const math_Vector& theSol,
Blend_Point& Pnt)const Blend_Point& Pnt)const
{ {
Pnt.SetValue(Func.Pnt1(), Func.Pnt2(), Pnt.SetValue(Func.Pnt1(), Func.Pnt2(),
Param, Param,
Sol(1), Sol(2), Sol(3)); theSol(1), theSol(2), theSol(3));
} }
void BRepBlend_AppFuncRst::Vec(math_Vector& Sol, void BRepBlend_AppFuncRst::Vec(math_Vector& theSol,
const Blend_Point& Pnt)const const Blend_Point& Pnt)const
{ {
Pnt.ParametersOnS(Sol(1),Sol(2)); Pnt.ParametersOnS(theSol(1),theSol(2));
Sol(3) = Pnt.ParameterOnC(); theSol(3) = Pnt.ParameterOnC();
} }

View File

@ -32,18 +32,18 @@ BRepBlend_AppFuncRstRst::BRepBlend_AppFuncRstRst (Handle(BRepBlend_Line)& Line,
void BRepBlend_AppFuncRstRst::Point(const Blend_AppFunction& Func, void BRepBlend_AppFuncRstRst::Point(const Blend_AppFunction& Func,
const Standard_Real Param, const Standard_Real Param,
const math_Vector& Sol, const math_Vector& theSol,
Blend_Point& Pnt)const Blend_Point& Pnt)const
{ {
Pnt.SetValue(Func.Pnt1(), Func.Pnt2(), Pnt.SetValue(Func.Pnt1(), Func.Pnt2(),
Param, Param,
Sol(1), Sol(2)); theSol(1), theSol(2));
} }
void BRepBlend_AppFuncRstRst::Vec(math_Vector& Sol, void BRepBlend_AppFuncRstRst::Vec(math_Vector& theSol,
const Blend_Point& Pnt)const const Blend_Point& Pnt)const
{ {
Sol(1) = Pnt.ParameterOnC1(); theSol(1) = Pnt.ParameterOnC1();
Sol(2) = Pnt.ParameterOnC2(); theSol(2) = Pnt.ParameterOnC2();
} }

View File

@ -887,7 +887,7 @@ TColStd_Array1OfReal& DWeigths)
gp_Vec d1urst,d1vrst; gp_Vec d1urst,d1vrst;
gp_Pnt Center,bid; gp_Pnt Center,bid;
Standard_Real norm,ndotns,grosterme,dray; Standard_Real norm,ndotns,grosterme,aDray;
math_Vector sol(1,3),valsol(1,3),secmember(1,3); math_Vector sol(1,3),valsol(1,3),secmember(1,3);
math_Matrix gradsol(1,3,1,3); math_Matrix gradsol(1,3,1,3);
@ -899,9 +899,9 @@ TColStd_Array1OfReal& DWeigths)
tguide->D2(prm,ptgui,d1gui,d2gui); tguide->D2(prm,ptgui,d1gui,d2gui);
tevol->D1(prm,ray,dray); tevol->D1(prm,ray,aDray);
ray=sg1*ray; ray=sg1*ray;
dray=sg1*dray; aDray=sg1*aDray;
normtg = d1gui.Magnitude(); normtg = d1gui.Magnitude();
nplan = d1gui.Normalized(); nplan = d1gui.Normalized();
dnplan.SetLinearForm(1./normtg,d2gui, dnplan.SetLinearForm(1./normtg,d2gui,
@ -944,7 +944,7 @@ TColStd_Array1OfReal& DWeigths)
resul.SetLinearForm(ray,temp,gp_Vec(ptrst,pts)); resul.SetLinearForm(ray,temp,gp_Vec(ptrst,pts));
//secmember(3) = -2.*ray*(dnw.Dot(resul)); // jag 950105 il manquait ray //secmember(3) = -2.*ray*(dnw.Dot(resul)); // jag 950105 il manquait ray
secmember(3) = -2.*ray*(dnw.Dot(resul)) - 2.*dray*(temp.Dot(resul)) + 2.*ray*dray; secmember(3) = -2.*ray*(dnw.Dot(resul)) - 2.*aDray*(temp.Dot(resul)) + 2.*ray*aDray;
math_Gauss Resol(gradsol); math_Gauss Resol(gradsol);
if (Resol.IsDone()) { if (Resol.IsDone()) {
@ -985,7 +985,7 @@ TColStd_Array1OfReal& DWeigths)
ns.SetLinearForm(ndotns/norm,nplan, -1./norm,ns); ns.SetLinearForm(ndotns/norm,nplan, -1./norm,ns);
dn2w.SetLinearForm(ray, dnw, -1., tgrst, tgs); dn2w.SetLinearForm(ray, dnw, -1., tgrst, tgs);
dn2w.SetLinearForm(dray,ns,dn2w); dn2w.SetLinearForm(aDray,ns,dn2w);
norm = resul.Magnitude(); norm = resul.Magnitude();
dn2w.Divide(norm); dn2w.Divide(norm);
ns2 = -resul.Normalized(); ns2 = -resul.Normalized();
@ -1029,7 +1029,7 @@ TColStd_Array1OfReal& DWeigths)
// Case of the circle // Case of the circle
Center.SetXYZ(pts.XYZ()+ray*ns.XYZ()); Center.SetXYZ(pts.XYZ()+ray*ns.XYZ());
if (!istgt) { if (!istgt) {
tgct.SetLinearForm(ray,dnw,dray,ns,tgs); tgct.SetLinearForm(ray,dnw,aDray,ns,tgs);
} }
if (ray > 0.) { if (ray > 0.) {
@ -1044,9 +1044,9 @@ TColStd_Array1OfReal& DWeigths)
} }
if (!istgt) { if (!istgt) {
if (ray < 0.) { // to avoid Abs(dray) some lines below if (ray < 0.) { // to avoid Abs(dray) some lines below
rayprim = -dray; rayprim = -aDray;
} }
else rayprim = dray; else rayprim = aDray;
return GeomFill::GetCircle(myTConv, return GeomFill::GetCircle(myTConv,
ns, ns2, ns, ns2,

View File

@ -154,7 +154,7 @@ static void Drawsect(const Standard_Real param,
//======================================================================= //=======================================================================
Standard_Integer BRepBlend_SurfRstLineBuilder:: Standard_Integer BRepBlend_SurfRstLineBuilder::
ArcToRecadre(const math_Vector& sol, ArcToRecadre(const math_Vector& theSol,
const Standard_Integer PrevIndex, const Standard_Integer PrevIndex,
gp_Pnt2d& lastpt2d, gp_Pnt2d& lastpt2d,
gp_Pnt2d& pt2d, gp_Pnt2d& pt2d,
@ -167,7 +167,7 @@ Standard_Integer BRepBlend_SurfRstLineBuilder::
Standard_Real uprev = 0.,vprev = 0., prm = 0., dist = 0.; Standard_Real uprev = 0.,vprev = 0., prm = 0., dist = 0.;
if(byinter) previousP.ParametersOnS(uprev,vprev); if(byinter) previousP.ParametersOnS(uprev,vprev);
pt2d.SetCoord(sol(1),sol(2)); pt2d.SetCoord(theSol(1),theSol(2));
lastpt2d.SetCoord(uprev,vprev); lastpt2d.SetCoord(uprev,vprev);
domain1->Init(); domain1->Init();

View File

@ -488,9 +488,9 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
if(edge.ShapeType()!=TopAbs_EDGE) return 1; if(edge.ShapeType()!=TopAbs_EDGE) return 1;
E.Append(edge); E.Append(edge);
} }
FilletSurf_Builder Rakk(V,E,Rad); FilletSurf_Builder aRakk(V,E,Rad);
if (simul) Rakk.Simulate(); if (simul) aRakk.Simulate();
else Rakk.Perform(); else aRakk.Perform();
//if (Rakk.IsDone()==FilletSurf_IsNotOk) //if (Rakk.IsDone()==FilletSurf_IsNotOk)
// { FilletSurf_ErrorTypeStatus err=Rakk.StatusError(); // { FilletSurf_ErrorTypeStatus err=Rakk.StatusError();
@ -504,8 +504,8 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
// } // }
// else { // else {
// if (Rakk.IsDone()==FilletSurf_IsPartial) cout <<"resultat partiel"<<endl; // if (Rakk.IsDone()==FilletSurf_IsPartial) cout <<"resultat partiel"<<endl;
if (Rakk.IsDone()==FilletSurf_IsNotOk) if (aRakk.IsDone()==FilletSurf_IsNotOk)
{ FilletSurf_ErrorTypeStatus err=Rakk.StatusError(); { FilletSurf_ErrorTypeStatus err=aRakk.StatusError();
if (err==FilletSurf_EmptyList) di<< "StatusError=EmptyList"<<"\n"; if (err==FilletSurf_EmptyList) di<< "StatusError=EmptyList"<<"\n";
else if (err==FilletSurf_EdgeNotG1) di<< "StatusError=NotG1"<<"\n"; else if (err==FilletSurf_EdgeNotG1) di<< "StatusError=NotG1"<<"\n";
else if (err==FilletSurf_FacesNotG1) di<< "StatusError=facesNotG1"<<"\n"; else if (err==FilletSurf_FacesNotG1) di<< "StatusError=facesNotG1"<<"\n";
@ -515,9 +515,9 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
else if (err==FilletSurf_PbFilletCompute) di <<"StatusError=PBFillet"<<"\n"; else if (err==FilletSurf_PbFilletCompute) di <<"StatusError=PBFillet"<<"\n";
} }
else { else {
if (Rakk.IsDone()==FilletSurf_IsPartial) di <<"partial result"<<"\n"; if (aRakk.IsDone()==FilletSurf_IsPartial) di <<"partial result"<<"\n";
nb=Rakk.NbSurface(); nb=aRakk.NbSurface();
char localname [100]; char localname [100];
char *temp; char *temp;
@ -531,11 +531,11 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
// { cout<<" type deb conges = WLBLSTOP"<<endl;} // { cout<<" type deb conges = WLBLSTOP"<<endl;}
//else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge) //else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
// {cout<<" type deb conges = WLBLEND"<<endl;} // {cout<<" type deb conges = WLBLEND"<<endl;}
if (Rakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge) if (aRakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge)
{di<<" type start fillets = WLBLOUT"<<"\n";} {di<<" type start fillets = WLBLOUT"<<"\n";}
else if (Rakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge ) else if (aRakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge)
{ di<<" type start fillets = WLBLSTOP"<<"\n";} { di<<" type start fillets = WLBLSTOP"<<"\n";}
else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge) else if (aRakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
{di<<" type start fillets = WLBLEND"<<"\n";} {di<<" type start fillets = WLBLEND"<<"\n";}
//if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge) //if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
@ -544,15 +544,15 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
// {cout<<" type fin conges = WLBLSTOP"<<endl;} // {cout<<" type fin conges = WLBLSTOP"<<endl;}
//else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge) //else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge)
// { cout<<" type fin conges = WLBLEND"<<endl;} // { cout<<" type fin conges = WLBLEND"<<endl;}
if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge) if (aRakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
{di<<" type end fillets = WLBLOUT"<<"\n";} {di<<" type end fillets = WLBLOUT"<<"\n";}
else if (Rakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge) else if (aRakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge)
{di<<" type end fillets = WLBLSTOP"<<"\n";} {di<<" type end fillets = WLBLSTOP"<<"\n";}
else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge) else if (aRakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge)
{ di<<" type end fillets = WLBLEND"<<"\n";} { di<<" type end fillets = WLBLEND"<<"\n";}
Standard_Real f,l; Standard_Real f,l;
f = Rakk.FirstParameter(); f = aRakk.FirstParameter();
l = Rakk.LastParameter(); l = aRakk.LastParameter();
//cout<<"parameter on edge start : "<<f<<endl; //cout<<"parameter on edge start : "<<f<<endl;
//cout<<"parameter on edge end : "<<l<<endl; //cout<<"parameter on edge end : "<<l<<endl;
di<<"parametre on edge start : "<<f<<"\n"; di<<"parametre on edge start : "<<f<<"\n";
@ -560,52 +560,52 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
for (i=1;i<=nb;i++){ for (i=1;i<=nb;i++){
//precision //precision
//cout<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<endl; //cout<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<endl;
di<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<"\n"; di<<"precision "<< i << "= "<<aRakk.TolApp3d(i)<<"\n";
// display resulting surfaces // display resulting surfaces
Sprintf(localname, "%s%d" ,ns0,i); Sprintf(localname, "%s%d" ,ns0,i);
temp = localname; temp = localname;
DrawTrSurf::Set(temp,Rakk.SurfaceFillet(i)); DrawTrSurf::Set(temp,aRakk.SurfaceFillet(i));
di << localname<< " "; di << localname<< " ";
// display curves 3d // display curves 3d
Sprintf(localname, "%s%d" ,"courb1",i); Sprintf(localname, "%s%d" ,"courb1",i);
temp =localname; temp =localname;
DrawTrSurf::Set(temp,Rakk.CurveOnFace1(i)); DrawTrSurf::Set(temp,aRakk.CurveOnFace1(i));
di << localname<< " "; di << localname<< " ";
Sprintf(localname, "%s%d" ,"courb2",i); Sprintf(localname, "%s%d" ,"courb2",i);
temp =localname; temp =localname;
DrawTrSurf::Set(temp,Rakk.CurveOnFace2(i)); DrawTrSurf::Set(temp,aRakk.CurveOnFace2(i));
di << localname<< " "; di << localname<< " ";
// display supports // display supports
Sprintf(localname, "%s%d" ,"face1",i); Sprintf(localname, "%s%d" ,"face1",i);
temp =localname ; temp =localname ;
DBRep::Set(temp,Rakk.SupportFace1(i)); DBRep::Set(temp,aRakk.SupportFace1(i));
di << localname<< " "; di << localname<< " ";
Sprintf(localname, "%s%d" ,"face2",i); Sprintf(localname, "%s%d" ,"face2",i);
temp =localname; temp =localname;
DBRep::Set(temp,Rakk.SupportFace2(i)); DBRep::Set(temp,aRakk.SupportFace2(i));
di << localname<< " "; di << localname<< " ";
// display Pcurves on faces // display Pcurves on faces
Sprintf(localname, "%s%d" ,"pcurveonface1",i); Sprintf(localname, "%s%d" ,"pcurveonface1",i);
temp =localname ; temp =localname ;
DrawTrSurf::Set(temp,Rakk.PCurveOnFace1(i)); DrawTrSurf::Set(temp,aRakk.PCurveOnFace1(i));
di << localname<< " "; di << localname<< " ";
Sprintf(localname, "%s%d" ,"pcurveonface2",i); Sprintf(localname, "%s%d" ,"pcurveonface2",i);
temp =localname; temp =localname;
DrawTrSurf::Set(temp,Rakk.PCurveOnFace2(i)); DrawTrSurf::Set(temp,aRakk.PCurveOnFace2(i));
di << localname<< " "; di << localname<< " ";
// display Pcurves on the fillet // display Pcurves on the fillet
Sprintf(localname, "%s%d" ,"pcurveonconge1",i); Sprintf(localname, "%s%d" ,"pcurveonconge1",i);
temp =localname; temp =localname;
DrawTrSurf::Set(temp,Rakk.PCurve1OnFillet(i)); DrawTrSurf::Set(temp,aRakk.PCurve1OnFillet(i));
di << localname<< " "; di << localname<< " ";
Sprintf(localname, "%s%d" ,"pcurveonconge2",i); Sprintf(localname, "%s%d" ,"pcurveonconge2",i);
temp =localname; temp =localname;
DrawTrSurf::Set(temp,Rakk.PCurve2OnFillet(i)); DrawTrSurf::Set(temp,aRakk.PCurve2OnFillet(i));
di << localname<< " "; di << localname<< " ";
} } } }
@ -613,10 +613,10 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
Standard_Integer j; Standard_Integer j;
for (i=1;i<=nb;i++) for (i=1;i<=nb;i++)
{Standard_Integer s=Rakk.NbSection(i); {Standard_Integer s=aRakk.NbSection(i);
for (j=1;j<=s;j++) for (j=1;j<=s;j++)
{Handle(Geom_TrimmedCurve Sec); {Handle(Geom_TrimmedCurve Sec);
Rakk.Section(i,j,Sec); aRakk.Section(i,j,Sec);
Sprintf(localname, "%s%d%d" ,"sec",i,j); Sprintf(localname, "%s%d%d" ,"sec",i,j);
temp =localname; temp =localname;
DrawTrSurf::Set (temp,Sec); DrawTrSurf::Set (temp,Sec);

View File

@ -19,7 +19,7 @@
//26-04-1997 modified by pmn : Initialisation plus fine de la resolution //26-04-1997 modified by pmn : Initialisation plus fine de la resolution
Standard_Integer Blend_Walking::ArcToRecadre(const Standard_Boolean OnFirst, Standard_Integer Blend_Walking::ArcToRecadre(const Standard_Boolean OnFirst,
const math_Vector& sol, const math_Vector& theSol,
const Standard_Integer PrevIndex, const Standard_Integer PrevIndex,
gp_Pnt2d& lastpt2d, gp_Pnt2d& lastpt2d,
gp_Pnt2d& pt2d, gp_Pnt2d& pt2d,
@ -34,12 +34,12 @@ Standard_Integer Blend_Walking::ArcToRecadre(const Standard_Boolean OnFirst,
if (OnFirst) { if (OnFirst) {
if(byinter) previousP.ParametersOnS1(uprev,vprev); if(byinter) previousP.ParametersOnS1(uprev,vprev);
pt2d.SetCoord(sol(1),sol(2)); pt2d.SetCoord(theSol(1),theSol(2));
Iter = recdomain1; Iter = recdomain1;
} }
else { else {
if(byinter) previousP.ParametersOnS2(uprev,vprev); if(byinter) previousP.ParametersOnS2(uprev,vprev);
pt2d.SetCoord(sol(3),sol(4)); pt2d.SetCoord(theSol(3),theSol(4));
Iter = recdomain2; Iter = recdomain2;
} }
lastpt2d.SetCoord(uprev,vprev); lastpt2d.SetCoord(uprev,vprev);
@ -75,7 +75,7 @@ Standard_Integer Blend_Walking::ArcToRecadre(const Standard_Boolean OnFirst,
Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv, Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv,
const Standard_Boolean OnFirst, const Standard_Boolean OnFirst,
const math_Vector& sol, const math_Vector& theSol,
math_Vector& solrst, math_Vector& solrst,
Standard_Integer& Indexsol, Standard_Integer& Indexsol,
Standard_Boolean& IsVtx, Standard_Boolean& IsVtx,
@ -100,7 +100,7 @@ Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv,
if (OnFirst) Iter = recdomain1; if (OnFirst) Iter = recdomain1;
else Iter = recdomain2; else Iter = recdomain2;
Indexsol = ArcToRecadre(OnFirst, sol, 0, Indexsol = ArcToRecadre(OnFirst, theSol, 0,
lastpt2d, pt2d, pmin); lastpt2d, pt2d, pmin);
IsVtx = Standard_False; IsVtx = Standard_False;
if (Indexsol == 0) { if (Indexsol == 0) {
@ -175,12 +175,12 @@ Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv,
if (OnFirst) { if (OnFirst) {
previousP.ParametersOnS2(u,v); previousP.ParametersOnS2(u,v);
Pnt1.SetCoord(u, v); Pnt1.SetCoord(u, v);
Pnt2.SetCoord(sol(3), sol(4)); Pnt2.SetCoord(theSol(3), theSol(4));
} }
else { else {
previousP.ParametersOnS1(u,v); previousP.ParametersOnS1(u,v);
Pnt1.SetCoord(u, v); Pnt1.SetCoord(u, v);
Pnt2.SetCoord(sol(1), sol(2)); Pnt2.SetCoord(theSol(1), theSol(2));
} }
lambda = Pnt.Distance(lastpt2d); lambda = Pnt.Distance(lastpt2d);
@ -196,12 +196,12 @@ Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv,
solrst(1) = pmin; solrst(1) = pmin;
solrst(2) = param; solrst(2) = param;
if (OnFirst) { if (OnFirst) {
solrst(3) = sol(3); solrst(3) = theSol(3);
solrst(4) = sol(4); solrst(4) = theSol(4);
} }
else { else {
solrst(3) = sol(1); solrst(3) = theSol(1);
solrst(4) = sol(2); solrst(4) = theSol(2);
} }
} }
@ -288,7 +288,7 @@ Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv,
if ((!recadre) && if ((!recadre) &&
((Abs(pmin-ulast) < dist) || (Abs(pmin-ufirst) < dist)) ) { ((Abs(pmin-ulast) < dist) || (Abs(pmin-ufirst) < dist)) ) {
Indexsol = ArcToRecadre(OnFirst, sol, Indexsol, Indexsol = ArcToRecadre(OnFirst, theSol, Indexsol,
lastpt2d, pt2d, pmin); lastpt2d, pt2d, pmin);
if (Indexsol == 0) { if (Indexsol == 0) {
return Standard_False; return Standard_False;

View File

@ -455,10 +455,10 @@ Standard_Boolean ChFi2d_AnaFilletAlgo::Perform(const Standard_Real radius)
} }
// Retrieves a result (fillet and shrinked neighbours). // Retrieves a result (fillet and shrinked neighbours).
const TopoDS_Edge& ChFi2d_AnaFilletAlgo::Result(TopoDS_Edge& e1, TopoDS_Edge& e2) const TopoDS_Edge& ChFi2d_AnaFilletAlgo::Result(TopoDS_Edge& theE1, TopoDS_Edge& theE2)
{ {
e1 = shrinke1; theE1 = shrinke1;
e2 = shrinke2; theE2 = shrinke2;
return fillet; return fillet;
} }
@ -868,14 +868,14 @@ Standard_Boolean ChFi2d_AnaFilletAlgo::ArcFilletArc(const Standard_Real radius,
} }
// Cuts intersecting edges of a contour. // Cuts intersecting edges of a contour.
Standard_Boolean ChFi2d_AnaFilletAlgo::Cut(const gp_Pln& plane, TopoDS_Edge& e1, TopoDS_Edge& e2) Standard_Boolean ChFi2d_AnaFilletAlgo::Cut(const gp_Pln& thePlane, TopoDS_Edge& theE1, TopoDS_Edge& theE2)
{ {
gp_Pnt p; gp_Pnt p;
Standard_Boolean found(Standard_False); Standard_Boolean found(Standard_False);
Standard_Real param1 = 0.0, param2 = 0.0; Standard_Real param1 = 0.0, param2 = 0.0;
Standard_Real f1, l1, f2, l2; Standard_Real f1, l1, f2, l2;
Handle(Geom_Curve) c1 = BRep_Tool::Curve(e1, f1, l1); Handle(Geom_Curve) c1 = BRep_Tool::Curve(theE1, f1, l1);
Handle(Geom_Curve) c2 = BRep_Tool::Curve(e2, f2, l2); Handle(Geom_Curve) c2 = BRep_Tool::Curve(theE2, f2, l2);
GeomAPI_ExtremaCurveCurve extrema(c1, c2, f1, l1, f2, l2); GeomAPI_ExtremaCurveCurve extrema(c1, c2, f1, l1, f2, l2);
if (extrema.NbExtrema()) if (extrema.NbExtrema())
{ {
@ -902,14 +902,14 @@ Standard_Boolean ChFi2d_AnaFilletAlgo::Cut(const gp_Pln& plane, TopoDS_Edge& e1,
BRepBuilderAPI_MakeEdge mkEdge1(c1, f1, param1); BRepBuilderAPI_MakeEdge mkEdge1(c1, f1, param1);
if (mkEdge1.IsDone()) if (mkEdge1.IsDone())
{ {
e1 = mkEdge1.Edge(); theE1 = mkEdge1.Edge();
BRepBuilderAPI_MakeEdge mkEdge2(c2, param2, l2); BRepBuilderAPI_MakeEdge mkEdge2(c2, param2, l2);
if (mkEdge2.IsDone()) if (mkEdge2.IsDone())
{ {
e2 = mkEdge2.Edge(); theE2 = mkEdge2.Edge();
gp_Pnt2d p2d = ProjLib::Project(plane, p); gp_Pnt2d p2d = ProjLib::Project(thePlane, p);
p2d.Coord(x12, y12); p2d.Coord(x12, y12);
x21 = x12; x21 = x12;
y21 = y12; y21 = y12;

View File

@ -1223,7 +1223,7 @@ extern void (*Draw_AfterCommand)(Standard_Integer);
//function : Commands //function : Commands
//purpose : //purpose :
//======================================================================= //=======================================================================
void Draw::VariableCommands(Draw_Interpretor& theCommands) void Draw::VariableCommands(Draw_Interpretor& theCommandsArg)
{ {
static Standard_Boolean Done = Standard_False; static Standard_Boolean Done = Standard_False;
if (Done) return; if (Done) return;
@ -1268,50 +1268,49 @@ void Draw::VariableCommands(Draw_Interpretor& theCommands)
g = "DRAW Numeric functions"; g = "DRAW Numeric functions";
theCommands.Add("cos" ,"cos(x)" ,__FILE__,trigo,g); theCommandsArg.Add("cos" ,"cos(x)" ,__FILE__,trigo,g);
theCommands.Add("sin" ,"sin(x)" ,__FILE__,trigo,g); theCommandsArg.Add("sin" ,"sin(x)" ,__FILE__,trigo,g);
theCommands.Add("tan" ,"tan(x)" ,__FILE__,trigo,g); theCommandsArg.Add("tan" ,"tan(x)" ,__FILE__,trigo,g);
theCommands.Add("acos" ,"acos(x)" ,__FILE__,trigo,g); theCommandsArg.Add("acos" ,"acos(x)" ,__FILE__,trigo,g);
theCommands.Add("asin" ,"asin(x)" ,__FILE__,trigo,g); theCommandsArg.Add("asin" ,"asin(x)" ,__FILE__,trigo,g);
theCommands.Add("atan2" ,"atan2(x,y)" ,__FILE__,trigo,g); theCommandsArg.Add("atan2" ,"atan2(x,y)" ,__FILE__,trigo,g);
theCommands.Add("sqrt","sqrt(x)",__FILE__,trigo,g); theCommandsArg.Add("sqrt","sqrt(x)",__FILE__,trigo,g);
g = "DRAW Variables management"; g = "DRAW Variables management";
theCommands.Add("protect","protect name ...",__FILE__,protect,g); theCommandsArg.Add("protect","protect name ...",__FILE__,protect,g);
theCommands.Add("unprotect","unprotect name ...",__FILE__,protect,g); theCommandsArg.Add("unprotect","unprotect name ...",__FILE__,protect,g);
theCommands.Add("bsave","bsave name filename",__FILE__,save,g); theCommandsArg.Add("bsave","bsave name filename",__FILE__,save,g);
theCommands.Add("brestore","brestore filename name",__FILE__,restore,g); theCommandsArg.Add("brestore","brestore filename name",__FILE__,restore,g);
theCommands.Add("isdraw","isdraw var, return 1 if Draw value",__FILE__,isdraw,g); theCommandsArg.Add("isdraw","isdraw var, return 1 if Draw value",__FILE__,isdraw,g);
theCommands.Add("isprot","isprot var, return 1 if Draw var is protected",__FILE__,isprot,g); theCommandsArg.Add("isprot","isprot var, return 1 if Draw var is protected",__FILE__,isprot,g);
theCommands.Add("autodisplay","toggle autodisplay [0/1]",__FILE__,autodisplay,g); theCommandsArg.Add("autodisplay","toggle autodisplay [0/1]",__FILE__,autodisplay,g);
theCommands.Add("display","display [name1 name2 ...], no names display all",__FILE__,display,g); theCommandsArg.Add("display","display [name1 name2 ...], no names display all",__FILE__,display,g);
theCommands.Add("donly","donly [name1 name2 ...], erase and display",__FILE__,erase,g); theCommandsArg.Add("donly","donly [name1 name2 ...], erase and display",__FILE__,erase,g);
theCommands.Add("erase","erase [name1 name2 ...], no names erase all",__FILE__,erase,g); theCommandsArg.Add("erase","erase [name1 name2 ...], no names erase all",__FILE__,erase,g);
theCommands.Add("draw","draw view mode [name1 name2 ...], draw on view with mode",__FILE__,draw,g); theCommandsArg.Add("draw","draw view mode [name1 name2 ...], draw on view with mode",__FILE__,draw,g);
theCommands.Add("clear","clear display",__FILE__,erase,g); theCommandsArg.Add("clear","clear display",__FILE__,erase,g);
theCommands.Add("2dclear","clear display (2d objects)",__FILE__,erase,g); theCommandsArg.Add("2dclear","clear display (2d objects)",__FILE__,erase,g);
theCommands.Add("repaint","repaint, force redraw",__FILE__,repaintall,g); theCommandsArg.Add("repaint","repaint, force redraw",__FILE__,repaintall,g);
theCommands.Add("dtyp", "dtyp name1 name2",__FILE__,whatis,g); theCommandsArg.Add("dtyp", "dtyp name1 name2",__FILE__,whatis,g);
theCommands.Add("dval", "dval name, return value",__FILE__,value,g); theCommandsArg.Add("dval", "dval name, return value",__FILE__,value,g);
theCommands.Add("dname", "dname name, print name",__FILE__,dname,g); theCommandsArg.Add("dname", "dname name, print name",__FILE__,dname,g);
theCommands.Add("dump", "dump name1 name2 ...",__FILE__,dump,g); theCommandsArg.Add("dump", "dump name1 name2 ...",__FILE__,dump,g);
theCommands.Add("copy", "copy name1 toname1 name2 toname2 ...",__FILE__,copy,g); theCommandsArg.Add("copy", "copy name1 toname1 name2 toname2 ...",__FILE__,copy,g);
// san - 02/08/2002 - `rename` command changed to `renamevar` since it conflicts with // san - 02/08/2002 - `rename` command changed to `renamevar` since it conflicts with
// the built-in Tcl command `rename` // the built-in Tcl command `rename`
//theCommands.Add("rename","rename name1 toname1 name2 toname2 ...",__FILE__,copy,g); //theCommands.Add("rename","rename name1 toname1 name2 toname2 ...",__FILE__,copy,g);
theCommands.Add("renamevar","renamevar name1 toname1 name2 toname2 ...",__FILE__,copy,g); theCommandsArg.Add("renamevar","renamevar name1 toname1 name2 toname2 ...",__FILE__,copy,g);
theCommands.Add("dset","var1 value1 vr2 value2 ...",__FILE__,set,g); theCommandsArg.Add("dset","var1 value1 vr2 value2 ...",__FILE__,set,g);
// commands to access C environment variables; see Mantis issue #23197 // commands to access C environment variables; see Mantis issue #23197
theCommands.Add("dgetenv","var : get value of environment variable in C subsystem",__FILE__,dgetenv,g); theCommandsArg.Add("dgetenv","var : get value of environment variable in C subsystem",__FILE__,dgetenv,g);
theCommands.Add("dsetenv","var [value] : set (unset if value is empty) environment variable in C subsystem",__FILE__,dsetenv,g); theCommandsArg.Add("dsetenv","var [value] : set (unset if value is empty) environment variable in C subsystem",__FILE__,dsetenv,g);
theCommands.Add("pick","pick id X Y Z b [nowait]",__FILE__,pick,g);
theCommands.Add("lastrep","lastrep id X Y [Z] b, return name",__FILE__,lastrep,g);
theCommandsArg.Add("pick","pick id X Y Z b [nowait]",__FILE__,pick,g);
theCommandsArg.Add("lastrep","lastrep id X Y [Z] b, return name",__FILE__,lastrep,g);
} }

View File

@ -165,8 +165,8 @@ Draw_View::Draw_View(Standard_Integer i, Draw_Viewer* v,
Standard_Integer Y, Standard_Integer Y,
Standard_Integer W, Standard_Integer W,
Standard_Integer H, Standard_Integer H,
HWND win) : HWND theWin) :
Draw_Window("Win", X, Y, W, H, win), id(i), viewer(v) Draw_Window("Win", X, Y, W, H, theWin), id(i), viewer(v)
{ {
Framex0=Framey0=Framex1=Framey1=0; Framex0=Framey0=Framex1=Framey1=0;
} }

View File

@ -102,11 +102,11 @@ Handle(GeomFill_TrihedronLaw) GeomFill_Fixed::Copy() const
return 1; return 1;
} }
void GeomFill_Fixed::Intervals(TColStd_Array1OfReal& T, void GeomFill_Fixed::Intervals(TColStd_Array1OfReal& theT,
const GeomAbs_Shape) const const GeomAbs_Shape) const
{ {
T(T.Lower()) = - Precision::Infinite(); theT(theT.Lower()) = - Precision::Infinite();
T(T.Upper()) = Precision::Infinite(); theT(theT.Upper()) = Precision::Infinite();
} }
void GeomFill_Fixed::GetAverageLaw(gp_Vec& ATangent, void GeomFill_Fixed::GetAverageLaw(gp_Vec& ATangent,

View File

@ -40,12 +40,12 @@ GeomFill_LocFunction::GeomFill_LocFunction(const Handle(GeomFill_LocationLaw)& L
// const Standard_Real Last) // const Standard_Real Last)
const Standard_Real ) const Standard_Real )
{ {
gp_Mat M; gp_Mat aM;
Standard_Boolean B; Standard_Boolean B;
B = myLaw->D0(Param, M, V.ChangeValue(1)); B = myLaw->D0(Param, aM, V.ChangeValue(1));
V(2).SetXYZ(M.Column(1)); V(2).SetXYZ(aM.Column(1));
V(3).SetXYZ(M.Column(2)); V(3).SetXYZ(aM.Column(2));
V(4).SetXYZ(M.Column(3)); V(4).SetXYZ(aM.Column(3));
return B; return B;
} }
@ -57,19 +57,19 @@ GeomFill_LocFunction::GeomFill_LocFunction(const Handle(GeomFill_LocationLaw)& L
{ {
TColgp_Array1OfPnt2d T1(1,1); TColgp_Array1OfPnt2d T1(1,1);
TColgp_Array1OfVec2d T2(1,1); TColgp_Array1OfVec2d T2(1,1);
gp_Mat M, DM; gp_Mat aM, aDM;
Standard_Boolean B; Standard_Boolean B;
B = myLaw->D1(Param, M, V.ChangeValue(1), B = myLaw->D1(Param, aM, V.ChangeValue(1),
DM, DV.ChangeValue(1), aDM, DV.ChangeValue(1),
T1, T2); T1, T2);
V(2).SetXYZ(M.Column(1)); V(2).SetXYZ(aM.Column(1));
V(3).SetXYZ(M.Column(2)); V(3).SetXYZ(aM.Column(2));
V(4).SetXYZ(M.Column(3)); V(4).SetXYZ(aM.Column(3));
DV(2).SetXYZ(DM.Column(1)); DV(2).SetXYZ(aDM.Column(1));
DV(3).SetXYZ(DM.Column(2)); DV(3).SetXYZ(aDM.Column(2));
DV(4).SetXYZ(DM.Column(3)); DV(4).SetXYZ(aDM.Column(3));
return B; return B;
} }
@ -81,24 +81,24 @@ GeomFill_LocFunction::GeomFill_LocFunction(const Handle(GeomFill_LocationLaw)& L
{ {
TColgp_Array1OfPnt2d T1(1,1); TColgp_Array1OfPnt2d T1(1,1);
TColgp_Array1OfVec2d T2(1,1), T3(1,1); TColgp_Array1OfVec2d T2(1,1), T3(1,1);
gp_Mat M, DM, D2M; gp_Mat aM, aDM, aD2M;
Standard_Boolean B; Standard_Boolean B;
B = myLaw->D2(Param, M, V.ChangeValue(1), B = myLaw->D2(Param, aM, V.ChangeValue(1),
DM, DV.ChangeValue(1), aDM, DV.ChangeValue(1),
D2M, D2V.ChangeValue(1), aD2M, D2V.ChangeValue(1),
T1, T2, T3); T1, T2, T3);
V(2).SetXYZ(M.Column(1)); V(2).SetXYZ(aM.Column(1));
V(3).SetXYZ(M.Column(2)); V(3).SetXYZ(aM.Column(2));
V(4).SetXYZ(M.Column(3)); V(4).SetXYZ(aM.Column(3));
DV(2).SetXYZ(DM.Column(1)); DV(2).SetXYZ(aDM.Column(1));
DV(3).SetXYZ(DM.Column(2)); DV(3).SetXYZ(aDM.Column(2));
DV(4).SetXYZ(DM.Column(3)); DV(4).SetXYZ(aDM.Column(3));
D2V(2).SetXYZ(D2M.Column(1)); D2V(2).SetXYZ(aD2M.Column(1));
D2V(3).SetXYZ(D2M.Column(2)); D2V(3).SetXYZ(aD2M.Column(2));
D2V(4).SetXYZ(D2M.Column(3)); D2V(4).SetXYZ(aD2M.Column(3));
return B; return B;
} }

View File

@ -23,13 +23,13 @@
#include <GeomFill_PlanFunc.ixx> #include <GeomFill_PlanFunc.ixx>
GeomFill_PlanFunc::GeomFill_PlanFunc(const gp_Pnt& P, GeomFill_PlanFunc::GeomFill_PlanFunc(const gp_Pnt& theP,
const gp_Vec& V, const gp_Vec& theV,
const Handle(Adaptor3d_HCurve)& C) : const Handle(Adaptor3d_HCurve)& theC) :
myCurve(C) myCurve(theC)
{ {
myPnt = P.XYZ(); myPnt = theP.XYZ();
myVec = V.XYZ(); myVec = theV.XYZ();
} }

View File

@ -356,11 +356,11 @@ void GeomFill_SweepFunction::Resolution(const Standard_Integer Index,
{ {
gp_Pnt Bary; gp_Pnt Bary;
gp_Vec Translate; gp_Vec Translate;
gp_Mat M; gp_Mat aM;
Bary = mySec->BarycentreOfSurf(); Bary = mySec->BarycentreOfSurf();
myLoc->GetAverageLaw(M, Translate); myLoc->GetAverageLaw(aM, Translate);
Bary.ChangeCoord() *= M; Bary.ChangeCoord() *= aM;
Bary.ChangeCoord() += Translate.XYZ(); Bary.ChangeCoord() += Translate.XYZ();
return Bary; return Bary;

View File

@ -36,14 +36,14 @@ GeomLib_LogSample::GeomLib_LogSample(const Standard_Real A,
Standard_Real GeomLib_LogSample::GetParameter(const Standard_Integer Index) const Standard_Real GeomLib_LogSample::GetParameter(const Standard_Integer Index) const
{ {
Standard_Integer n = NbPoints(); Standard_Integer aN = NbPoints();
if ((Index >= n) || (Index <= 1)) { if ((Index >= aN) || (Index <= 1)) {
Standard_Real a, b; Standard_Real aA, aB;
Bounds(a, b); Bounds(aA, aB);
if (Index == 1) return a; if (Index == 1) return aA;
else if (Index == n) return b; else if (Index == aN) return aB;
else Standard_OutOfRange::Raise("GeomLib_LogSample::GetParameter"); else Standard_OutOfRange::Raise("GeomLib_LogSample::GetParameter");
} }

View File

@ -79,13 +79,13 @@ IFSelect_SignatureList::IFSelect_SignatureList
void IFSelect_SignatureList::Init void IFSelect_SignatureList::Init
(const Standard_CString name, (const Standard_CString name,
const Handle(Dico_DictionaryOfInteger)& count, const Handle(Dico_DictionaryOfInteger)& theCount,
const Handle(Dico_DictionaryOfTransient)& list, const Handle(Dico_DictionaryOfTransient)& list,
const Standard_Integer nbnuls) const Standard_Integer nbnuls)
{ {
thelastval.Clear(); thelastval.Clear();
thename = new TCollection_HAsciiString (name); thename = new TCollection_HAsciiString (name);
thedicount = count; thedicount = theCount;
thediclist = list; thediclist = list;
thenbnuls = nbnuls; thenbnuls = nbnuls;
if (thediclist.IsNull()) thelistat = Standard_False; if (thediclist.IsNull()) thelistat = Standard_False;

View File

@ -64,7 +64,7 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
NbResultats=0; NbResultats=0;
for(Standard_Integer i=1; i<=Nb_Bornes_Intersection; i+=2) { for(Standard_Integer i=1; i<=Nb_Bornes_Intersection; i+=2) {
Standard_Boolean reverse=Standard_False; Standard_Boolean aReverse=Standard_False;
Standard_Real param1=Inter1.Value(i); Standard_Real param1=Inter1.Value(i);
Standard_Real param2=Inter1.Value(i+1); Standard_Real param2=Inter1.Value(i+1);
@ -76,7 +76,7 @@ void IntImpParGen_Intersector::And_Domaine_Objet1_Intersections(const ImpTool& T
Standard_Real t=param1; param1=param2; param2=t; Standard_Real t=param1; param1=param2; param2=t;
indice_1=i+1; indice_1=i+1;
indice_2=i; indice_2=i;
reverse=Standard_True; aReverse=Standard_True;
} }
gp_Pnt2d Pt1=TheImpTool.Value(param1); gp_Pnt2d Pt1=TheImpTool.Value(param1);

View File

@ -482,10 +482,10 @@ Standard_Integer PCollection_HAsciiString::Location
{ {
if (ToIndex > Length() || FromIndex <= 0 || FromIndex > ToIndex ) if (ToIndex > Length() || FromIndex <= 0 || FromIndex > ToIndex )
Standard_OutOfRange::Raise(); Standard_OutOfRange::Raise();
for(Standard_Integer i = FromIndex-1, count = 0; i <= ToIndex-1; i++) for(Standard_Integer i = FromIndex-1, aCount = 0; i <= ToIndex-1; i++)
if(Data(i) == C) { if(Data(i) == C) {
count++; aCount++;
if ( count == N ) return (i+1); if ( aCount == N ) return (i+1);
} }
return 0 ; return 0 ;
} }

View File

@ -1182,13 +1182,13 @@ static Standard_Integer OCC884 (Draw_Interpretor& di, Standard_Integer argc, con
di << "Info: No. of self-intersection points : " << num << "\n"; di << "Info: No. of self-intersection points : " << num << "\n";
char str[80]; char str[80];
Standard_CString name = str; Standard_CString aName = str;
for (i = 1; i <= num; ++i) for (i = 1; i <= num; ++i)
{ {
gp_Pnt pt = points3d(i); gp_Pnt pt = points3d(i);
di << "Info: Intersecting pt : (" << pt.X() << ", " << pt.Y() << ", " << pt.Z() << ")\n"; di << "Info: Intersecting pt : (" << pt.X() << ", " << pt.Y() << ", " << pt.Z() << ")\n";
Sprintf(str,"p_%d",i); Sprintf(str,"p_%d",i);
DrawTrSurf::Set(name,pt); DrawTrSurf::Set(aName,pt);
} }
Handle(ShapeFix_Wire) sfw = new ShapeFix_Wire; Handle(ShapeFix_Wire) sfw = new ShapeFix_Wire;

View File

@ -136,12 +136,12 @@ Update()
switch(mytype){ switch(mytype){
case StdSelect_TOR_MULTIPLE:{ case StdSelect_TOR_MULTIPLE:{
TColStd_MapIteratorOfMapOfInteger it; TColStd_MapIteratorOfMapOfInteger aIt;
if(!myselector->More()) if(!myselector->More())
{ {
for(it.Initialize(myold);it.More();it.Next()) for(aIt.Initialize(myold);aIt.More();aIt.Next())
{myhimap.FindFromIndex(it.Key())->UnHighlight(); {myhimap.FindFromIndex(aIt.Key())->UnHighlight();
myhimap.FindFromIndex(it.Key())->SetVisible(Standard_False); myhimap.FindFromIndex(aIt.Key())->SetVisible(Standard_False);
} }
myold.Clear(); myold.Clear();
mynew.Clear(); mynew.Clear();
@ -168,17 +168,17 @@ Update()
} }
} }
} }
for(it.Initialize(myold);it.More();it.Next()){ for(aIt.Initialize(myold);aIt.More();aIt.Next()){
myhimap.FindFromIndex(it.Key())->UnHighlight(); myhimap.FindFromIndex(aIt.Key())->UnHighlight();
myhimap.FindFromIndex(it.Key())->SetVisible(Standard_False); myhimap.FindFromIndex(aIt.Key())->SetVisible(Standard_False);
} }
myold = mynew; myold = mynew;
mynew.Clear(); mynew.Clear();
for(it.Initialize(myold);it.More();it.Next()){ for(aIt.Initialize(myold);aIt.More();aIt.Next()){
myhimap.FindFromIndex(it.Key())->SetVisible(Standard_True); myhimap.FindFromIndex(aIt.Key())->SetVisible(Standard_True);
myhimap.FindFromIndex(it.Key())->SetDisplayPriority(10); myhimap.FindFromIndex(aIt.Key())->SetDisplayPriority(10);
myhimap.FindFromIndex(it.Key())->Color(mycolor); myhimap.FindFromIndex(aIt.Key())->Color(mycolor);
} }
} }
break; break;

View File

@ -30,9 +30,9 @@ inline gp_Quaternion::gp_Quaternion()
//purpose : //purpose :
//======================================================================= //=======================================================================
inline gp_Quaternion::gp_Quaternion (const Standard_Real x, const Standard_Real y, inline gp_Quaternion::gp_Quaternion (const Standard_Real theX, const Standard_Real theY,
const Standard_Real z, const Standard_Real w) const Standard_Real theZ, const Standard_Real theW)
: x(x), y(y), z(z), w(w) : x(theX), y(theY), z(theZ), w(theW)
{ {
} }
@ -91,13 +91,13 @@ inline gp_Quaternion::gp_Quaternion (const gp_Mat& theMat)
//purpose : //purpose :
//======================================================================= //=======================================================================
inline void gp_Quaternion::Set (Standard_Real x, Standard_Real y, inline void gp_Quaternion::Set (Standard_Real theX, Standard_Real theY,
Standard_Real z, Standard_Real w) Standard_Real theZ, Standard_Real theW)
{ {
this->x = x; this->x = theX;
this->y = y; this->y = theY;
this->z = z; this->z = theZ;
this->w = w; this->w = theW;
} }
//======================================================================= //=======================================================================

View File

@ -705,16 +705,16 @@ void math_FunctionSetRoot::SetTolerance(const math_Vector& Tolerance)
void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F, void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
const math_Vector& StartingPoint, const math_Vector& StartingPoint,
const math_Vector& InfBound, const math_Vector& theInfBound,
const math_Vector& SupBound, const math_Vector& theSupBound,
Standard_Boolean theStopOnDivergent) Standard_Boolean theStopOnDivergent)
{ {
Standard_Integer Ninc = F.NbVariables(), Neq = F.NbEquations(); Standard_Integer Ninc = F.NbVariables(), Neq = F.NbEquations();
if ((Neq <= 0) || if ((Neq <= 0) ||
(StartingPoint.Length()!= Ninc) || (StartingPoint.Length()!= Ninc) ||
(InfBound.Length() != Ninc) || (theInfBound.Length() != Ninc) ||
(SupBound.Length() != Ninc)) { Standard_DimensionError:: Raise(); } (theSupBound.Length() != Ninc)) { Standard_DimensionError:: Raise(); }
Standard_Integer i; Standard_Integer i;
Standard_Boolean ChangeDirection = Standard_False, Sort = Standard_False, isNewSol = Standard_False; Standard_Boolean ChangeDirection = Standard_False, Sort = Standard_False, isNewSol = Standard_False;
@ -724,11 +724,11 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
Standard_Real F2, PreviousMinimum, Dy, OldF; Standard_Real F2, PreviousMinimum, Dy, OldF;
Standard_Real Ambda, Ambda2, Gnr1, Oldgr; Standard_Real Ambda, Ambda2, Gnr1, Oldgr;
math_Vector InvLengthMax(1, Ninc); // Pour bloquer les pas a 1/4 du domaine math_Vector InvLengthMax(1, Ninc); // Pour bloquer les pas a 1/4 du domaine
math_IntegerVector Constraints(1, Ninc); // Pour savoir sur quels bord on se trouve math_IntegerVector aConstraints(1, Ninc); // Pour savoir sur quels bord on se trouve
for (i = 1; i <= Ninc ; i++) { for (i = 1; i <= Ninc ; i++) {
// modified by NIZHNY-MKK Mon Oct 3 18:03:50 2005 // modified by NIZHNY-MKK Mon Oct 3 18:03:50 2005
// InvLengthMax(i) = 1. / Max(Abs(SupBound(i) - InfBound(i))/4, 1.e-9); // InvLengthMax(i) = 1. / Max(Abs(SupBound(i) - InfBound(i))/4, 1.e-9);
InvLengthMax(i) = 1. / Max((SupBound(i) - InfBound(i))/4, 1.e-9); InvLengthMax(i) = 1. / Max((theSupBound(i) - theInfBound(i))/4, 1.e-9);
} }
MyDirFunction F_Dir(Temp1, Temp2, Temp3, Temp4, F); MyDirFunction F_Dir(Temp1, Temp2, Temp3, Temp4, F);
@ -742,7 +742,7 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
myIsDivergent = Standard_False; myIsDivergent = Standard_False;
for (i = 1; i <= Ninc; i++) for (i = 1; i <= Ninc; i++)
{ {
myIsDivergent |= (Sol(i) < InfBound(i)) | (SupBound(i) < Sol(i)); myIsDivergent |= (Sol(i) < theInfBound(i)) | (theSupBound(i) < Sol(i));
} }
if (theStopOnDivergent & myIsDivergent) if (theStopOnDivergent & myIsDivergent)
{ {
@ -751,8 +751,8 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// Verification de la validite des inconnues par rapport aux bornes. // Verification de la validite des inconnues par rapport aux bornes.
// Recentrage sur les bornes si pas valide. // Recentrage sur les bornes si pas valide.
for ( i = 1; i <= Ninc; i++) { for ( i = 1; i <= Ninc; i++) {
if (Sol(i) <= InfBound(i)) Sol(i) = InfBound(i); if (Sol(i) <= theInfBound(i)) Sol(i) = theInfBound(i);
else if (Sol(i) > SupBound(i)) Sol(i) = SupBound(i); else if (Sol(i) > theSupBound(i)) Sol(i) = theSupBound(i);
} }
// Calcul de la premiere valeur de F et de son gradient // Calcul de la premiere valeur de F et de son gradient
@ -817,15 +817,15 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// //
for (i = 1; i <= Ninc; i++) for (i = 1; i <= Ninc; i++)
{ {
myIsDivergent |= (Sol(i) < InfBound(i)) | (SupBound(i) < Sol(i)); myIsDivergent |= (Sol(i) < theInfBound(i)) | (theSupBound(i) < Sol(i));
} }
if (theStopOnDivergent & myIsDivergent) if (theStopOnDivergent & myIsDivergent)
{ {
return; return;
} }
// //
Sort = Bounds(InfBound, SupBound, Tol, Sol, SolSave, Sort = Bounds(theInfBound, theSupBound, Tol, Sol, SolSave,
Constraints, Delta, isNewSol); aConstraints, Delta, isNewSol);
DHSave = GH; DHSave = GH;
@ -883,15 +883,15 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// //
for (i = 1; i <= Ninc; i++) for (i = 1; i <= Ninc; i++)
{ {
myIsDivergent |= (Sol(i) < InfBound(i)) | (SupBound(i) < Sol(i)); myIsDivergent |= (Sol(i) < theInfBound(i)) | (theSupBound(i) < Sol(i));
} }
if (theStopOnDivergent & myIsDivergent) if (theStopOnDivergent & myIsDivergent)
{ {
return; return;
} }
// //
Stop = Bounds(InfBound, SupBound, Tol, Sol, SolSave, Stop = Bounds(theInfBound, theSupBound, Tol, Sol, SolSave,
Constraints, Delta, isNewSol); aConstraints, Delta, isNewSol);
FSR_DEBUG(" Augmentation de lambda"); FSR_DEBUG(" Augmentation de lambda");
Ambda *= 1.7; Ambda *= 1.7;
} }
@ -921,15 +921,15 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// //
for (i = 1; i <= Ninc; i++) for (i = 1; i <= Ninc; i++)
{ {
myIsDivergent |= (Sol(i) < InfBound(i)) | (SupBound(i) < Sol(i)); myIsDivergent |= (Sol(i) < theInfBound(i)) | (theSupBound(i) < Sol(i));
} }
if (theStopOnDivergent & myIsDivergent) if (theStopOnDivergent & myIsDivergent)
{ {
return; return;
} }
// //
Sort = Bounds(InfBound, SupBound, Tol, Sol, SolSave, Sort = Bounds(theInfBound, theSupBound, Tol, Sol, SolSave,
Constraints, Delta, isNewSol); aConstraints, Delta, isNewSol);
} }
Sort = Standard_False; // On a rejete le point sur la frontiere Sort = Standard_False; // On a rejete le point sur la frontiere
} }
@ -982,7 +982,7 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// On essaye de progresser sur le bord // On essaye de progresser sur le bord
SolSave = Sol; SolSave = Sol;
OldF = F2; OldF = F2;
SearchDirection(DF, GH, FF, Constraints, Sol, SearchDirection(DF, GH, FF, aConstraints, Sol,
ChangeDirection, InvLengthMax, DH, Dy); ChangeDirection, InvLengthMax, DH, Dy);
FSR_DEBUG(" Conditional Direction = " << ChangeDirection); FSR_DEBUG(" Conditional Direction = " << ChangeDirection);
if (Dy<-Eps) { //Pour eviter des calculs inutiles et des /0... if (Dy<-Eps) { //Pour eviter des calculs inutiles et des /0...
@ -1003,15 +1003,15 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// //
for (i = 1; i <= Ninc; i++) for (i = 1; i <= Ninc; i++)
{ {
myIsDivergent |= (Sol(i) < InfBound(i)) | (SupBound(i) < Sol(i)); myIsDivergent |= (Sol(i) < theInfBound(i)) | (theSupBound(i) < Sol(i));
} }
if (theStopOnDivergent & myIsDivergent) if (theStopOnDivergent & myIsDivergent)
{ {
return; return;
} }
// //
Sortbis = Bounds(InfBound, SupBound, Tol, Sol, SolSave, Sortbis = Bounds(theInfBound, theSupBound, Tol, Sol, SolSave,
Constraints, Delta, isNewSol); aConstraints, Delta, isNewSol);
DHSave = GH; DHSave = GH;
if (isNewSol) { if (isNewSol) {
@ -1046,15 +1046,15 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// //
for (i = 1; i <= Ninc; i++) for (i = 1; i <= Ninc; i++)
{ {
myIsDivergent |= (Sol(i) < InfBound(i)) | (SupBound(i) < Sol(i)); myIsDivergent |= (Sol(i) < theInfBound(i)) | (theSupBound(i) < Sol(i));
} }
if (theStopOnDivergent & myIsDivergent) if (theStopOnDivergent & myIsDivergent)
{ {
return; return;
} }
// //
Sortbis = Bounds(InfBound, SupBound, Tol, Sol, SolSave, Sortbis = Bounds(theInfBound, theSupBound, Tol, Sol, SolSave,
Constraints, Delta, isNewSol); aConstraints, Delta, isNewSol);
} }
DHSave = GH; DHSave = GH;
if (isNewSol) { if (isNewSol) {
@ -1089,15 +1089,15 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
// //
for (i = 1; i <= Ninc; i++) for (i = 1; i <= Ninc; i++)
{ {
myIsDivergent |= (Sol(i) < InfBound(i)) | (SupBound(i) < Sol(i)); myIsDivergent |= (Sol(i) < theInfBound(i)) | (theSupBound(i) < Sol(i));
} }
if (theStopOnDivergent & myIsDivergent) if (theStopOnDivergent & myIsDivergent)
{ {
return; return;
} }
// //
Sort = Bounds(InfBound, SupBound, Tol, Sol, SolSave, Sort = Bounds(theInfBound, theSupBound, Tol, Sol, SolSave,
Constraints, Delta, isNewSol); aConstraints, Delta, isNewSol);
if (isNewSol) { if (isNewSol) {
// F_Dir.Value(Sol, FF, DF, GH, F2, Gnr1); // F_Dir.Value(Sol, FF, DF, GH, F2, Gnr1);
if(!F_Dir.Value(Sol, FF, DF, GH, F2, Gnr1)) { if(!F_Dir.Value(Sol, FF, DF, GH, F2, Gnr1)) {