|
MeVisLab Toolbox Reference
|
TileSphere is used in the class MinimalDistancePointClouds.
More...
#include <TileSphere.h>
Public Member Functions | |
| TileSphere () | |
| Default Constructor. | |
| TileSphere (MinimalDistancePointClouds *minimalDistance, int maxPartition=2, int numElements=1103, float error=0) | |
| Constructor with a pointer on the main class and presets for the distance computation. | |
| virtual | ~TileSphere () |
| Destructor. | |
| void | setParameter (MinimalDistancePointClouds *minimalDistance, int maxPartition, int numElements, float error) |
| Must be called, when TileSphere was instantiated with the default constructor. | |
| void | setBB (float minX, float maxX, float minY, float maxY, float minZ, float maxZ) |
| Defines which points will be put into this sphere. | |
| void | addPoint (float *position) |
| Put a point into this sphere (or one of its sub spheres). | |
| void | getDeFactoSize () |
| Computes the optimal bounding sphere. | |
| float | computeDistance (TileSphere *tileSphere, float *&point1, float *&point2) |
| Computes the distance and returns references to the nearest points of both sets. | |
| float | computeDistance (TileSphere *tileSphere, unsigned int &node1, unsigned int &nodet2) |
| Computes the distance and returns a references to the entryNumbers of the nearest nodes of both sets. | |
| unsigned int | getSphereIndex () |
| Returns the index of the TileSphere. | |
| void | getStatistics (int &_treeDepth, int &usedSpheres, int &leafSpheres, int &_maxEnt) |
| Returns statistics for debugging purposes. | |
TileSphere is used in the class MinimalDistancePointClouds.
It defines a single sub sphere for a fast nearest pair search algorithm described by Sean Quinlan in 'Efficient Distance Computation between Non-Convex Objects'. TileSphere will generate its own sub spheres if necessary.
Definition at line 36 of file TileSphere.h.
| ml::TileSphere::TileSphere | ( | ) |
Default Constructor.
| ml::TileSphere::TileSphere | ( | MinimalDistancePointClouds * | minimalDistance, |
| int | maxPartition = 2, |
||
| int | numElements = 1103, |
||
| float | error = 0 |
||
| ) |
Constructor with a pointer on the main class and presets for the distance computation.
|
virtual |
Destructor.
| void ml::TileSphere::addPoint | ( | float * | position | ) |
Put a point into this sphere (or one of its sub spheres).
| float ml::TileSphere::computeDistance | ( | TileSphere * | tileSphere, |
| float *& | point1, | ||
| float *& | point2 | ||
| ) |
Computes the distance and returns references to the nearest points of both sets.
| float ml::TileSphere::computeDistance | ( | TileSphere * | tileSphere, |
| unsigned int & | node1, | ||
| unsigned int & | nodet2 | ||
| ) |
Computes the distance and returns a references to the entryNumbers of the nearest nodes of both sets.
| void ml::TileSphere::getDeFactoSize | ( | ) |
Computes the optimal bounding sphere.
| unsigned int ml::TileSphere::getSphereIndex | ( | ) |
Returns the index of the TileSphere.
| void ml::TileSphere::getStatistics | ( | int & | _treeDepth, |
| int & | usedSpheres, | ||
| int & | leafSpheres, | ||
| int & | _maxEnt | ||
| ) |
Returns statistics for debugging purposes.
| void ml::TileSphere::setBB | ( | float | minX, |
| float | maxX, | ||
| float | minY, | ||
| float | maxY, | ||
| float | minZ, | ||
| float | maxZ | ||
| ) |
Defines which points will be put into this sphere.
| void ml::TileSphere::setParameter | ( | MinimalDistancePointClouds * | minimalDistance, |
| int | maxPartition, | ||
| int | numElements, | ||
| float | error | ||
| ) |
Must be called, when TileSphere was instantiated with the default constructor.