return aCopy;
}
+//=======================================================================
+//function : Node
+//purpose :
+//=======================================================================
+
+Standard_Integer Poly_PolygonOnTriangulation::Node (const Standard_Integer theIndex) const
+{
+ Standard_OutOfRange_Raise_if ((theIndex < 1 || theIndex > myNodes.Length()),
+ "Poly_PolygonOnTriangulation::Node : index out of range");
+ return myNodes.Value (theIndex);
+}
+
//=======================================================================
//function : SetNode
//purpose :
//! Return node at the given index.
//! Raises exception if theIndex is less than NodesLowerIndex or bigger than NodesUpperIndex.
- Standard_EXPORT Standard_Integer Node(const Standard_Integer theIndex) const;
+ Standard_EXPORT Standard_Integer Node (const Standard_Integer theIndex) const;
//! Sets node at the given index.
//! Raises exception if theIndex is less than NodesLowerIndex or bigger than NodesUpperIndex.
- Standard_EXPORT void SetNode(const Standard_Integer theIndex, const Standard_Integer theNode);
+ Standard_EXPORT void SetNode (const Standard_Integer theIndex, const Standard_Integer theNode);
//! Returns true if parameters are associated with the nodes in this polygon.
Standard_Boolean HasParameters() const { return !myParameters.IsNull(); }
//! Return parameter at the given index.
//! Raises Standard_NullObject exception if parameters has not been initialized.
//! Raises Standard_OutOfRange exception if theIndex is less than ParametersLowerIndex or bigger than ParametersUpperIndex.
- Standard_EXPORT Standard_Real Parameter(const Standard_Integer theIndex) const;
+ Standard_EXPORT Standard_Real Parameter (const Standard_Integer theIndex) const;
//! Sets parameter at the given index.
//! Raises Standard_NullObject exception if parameters has not been initialized.
//! Raises Standard_OutOfRange exception if theIndex is less than ParametersLowerIndex or bigger than ParametersUpperIndex.
- Standard_EXPORT void SetParameter(const Standard_Integer theIndex, const Standard_Real theValue);
+ Standard_EXPORT void SetParameter (const Standard_Integer theIndex, const Standard_Real theValue);
//! Sets the table of the parameters associated with each node in this polygon.