ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LSLocalModel Class Reference

Least Squares Best Fitting Plane "local modelization". More...

Inheritance diagram for LSLocalModel:
Collaboration diagram for LSLocalModel:

Public Member Functions

 LSLocalModel (const PointCoordinateType eq[4], const CCVector3 &center, PointCoordinateType squaredRadius)
 Constructor. More...
 
CV_LOCAL_MODEL_TYPES getType () const override
 Returns the model type. More...
 
ScalarType computeDistanceFromModelToPoint (const CCVector3 *P, CCVector3 *nearestPoint=nullptr) const override
 Compute the (unsigned) distance between a 3D point and this model. More...
 
- Public Member Functions inherited from cloudViewer::LocalModel
virtual ~LocalModel ()=default
 Destructor. More...
 
const CCVector3getCenter () const
 Returns the model center. More...
 
PointCoordinateType getSquareSize () const
 Returns the model max radius (squared) More...
 

Protected Attributes

PointCoordinateType m_eq [4]
 Plane equation. More...
 
- Protected Attributes inherited from cloudViewer::LocalModel
CCVector3 m_modelCenter
 Center. More...
 
PointCoordinateType m_squaredRadius
 Max radius (squared) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cloudViewer::LocalModel
static LocalModelNew (CV_LOCAL_MODEL_TYPES type, Neighbourhood &subset, const CCVector3 &center, PointCoordinateType squaredRadius)
 Factory. More...
 
- Protected Member Functions inherited from cloudViewer::LocalModel
 LocalModel (const CCVector3 &center, PointCoordinateType squaredRadius)
 Constructor. More...
 

Detailed Description

Least Squares Best Fitting Plane "local modelization".

Definition at line 19 of file LocalModel.cpp.

Constructor & Destructor Documentation

◆ LSLocalModel()

LSLocalModel::LSLocalModel ( const PointCoordinateType  eq[4],
const CCVector3 center,
PointCoordinateType  squaredRadius 
)
inline

Constructor.

Definition at line 22 of file LocalModel.cpp.

Member Function Documentation

◆ computeDistanceFromModelToPoint()

ScalarType LSLocalModel::computeDistanceFromModelToPoint ( const CCVector3 P,
CCVector3 nearestPoint = nullptr 
) const
inlineoverridevirtual

Compute the (unsigned) distance between a 3D point and this model.

Parameters
[in]Pthe query point
[out]nearestPointreturns the nearest point (optional)
Returns
the (unsigned) distance (or NAN_VALUE if the computation failed)

Implements cloudViewer::LocalModel.

Definition at line 33 of file LocalModel.cpp.

References abs(), cloudViewer::DistanceComputationTools::computePoint2PlaneDistance(), and dist().

◆ getType()

CV_LOCAL_MODEL_TYPES LSLocalModel::getType ( ) const
inlineoverridevirtual

Returns the model type.

Implements cloudViewer::LocalModel.

Definition at line 30 of file LocalModel.cpp.

References LS.

Member Data Documentation

◆ m_eq

PointCoordinateType LSLocalModel::m_eq[4]
protected

Plane equation.

Definition at line 49 of file LocalModel.cpp.


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