MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPointsInBall.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRPch/MRBindingMacros.h"
4#include "MRMeshFwd.h"
5#include "MRBall.h"
6#include "MRVector3.h"
7#include "MRPointsProject.h"
8#include "MREnums.h"
9
10namespace MR
11{
14
15
16using FoundPointCallback = std::function<void( VertId, const Vector3f& )>;
17
19using OnPointInBallFound = std::function<Processing( const PointsProjectionResult & found, const Vector3f & foundXfPos, Ball3f & ball )>;
20
25MRMESH_API void findPointsInBall( const PointCloud& pointCloud, const Ball3f & ball,
26 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
27
31[[deprecated]] MRMESH_API MR_BIND_IGNORE void findPointsInBall( const PointCloud& pointCloud, const Ball3f& ball,
32 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
33
38MRMESH_API void findPointsInBall( const Mesh& mesh, const Ball3f& ball,
39 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
40
44[[deprecated]] MRMESH_API MR_BIND_IGNORE void findPointsInBall( const Mesh& mesh, const Ball3f& ball,
45 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
46
51MRMESH_API void findPointsInBall( const AABBTreePoints& tree, Ball3f ball,
52 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
53
57[[deprecated]] MRMESH_API MR_BIND_IGNORE void findPointsInBall( const AABBTreePoints& tree, const Ball3f& ball,
58 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
59
60}
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:16
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:19
std::array< Vector3f, 3 > MR_BIND_IGNORE
Definition MRMeshBuilderTypes.h:13
Processing
typically returned from callbacks to control the behavior of main algorithm
Definition MREnums.h:57
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:23
Definition MRPointCloud.h:17
Definition MRPointsProject.h:15