MeshLib
 
Loading...
Searching...
No Matches
MR::PointsToMeshProjector Class Reference

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

#include <MRPointsToMeshProjector.h>

+ Inheritance diagram for MR::PointsToMeshProjector:

Public Member Functions

virtual MRMESH_API void updateMeshData (const Mesh *mesh) override
 update all data related to the referencing mesh
 
virtual MRMESH_API void findProjections (std::vector< MeshProjectionResult > &result, const std::vector< Vector3f > &points, const AffineXf3f *objXf, const AffineXf3f *refObjXf, float upDistLimitSq, float loDistLimitSq) override
 Computes the closest point on mesh to each of given points

 
virtual MRMESH_API size_t projectionsHeapBytes (size_t numProjections) const override
 Returns amount of additional memory needed to compute projections.
 
- Public Member Functions inherited from MR::IPointsToMeshProjector
virtual ~IPointsToMeshProjector ()=default
 

Detailed Description

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

Member Function Documentation

◆ findProjections()

virtual MRMESH_API void MR::PointsToMeshProjector::findProjections ( std::vector< MeshProjectionResult > & result,
const std::vector< Vector3f > & points,
const AffineXf3f * objXf,
const AffineXf3f * refObjXf,
float upDistLimitSq,
float loDistLimitSq )
overridevirtual

Computes the closest point on mesh to each of given points

Parameters
resultvector pf projections
pointsvector of points to project
objXftransform applied to points
refObjXftransform applied to referencing mesh
upDistLimitSqmaximal squared distance from point to mesh
loDistLimitSqminimal squared distance from point to mesh

Implements MR::IPointsToMeshProjector.

◆ projectionsHeapBytes()

virtual MRMESH_API size_t MR::PointsToMeshProjector::projectionsHeapBytes ( size_t numProjections) const
overridevirtual

Returns amount of additional memory needed to compute projections.

Implements MR::IPointsToMeshProjector.

◆ updateMeshData()

virtual MRMESH_API void MR::PointsToMeshProjector::updateMeshData ( const Mesh * mesh)
overridevirtual

update all data related to the referencing mesh

Implements MR::IPointsToMeshProjector.


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