#include <gpConvexHull.h>
List of all members.
Public Member Functions |
| gpFace () |
| Default gpFace constructor (dimension= 2, size= 2)
|
| gpFace (unsigned int dimension, unsigned int vertex_number) |
unsigned int | operator[] (const unsigned int i) const |
unsigned int & | operator[] (const unsigned int i) |
unsigned int | nbVertices () |
unsigned int | nbRidges () |
std::vector< double > | normal () |
std::vector< double > | center () |
unsigned int | id () |
double | offset () |
std::vector< unsigned int > | vertices () |
int | print () |
int | reverseVertexOrder () |
int | orderFromRidges () |
Friends |
class | gpConvexHull |
Detailed Description
Class to store a face of a point set convex hull.
Constructor & Destructor Documentation
gpFace::gpFace |
( |
unsigned int |
dimension, |
|
|
unsigned int |
vertex_number |
|
) |
| |
- Parameters:
-
dimension | desired dimension of the vertex space |
vertex_number | desired number of vertices of the face |
Member Function Documentation
unsigned int gpFace::operator[] |
( |
const unsigned int |
i | ) |
const |
Operator to access the vertex array of the face.
- Parameters:
-
i | index in the vertex array of the face (starts from 0) |
- Returns:
- the i-th element of the vertex index array of the face
unsigned int & gpFace::operator[] |
( |
const unsigned int |
i | ) |
|
Operator to access the vertex array of the face.
- Parameters:
-
i | index in the vertex array of the face (starts from 0) |
- Returns:
- a reference to the i-th element of the vertex index array of the face
int gpFace::orderFromRidges |
( |
| ) |
|
Orders the vertices of a face according to its ridges. This is needed for two reasons:
- Qhull returns the vertices in a face with an arbitrary order if it is non-simplicial
- if face merging is enabled, the toporient field of a facet is no longer valid and the ridge orientation must be used instead This function is only used in 3D.
- Returns:
- GP_OK in case of success, GP_ERROR otherwise
Prints, in stdout, the content of a face.
- Returns:
- GP_OK in case of success, GP_ERROR otherwise
int gpFace::reverseVertexOrder |
( |
| ) |
|
Reverse the order of the vertices in the array of vertices of the calling face.
- Returns:
- GP_OK in case of success, GP_ERROR otherwise
The documentation for this class was generated from the following files:
- /home/slemaign/softs-local/BioMove3D-git/graspPlanning/include/gpConvexHull.h
- /home/slemaign/softs-local/BioMove3D-git/graspPlanning/gpConvexHull.cpp