RobWorkProject  23.9.11-
Classes | Namespaces | Functions
QHullND.hpp File Reference
#include <rw/core/macros.hpp>
#include <rw/geometry/ConvexHullND.hpp>
#include <rw/geometry/GeometryUtil.hpp>
#include <rw/math/VectorND.hpp>
#include <float.h>
#include <vector>

Classes

class  QHullND< N >
 calculates the convex hull of a set of 3d points. More...
 

Namespaces

 rw
 Deprecated namespace since 16/4-2020 for this class.
 
 rw::geometry
 Loading and storing of CAD models.
 

Functions

void build (size_t dim, double *coords, size_t nrCoords, std::vector< int > &vertIdxs, std::vector< int > &faceIdxs, std::vector< double > &faceNormals, std::vector< double > &faceOffsets)
 calclates the convex hull of a set of vertices coords each with dimension dim More...
 
void build (std::vector< std::vector< double >> coords, std::vector< int > &vertIdxs, std::vector< int > &faceIdxs, std::vector< double > &faceNormals, std::vector< double > &faceOffsets)
 calclates the convex hull of a set of vertices coords each with dimension dim More...
 

Function Documentation

◆ build() [1/2]

void rw::geometry::qhull::build ( size_t  dim,
double *  coords,
size_t  nrCoords,
std::vector< int > &  vertIdxs,
std::vector< int > &  faceIdxs,
std::vector< double > &  faceNormals,
std::vector< double > &  faceOffsets 
)

calclates the convex hull of a set of vertices coords each with dimension dim

Parameters
dim[in] nr of dimensions in each vertice
coords[in] array of vertices
nrCoords[in] the number of vertices
vertIdxs
faceIdxs
faceNormals
faceOffsets

◆ build() [2/2]

void rw::geometry::qhull::build ( std::vector< std::vector< double >>  coords,
std::vector< int > &  vertIdxs,
std::vector< int > &  faceIdxs,
std::vector< double > &  faceNormals,
std::vector< double > &  faceOffsets 
)

calclates the convex hull of a set of vertices coords each with dimension dim

Parameters
coords[in] array of vertices
vertIdxs
faceIdxs
faceNormals
faceOffsets