MorphoGraphX  2.0-1-227
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mgx::Triangle Struct Reference

class Triangle Triangle.hpp <Triangle.hpp> More...

#include <Triangle.hpp>

Public Member Functions

 Triangle ()
 
 Triangle (vertex v0, vertex v1, vertex v2)
 
bool operator== (const Triangle &other) const
 
bool operator< (const Triangle &other) const
 
bool operator<= (const Triangle &other) const
 

Static Public Member Functions

template<typename T >
static bool setTriangleData (vertex v1, vertex v2, vertex v3, Triangle &t, T &V1, T &V2, T &V3)
 
template<typename T >
static bool setTriangleData (vertex v1, vertex v2, vertex v3, Triangle &t, T V[])
 

Public Attributes

vertex v [3]
 

Detailed Description

class Triangle Triangle.hpp <Triangle.hpp>

A class to index triangles from a VV mesh. This class rearranges the order to put the lowest (by v.id()) vertex first, but preserves the orientation.

Definition at line 31 of file Triangle.hpp.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

mgx::Triangle::Triangle ( )
inline

Definition at line 34 of file Triangle.hpp.

◆ Triangle() [2/2]

mgx::Triangle::Triangle ( vertex  v0,
vertex  v1,
vertex  v2 
)
inline

Definition at line 42 of file Triangle.hpp.

Member Function Documentation

◆ operator<()

bool mgx::Triangle::operator< ( const Triangle other) const
inline

Definition at line 83 of file Triangle.hpp.

◆ operator<=()

bool mgx::Triangle::operator<= ( const Triangle other) const
inline

Definition at line 95 of file Triangle.hpp.

◆ operator==()

bool mgx::Triangle::operator== ( const Triangle other) const
inline

Definition at line 77 of file Triangle.hpp.

◆ setTriangleData() [1/2]

template<typename T >
static bool mgx::Triangle::setTriangleData ( vertex  v1,
vertex  v2,
vertex  v3,
Triangle t,
T &  V1,
T &  V2,
T &  V3 
)
inlinestatic

Definition at line 57 of file Triangle.hpp.

◆ setTriangleData() [2/2]

template<typename T >
static bool mgx::Triangle::setTriangleData ( vertex  v1,
vertex  v2,
vertex  v3,
Triangle t,
V[] 
)
inlinestatic

Definition at line 71 of file Triangle.hpp.

Member Data Documentation

◆ v

vertex mgx::Triangle::v[3]

Definition at line 108 of file Triangle.hpp.


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