Rasterfarm-SDK
Loading...
Searching...
No Matches
Mesh::Triangle Class Reference

#include <triangle.h>

Public Member Functions

 Triangle (VertexIndex a=INVALID_HANDLE, VertexIndex b=INVALID_HANDLE, VertexIndex c=INVALID_HANDLE, FaceIndex f=INVALID_HANDLE)
 
VertexIndexoperator[] (const size_t index)
 
const VertexIndexoperator[] (const size_t index) const
 
bool operator== (const Triangle &other) const
 
FaceIndex getFaceIndex () const
 

Public Attributes

VertexIndex vertexIndex [3]
 

Friends

class TriangleMesh
 

Detailed Description

Holds the Triangles

Constructor & Destructor Documentation

◆ Triangle()

Mesh::Triangle::Triangle ( VertexIndex a = INVALID_HANDLE,
VertexIndex b = INVALID_HANDLE,
VertexIndex c = INVALID_HANDLE,
FaceIndex f = INVALID_HANDLE )

Member Function Documentation

◆ getFaceIndex()

FaceIndex Mesh::Triangle::getFaceIndex ( ) const
inline
Returns
The index of the face within TriangleMesh.

◆ operator==()

bool Mesh::Triangle::operator== ( const Triangle & other) const
Returns
True if other triangle has same indices in same order(CW/CCW).

◆ operator[]() [1/2]

VertexIndex & Mesh::Triangle::operator[] ( const size_t index)

◆ operator[]() [2/2]

const VertexIndex & Mesh::Triangle::operator[] ( const size_t index) const

Friends And Related Symbol Documentation

◆ TriangleMesh

friend class TriangleMesh
friend

Member Data Documentation

◆ vertexIndex

VertexIndex Mesh::Triangle::vertexIndex[3]

Holds index data in TriangleMesh::vertex. The half-edges are defined by vertex order.


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