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

Delaunay 2D1/2 "local modelization". More...

Inheritance diagram for DelaunayLocalModel:
Collaboration diagram for DelaunayLocalModel:

Public Member Functions

 DelaunayLocalModel (GenericMesh *tri, const CCVector3 &center, PointCoordinateType squaredRadius)
 Constructor. More...
 
 ~DelaunayLocalModel () override
 Destructor. 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

GenericMeshm_tri
 Associated triangulation. 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

Delaunay 2D1/2 "local modelization".

Definition at line 53 of file LocalModel.cpp.

Constructor & Destructor Documentation

◆ DelaunayLocalModel()

DelaunayLocalModel::DelaunayLocalModel ( GenericMesh tri,
const CCVector3 center,
PointCoordinateType  squaredRadius 
)
inline

Constructor.

Definition at line 56 of file LocalModel.cpp.

◆ ~DelaunayLocalModel()

DelaunayLocalModel::~DelaunayLocalModel ( )
inlineoverride

Destructor.

Definition at line 64 of file LocalModel.cpp.

Member Function Documentation

◆ computeDistanceFromModelToPoint()

ScalarType DelaunayLocalModel::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 70 of file LocalModel.cpp.

References cloudViewer::DistanceComputationTools::computePoint2TriangleDistance(), and NAN_VALUE.

◆ getType()

CV_LOCAL_MODEL_TYPES DelaunayLocalModel::getType ( ) const
inlineoverridevirtual

Returns the model type.

Implements cloudViewer::LocalModel.

Definition at line 67 of file LocalModel.cpp.

References TRI.

Member Data Documentation

◆ m_tri

GenericMesh* DelaunayLocalModel::m_tri
protected

Associated triangulation.

Definition at line 100 of file LocalModel.cpp.


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