MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPointsInBall.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRBall.h"
5#include "MRVector3.h"
6#include "MRPointsProject.h"
7#include "MREnums.h"
8
9namespace MR
10{
11
12using FoundPointCallback = std::function<void( VertId, const Vector3f& )>;
13
15using OnPointInBallFound = std::function<Processing( const PointsProjectionResult & found, const Vector3f & foundXfPos, Ball3f & ball )>;
16
21MRMESH_API void findPointsInBall( const PointCloud& pointCloud, const Ball3f & ball,
22 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
23
27[[deprecated]] MRMESH_API void findPointsInBall( const PointCloud& pointCloud, const Ball3f& ball,
28 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
29
34MRMESH_API void findPointsInBall( const Mesh& mesh, const Ball3f& ball,
35 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
36
40[[deprecated]] MRMESH_API void findPointsInBall( const Mesh& mesh, const Ball3f& ball,
41 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
42
47MRMESH_API void findPointsInBall( const AABBTreePoints& tree, Ball3f ball,
48 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
49
53[[deprecated]] MRMESH_API void findPointsInBall( const AABBTreePoints& tree, const Ball3f& ball,
54 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
55
56} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
bounding volume hierarchy for point cloud structure
Definition MRAABBTreePoints.h:16
MRMESH_API void findPointsInBall(const PointCloud &pointCloud, const Ball3f &ball, const OnPointInBallFound &foundCallback, const AffineXf3f *xf=nullptr)
std::function< void(VertId, const Vector3f &)> FoundPointCallback
Definition MRPointsInBall.h:12
std::function< Processing(const PointsProjectionResult &found, const Vector3f &foundXfPos, Ball3f &ball)> OnPointInBallFound
this callback is invoked on every point located within the ball, and allows changing the ball for sea...
Definition MRPointsInBall.h:15
Processing
typically returned from callbacks to control the behavior of main algorithm
Definition MREnums.h:31
Definition MRMesh/MRMesh.h:22
Definition MRMesh/MRPointCloud.h:16
Definition MRPointsProject.h:15