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

Classes

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

Namespaces

 rw
 RobWork library.
 
 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...
 

Function Documentation

◆ build()

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
Returns