Integration of OCCT 6.5.0 from SVN
[occt.git] / src / NLPlate / NLPlate_HPG0G2Constraint.cxx
1 // File:        NLPlate_HPG0G2Constraint.cxx
2 // Created:     Fri Apr 17 19:18:03 1998
3 // Author:      Andre LIEUTIER
4 //              <alr@sgi63>
5
6 #include <Plate_D1.hxx>
7 #include <Plate_D2.hxx>
8
9 #include <NLPlate_HPG0G2Constraint.ixx>
10
11 NLPlate_HPG0G2Constraint::NLPlate_HPG0G2Constraint(const gp_XY& UV, const gp_XYZ& Value, const Plate_D1& D1T, const Plate_D2& D2T)
12 : NLPlate_HPG0G1Constraint(UV,Value,D1T), myG2Target(D2T)
13 {
14   SetActiveOrder(2);
15 }
16 Standard_Integer NLPlate_HPG0G2Constraint::ActiveOrder() const
17 {
18   if (myActiveOrder<2) return myActiveOrder;
19   else return 2;
20 }
21 const Plate_D2& NLPlate_HPG0G2Constraint::G2Target() const
22 {
23   return myG2Target;
24 }