CCCoreLib 31 May 2022
CloudCompare Core algorithms
|
Local modelization (generic interface) More...
#include <LocalModel.h>
Public Member Functions | |
virtual | ~LocalModel ()=default |
Destructor. | |
virtual LOCAL_MODEL_TYPES | getType () const =0 |
Returns the model type. | |
const CCVector3 & | getCenter () const |
Returns the model center. | |
PointCoordinateType | getSquareSize () const |
Returns the model max radius (squared) | |
virtual ScalarType | computeDistanceFromModelToPoint (const CCVector3 *P, CCVector3 *nearestPoint=nullptr) const =0 |
Compute the (unsigned) distance between a 3D point and this model. More... | |
Static Public Member Functions | |
static LocalModel * | New (LOCAL_MODEL_TYPES type, Neighbourhood &subset, const CCVector3 ¢er, PointCoordinateType squaredRadius) |
Factory. More... | |
Protected Member Functions | |
LocalModel (const CCVector3 ¢er, PointCoordinateType squaredRadius) | |
Constructor. More... | |
Protected Attributes | |
CCVector3 | m_modelCenter |
Center. | |
PointCoordinateType | m_squaredRadius |
Max radius (squared) | |
Local modelization (generic interface)
Local surface approximation of a point cloud
|
protected |
Constructor.
center | model "center" |
squaredRadius | model max "radius" (squared) |
|
pure virtual |
Compute the (unsigned) distance between a 3D point and this model.
[in] | P | the query point |
[out] | nearestPoint | returns the nearest point (optional) |
|
static |
Factory.
type | the model type |
subset | (small) set of points from which to compute the local model |
center | model "center" |
squaredRadius | model max radius (squared) |