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);
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>
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);
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>
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.;
}
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;
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;
}
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.) {
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;
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 -
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.;}
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;
}
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;
}