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{
12
13using FoundPointCallback = std::function<void( VertId, const Vector3f& )>;
14
16using OnPointInBallFound = std::function<Processing( const PointsProjectionResult & found, const Vector3f & foundXfPos, Ball3f & ball )>;
17
22MRMESH_API void findPointsInBall( const PointCloud& pointCloud, const Ball3f & ball,
23 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
24
28[[deprecated]] MRMESH_API MR_BIND_IGNORE void findPointsInBall( const PointCloud& pointCloud, const Ball3f& ball,
29 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
30
35MRMESH_API void findPointsInBall( const Mesh& mesh, const Ball3f& ball,
36 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
37
41[[deprecated]] MRMESH_API MR_BIND_IGNORE void findPointsInBall( const Mesh& mesh, const Ball3f& ball,
42 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
43
48MRMESH_API void findPointsInBall( const AABBTreePoints& tree, Ball3f ball,
49 const OnPointInBallFound& foundCallback, const AffineXf3f* xf = nullptr );
50
54[[deprecated]] MRMESH_API MR_BIND_IGNORE void findPointsInBall( const AABBTreePoints& tree, const Ball3f& ball,
55 const FoundPointCallback& foundCallback, const AffineXf3f* xf = nullptr );
56
57} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
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)
Definition MRCameraOrientationPlugin.h:8
std::function< void(VertId, const Vector3f &)> FoundPointCallback
Definition MRPointsInBall.h:13
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:16
std::array< Vector3f, 3 > MR_BIND_IGNORE
Definition MRMeshBuilderTypes.h:10
Processing
typically returned from callbacks to control the behavior of main algorithm
Definition MREnums.h:33
Definition MRMesh/MRMesh.h:23
Definition MRMesh/MRPointCloud.h:17
Definition MRPointsProject.h:15