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 | |
13 | inline 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 | |
24 | inline 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 | |
35 | inline 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 | |