Public Member Functions
fcl::Triangle Class Reference

Triangle with 3 indices for points. More...

#include <hpp/fcl/data_types.h>

List of all members.

Public Member Functions

 Triangle ()
 Default constructor.
 Triangle (std::size_t p1, std::size_t p2, std::size_t p3)
 Create a triangle with given vertex indices.
void set (std::size_t p1, std::size_t p2, std::size_t p3)
 Set the vertex indices of the triangle.
std::size_t operator[] (int i) const
 the triangle index
std::size_t & operator[] (int i)

Detailed Description

Triangle with 3 indices for points.


Constructor & Destructor Documentation

fcl::Triangle::Triangle ( ) [inline]

Default constructor.

fcl::Triangle::Triangle ( std::size_t  p1,
std::size_t  p2,
std::size_t  p3 
) [inline]

Create a triangle with given vertex indices.


Member Function Documentation

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

the triangle index

std::size_t& fcl::Triangle::operator[] ( int  i) [inline]
void fcl::Triangle::set ( std::size_t  p1,
std::size_t  p2,
std::size_t  p3 
) [inline]

Set the vertex indices of the triangle.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines