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

Public Member Functions

 __init__ (self, *args, **kwargs)
bool fixDegenerations (self)
bool forceCut (self)
float maxAllowedError (self)
bool mergeOnFail (self)
NestedComponenetsMode nestedComponentsMode (self)
Vector_ObjFaceId_FaceId new2oldFaces (self)
FaceBitSet newFaces (self)
Const_func_bool_from_float progressCb (self)
int randomShiftsSeed (self)
bool useRandomShifts (self)

Static Protected Attributes

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__()

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

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

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

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstUniteManyMeshesParams, useRandomShifts: bool, fixDegenerations: bool, maxAllowedError: float, randomShiftsSeed: int, newFaces: meshlib.mrmeshpy.FaceBitSet, new2oldFaces: meshlib.mrmeshpy.Vector_ObjFaceId_FaceId, nestedComponentsMode: meshlib.mrmeshpy.NestedComponenetsMode, mergeOnFail: bool, forceCut: bool, progressCb: meshlib.mrmeshpy.Const_func_bool_from_float) -> None

Implicit aggregate constructor.

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

Member Function Documentation

◆ fixDegenerations()

bool mrmeshpy.ConstUniteManyMeshesParams.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 in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ forceCut()

bool mrmeshpy.ConstUniteManyMeshesParams.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 in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ maxAllowedError()

float mrmeshpy.ConstUniteManyMeshesParams.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 in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ mergeOnFail()

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

Reimplemented in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ nestedComponentsMode()

NestedComponenetsMode mrmeshpy.ConstUniteManyMeshesParams.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 in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ new2oldFaces()

Vector_ObjFaceId_FaceId mrmeshpy.ConstUniteManyMeshesParams.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 in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ newFaces()

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

Reimplemented in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ progressCb()

Const_func_bool_from_float mrmeshpy.ConstUniteManyMeshesParams.progressCb ( self)

◆ randomShiftsSeed()

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

Reimplemented in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

◆ useRandomShifts()

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

Reimplemented in mrmeshpy.UniteManyMeshesParams, and mrmeshpy.UniteManyMeshesParams.

Member Data Documentation

◆ _offsetof_fixDegenerations

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_fixDegenerations = 1
staticprotected

◆ _offsetof_forceCut

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_forceCut = 37
staticprotected

◆ _offsetof_maxAllowedError

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_maxAllowedError = 4
staticprotected

◆ _offsetof_mergeOnFail

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_mergeOnFail = 36
staticprotected

◆ _offsetof_nestedComponentsMode

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_nestedComponentsMode = 32
staticprotected

◆ _offsetof_new2oldFaces

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_new2oldFaces = 24
staticprotected

◆ _offsetof_newFaces

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_newFaces = 16
staticprotected

◆ _offsetof_progressCb

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_progressCb = 40
staticprotected

◆ _offsetof_randomShiftsSeed

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_randomShiftsSeed = 8
staticprotected

◆ _offsetof_useRandomShifts

typing mrmeshpy.ConstUniteManyMeshesParams._offsetof_useRandomShifts = 0
staticprotected

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