MeshLib Documentation
Loading...
Searching...
No Matches
MRCudaPointsToMeshProjector.h
Go to the documentation of this file.
1#pragma once
2#include "exports.h"
4
5namespace MR { namespace Cuda {
6
7struct MeshProjectorData;
10{
11 std::shared_ptr<MeshProjectorData> meshData_;
12 const Mesh* mesh_{ nullptr };
13
14public:
17 MRCUDA_API virtual void updateMeshData( const Mesh* mesh ) override;
27 MRCUDA_API virtual void findProjections( std::vector<MR::MeshProjectionResult>& res, const std::vector<Vector3f>& points, const AffineXf3f* objXf, const AffineXf3f* refObjXf, float upDistLimitSq, float loDistLimitSq ) override;
28
30 MRCUDA_API virtual size_t projectionsHeapBytes( size_t numProjections ) const override;
31};
32
33
34}}
Computes the closest point on mesh to each of given points on GPU. It caches data that necessary for ...
Definition MRCudaPointsToMeshProjector.h:10
virtual MRCUDA_API size_t projectionsHeapBytes(size_t numProjections) const override
Returns amount of additional memory needed to compute projections.
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 void updateMeshData(const Mesh *mesh) override
update all data related to the referencing mesh
Abstract class, computes the closest point on mesh to each of given points. Pure virtual functions mu...
Definition MRPointsToMeshProjector.h:12
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh/MRMesh.h:23