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

Public Member Functions

 __init__ (self, *args, **kwargs)
bool closeHolesInHoleWindingNumber (self)
bool decimate (self)
IFastWindingNumber fwn (self)
OffsetMode offsetMode (self)
Const_func_void_from_SignDetectionMode onSignDetectionModeSelected (self)
UndirectedEdgeBitSet outSharpEdges (self)
bool preSubdivide (self)
Const_func_bool_from_float progress (self)
int reduceAngleNumIters (self)
SignDetectionModeShort signMode (self)
float tinyEdgeLength (self)
float voxelSize (self)
float windingNumberBeta (self)
float windingNumberThreshold (self)

Static Protected Attributes

typing _offsetof_closeHolesInHoleWindingNumber = 12
typing _offsetof_decimate = 60
typing _offsetof_fwn = 40
typing _offsetof_offsetMode = 16
typing _offsetof_onSignDetectionModeSelected = 104
typing _offsetof_outSharpEdges = 24
typing _offsetof_preSubdivide = 0
typing _offsetof_progress = 72
typing _offsetof_reduceAngleNumIters = 56
typing _offsetof_signMode = 8
typing _offsetof_tinyEdgeLength = 64
typing _offsetof_voxelSize = 4
typing _offsetof_windingNumberBeta = 36
typing _offsetof_windingNumberThreshold = 32

Detailed Description

Generated from:  MR::RebuildMeshSettings

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstRebuildMeshSettings, preSubdivide: bool, voxelSize: float, signMode: meshlib.mrmeshpy.SignDetectionModeShort, closeHolesInHoleWindingNumber: bool, offsetMode: meshlib.mrmeshpy.OffsetMode, outSharpEdges: meshlib.mrmeshpy.UndirectedEdgeBitSet, windingNumberThreshold: float, windingNumberBeta: float, fwn: meshlib.mrmeshpy.IFastWindingNumber, reduceAngleNumIters: int, decimate: bool, tinyEdgeLength: float, progress: meshlib.mrmeshpy.Const_func_bool_from_float, onSignDetectionModeSelected: meshlib.mrmeshpy.Const_func_void_from_SignDetectionMode) -> None

Implicit aggregate constructor.

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

Member Function Documentation

◆ closeHolesInHoleWindingNumber()

bool mrmeshpy.ConstRebuildMeshSettings.closeHolesInHoleWindingNumber ( self)
whether to construct closed mesh in signMode = SignDetectionModeShort::HoleWindingNumber

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ decimate()

bool mrmeshpy.ConstRebuildMeshSettings.decimate ( self)
whether to decimate resulting mesh

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ fwn()

IFastWindingNumber mrmeshpy.ConstRebuildMeshSettings.fwn ( self)
defines particular implementation of IFastWindingNumber interface that will compute windings (if required).
If it is not specified, default FastWindingNumber is used

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ offsetMode()

OffsetMode mrmeshpy.ConstRebuildMeshSettings.offsetMode ( self)

◆ onSignDetectionModeSelected()

Const_func_void_from_SignDetectionMode mrmeshpy.ConstRebuildMeshSettings.onSignDetectionModeSelected ( self)
this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort::Auto),
but before actual work begins

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ outSharpEdges()

UndirectedEdgeBitSet mrmeshpy.ConstRebuildMeshSettings.outSharpEdges ( self)
if non-null then created sharp edges (only if offsetMode = OffsetMode::Sharpening) will be saved here

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ preSubdivide()

bool mrmeshpy.ConstRebuildMeshSettings.preSubdivide ( self)
whether to make subdivision of initial mesh before conversion to voxels,
despite time and memory required for the subdivision, it typically makes the whole rebuilding faster (or even much faster in case of large initial triangles),
because AABB tree contains small triangles in leaves, which is good for both
1) search for closest triangle because the closest box more frequently contains the closest triangle,
2) and winding number approximation because of more frequent usage of approximation for distant dipoles

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ progress()

Const_func_bool_from_float mrmeshpy.ConstRebuildMeshSettings.progress ( self)
To report algorithm's progress and cancel it on user demand

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ reduceAngleNumIters()

int mrmeshpy.ConstRebuildMeshSettings.reduceAngleNumIters ( self)
the number of iterations to minimize summed deviation of triangle-triangle angles from plane;
this mode highlights sharp edges;
if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ signMode()

SignDetectionModeShort mrmeshpy.ConstRebuildMeshSettings.signMode ( self)

◆ tinyEdgeLength()

float mrmeshpy.ConstRebuildMeshSettings.tinyEdgeLength ( self)
only if decimate = true:
edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ voxelSize()

float mrmeshpy.ConstRebuildMeshSettings.voxelSize ( self)
Size of voxel in grid conversions;
The user is responsible for setting some positive value here

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ windingNumberBeta()

float mrmeshpy.ConstRebuildMeshSettings.windingNumberBeta ( self)
if general winding number is used to differentiate inside from outside:
determines the precision of fast approximation: the more the better, minimum value is 1

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

◆ windingNumberThreshold()

float mrmeshpy.ConstRebuildMeshSettings.windingNumberThreshold ( self)
if general winding number is used to differentiate inside from outside:
positive distance if winding number below or equal this threshold;
ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes

Reimplemented in mrmeshpy.RebuildMeshSettings, and mrmeshpy.RebuildMeshSettings.

Member Data Documentation

◆ _offsetof_closeHolesInHoleWindingNumber

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_closeHolesInHoleWindingNumber = 12
staticprotected

◆ _offsetof_decimate

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_decimate = 60
staticprotected

◆ _offsetof_fwn

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_fwn = 40
staticprotected

◆ _offsetof_offsetMode

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_offsetMode = 16
staticprotected

◆ _offsetof_onSignDetectionModeSelected

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_onSignDetectionModeSelected = 104
staticprotected

◆ _offsetof_outSharpEdges

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_outSharpEdges = 24
staticprotected

◆ _offsetof_preSubdivide

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_preSubdivide = 0
staticprotected

◆ _offsetof_progress

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_progress = 72
staticprotected

◆ _offsetof_reduceAngleNumIters

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_reduceAngleNumIters = 56
staticprotected

◆ _offsetof_signMode

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_signMode = 8
staticprotected

◆ _offsetof_tinyEdgeLength

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_tinyEdgeLength = 64
staticprotected

◆ _offsetof_voxelSize

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_voxelSize = 4
staticprotected

◆ _offsetof_windingNumberBeta

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_windingNumberBeta = 36
staticprotected

◆ _offsetof_windingNumberThreshold

typing mrmeshpy.ConstRebuildMeshSettings._offsetof_windingNumberThreshold = 32
staticprotected

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