C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Triangle. More...

#include <mesh_triangle.h>

Public Member Functions

 MbTriangle ()
 Constructor.
 
 MbTriangle (uint j0, uint j1, uint j2, bool orientation)
 Constructor.
 
 MbTriangle (const MbTriangle &init)
 The copy-constructor.
 
 ~MbTriangle ()
 Destructor.
 
MbTriangleoperator= (const MbTriangle &init)
 The assignment operator.
 
void Init (uint j0, uint j1, uint j2, bool orientation)
 Initialization.
 
bool GetTriangle (uint &i0, uint &i1, uint &i2) const
 Get indices of triangle vertices in the array of points.
 
uint GetIndex (size_t n) const
 Get index of n-th triangle vertex in the array of points.
 
void Reverse ()
 Reverse the sequence of vertices.
 
bool FlipByEdge (size_t edgeIndex)
 Reverse the sequence of vertices with given by edge order.
 
template<class ParamPoints >
bool IntersectRect (const MbRect &rect, const ParamPoints &points) const
 Determine whether the projection of the triangle to the global XY-plane intersects the given rectangle.
 
template<class ParamPoints >
void GetGabRect (MbRect &rect, const ParamPoints &points) const
 Calculate bounding rectangle of the projection of the triangle to the global XY-plane.
 
bool IsTriangleEdge (uint k0, uint k1, size_t &eInd) const
 Is triangle's edge?
 
void GetProperties (MbProperties &properties)
 Get properties of the object.
 
void SetProperties (const MbProperties &properties)
 Set properties of the object.
 

Protected Attributes

uint pIndex [3]
 Indices of triangle vertices in the array of points.
 

Detailed Description

Triangle.

Triangle is defined as a triple of points defined by indices of vertices of MbGrid triangulation.


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