Integration of OCCT 6.5.0 from SVN
[occt.git] / src / PPoly / PPoly_Triangle.cxx
CommitLineData
7fd59977 1#include <PPoly_Triangle.ixx>
2
3//=======================================================================
4//function : PPoly_Triangle::PPoly_Triangle
5//purpose :
6//=======================================================================
7
8PPoly_Triangle::PPoly_Triangle(const Standard_Integer N1,
9 const Standard_Integer N2,
10 const Standard_Integer N3)
11{
12 myNodes[0] = N1;
13 myNodes[1] = N2;
14 myNodes[2] = N3;
15}
16
17//=======================================================================
18//function : PPoly_Triangle::Set
19//purpose :
20//=======================================================================
21
22void PPoly_Triangle::Set(const Standard_Integer N1,
23 const Standard_Integer N2,
24 const Standard_Integer N3)
25{
26 myNodes[0] = N1;
27 myNodes[1] = N2;
28 myNodes[2] = N3;
29}
30
31//=======================================================================
32//function : PPoly_Triangle::Get
33//purpose :
34//=======================================================================
35
36void PPoly_Triangle::Get(Standard_Integer& N1,
37 Standard_Integer& N2,
38 Standard_Integer& N3) const
39{
40 N1 = myNodes[0];
41 N2 = myNodes[1];
42 N3 = myNodes[2];
43}
44