ppc
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
committerAdam C. Powell, IV <hazelsct@debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
Change PPC variable to ppc to avoid conflict with PPC macro (closes: #487810)

Submitted upstream: http://www.opencascade.org/org/forum/thread_20051/

Gbp-Pq: Topic submitted
Gbp-Pq: Name ppc.patch

ros/inc/Plate_LinearScalarConstraint.hxx
ros/inc/Plate_LinearXYZConstraint.hxx
ros/src/BRepFill/BRepFill_Evolved.cxx
ros/src/BRepLib/BRepLib_FindSurface.cxx
ros/src/Bisector/Bisector_BisecPC.cxx
ros/src/Plate/Plate_LinearScalarConstraint.cxx
ros/src/Plate/Plate_LinearXYZConstraint.cxx

index e5fadf5b971c23dca945943d5de513ddb0757823..6b025be769e6343977d480981c361b25b20960c7 100644 (file)
@@ -57,9 +57,9 @@ public:
   
   Standard_EXPORT   Plate_LinearScalarConstraint(const Plate_PinpointConstraint& PPC1,const gp_XYZ& coeff);
   
-  Standard_EXPORT   Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& PPC,const TColgp_Array1OfXYZ& coeff);
+  Standard_EXPORT   Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& ppc,const TColgp_Array1OfXYZ& coeff);
   
-  Standard_EXPORT   Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& PPC,const TColgp_Array2OfXYZ& coeff);
+  Standard_EXPORT   Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& ppc,const TColgp_Array2OfXYZ& coeff);
   
   Standard_EXPORT   Plate_LinearScalarConstraint(const Standard_Integer ColLen,const Standard_Integer RowLen);
   
@@ -68,7 +68,7 @@ public:
        const TColgp_Array2OfXYZ& Coeff() const;
   //!  Sets   the PinPointConstraint of   index Index to <br>
 //!          Value raise if Index is greater than the length of <br>
-//!          PPC or the Row length of coeff or lower  than 1 <br>
+//!          ppc or the Row length of coeff or lower  than 1 <br>
   Standard_EXPORT     void SetPPC(const Standard_Integer Index,const Plate_PinpointConstraint& Value) ;
   //!  Sets the coeff  of index (Row,Col)  to Value <br>
 //!           raise if  Row (respectively Col)  is greater than the <br>
index af7a5435a2d9135ae474ca9301937258554df905..3773e2230d51b057c86f9ed307dce6f6ba2bddb8 100644 (file)
@@ -57,9 +57,9 @@ public:
   
   Standard_EXPORT   Plate_LinearXYZConstraint();
   
-  Standard_EXPORT   Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& PPC,const TColStd_Array1OfReal& coeff);
+  Standard_EXPORT   Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& ppc,const TColStd_Array1OfReal& coeff);
   
-  Standard_EXPORT   Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& PPC,const TColStd_Array2OfReal& coeff);
+  Standard_EXPORT   Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& ppc,const TColStd_Array2OfReal& coeff);
   
   Standard_EXPORT   Plate_LinearXYZConstraint(const Standard_Integer ColLen,const Standard_Integer RowLen);
   
@@ -68,7 +68,7 @@ public:
        const TColStd_Array2OfReal& Coeff() const;
   //!  Sets   the PinPointConstraint of   index Index to <br>
 //!          Value raise if Index is greater than the length of <br>
-//!          PPC or the Row length of coeff or lower  than 1 <br>
+//!          ppc or the Row length of coeff or lower  than 1 <br>
   Standard_EXPORT     void SetPPC(const Standard_Integer Index,const Plate_PinpointConstraint& Value) ;
   //!  Sets the coeff  of index (Row,Col)  to Value <br>
 //!           raise if  Row (respectively Col)  is greater than the <br>
index 34652f17a2ee245f5a0996ce0a0a9fb26b4723eb..6f326c1e16c22102aebcdb1322445fb3df5062fc 100644 (file)
@@ -2107,8 +2107,8 @@ void BRepFill_Evolved::AddTopAndBottom(BRepTools_Quilt& Glue)
            gp_Pnt PC;
            gp_Vec VC;
            C.D1(u,PC,VC);
-           gp_Vec PPC(P,PC);
-           gp_Vec Prod = PPC.Crossed(VC);
+           gp_Vec ppc(P,PC);
+           gp_Vec Prod = ppc.Crossed(VC);
            if (IsOut) {
              ToReverse = Prod.Z() < 0.;
            }
