22 virtual void findProjections( std::vector<MeshProjectionResult>& result,
const std::vector<Vector3f>& points,
23 const AffineXf3f* worldXf =
nullptr,
const AffineXf3f* worldRefXf =
nullptr,
24 float upDistLimitSq = FLT_MAX,
float loDistLimitSq = 0.0f ) = 0;
41 const AffineXf3f*
refXf =
nullptr;
44 const AffineXf3f*
xf =
nullptr;
52 const VertCoords & testPoints,
const VertBitSet * validTestPoints = {},
53 const MeshProjectionParameters & params = {},
54 IPointsToMeshProjector * projector = {} );
63 IPointsToMeshProjector * projector = {} );
68 const Mesh* mesh_{
nullptr };
81 MRMESH_API
virtual void findProjections( std::vector<MeshProjectionResult>& result,
const std::vector<Vector3f>& points,
82 const AffineXf3f* objXf,
const AffineXf3f* refObjXf,
83 float upDistLimitSq,
float loDistLimitSq )
override;
Abstract class, computes the closest point on mesh to each of given points. Pure virtual functions mu...
Definition MRPointsToMeshProjector.h:16
Computes the closest point on mesh to each of given points on CPU.
Definition MRPointsToMeshProjector.h:67
float loDistLimitSq
Definition MRPointsToMeshProjector.h:34
virtual size_t projectionsHeapBytes(size_t numProjections) const =0
Returns amount of memory needed to compute projections.
virtual MRMESH_API size_t projectionsHeapBytes(size_t numProjections) const override
Returns amount of additional memory needed to compute projections.
const AffineXf3f * refXf
optional reference mesh to world transformation
Definition MRPointsToMeshProjector.h:41
const AffineXf3f * xf
optional test points to world transformation
Definition MRPointsToMeshProjector.h:44
virtual void updateMeshData(const Mesh *mesh)=0
Updates all data related to the referencing mesh.
MRMESH_API VertScalars findSignedDistances(const Mesh &refMesh, const VertCoords &testPoints, const VertBitSet *validTestPoints={}, const MeshProjectionParameters ¶ms={}, IPointsToMeshProjector *projector={})
if projector is not given then CPU's computations will be used
float upDistLimitSq
Definition MRPointsToMeshProjector.h:38
virtual ~IPointsToMeshProjector()=default
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 void updateMeshData(const Mesh *mesh) override
update 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.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRPointsToMeshProjector.h:31