MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstUniformSamplingSettings Class Reference
Inheritance diagram for mrmeshpy.ConstUniformSamplingSettings:

Public Member Functions

 __init__ (self, *args, **kwargs)
float distance (self)
bool lexicographicalOrder (self)
float minNormalDot (self)
VertCoords pNormals (self)
Const_func_bool_from_float progress (self)

Static Protected Attributes

typing _offsetof_distance = 0
typing _offsetof_lexicographicalOrder = 8
typing _offsetof_minNormalDot = 4
typing _offsetof_pNormals = 16
typing _offsetof_progress = 24

Detailed Description

Generated from:  MR::UniformSamplingSettings

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstUniformSamplingSettings.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstUniformSamplingSettings) -> None

2. __init__(self: meshlib.mrmeshpy.ConstUniformSamplingSettings, arg0: meshlib.mrmeshpy.ConstUniformSamplingSettings) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstUniformSamplingSettings, distance: float, minNormalDot: float, lexicographicalOrder: bool, pNormals: meshlib.mrmeshpy.ConstVertCoords, progress: meshlib.mrmeshpy.Const_func_bool_from_float) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstUniformSamplingSettings, : meshlib.mrmeshpy.ConstUniformSamplingSettings) -> None

Member Function Documentation

◆ distance()

float mrmeshpy.ConstUniformSamplingSettings.distance ( self)
minimal distance between samples

Reimplemented in mrmeshpy.UniformSamplingSettings, and mrmeshpy.UniformSamplingSettings.

◆ lexicographicalOrder()

bool mrmeshpy.ConstUniformSamplingSettings.lexicographicalOrder ( self)
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

Reimplemented in mrmeshpy.UniformSamplingSettings, and mrmeshpy.UniformSamplingSettings.

◆ minNormalDot()

float mrmeshpy.ConstUniformSamplingSettings.minNormalDot ( self)
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)

Reimplemented in mrmeshpy.UniformSamplingSettings, and mrmeshpy.UniformSamplingSettings.

◆ pNormals()

VertCoords mrmeshpy.ConstUniformSamplingSettings.pNormals ( self)
if not nullptr then these normals will be used during sampling instead of normals in the cloud itself

Reimplemented in mrmeshpy.UniformSamplingSettings, and mrmeshpy.UniformSamplingSettings.

◆ progress()

Const_func_bool_from_float mrmeshpy.ConstUniformSamplingSettings.progress ( self)
to report progress and cancel processing

Reimplemented in mrmeshpy.UniformSamplingSettings, and mrmeshpy.UniformSamplingSettings.

Member Data Documentation

◆ _offsetof_distance

typing mrmeshpy.ConstUniformSamplingSettings._offsetof_distance = 0
staticprotected

◆ _offsetof_lexicographicalOrder

typing mrmeshpy.ConstUniformSamplingSettings._offsetof_lexicographicalOrder = 8
staticprotected

◆ _offsetof_minNormalDot

typing mrmeshpy.ConstUniformSamplingSettings._offsetof_minNormalDot = 4
staticprotected

◆ _offsetof_pNormals

typing mrmeshpy.ConstUniformSamplingSettings._offsetof_pNormals = 16
staticprotected

◆ _offsetof_progress

typing mrmeshpy.ConstUniformSamplingSettings._offsetof_progress = 24
staticprotected

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