Triangle with 3 indices for points. More...
#include <data_types.h>
Public Member Functions | |
std::size_t | operator[] (int i) const |
the triangle index | |
std::size_t & | operator[] (int i) |
void | set (std::size_t p1, std::size_t p2, std::size_t p3) |
Set the vertex indices of the triangle. | |
Triangle () | |
Default constructor. | |
Triangle (std::size_t p1, std::size_t p2, std::size_t p3) | |
Create a triangle with given vertex indices. | |
Private Attributes | |
std::size_t | vids [3] |
indices for each vertex of triangle |
Triangle with 3 indices for points.
Definition at line 53 of file data_types.h.
fcl::Triangle::Triangle | ( | ) | [inline] |
Default constructor.
Definition at line 60 of file data_types.h.
fcl::Triangle::Triangle | ( | std::size_t | p1, |
std::size_t | p2, | ||
std::size_t | p3 | ||
) | [inline] |
Create a triangle with given vertex indices.
Definition at line 63 of file data_types.h.
std::size_t fcl::Triangle::operator[] | ( | int | i | ) | const [inline] |
the triangle index
Definition at line 75 of file data_types.h.
std::size_t& fcl::Triangle::operator[] | ( | int | i | ) | [inline] |
Definition at line 77 of file data_types.h.
void fcl::Triangle::set | ( | std::size_t | p1, |
std::size_t | p2, | ||
std::size_t | p3 | ||
) | [inline] |
Set the vertex indices of the triangle.
Definition at line 69 of file data_types.h.
std::size_t fcl::Triangle::vids[3] [private] |
indices for each vertex of triangle
Definition at line 56 of file data_types.h.