Computes the closest point on mesh to each of given points on GPU. It caches data that necessary for computing.
More...
#include <MRCudaPointsToMeshProjector.h>
|
MRCUDA_API | PointsToMeshProjector () |
|
virtual MRCUDA_API void | updateMeshData (const Mesh *mesh) override |
| update all data related to the referencing mesh
|
|
virtual MRCUDA_API void | findProjections (std::vector< MR::MeshProjectionResult > &res, 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 MRCUDA_API size_t | projectionsHeapBytes (size_t numProjections) const override |
| Returns amount of additional memory needed to compute projections.
|
|
virtual | ~IPointsToMeshProjector ()=default |
|
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.
|
|
Computes the closest point on mesh to each of given points on GPU. It caches data that necessary for computing.
◆ PointsToMeshProjector()
MRCUDA_API MR::Cuda::PointsToMeshProjector::PointsToMeshProjector |
( |
| ) |
|
◆ findProjections()
virtual MRCUDA_API void MR::Cuda::PointsToMeshProjector::findProjections |
( |
std::vector< MR::MeshProjectionResult > & | res, |
|
|
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
-
res | vector pf projections |
points | vector of points to project |
objXf | transform applied to points |
refObjXf | transform applied to referencing mesh |
upDistLimitSq | maximal squared distance from point to mesh |
loDistLimitSq | minimal squared distance from point to mesh |
◆ projectionsHeapBytes()
virtual MRCUDA_API size_t MR::Cuda::PointsToMeshProjector::projectionsHeapBytes |
( |
size_t | numProjections | ) |
const |
|
overridevirtual |
◆ updateMeshData()
virtual MRCUDA_API void MR::Cuda::PointsToMeshProjector::updateMeshData |
( |
const Mesh * | mesh | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: