Triangle with 3 indices for points. More...
#include <triangle.h>
Public Member Functions | |
std::size_t & | operator[] (int i) |
std::size_t | operator[] (int i) const |
@access the triangle index More... | |
void | set (std::size_t p1, std::size_t p2, std::size_t p3) |
Set the vertex indices of the triangle. More... | |
Triangle () | |
Default constructor. More... | |
Triangle (std::size_t p1, std::size_t p2, std::size_t p3) | |
Create a triangle with given vertex indices. More... | |
Private Attributes | |
std::size_t | vids [3] |
indices for each vertex of triangle More... | |
Triangle with 3 indices for points.
Definition at line 48 of file triangle.h.
fcl::Triangle::Triangle | ( | ) |
Default constructor.
Definition at line 44 of file triangle.cpp.
fcl::Triangle::Triangle | ( | std::size_t | p1, |
std::size_t | p2, | ||
std::size_t | p3 | ||
) |
Create a triangle with given vertex indices.
Definition at line 50 of file triangle.cpp.
std::size_t & fcl::Triangle::operator[] | ( | int | i | ) |
Definition at line 68 of file triangle.cpp.
std::size_t fcl::Triangle::operator[] | ( | int | i | ) | const |
@access the triangle index
Definition at line 62 of file triangle.cpp.
void fcl::Triangle::set | ( | std::size_t | p1, |
std::size_t | p2, | ||
std::size_t | p3 | ||
) |
Set the vertex indices of the triangle.
Definition at line 56 of file triangle.cpp.
|
private |
indices for each vertex of triangle
Definition at line 51 of file triangle.h.