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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstUniteManyMeshesParams arg0)
None __init__ (self, bool useRandomShifts, bool fixDegenerations, float maxAllowedError, int randomShiftsSeed, FaceBitSet newFaces, Vector_ObjFaceId_FaceId new2oldFaces, NestedComponenetsMode nestedComponentsMode, bool mergeOnFail, bool forceCut, Const_func_bool_from_float progressCb)
UniteManyMeshesParams assign (self, ConstUniteManyMeshesParams other)
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)
Vector_ObjFaceId_FaceId new2oldFaces (self)
None new2oldFaces (self, Vector_ObjFaceId_FaceId arg1)
FaceBitSet newFaces (self)
None newFaces (self, FaceBitSet arg1)
func_bool_from_float progressCb (self)
None progressCb (self, Const_func_bool_from_float arg1)
int randomShiftsSeed (self)
None randomShiftsSeed (self, int arg1)
bool useRandomShifts (self)
None useRandomShifts (self, bool arg1)
Public Member Functions inherited from mrmeshpy.ConstUniteManyMeshesParams
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstUniteManyMeshesParams
typing _offsetof_fixDegenerations = 1
typing _offsetof_forceCut = 37
typing _offsetof_maxAllowedError = 4
typing _offsetof_mergeOnFail = 36
typing _offsetof_nestedComponentsMode = 32
typing _offsetof_new2oldFaces = 24
typing _offsetof_newFaces = 16
typing _offsetof_progressCb = 40
typing _offsetof_randomShiftsSeed = 8
typing _offsetof_useRandomShifts = 0

Detailed Description

Generated from:  MR::UniteManyMeshesParams

Parameters structure for uniteManyMeshes function

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.UniteManyMeshesParams.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.UniteManyMeshesParams.__init__ ( self,
ConstUniteManyMeshesParams arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

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

Member Function Documentation

◆ assign()

UniteManyMeshesParams mrmeshpy.UniteManyMeshesParams.assign ( self,
ConstUniteManyMeshesParams other )

◆ 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)

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ fixDegenerations() [2/2]

None mrmeshpy.UniteManyMeshesParams.fixDegenerations ( self,
bool arg1 )
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)

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ forceCut() [1/2]

bool mrmeshpy.UniteManyMeshesParams.forceCut ( self)
If this option is enabled boolean will cut meshes even if there are self-intersections in intersecting area
also applying \\ref MR::MeshBuilder::uniteCloseVertices and \\ref MR::fillHoles afterwards
\\warning if enabled - closed meshes expected on input
\\warning not recommended in most cases

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ forceCut() [2/2]

None mrmeshpy.UniteManyMeshesParams.forceCut ( self,
bool arg1 )
If this option is enabled boolean will cut meshes even if there are self-intersections in intersecting area
also applying \\ref MR::MeshBuilder::uniteCloseVertices and \\ref MR::fillHoles afterwards
\\warning if enabled - closed meshes expected on input
\\warning not recommended in most cases

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ 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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ maxAllowedError() [2/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ mergeOnFail() [1/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ mergeOnFail() [2/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ 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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ nestedComponentsMode() [2/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ new2oldFaces() [1/2]

Vector_ObjFaceId_FaceId mrmeshpy.UniteManyMeshesParams.new2oldFaces ( self)
If set, receives for each face of the result mesh the input mesh and its face, from which the result face originates;
the faces without origin (e.g. filled holes in forceCut mode) get invalid ids;
in uniteComponents, objId is the index of the component and fId is the face of the input mesh

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ new2oldFaces() [2/2]

None mrmeshpy.UniteManyMeshesParams.new2oldFaces ( self,
Vector_ObjFaceId_FaceId arg1 )
If set, receives for each face of the result mesh the input mesh and its face, from which the result face originates;
the faces without origin (e.g. filled holes in forceCut mode) get invalid ids;
in uniteComponents, objId is the index of the component and fId is the face of the input mesh

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ newFaces() [1/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ newFaces() [2/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ progressCb() [1/2]

func_bool_from_float mrmeshpy.UniteManyMeshesParams.progressCb ( self)

◆ progressCb() [2/2]

None mrmeshpy.UniteManyMeshesParams.progressCb ( self,
Const_func_bool_from_float arg1 )

◆ randomShiftsSeed() [1/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ randomShiftsSeed() [2/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ useRandomShifts() [1/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.

◆ useRandomShifts() [2/2]

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

Reimplemented from mrmeshpy.ConstUniteManyMeshesParams.


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