MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.UniteManyMeshesParams Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, bool useRandomShifts, bool fixDegenerations, float maxAllowedError, int randomShiftsSeed, FaceBitSet newFaces, NestedComponenetsMode nestedComponentsMode, bool mergeOnFail, bool forceCut, func_bool_from_float progressCb)
 
bool fixDegenerations (self)
 
None fixDegenerations (self, bool arg1)
 
bool forceCut (self)
 
None forceCut (self, bool arg1)
 
float maxAllowedError (self)
 
None maxAllowedError (self, float arg1)
 
bool mergeOnFail (self)
 
None mergeOnFail (self, bool arg1)
 
NestedComponenetsMode nestedComponentsMode (self)
 
None nestedComponentsMode (self, NestedComponenetsMode arg1)
 
FaceBitSet newFaces (self)
 
None newFaces (self, FaceBitSet arg1)
 
int randomShiftsSeed (self)
 
None randomShiftsSeed (self, int arg1)
 
bool useRandomShifts (self)
 
None useRandomShifts (self, bool arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
UniteManyMeshesParams operator (*args, **kwargs)
 
UniteManyMeshesParams operator (*args, **kwargs)
 

Static Protected Attributes

typing _offsetof_fixDegenerations = 1
 
typing _offsetof_forceCut = 29
 
typing _offsetof_maxAllowedError = 4
 
typing _offsetof_mergeOnFail = 28
 
typing _offsetof_nestedComponentsMode = 24
 
typing _offsetof_newFaces = 16
 
typing _offsetof_progressCb = 32
 
typing _offsetof_randomShiftsSeed = 8
 
typing _offsetof_useRandomShifts = 0
 

Detailed Description

Generated from:  MR::UniteManyMeshesParams

Parameters structure for uniteManyMeshes function

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.UniteManyMeshesParams.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.UniteManyMeshesParams.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.UniteManyMeshesParams.__init__ ( self,
bool useRandomShifts,
bool fixDegenerations,
float maxAllowedError,
int randomShiftsSeed,
FaceBitSet newFaces,
NestedComponenetsMode nestedComponentsMode,
bool mergeOnFail,
bool forceCut,
func_bool_from_float progressCb )
Implicit aggregate constructor.

Member Function Documentation

◆ fixDegenerations() [1/2]

bool mrmeshpy.UniteManyMeshesParams.fixDegenerations ( self)
Try fix degenerations after each boolean step, to prevent boolean failure due to high amount of degenerated faces
useful on meshes with many coincident surfaces 
(useRandomShifts used for same issue)

◆ fixDegenerations() [2/2]

None mrmeshpy.UniteManyMeshesParams.fixDegenerations ( self,
bool arg1 )

◆ forceCut() [1/2]

bool mrmeshpy.UniteManyMeshesParams.forceCut ( self)
If this option is enabled boolean will try to cut meshes even if there are self-intersections in intersecting area
it might work in some cases, but in general it might prevent fast error report and lead to other errors along the way
\\warning not recommended in most cases

◆ forceCut() [2/2]

None mrmeshpy.UniteManyMeshesParams.forceCut ( self,
bool arg1 )

◆ maxAllowedError() [1/2]

float mrmeshpy.UniteManyMeshesParams.maxAllowedError ( self)
Max allowed random shifts in each direction, and max allowed deviation after degeneration fixing
not used if both flags (useRandomShifts,fixDegenerations) are false

◆ maxAllowedError() [2/2]

None mrmeshpy.UniteManyMeshesParams.maxAllowedError ( self,
float arg1 )

◆ mergeOnFail() [1/2]

bool mrmeshpy.UniteManyMeshesParams.mergeOnFail ( self)
If set - merges meshes instead of booleaning it if boolean operation fails

◆ mergeOnFail() [2/2]

None mrmeshpy.UniteManyMeshesParams.mergeOnFail ( self,
bool arg1 )

◆ nestedComponentsMode() [1/2]

NestedComponenetsMode mrmeshpy.UniteManyMeshesParams.nestedComponentsMode ( self)
By default function separate nested meshes and remove them, just like union operation should do
read comment of NestedComponenetsMode enum for more information

◆ nestedComponentsMode() [2/2]

None mrmeshpy.UniteManyMeshesParams.nestedComponentsMode ( self,
NestedComponenetsMode arg1 )

◆ newFaces() [1/2]

FaceBitSet mrmeshpy.UniteManyMeshesParams.newFaces ( self)
If set, the bitset will store new faces created by boolean operations

◆ newFaces() [2/2]

None mrmeshpy.UniteManyMeshesParams.newFaces ( self,
FaceBitSet arg1 )

◆ operator() [1/2]

UniteManyMeshesParams mrmeshpy.UniteManyMeshesParams.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

UniteManyMeshesParams mrmeshpy.UniteManyMeshesParams.operator ( * args,
** kwargs )
static

◆ randomShiftsSeed() [1/2]

int mrmeshpy.UniteManyMeshesParams.randomShiftsSeed ( self)
Seed that is used for random shifts

◆ randomShiftsSeed() [2/2]

None mrmeshpy.UniteManyMeshesParams.randomShiftsSeed ( self,
int arg1 )

◆ useRandomShifts() [1/2]

bool mrmeshpy.UniteManyMeshesParams.useRandomShifts ( self)
Apply random shift to each mesh, to prevent degenerations on coincident surfaces

◆ useRandomShifts() [2/2]

None mrmeshpy.UniteManyMeshesParams.useRandomShifts ( self,
bool arg1 )

Member Data Documentation

◆ _offsetof_fixDegenerations

typing mrmeshpy.UniteManyMeshesParams._offsetof_fixDegenerations = 1
staticprotected

◆ _offsetof_forceCut

typing mrmeshpy.UniteManyMeshesParams._offsetof_forceCut = 29
staticprotected

◆ _offsetof_maxAllowedError

typing mrmeshpy.UniteManyMeshesParams._offsetof_maxAllowedError = 4
staticprotected

◆ _offsetof_mergeOnFail

typing mrmeshpy.UniteManyMeshesParams._offsetof_mergeOnFail = 28
staticprotected

◆ _offsetof_nestedComponentsMode

typing mrmeshpy.UniteManyMeshesParams._offsetof_nestedComponentsMode = 24
staticprotected

◆ _offsetof_newFaces

typing mrmeshpy.UniteManyMeshesParams._offsetof_newFaces = 16
staticprotected

◆ _offsetof_progressCb

typing mrmeshpy.UniteManyMeshesParams._offsetof_progressCb = 32
staticprotected

◆ _offsetof_randomShiftsSeed

typing mrmeshpy.UniteManyMeshesParams._offsetof_randomShiftsSeed = 8
staticprotected

◆ _offsetof_useRandomShifts

typing mrmeshpy.UniteManyMeshesParams._offsetof_useRandomShifts = 0
staticprotected

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