MRPT
1.9.9
|
Struct used to store a polyhedron face.
Consists on a set of vertex indices and a normal vector.
Definition at line 89 of file CPolyhedron.h.
#include <mrpt/opengl/CPolyhedron.h>
Public Member Functions | |
TPolyhedronFace () | |
Fast default constructor. More... | |
~TPolyhedronFace () | |
Destructor. More... | |
double | area (const std::vector< mrpt::math::TPoint3D > &vertices) const |
Given a set of vertices, computes the area of this face. More... | |
void | getCenter (const std::vector< mrpt::math::TPoint3D > &vertices, mrpt::math::TPoint3D &p) const |
Given a set of vertices, get this face's center. More... | |
Public Attributes | |
std::vector< uint32_t > | vertices |
Vector of indices to the vertex list. More... | |
double | normal [3] |
Normal vector. More... | |
|
inline |
|
inline |
Destructor.
Definition at line 98 of file CPolyhedron.h.
double CPolyhedron::TPolyhedronFace::area | ( | const std::vector< mrpt::math::TPoint3D > & | vertices | ) | const |
Given a set of vertices, computes the area of this face.
Definition at line 479 of file CPolyhedron.cpp.
References mrpt::square().
void CPolyhedron::TPolyhedronFace::getCenter | ( | const std::vector< mrpt::math::TPoint3D > & | vertices, |
mrpt::math::TPoint3D & | p | ||
) | const |
Given a set of vertices, get this face's center.
Definition at line 502 of file CPolyhedron.cpp.
double mrpt::opengl::CPolyhedron::TPolyhedronFace::normal[3] |
Normal vector.
Definition at line 94 of file CPolyhedron.h.
Referenced by mrpt::opengl::operator<<(), mrpt::opengl::operator>>(), and mrpt::opengl::CPolyhedron::setNormal().
std::vector<uint32_t> mrpt::opengl::CPolyhedron::TPolyhedronFace::vertices |
Vector of indices to the vertex list.
Definition at line 92 of file CPolyhedron.h.
Referenced by mrpt::opengl::CPolyhedron::addEdges(), mrpt::opengl::CPolyhedron::augment(), mrpt::opengl::CPolyhedron::CPolyhedron(), mrpt::opengl::CPolyhedron::CreateBifrustum(), mrpt::opengl::CPolyhedron::CreateCubicPrism(), mrpt::opengl::CPolyhedron::CreateCustomAntiprism(), mrpt::opengl::CPolyhedron::CreateDoublePyramid(), mrpt::opengl::CPolyhedron::CreateParallelepiped(), mrpt::opengl::CPolyhedron::CreatePyramid(), mrpt::opengl::CPolyhedron::CreateTrapezohedron(), mrpt::opengl::CPolyhedron::CreateTruncatedPyramid(), faceContainsEdge(), getVerticesAndFaces(), insertCupola(), insertRotunda(), FCreatePolygonFromFace< T >::operator()(), mrpt::opengl::operator<<(), mrpt::opengl::operator>>(), and mrpt::opengl::CPolyhedron::setNormal().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |