#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:20
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRMESH_API bool improveSampling(const PointCloud &cloud, VertBitSet &samples, const ImproveSamplingSettings &settings)
Definition MRCameraOrientationPlugin.h:8
Definition MRImproveSampling.h:10
ProgressCallback progress
output progress status and receive cancel signal
Definition MRImproveSampling.h:34
int numIters
the number of algorithm iterations to perform
Definition MRImproveSampling.h:12
VertMap * pt2sm
optional output: mapping from input point id to sample id
Definition MRImproveSampling.h:19
Vector< int, VertId > * ptsInSm
optional output: the number of points in each sample
Definition MRImproveSampling.h:25
int minPointsInSample
Definition MRImproveSampling.h:16
PointCloud * cloudOfSamples
optional output: new cloud containing averaged points and normals for each sample
Definition MRImproveSampling.h:22
VertColors * smColors
optional output: averaged colors of samples
Definition MRImproveSampling.h:31
const VertColors * ptColors
optional input: colors of input points
Definition MRImproveSampling.h:28
Definition MRMesh/MRPointCloud.h:16