OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Poly_Triangle Class Reference

    Describes a component triangle of a triangulation (Poly_Triangulation object). A Triangle is defined by a triplet of nodes within [1, Poly_Triangulation::NbNodes()] range. 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. More...

    #include <Poly_Triangle.hxx>

    Public Member Functions

     Poly_Triangle ()
     Constructs a triangle and sets all indices to zero.
     Poly_Triangle (const int theN1, const int theN2, const int theN3)
     Constructs a triangle and sets its three indices, where these node values are indices in the table of nodes specific to an existing triangulation of a shape.
    void Set (const int theN1, const int theN2, const int theN3)
     Sets the value of the three nodes of this triangle.
    void Set (const int theIndex, const int theNode)
     Sets the value of node with specified index of this triangle. Raises Standard_OutOfRange if index is not in 1,2,3.
    void Get (int &theN1, int &theN2, int &theN3) const
     Returns the node indices of this triangle.
    int Value (const int theIndex) const
     Get the node of given Index. Raises OutOfRange from Standard if Index is not in 1,2,3.
    int operator() (const int Index) const
    int & ChangeValue (const int theIndex)
     Get the node of given Index. Raises OutOfRange if Index is not in 1,2,3.
    int & operator() (const int Index)

    Protected Attributes

    int myNodes [3]

    Detailed Description

    Describes a component triangle of a triangulation (Poly_Triangulation object). A Triangle is defined by a triplet of nodes within [1, Poly_Triangulation::NbNodes()] range. 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.

    Constructor & Destructor Documentation

    ◆ Poly_Triangle() [1/2]

    Poly_Triangle::Poly_Triangle ( )
    inline

    Constructs a triangle and sets all indices to zero.

    ◆ Poly_Triangle() [2/2]

    Poly_Triangle::Poly_Triangle ( const int theN1,
    const int theN2,
    const int theN3 )
    inline

    Constructs a triangle and sets its three indices, where these node values are indices in the table of nodes specific to an existing triangulation of a shape.

    Member Function Documentation

    ◆ ChangeValue()

    int & Poly_Triangle::ChangeValue ( const int theIndex)
    inline

    Get the node of given Index. Raises OutOfRange if Index is not in 1,2,3.

    ◆ Get()

    void Poly_Triangle::Get ( int & theN1,
    int & theN2,
    int & theN3 ) const
    inline

    Returns the node indices of this triangle.

    ◆ operator()() [1/2]

    int & Poly_Triangle::operator() ( const int Index)
    inline

    ◆ operator()() [2/2]

    int Poly_Triangle::operator() ( const int Index) const
    inline

    ◆ Set() [1/2]

    void Poly_Triangle::Set ( const int theIndex,
    const int theNode )
    inline

    Sets the value of node with specified index of this triangle. Raises Standard_OutOfRange if index is not in 1,2,3.

    ◆ Set() [2/2]

    void Poly_Triangle::Set ( const int theN1,
    const int theN2,
    const int theN3 )
    inline

    Sets the value of the three nodes of this triangle.

    ◆ Value()

    int Poly_Triangle::Value ( const int theIndex) const
    inline

    Get the node of given Index. Raises OutOfRange from Standard if Index is not in 1,2,3.

    Field Documentation

    ◆ myNodes

    int Poly_Triangle::myNodes[3]
    protected

    The documentation for this class was generated from the following file: