Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Poly / Poly_Triangle.lxx
CommitLineData
7fd59977 1// File: Poly_Triangle.lxx
2// Created: Mon Mar 6 10:47:04 1995
3// Author: Laurent PAINNOT
4// <lpa@metrox>
5
6#include <Standard_OutOfRange.hxx>
7
8//=======================================================================
9//function : Set
10//purpose :
11//=======================================================================
12
13inline void Poly_Triangle::Set(const Standard_Integer Index, const Standard_Integer Node)
14{
15 Standard_OutOfRange_Raise_if(Index < 1 || Index > 3,NULL);
16 myNodes[Index-1] = Node;
17}
18
19//=======================================================================
20//function : Value
21//purpose :
22//=======================================================================
23
24inline Standard_Integer Poly_Triangle::Value(const Standard_Integer Index) const
25{
26 Standard_OutOfRange_Raise_if(Index < 1 || Index > 3,NULL);
27 return myNodes[Index-1];
28}
29
30//=======================================================================
31//function : ChangeValue
32//purpose :
33//=======================================================================
34
35inline Standard_Integer& Poly_Triangle::ChangeValue
36(const Standard_Integer Index)
37{
38 Standard_OutOfRange_Raise_if(Index < 1 || Index > 3,NULL);
39 return myNodes[Index-1];
40}
41