1 // File: Plate_GlobalTranslationConstraint.cxx
2 // Created: Mon Mar 30 12:49:46 1998
3 // Author: # Andre LIEUTIER
7 #include <Plate_GlobalTranslationConstraint.ixx>
9 Plate_GlobalTranslationConstraint::Plate_GlobalTranslationConstraint(const TColgp_SequenceOfXY& SOfXY)
10 :myLXYZC(SOfXY.Length()-1,SOfXY.Length() )
13 for( i=1;i<=SOfXY.Length();i++)
15 myLXYZC.SetPPC(i,Plate_PinpointConstraint (SOfXY(i),gp_XYZ(0.,0.,0.),0,0));
17 for(i=1;i<=SOfXY.Length()-1;i++)
19 myLXYZC.SetCoeff(i,1,-1.);
20 for(Standard_Integer j=2;j<=SOfXY.Length();j++)
22 if(j==(i+1)) myLXYZC.SetCoeff(i,j,1.);
23 else myLXYZC.SetCoeff(i,j,0.);