MeshLib Documentation
Loading...
Searching...
No Matches
MR::UniformSamplingSettings Struct Reference

#include <MRUniformSampling.h>

Public Attributes

float distance = 0
 minimal distance between samples
 
float minNormalDot = 0
 
bool lexicographicalOrder = true
 
const VertNormals * pNormals = nullptr
 if not nullptr then these normals will be used during sampling instead of normals in the cloud itself
 
ProgressCallback progress
 to report progress and cancel processing
 

Member Data Documentation

◆ distance

float MR::UniformSamplingSettings::distance = 0

minimal distance between samples

◆ lexicographicalOrder

bool MR::UniformSamplingSettings::lexicographicalOrder = true

if true process the points in lexicographical order, which gives tighter and more uniform samples; if false process the points according to their ids, which is faster

◆ minNormalDot

float MR::UniformSamplingSettings::minNormalDot = 0

if point cloud has normals then automatically decreases local distance to make sure that all points inside have absolute normal dot product not less than this value; this is to make sampling denser in the regions of high curvature; value <=0 means ignore normals; value >=1 means select all points (practically useless)

◆ pNormals

const VertNormals* MR::UniformSamplingSettings::pNormals = nullptr

if not nullptr then these normals will be used during sampling instead of normals in the cloud itself

◆ progress

ProgressCallback MR::UniformSamplingSettings::progress

to report progress and cancel processing


The documentation for this struct was generated from the following file: