MeshLib
 
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
affine transformation: y = A*x + b, where A in VxV, and b in V
Definition MRDotNet/MRAffineXf.h:8
Definition MRDotNet/MRBitSet.h:39
represents a point cloud
Definition MRDotNet/MRPointCloud.h:7
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:589
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:7
Definition MRMesh/MRPointCloud.h:16