MeVisLab Toolbox Reference
ml::TileSphere Class 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TileSphere() [1/2]

ml::TileSphere::TileSphere ( )

Default Constructor.

◆ TileSphere() [2/2]

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.

◆ ~TileSphere()

virtual ml::TileSphere::~TileSphere ( )
virtual

Destructor.

Member Function Documentation

◆ addPoint()

void ml::TileSphere::addPoint ( float * position)

Put a point into this sphere (or one of its sub spheres).

◆ computeDistance() [1/2]

float ml::TileSphere::computeDistance ( TileSphere * tileSphere,
float *& point1,
float *& point2 )

Computes the distance and returns references to the nearest points of both sets.

◆ computeDistance() [2/2]

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.

◆ getDeFactoSize()

void ml::TileSphere::getDeFactoSize ( )

Computes the optimal bounding sphere.

◆ getSphereIndex()

unsigned int ml::TileSphere::getSphereIndex ( )

Returns the index of the TileSphere.

◆ getStatistics()

void ml::TileSphere::getStatistics ( int & _treeDepth,
int & usedSpheres,
int & leafSpheres,
int & _maxEnt )

Returns statistics for debugging purposes.

◆ setBB()

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.

◆ setParameter()

void ml::TileSphere::setParameter ( MinimalDistancePointClouds * minimalDistance,
int maxPartition,
int numElements,
float error )

Must be called, when TileSphere was instantiated with the default constructor.


The documentation for this class was generated from the following file: