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

indexed triangle class with an additional index for 3 normals one for each vertice in the triangle More...

#include <IndexedTriangle.hpp>

Public Member Functions

 IndexedTriangleN3 (T p1, T p2, T p3, T n1, T n2, T n3)
 constructor More...
 
 IndexedTriangleN3 (const IndexedTriangleN3 &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
 
T & getNormalIdx (size_t i)
 get the index of vertice normal i. More...
 
const T & getNormalIdx (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>
class rw::geometry::IndexedTriangleN3< T >

indexed triangle class with an additional index for 3 normals one for each vertice in the triangle

Constructor & Destructor Documentation

◆ IndexedTriangleN3() [1/2]

IndexedTriangleN3 ( p1,
p2,
p3,
n1,
n2,
n3 
)
inline

constructor

Parameters
p1[in] vertice index 1
p2[in] vertice index 2
p3[in] vertice index 3
n1[in] normal index for vertice 1
n2[in] normal index for vertice 2
n3[in] normal index for vertice 3

◆ IndexedTriangleN3() [2/2]

IndexedTriangleN3 ( const IndexedTriangleN3< T > &  f)
inline

copy constructor

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

Member Function Documentation

◆ getNormalIdx()

T& getNormalIdx ( size_t  i)
inline

get the index of vertice normal i.

Parameters
i[in] vertice normal
Returns
normal index

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