MeshLib Documentation
Loading...
Searching...
No Matches
MRPointCloudRadius.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3
4namespace MR
5{
6struct PointCloud;
7
11MRMESH_API float findAvgPointsRadius( const PointCloud& pointCloud, int avgPoints, int samples = 1024 );
12
14MRMESH_API bool dilateRegion( const PointCloud& pointCloud, VertBitSet& region, float dilation, ProgressCallback cb = {}, const AffineXf3f* xf = nullptr );
16MRMESH_API bool erodeRegion( const PointCloud& pointCloud, VertBitSet& region, float erosion, ProgressCallback cb = {}, const AffineXf3f* xf = nullptr );
17}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRMESH_API float findAvgPointsRadius(const PointCloud &pointCloud, int avgPoints, int samples=1024)
Finds the radius of ball, so on average that ball contained avgPoints excluding the central point.
MRMESH_API bool erodeRegion(const Mesh &mesh, FaceBitSet &region, float dilation, ProgressCallback callback={})
shrinks the region (of faces or vertices) on given value (in meters). returns false if callback also ...
MRMESH_API bool dilateRegion(const Mesh &mesh, FaceBitSet &region, float dilation, ProgressCallback callback={})
expands the region (of faces or vertices) on given value (in meters). returns false if callback also ...
Definition MRCameraOrientationPlugin.h:8
struct MRMESH_CLASS PointCloud
Definition MRMesh/MRMeshFwd.h:477
Definition MRMesh/MRPointCloud.h:16