Open CASCADE Technology  7.4.0
Public Member Functions | Data Fields
BRepMesh_Triangle Class Reference

Light weighted structure representing triangle of mesh consisting of oriented links. More...

#include <BRepMesh_Triangle.hxx>

Public Member Functions

 BRepMesh_Triangle ()
 Default constructor. More...
 
 BRepMesh_Triangle (const Standard_Integer(&theEdges)[3], const Standard_Boolean(&theOrientations)[3], const BRepMesh_DegreeOfFreedom theMovability)
 Constructor. More...
 
void Initialize (const Standard_Integer(&theEdges)[3], const Standard_Boolean(&theOrientations)[3], const BRepMesh_DegreeOfFreedom theMovability)
 Initializes the triangle by the given parameters. More...
 
void Edges (Standard_Integer(&theEdges)[3], Standard_Boolean(&theOrientations)[3]) const
 Gets edges with orientations composing the triangle. More...
 
BRepMesh_DegreeOfFreedom Movability () const
 Returns movability of the triangle. More...
 
void SetMovability (const BRepMesh_DegreeOfFreedom theMovability)
 Sets movability of the triangle. More...
 
Standard_Integer HashCode (const Standard_Integer theUpperBound) const
 Computes a hash code for this triangle, in the range [1, theUpperBound]. More...
 
Standard_Boolean IsEqual (const BRepMesh_Triangle &theOther) const
 Checks for equality with another triangle. More...
 
Standard_Boolean operator== (const BRepMesh_Triangle &theOther) const
 Alias for IsEqual. More...
 

Data Fields

Standard_Integer myEdges [3]
 
Standard_Boolean myOrientations [3]
 
BRepMesh_DegreeOfFreedom myMovability
 

Detailed Description

Light weighted structure representing triangle of mesh consisting of oriented links.

Constructor & Destructor Documentation

◆ BRepMesh_Triangle() [1/2]

BRepMesh_Triangle::BRepMesh_Triangle ( )
inline

Default constructor.

◆ BRepMesh_Triangle() [2/2]

BRepMesh_Triangle::BRepMesh_Triangle ( const Standard_Integer(&)  theEdges[3],
const Standard_Boolean(&)  theOrientations[3],
const BRepMesh_DegreeOfFreedom  theMovability 
)
inline

Constructor.

Parameters
theEdgesarray of edges of triangle.
theOrientationsarray of edge's orientations.
theMovabilitymovability of triangle.

Member Function Documentation

◆ Edges()

void BRepMesh_Triangle::Edges ( Standard_Integer(&)  theEdges[3],
Standard_Boolean(&)  theOrientations[3] 
) const
inline

Gets edges with orientations composing the triangle.

Parameters
[out]theEdgesarray edges are stored to.
[out]theOrientationsarray orientations are stored to.

◆ HashCode()

Standard_Integer BRepMesh_Triangle::HashCode ( const Standard_Integer  theUpperBound) const
inline

Computes a hash code for this triangle, in the range [1, theUpperBound].

Parameters
theUpperBoundthe upper bound of the range a computing hash code must be within
Returns
a computed hash code, in the range [1, theUpperBound]

◆ Initialize()

void BRepMesh_Triangle::Initialize ( const Standard_Integer(&)  theEdges[3],
const Standard_Boolean(&)  theOrientations[3],
const BRepMesh_DegreeOfFreedom  theMovability 
)
inline

Initializes the triangle by the given parameters.

Parameters
theEdgesarray of edges of triangle.
theOrientationsarray of edge's orientations.
theMovabilitymovability of triangle.

◆ IsEqual()

Standard_Boolean BRepMesh_Triangle::IsEqual ( const BRepMesh_Triangle theOther) const
inline

Checks for equality with another triangle.

Parameters
theOthertriangle to be checked against this one.
Returns
TRUE if equal, FALSE if not.

◆ Movability()

BRepMesh_DegreeOfFreedom BRepMesh_Triangle::Movability ( ) const
inline

Returns movability of the triangle.

◆ operator==()

Standard_Boolean BRepMesh_Triangle::operator== ( const BRepMesh_Triangle theOther) const
inline

Alias for IsEqual.

◆ SetMovability()

void BRepMesh_Triangle::SetMovability ( const BRepMesh_DegreeOfFreedom  theMovability)
inline

Sets movability of the triangle.

Field Documentation

◆ myEdges

Standard_Integer BRepMesh_Triangle::myEdges[3]

◆ myMovability

BRepMesh_DegreeOfFreedom BRepMesh_Triangle::myMovability

◆ myOrientations

Standard_Boolean BRepMesh_Triangle::myOrientations[3]

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