summaryrefslogtreecommitdiff
path: root/src/Poly/Poly_Triangle.cxx
blob: d66605cbd2be43bddf225b0839d1bac22440e3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// File:	Poly_Triangle.cxx
// Created:	Mon Mar  6 10:47:39 1995
// Author:	Laurent PAINNOT
//		<lpa@metrox>


#include <Poly_Triangle.ixx>

//=======================================================================
//function : Poly_Triangle
//purpose  : 
//=======================================================================

Poly_Triangle::Poly_Triangle()
{
  myNodes[0] =  myNodes[1] = myNodes[2] = 0;
}

//=======================================================================
//function : Poly_Triangle
//purpose  : 
//=======================================================================

Poly_Triangle::Poly_Triangle(const Standard_Integer N1,
			     const Standard_Integer N2, 
			     const Standard_Integer N3)
{
  myNodes[0] = N1;
  myNodes[1] = N2;
  myNodes[2] = N3;
}

//=======================================================================
//function : Set
//purpose  : 
//=======================================================================

void Poly_Triangle::Set(const Standard_Integer N1, 
			const Standard_Integer N2, 
			const Standard_Integer N3)
{
  myNodes[0] = N1;
  myNodes[1] = N2;
  myNodes[2] = N3;
}

//=======================================================================
//function : Get
//purpose  : 
//=======================================================================

void Poly_Triangle::Get(Standard_Integer& N1, 
			Standard_Integer& N2, 
			Standard_Integer& N3) const 
{
  N1 = myNodes[0];
  N2 = myNodes[1];
  N3 = myNodes[2];
}