coal 3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
Loading...
Searching...
No Matches
coal::TriangleTpl< _IndexType > Class Template Reference

Triangle with 3 indices for points. More...

#include <coal/data_types.h>

Public Types

typedef _IndexType index_type
 
typedef _IndexType IndexType
 
typedef int size_type
 

Public Member Functions

 TriangleTpl ()
 Default constructor.
 
 TriangleTpl (const TriangleTpl &other)
 Copy constructor.
 
 TriangleTpl (IndexType p1, IndexType p2, IndexType p3)
 Create a triangle with given vertex indices.
 
template<typename OtherIndexType >
 TriangleTpl (const TriangleTpl< OtherIndexType > &other)
 Copy constructor from another vertex index type.
 
TriangleTploperator= (const TriangleTpl &other)
 Copy operator.
 
template<typename OtherIndexType >
TriangleTploperator= (const TriangleTpl< OtherIndexType > &other)
 Copy operator from another index type.
 
template<typename OtherIndexType >
TriangleTpl< OtherIndexTypecast () const
 
void set (IndexType p1, IndexType p2, IndexType p3)
 Set the vertex indices of the triangle.
 
IndexType operator[] (IndexType i) const
 Access the triangle index.
 
IndexTypeoperator[] (IndexType i)
 
bool operator== (const TriangleTpl &other) const
 
bool operator!= (const TriangleTpl &other) const
 
bool isValid () const
 

Static Public Member Functions

static size_type size ()
 

Protected Attributes

IndexType vids [3]
 indices for each vertex of triangle
 

Friends

template<typename OtherIndexType >
class TriangleTpl
 

Detailed Description

template<typename _IndexType>
class coal::TriangleTpl< _IndexType >

Triangle with 3 indices for points.

Member Typedef Documentation

◆ index_type

◆ IndexType

◆ size_type

Constructor & Destructor Documentation

◆ TriangleTpl() [1/4]

template<typename _IndexType >
coal::TriangleTpl< _IndexType >::TriangleTpl ( )
inline

Default constructor.

◆ TriangleTpl() [2/4]

template<typename _IndexType >
coal::TriangleTpl< _IndexType >::TriangleTpl ( const TriangleTpl< _IndexType > &  other)
inline

Copy constructor.

◆ TriangleTpl() [3/4]

template<typename _IndexType >
coal::TriangleTpl< _IndexType >::TriangleTpl ( IndexType  p1,
IndexType  p2,
IndexType  p3 
)
inline

Create a triangle with given vertex indices.

◆ TriangleTpl() [4/4]

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

Copy constructor from another vertex index type.

Member Function Documentation

◆ cast()

◆ isValid()

template<typename _IndexType >
bool coal::TriangleTpl< _IndexType >::isValid ( ) const
inline

◆ operator!=()

◆ operator=() [1/2]

Copy operator.

◆ operator=() [2/2]

Copy operator from another index type.

◆ operator==()

◆ operator[]() [1/2]

◆ operator[]() [2/2]

Access the triangle index.

◆ set()

template<typename _IndexType >
void coal::TriangleTpl< _IndexType >::set ( IndexType  p1,
IndexType  p2,
IndexType  p3 
)
inline

Set the vertex indices of the triangle.

◆ size()

template<typename _IndexType >
static size_type coal::TriangleTpl< _IndexType >::size ( )
inlinestatic

Friends And Related Symbol Documentation

◆ TriangleTpl

Member Data Documentation

◆ vids

template<typename _IndexType >
IndexType coal::TriangleTpl< _IndexType >::vids[3]
protected
Initial value:
= {(std::numeric_limits<IndexType>::max)(),
(std::numeric_limits<IndexType>::max)(),
(std::numeric_limits<IndexType>::max)()}

indices for each vertex of triangle


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