Public Member Functions | Private Attributes | List of all members
fcl::Triangle Class Reference

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...
 

Detailed Description

Triangle with 3 indices for points.

Definition at line 48 of file triangle.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

fcl::Triangle::Triangle ( )

Default constructor.

Definition at line 44 of file triangle.cpp.

◆ Triangle() [2/2]

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.

Member Function Documentation

◆ operator[]() [1/2]

std::size_t & fcl::Triangle::operator[] ( int  i)

Definition at line 68 of file triangle.cpp.

◆ operator[]() [2/2]

std::size_t fcl::Triangle::operator[] ( int  i) const

@access the triangle index

Definition at line 62 of file triangle.cpp.

◆ set()

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.

Member Data Documentation

◆ vids

std::size_t fcl::Triangle::vids[3]
private

indices for each vertex of triangle

Definition at line 51 of file triangle.h.


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


fcl
Author(s):
autogenerated on Fri Apr 2 2021 02:38:02