RobWorkProject  23.9.11-
Public Member Functions | List of all members
IndexedTriangle< T > Class Template Reference

indexed triangle class that has 3 indices that points to 3 vertices in an array typically used with the IndexedTriMesh class. the indice type (size) is templated. More...

#include <IndexedTriangle.hpp>

Public Member Functions

 IndexedTriangle ()
 default constructor
 
 IndexedTriangle (T p1, T p2, T p3)
 constructor More...
 
 IndexedTriangle (const IndexedTriangle &f)
 copy constructor More...
 
T & getVertexIdx (size_t i)
 returns the index of vertex i of the triangle
 
const T & getVertexIdx (size_t i) const
 returns the index of vertex i of the triangle
 
template<class R >
bool isInside (const rw::math::Vector3D< R > &x, const std::vector< rw::math::Vector3D< R >> &verts)
 tests wheather the point x is inside the triangle
 
T & operator[] (size_t i)
 get vertex at index i
 
const T & operator[] (size_t i) const
 get vertex at index i
 

Detailed Description

template<class T = uint16_t>
class rw::geometry::IndexedTriangle< T >

indexed triangle class that has 3 indices that points to 3 vertices in an array typically used with the IndexedTriMesh class. the indice type (size) is templated.

Constructor & Destructor Documentation

◆ IndexedTriangle() [1/2]

IndexedTriangle ( p1,
p2,
p3 
)
inline

constructor

Parameters
p1[in] indice to vertice 1
p2[in] indice to vertice 2
p3[in] indice to vertice 3

◆ IndexedTriangle() [2/2]

IndexedTriangle ( const IndexedTriangle< T > &  f)
inline

copy constructor

Parameters
f[in] - The face that is to be copied.

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