summaryrefslogtreecommitdiff
path: root/src/Plate/Plate_PlaneConstraint.cxx
blob: 98cc9aae0d525167a7ef0baf57237cb0e5fb71db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// File:	Plate_PlaneConstraint.cxx
// Created:	Thu May  7 15:12:31 1998
// Author:	Andre LIEUTIER
//		<alr@sgi63>


#include <Plate_PlaneConstraint.ixx>
#include <Plate_PinpointConstraint.hxx>


Plate_PlaneConstraint::Plate_PlaneConstraint(const gp_XY& point2d,
					     const gp_Pln& pln,
					     const Standard_Integer iu,
					     const Standard_Integer iv)
:myLSC(1,1)
{
  gp_XYZ point = pln.Location().XYZ();
  myLSC.SetPPC(1,Plate_PinpointConstraint(point2d,point,iu,iv));
  gp_XYZ dir = pln.Axis().Direction().XYZ();
  dir.Normalize();
  myLSC.SetCoeff(1,1,dir);
}