Class Triangle

Class Documentation

class Triangle

Triangle with 3 indices for points.

Public Types

typedef std::size_t index_type
typedef int size_type

Public Functions

inline Triangle()

Default constructor.

inline Triangle(index_type p1, index_type p2, index_type p3)

Create a triangle with given vertex indices.

inline void set(index_type p1, index_type p2, index_type p3)

Set the vertex indices of the triangle.

inline index_type operator[](index_type i) const

Access the triangle index.

inline index_type &operator[](index_type i)
inline bool operator==(const Triangle &other) const
inline bool operator!=(const Triangle &other) const
inline bool isValid() const

Public Static Functions

static inline size_type size()