index 7ace20981d61c387c32719340a7def1abc9241cc..a2f2d6b2009b1217f90079a3b4e6769199ebda75 100644 (file)
@@ -100,7 +100,7 @@ void BRepLib_FindSurface::Init(const TopoDS_Shape&    S,
 
   TopoDS_Edge E = TopoDS::Edge(ex.Current());
   Standard_Real f,l,ff,ll;
-  Handle(Geom2d_Curve) PC,PPC;
+  Handle(Geom2d_Curve) PC,ppc;
   Handle(Geom_Surface) SS;
   TopLoc_Location L;
   Standard_Integer i = 0,j;
@@ -119,7 +119,7 @@ void BRepLib_FindSurface::Init(const TopoDS_Shape&    S,
        while (Standard_True) {
          j++;
          BRep_Tool::CurveOnSurface(TopoDS::Edge(ex.Current()),
-                                   PPC,SS,L,ff,ll,j);
+                                   ppc,SS,L,ff,ll,j);
          if (SS.IsNull()) {
            break;
          }
index 1b785314e1ce01613eaa3b50b967d22738badbb7..793e91e9ee3f2a544d35503f55ac723954c87725 100644 (file)
@@ -374,11 +374,11 @@ void Bisector_BisecPC::Values(const Standard_Real    U,
   case 2 :  {curve->D3(UOnCurve,PC,Tu,Tuu,T3u);break;}
   }
   
-  gp_Vec2d PPC(PC.X() - point.X(), PC.Y() - point.Y());
+  gp_Vec2d ppc(PC.X() - point.X(), PC.Y() - point.Y());
   gp_Vec2d Nor( - Tu.Y(), Tu.X());
   
-  Standard_Real SquarePPC = PPC.SquareMagnitude();
-  Standard_Real NorPPC    = Nor.Dot(PPC);
+  Standard_Real SquarePPC = ppc.SquareMagnitude();
+  Standard_Real NorPPC    = Nor.Dot(ppc);
   Standard_Real A1;
 
   if (Abs(NorPPC) > gp::Resolution() && (NorPPC*sign) < 0.) {
@@ -390,8 +390,8 @@ void Bisector_BisecPC::Values(const Standard_Real    U,
   if (N == 0) return;                                 // Fin Calcul Point;
 
   gp_Vec2d      Nu ( - Tuu.Y() , Tuu.X());            // derivee de la normale en U.
-  Standard_Real NuPPC     = Nu .Dot(PPC);
-  Standard_Real TuPPC     = Tu .Dot(PPC);
+  Standard_Real NuPPC     = Nu .Dot(ppc);
+  Standard_Real TuPPC     = Tu .Dot(ppc);
   Standard_Real NorPPCE2  = NorPPC*NorPPC;
   Standard_Real A2        = TuPPC/NorPPC - 0.5*NuPPC*SquarePPC/NorPPCE2;
 
@@ -403,8 +403,8 @@ void Bisector_BisecPC::Values(const Standard_Real    U,
   gp_Vec2d Nuu ( - T3u.Y() , T3u.X());
   
   Standard_Real NorPPCE4 = NorPPCE2*NorPPCE2;
-  Standard_Real NuuPPC   = Nuu.Dot(PPC);
-  Standard_Real TuuPPC   = Tuu.Dot(PPC);
+  Standard_Real NuuPPC   = Nuu.Dot(ppc);
+  Standard_Real TuuPPC   = Tuu.Dot(ppc);
   
   Standard_Real A21 = TuuPPC/NorPPC - TuPPC*NuPPC/NorPPCE2;
   Standard_Real A22 = (0.5*NuuPPC*SquarePPC + NuPPC*TuPPC)/NorPPCE2 - 
@@ -458,12 +458,12 @@ Standard_Real Bisector_BisecPC::Distance (const Standard_Real U) const
   Standard_Real UOnCurve = LinkBisCurve(U);
   
   curve->D1(UOnCurve,PC,Tan);
-  gp_Vec2d PPC(PC.X() - point.X(), PC.Y() - point.Y());
+  gp_Vec2d ppc(PC.X() - point.X(), PC.Y() - point.Y());
   gp_Vec2d Nor( - Tan.Y(), Tan.X());
 
   Standard_Real NorNor       = Nor.SquareMagnitude();
-  Standard_Real SquareMagPPC = PPC.SquareMagnitude();
-  Standard_Real Prosca       = Nor.Dot(PPC);
+  Standard_Real SquareMagPPC = ppc.SquareMagnitude();
+  Standard_Real Prosca       = Nor.Dot(ppc);
   
   if (point.IsEqual(PC,Precision::Confusion())) {
     if (isConvex) { return 0.;}
index ce93c1034739c6150f91c8ec856e085eb98e4fb3..18006e9f3680b0b34d499b3a192d342bf1cbd764 100644 (file)
@@ -21,26 +21,26 @@ Plate_LinearScalarConstraint::Plate_LinearScalarConstraint
   myCoef->ChangeValue(1,1) = coeff;
 }
 
-Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& PPC,const TColgp_Array1OfXYZ& coeff)
+Plate_LinearScalarConstraint::Plate_LinearScalarConstraint(const Plate_Array1OfPinpointConstraint& ppc,const TColgp_Array1OfXYZ& coeff)
 {
-  if(coeff.Length()!= PPC.Length()) Standard_DimensionMismatch::Raise();
-  myPPC = new Plate_HArray1OfPinpointConstraint(1,PPC.Length());
+  if(coeff.Length()!= ppc.Length()) Standard_DimensionMismatch::Raise();
+  myPPC = new Plate_HArray1OfPinpointConstraint(1,ppc.Length());
   myCoef = new TColgp_HArray2OfXYZ(1,1,1,coeff.Length());
 
-  myPPC->ChangeArray1() = PPC;
+  myPPC->ChangeArray1() = ppc;
   for(Standard_Integer i = 1; i<= coeff.Length(); i++) {
     myCoef->ChangeValue(1,i) = coeff(i+coeff.Lower()-1);
   }
 }
 
 Plate_LinearScalarConstraint::Plate_LinearScalarConstraint
-   (const Plate_Array1OfPinpointConstraint& PPC,const TColgp_Array2OfXYZ& coeff)
+   (const Plate_Array1OfPinpointConstraint& ppc,const TColgp_Array2OfXYZ& coeff)
 {
-  if(coeff.RowLength()!= PPC.Length()) Standard_DimensionMismatch::Raise();
-  myPPC = new Plate_HArray1OfPinpointConstraint(1,PPC.Length());
+  if(coeff.RowLength()!= ppc.Length()) Standard_DimensionMismatch::Raise();
+  myPPC = new Plate_HArray1OfPinpointConstraint(1,ppc.Length());
   myCoef = new TColgp_HArray2OfXYZ(1,coeff.ColLength(),1,coeff.RowLength());
   
-  myPPC->ChangeArray1() = PPC;
+  myPPC->ChangeArray1() = ppc;
   myCoef->ChangeArray2() = coeff;
 }
 
index e4f257392420804985109075a247bca35a1c6927..083f2685d359f534a4e4bc36d734a408aeddf11e 100644 (file)
@@ -9,24 +9,24 @@
 
 Plate_LinearXYZConstraint::Plate_LinearXYZConstraint() {}
 
-Plate_LinearXYZConstraint::Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& PPC,const TColStd_Array1OfReal& coeff)
+Plate_LinearXYZConstraint::Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& ppc,const TColStd_Array1OfReal& coeff)
 {
-  if(coeff.Length()!= PPC.Length()) Standard_DimensionMismatch::Raise();
-  myPPC = new Plate_HArray1OfPinpointConstraint(1,PPC.Length());
+  if(coeff.Length()!= ppc.Length()) Standard_DimensionMismatch::Raise();
+  myPPC = new Plate_HArray1OfPinpointConstraint(1,ppc.Length());
   myCoef = new TColStd_HArray2OfReal(1,1,1,coeff.Length());
   
-  myPPC->ChangeArray1() = PPC;
+  myPPC->ChangeArray1() = ppc;
   for(Standard_Integer i = 1; i<= coeff.Length(); i++)
     myCoef->ChangeValue(1,i) = coeff(i+coeff.Lower()-1);
 }
 
-Plate_LinearXYZConstraint::Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& PPC,const TColStd_Array2OfReal& coeff)
+Plate_LinearXYZConstraint::Plate_LinearXYZConstraint(const Plate_Array1OfPinpointConstraint& ppc,const TColStd_Array2OfReal& coeff)
 {
-  if(coeff.RowLength()!= PPC.Length()) Standard_DimensionMismatch::Raise();
-  myPPC = new Plate_HArray1OfPinpointConstraint(1,PPC.Length());
+  if(coeff.RowLength()!= ppc.Length()) Standard_DimensionMismatch::Raise();
+  myPPC = new Plate_HArray1OfPinpointConstraint(1,ppc.Length());
   myCoef = new TColStd_HArray2OfReal(1,coeff.ColLength(),1,coeff.RowLength());
   
-  myPPC->ChangeArray1() = PPC;
+  myPPC->ChangeArray1() = ppc;
   myCoef->ChangeArray2() = coeff;
 }