Main MRPT website > C++ reference for MRPT 1.5.6
Classes | Enumerations | Functions
CPolyhedron.cpp File Reference
#include "opengl-precomp.h"
#include <mrpt/opengl/CPolyhedron.h>
#include <mrpt/math/CMatrixTemplate.h>
#include <mrpt/math/CMatrix.h>
#include <mrpt/poses/CPose3D.h>
#include <mrpt/math/geometry.h>
#include <mrpt/math/ops_containers.h>
#include <mrpt/random.h>
#include <mrpt/utils/CStream.h>
#include <mrpt/utils/stl_serialization.h>
#include "opengl_internals.h"
Include dependency graph for CPolyhedron.cpp:

Go to the source code of this file.

Classes

class  FCreatePolygonFromFace< T >
 
struct  SegmentVector
 

Enumerations

enum  JohnsonBodyPart {
  INF_NO_BODY =-2, SUP_NO_BODY =-1, UPWARDS_PYRAMID =0, DOWNWARDS_PYRAMID =1,
  UPWARDS_CUPOLA =2, DOWNWARDS_CUPOLA =3, ROTATED_UPWARDS_CUPOLA =4, ROTATED_DOWNWARDS_CUPOLA =5,
  PRISM =6, ANTIPRISM =7, UPWARDS_ROTUNDA =8, DOWNWARDS_ROTUNDA =9,
  ROTATED_UPWARDS_ROTUNDA =10, ROTATED_DOWNWARDS_ROTUNDA =11
}
 

Functions

bool getVerticesAndFaces (const vector< math::TPolygon3D > &polys, vector< TPoint3D > &vertices, vector< CPolyhedron::TPolyhedronFace > &faces)
 
bool analyzeJohnsonPartsString (const std::string &components, uint32_t numBaseEdges, vector< JohnsonBodyPart > &parts)
 
size_t additionalVertices (JohnsonBodyPart j, uint32_t numBaseEdges)
 
void insertCupola (size_t numBaseEdges, double angleShift, double baseRadius, double edgeLength, bool isRotated, bool isUpwards, size_t base, vector< TPoint3D > &verts, vector< CPolyhedron::TPolyhedronFace > &faces)
 
void insertRotunda (double angleShift, double baseRadius, bool isRotated, bool isUpwards, size_t base, vector< TPoint3D > &verts, vector< CPolyhedron::TPolyhedronFace > &faces)
 
size_t additionalFaces (JohnsonBodyPart j, uint32_t numBaseEdges)
 
bool faceContainsEdge (const CPolyhedron::TPolyhedronFace &f, const CPolyhedron::TPolyhedronEdge &e)
 
bool getPlanesIntersection (const vector< const TPlane * > &planes, TPoint3D &pnt)
 
bool searchForFace (const vector< CPolyhedron::TPolyhedronFace > &fs, uint32_t v1, uint32_t v2, uint32_t v3)
 
bool searchForEdge (const vector< CPolyhedron::TPolyhedronEdge > &es, uint32_t v1, uint32_t v2, size_t &where)
 
bool searchForEdge (const vector< CPolyhedron::TPolyhedronFace >::const_iterator &begin, const vector< CPolyhedron::TPolyhedronFace >::const_iterator &end, uint32_t v1, uint32_t v2)
 
double getHeight (const TPolygon3D &p, const TPoint3D &c)
 

Enumeration Type Documentation

Enumerator
INF_NO_BODY 
SUP_NO_BODY 
UPWARDS_PYRAMID 
DOWNWARDS_PYRAMID 
UPWARDS_CUPOLA 
DOWNWARDS_CUPOLA 
ROTATED_UPWARDS_CUPOLA 
ROTATED_DOWNWARDS_CUPOLA 
PRISM 
ANTIPRISM 
UPWARDS_ROTUNDA 
DOWNWARDS_ROTUNDA 
ROTATED_UPWARDS_ROTUNDA 
ROTATED_DOWNWARDS_ROTUNDA 

Definition at line 65 of file CPolyhedron.cpp.

Function Documentation

size_t additionalFaces ( JohnsonBodyPart  j,
uint32_t  numBaseEdges 
)
inline
size_t additionalVertices ( JohnsonBodyPart  j,
uint32_t  numBaseEdges 
)
inline
bool analyzeJohnsonPartsString ( const std::string components,
uint32_t  numBaseEdges,
vector< JohnsonBodyPart > &  parts 
)
bool faceContainsEdge ( const CPolyhedron::TPolyhedronFace f,
const CPolyhedron::TPolyhedronEdge e 
)
inline
double getHeight ( const TPolygon3D p,
const TPoint3D c 
)
bool getPlanesIntersection ( const vector< const TPlane * > &  planes,
TPoint3D pnt 
)
bool getVerticesAndFaces ( const vector< math::TPolygon3D > &  polys,
vector< TPoint3D > &  vertices,
vector< CPolyhedron::TPolyhedronFace > &  faces 
)
void insertCupola ( size_t  numBaseEdges,
double  angleShift,
double  baseRadius,
double  edgeLength,
bool  isRotated,
bool  isUpwards,
size_t  base,
vector< TPoint3D > &  verts,
vector< CPolyhedron::TPolyhedronFace > &  faces 
)
void insertRotunda ( double  angleShift,
double  baseRadius,
bool  isRotated,
bool  isUpwards,
size_t  base,
vector< TPoint3D > &  verts,
vector< CPolyhedron::TPolyhedronFace > &  faces 
)
bool searchForEdge ( const vector< CPolyhedron::TPolyhedronEdge > &  es,
uint32_t  v1,
uint32_t  v2,
size_t &  where 
)
bool searchForEdge ( const vector< CPolyhedron::TPolyhedronFace >::const_iterator begin,
const vector< CPolyhedron::TPolyhedronFace >::const_iterator end,
uint32_t  v1,
uint32_t  v2 
)

Definition at line 305 of file CPolyhedron.cpp.

bool searchForFace ( const vector< CPolyhedron::TPolyhedronFace > &  fs,
uint32_t  v1,
uint32_t  v2,
uint32_t  v3 
)

Definition at line 284 of file CPolyhedron.cpp.

Referenced by mrpt::opengl::CPolyhedron::truncate().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018