Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
coal::Triangle Class Reference

Triangle with 3 indices for points. More...

#include <data_types.h>

Public Types

typedef std::size_t index_type
 
typedef int size_type
 

Public Member Functions

bool isValid () const
 
bool operator!= (const Triangle &other) const
 
bool operator== (const Triangle &other) const
 
index_typeoperator[] (index_type i)
 
index_type operator[] (index_type i) const
 Access the triangle index. More...
 
void set (index_type p1, index_type p2, index_type p3)
 Set the vertex indices of the triangle. More...
 
 Triangle ()
 Default constructor. More...
 
 Triangle (index_type p1, index_type p2, index_type p3)
 Create a triangle with given vertex indices. More...
 

Static Public Member Functions

static size_type size ()
 

Private Attributes

index_type vids [3]
 indices for each vertex of triangle More...
 

Detailed Description

Triangle with 3 indices for points.

Definition at line 111 of file coal/data_types.h.

Member Typedef Documentation

◆ index_type

typedef std::size_t coal::Triangle::index_type

Definition at line 113 of file coal/data_types.h.

◆ size_type

Definition at line 114 of file coal/data_types.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

coal::Triangle::Triangle ( )
inline

Default constructor.

Definition at line 117 of file coal/data_types.h.

◆ Triangle() [2/2]

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

Create a triangle with given vertex indices.

Definition at line 120 of file coal/data_types.h.

Member Function Documentation

◆ isValid()

bool coal::Triangle::isValid ( ) const
inline

Definition at line 143 of file coal/data_types.h.

◆ operator!=()

bool coal::Triangle::operator!= ( const Triangle other) const
inline

Definition at line 141 of file coal/data_types.h.

◆ operator==()

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

Definition at line 136 of file coal/data_types.h.

◆ operator[]() [1/2]

index_type& coal::Triangle::operator[] ( index_type  i)
inline

Definition at line 132 of file coal/data_types.h.

◆ operator[]() [2/2]

index_type coal::Triangle::operator[] ( index_type  i) const
inline

Access the triangle index.

Definition at line 130 of file coal/data_types.h.

◆ set()

void coal::Triangle::set ( index_type  p1,
index_type  p2,
index_type  p3 
)
inline

Set the vertex indices of the triangle.

Definition at line 123 of file coal/data_types.h.

◆ size()

static size_type coal::Triangle::size ( )
inlinestatic

Definition at line 134 of file coal/data_types.h.

Member Data Documentation

◆ vids

index_type coal::Triangle::vids[3]
private
Initial value:
= {(std::numeric_limits<index_type>::max)(),
(std::numeric_limits<index_type>::max)(),
(std::numeric_limits<index_type>::max)()}

indices for each vertex of triangle

Definition at line 151 of file coal/data_types.h.


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


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00