Template Class TriangleTpl

Class Documentation

template<typename _IndexType>
class TriangleTpl

Triangle with 3 indices for points.

Public Types

typedef _IndexType IndexType
typedef int size_type

Public Functions

COAL_DEPRECATED_MESSAGE (Use IndexType instead.) typedef _IndexType index_type
inline TriangleTpl()

Default constructor.

inline TriangleTpl(const TriangleTpl &other)

Copy constructor.

inline TriangleTpl(IndexType p1, IndexType p2, IndexType p3)

Create a triangle with given vertex indices.

template<typename OtherIndexType>
inline TriangleTpl(const TriangleTpl<OtherIndexType> &other)

Copy constructor from another vertex index type.

inline TriangleTpl &operator=(const TriangleTpl &other)

Copy operator.

template<typename OtherIndexType>
inline TriangleTpl &operator=(const TriangleTpl<OtherIndexType> &other)

Copy operator from another index type.

template<typename OtherIndexType>
inline TriangleTpl<OtherIndexType> cast() const
inline void set(IndexType p1, IndexType p2, IndexType p3)

Set the vertex indices of the triangle.

inline IndexType operator[](IndexType i) const

Access the triangle index.

inline IndexType &operator[](IndexType i)
inline bool operator==(const TriangleTpl &other) const
inline bool operator!=(const TriangleTpl &other) const
inline bool isValid() const

Public Static Functions

static inline size_type size()

Protected Attributes

IndexType vids[3] = {(std::numeric_limits<IndexType>::max)(), (std::numeric_limits<IndexType>::max)(), (std::numeric_limits<IndexType>::max)()}

indices for each vertex of triangle

Friends

friend class TriangleTpl