// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Poly_Triangle_HeaderFile #define _Poly_Triangle_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class Standard_OutOfRange; //! Describes a component triangle of a triangulation
//! (Poly_Triangulation object).
//! A Triangle is defined by a triplet of nodes. Each node is an
//! index in the table of nodes specific to an existing
//! triangulation of a shape, and represents a point on the surface.
class Poly_Triangle { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Constructs a triangle and sets all indices to zero.
Standard_EXPORT Poly_Triangle(); //! Constructs a triangle and sets its three indices
//! to N1, N2 and N3 respectively, where these node values
//! are indices in the table of nodes specific to an existing
//! triangulation of a shape.
Standard_EXPORT Poly_Triangle(const Standard_Integer N1,const Standard_Integer N2,const Standard_Integer N3); //! Sets the value of the three nodes of this triangle to N1, N2 and N3 respectively.
Standard_EXPORT void Set(const Standard_Integer N1,const Standard_Integer N2,const Standard_Integer N3) ; //! Sets the value of the Indexth node of this triangle to Node.
//! Raises OutOfRange if Index is not in 1,2,3
void Set(const Standard_Integer Index,const Standard_Integer Node) ; //! Returns the node indices of this triangle in N1, N2 and N3.
Standard_EXPORT void Get(Standard_Integer& N1,Standard_Integer& N2,Standard_Integer& N3) const; //! Get the node of given Index.
//! Raises OutOfRange from Standard if Index is not in 1,2,3
Standard_Integer Value(const Standard_Integer Index) const; Standard_Integer operator()(const Standard_Integer Index) const { return Value(Index); } //! Get the node of given Index.
//! Raises OutOfRange if Index is not in 1,2,3
Standard_Integer& ChangeValue(const Standard_Integer Index) ; Standard_Integer& operator()(const Standard_Integer Index) { return ChangeValue(Index); } protected: private: Standard_Integer myNodes[3]; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif