MeshLib
 
Loading...
Searching...
No Matches
MR::IPointsToMeshProjector Class Referenceabstract

Abstract class, computes the closest point on mesh to each of given points. Pure virtual functions must be implemented. More...

#include <MRPointsToMeshProjector.h>

+ Inheritance diagram for MR::IPointsToMeshProjector:

Public Member Functions

virtual ~IPointsToMeshProjector ()=default
 
virtual void updateMeshData (const Mesh *mesh)=0
 Updates all data related to the referencing mesh.
 
virtual void findProjections (std::vector< MeshProjectionResult > &result, const std::vector< Vector3f > &points, const AffineXf3f *worldXf=nullptr, const AffineXf3f *worldRefXf=nullptr, float upDistLimitSq=FLT_MAX, float loDistLimitSq=0.0f)=0
 Computes the closest point on mesh to each of given points.
 
virtual size_t projectionsHeapBytes (size_t numProjections) const =0
 Returns amount of memory needed to compute projections.
 

Detailed Description

Abstract class, computes the closest point on mesh to each of given points. Pure virtual functions must be implemented.

Constructor & Destructor Documentation

◆ ~IPointsToMeshProjector()

virtual MR::IPointsToMeshProjector::~IPointsToMeshProjector ( )
virtualdefault

Member Function Documentation

◆ findProjections()

virtual void MR::IPointsToMeshProjector::findProjections ( std::vector< MeshProjectionResult > & result,
const std::vector< Vector3f > & points,
const AffineXf3f * worldXf = nullptr,
const AffineXf3f * worldRefXf = nullptr,
float upDistLimitSq = FLT_MAX,
float loDistLimitSq = 0.0f )
pure virtual

Computes the closest point on mesh to each of given points.

Implemented in MR::PointsToMeshProjector.

◆ projectionsHeapBytes()

virtual size_t MR::IPointsToMeshProjector::projectionsHeapBytes ( size_t numProjections) const
pure virtual

Returns amount of memory needed to compute projections.

Implemented in MR::Cuda::PointsToMeshProjector, and MR::PointsToMeshProjector.

◆ updateMeshData()

virtual void MR::IPointsToMeshProjector::updateMeshData ( const Mesh * mesh)
pure virtual

Updates all data related to the referencing mesh.

Implemented in MR::Cuda::PointsToMeshProjector, and MR::PointsToMeshProjector.


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