Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Poly / Poly_Triangle.lxx
diff --git a/src/Poly/Poly_Triangle.lxx b/src/Poly/Poly_Triangle.lxx
new file mode 100755 (executable)
index 0000000..8e2656f
--- /dev/null
@@ -0,0 +1,41 @@
+// File:       Poly_Triangle.lxx
+// Created:    Mon Mar  6 10:47:04 1995
+// Author:     Laurent PAINNOT
+//             <lpa@metrox>
+
+#include <Standard_OutOfRange.hxx>
+
+//=======================================================================
+//function : Set
+//purpose  : 
+//=======================================================================
+
+inline void Poly_Triangle::Set(const Standard_Integer Index, const Standard_Integer Node)
+{
+  Standard_OutOfRange_Raise_if(Index < 1 || Index > 3,NULL);
+  myNodes[Index-1] = Node;
+}
+
+//=======================================================================
+//function : Value
+//purpose  : 
+//=======================================================================
+
+inline Standard_Integer Poly_Triangle::Value(const Standard_Integer Index) const 
+{
+  Standard_OutOfRange_Raise_if(Index < 1 || Index > 3,NULL);
+  return myNodes[Index-1];
+}
+
+//=======================================================================
+//function : ChangeValue
+//purpose  : 
+//=======================================================================
+
+inline Standard_Integer& Poly_Triangle::ChangeValue
+(const Standard_Integer Index)
+{
+  Standard_OutOfRange_Raise_if(Index < 1 || Index > 3,NULL);
+  return myNodes[Index-1];
+}
+