MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.UniteManyMeshesParams Class Reference
Inheritance diagram for meshlib.UniteManyMeshesParams:

Public Member Functions

 UniteManyMeshesParams (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 UniteManyMeshesParams ()
 UniteManyMeshesParams (boolean useRandomShifts, boolean fixDegenerations, float maxAllowedError, int randomShiftsSeed, meshlib.FaceBitSet newFaces, meshlib.Vector_MR_ObjFaceId_MR_FaceId new2oldFaces, meshlib.NestedComponenetsMode nestedComponentsMode, boolean mergeOnFail, boolean forceCut, meshlib.std_function_bool_from_float progressCb)
 UniteManyMeshesParams (meshlib.UniteManyMeshesParams _other)
meshlib.UniteManyMeshesParams assignFromAnother (meshlib.UniteManyMeshesParams _other)
boolean useRandomShifts ()
void setUseRandomShifts (boolean value)
boolean fixDegenerations ()
void setFixDegenerations (boolean value)
float maxAllowedError ()
void setMaxAllowedError (float value)
int randomShiftsSeed ()
void setRandomShiftsSeed (int value)
java.lang.foreign.MemorySegment newFaces ()
void setNewFaces (meshlib.FaceBitSet value)
java.lang.foreign.MemorySegment new2oldFaces ()
void setNew2oldFaces (meshlib.Vector_MR_ObjFaceId_MR_FaceId value)
meshlib.NestedComponenetsMode nestedComponentsMode ()
void setNestedComponentsMode (meshlib.NestedComponenetsMode value)
boolean mergeOnFail ()
void setMergeOnFail (boolean value)
boolean forceCut ()
void setForceCut (boolean value)
meshlib.std_function_bool_from_float progressCb ()
void setProgressCb (meshlib.std_function_bool_from_float value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Parameters structure for uniteManyMeshes function Generated from class MR::UniteManyMeshesParams.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ UniteManyMeshesParams() [1/4]

meshlib.UniteManyMeshesParams.UniteManyMeshesParams ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ UniteManyMeshesParams() [2/4]

meshlib.UniteManyMeshesParams.UniteManyMeshesParams ( )

Constructs an empty (default-constructed) instance.

Calls MR_UniteManyMeshesParams_DefaultConstruct().

◆ UniteManyMeshesParams() [3/4]

meshlib.UniteManyMeshesParams.UniteManyMeshesParams ( boolean useRandomShifts,
boolean fixDegenerations,
float maxAllowedError,
int randomShiftsSeed,
meshlib.FaceBitSet newFaces,
meshlib.Vector_MR_ObjFaceId_MR_FaceId new2oldFaces,
meshlib.NestedComponenetsMode nestedComponentsMode,
boolean mergeOnFail,
boolean forceCut,
meshlib.std_function_bool_from_float progressCb )

Constructs MR::UniteManyMeshesParams elementwise. The reference to the parameter randomShiftsSeed might be preserved in the constructed object. The reference to the parameter newFaces might be preserved in the constructed object. The reference to the parameter new2oldFaces might be preserved in the constructed object. The reference to the parameter nestedComponentsMode might be preserved in the constructed object. The reference to the parameter progressCb might be preserved in the constructed object.

Calls MR_UniteManyMeshesParams_ConstructFrom().

◆ UniteManyMeshesParams() [4/4]

meshlib.UniteManyMeshesParams.UniteManyMeshesParams ( meshlib.UniteManyMeshesParams _other)

Generated from constructor MR::UniteManyMeshesParams::UniteManyMeshesParams. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_UniteManyMeshesParams_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.UniteManyMeshesParams meshlib.UniteManyMeshesParams.assignFromAnother ( meshlib.UniteManyMeshesParams _other)

Generated from method MR::UniteManyMeshesParams::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_UniteManyMeshesParams_AssignFromAnother().

◆ fixDegenerations()

boolean meshlib.UniteManyMeshesParams.fixDegenerations ( )

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) Returns a pointer to a member variable of class MR::UniteManyMeshesParams named fixDegenerations. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_fixDegenerations().

◆ forceCut()

boolean meshlib.UniteManyMeshesParams.forceCut ( )

If this option is enabled boolean will cut meshes even if there are self-intersections in intersecting area also applying MR::MeshBuilder::uniteCloseVertices and MR::fillHoles afterwards

Warning
if enabled - closed meshes expected on input
not recommended in most cases Returns a pointer to a member variable of class MR::UniteManyMeshesParams named forceCut. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_forceCut().

◆ maxAllowedError()

float meshlib.UniteManyMeshesParams.maxAllowedError ( )

Max allowed random shifts in each direction, and max allowed deviation after degeneration fixing not used if both flags (useRandomShifts,fixDegenerations) are false Returns a pointer to a member variable of class MR::UniteManyMeshesParams named maxAllowedError. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_maxAllowedError().

◆ mergeOnFail()

boolean meshlib.UniteManyMeshesParams.mergeOnFail ( )

If set - merges meshes instead of booleaning it if boolean operation fails Returns a pointer to a member variable of class MR::UniteManyMeshesParams named mergeOnFail. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_mergeOnFail().

◆ nestedComponentsMode()

meshlib.NestedComponenetsMode meshlib.UniteManyMeshesParams.nestedComponentsMode ( )

By default function separate nested meshes and remove them, just like union operation should do read comment of NestedComponenetsMode enum for more information Returns a pointer to a member variable of class MR::UniteManyMeshesParams named nestedComponentsMode. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_nestedComponentsMode().

◆ new2oldFaces()

java.lang.foreign.MemorySegment meshlib.UniteManyMeshesParams.new2oldFaces ( )

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 Returns a pointer to a member variable of class MR::UniteManyMeshesParams named new2oldFaces. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_new2oldFaces(). Some types are raw C types, see the C bindings for the details.

◆ newFaces()

java.lang.foreign.MemorySegment meshlib.UniteManyMeshesParams.newFaces ( )

If set, the bitset will store new faces created by boolean operations Returns a pointer to a member variable of class MR::UniteManyMeshesParams named newFaces. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_newFaces(). Some types are raw C types, see the C bindings for the details.

◆ progressCb()

meshlib.std_function_bool_from_float meshlib.UniteManyMeshesParams.progressCb ( )

Returns a pointer to a member variable of class MR::UniteManyMeshesParams named progressCb. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_progressCb().

◆ randomShiftsSeed()

int meshlib.UniteManyMeshesParams.randomShiftsSeed ( )

Seed that is used for random shifts Returns a pointer to a member variable of class MR::UniteManyMeshesParams named randomShiftsSeed. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_randomShiftsSeed().

◆ setFixDegenerations()

void meshlib.UniteManyMeshesParams.setFixDegenerations ( boolean value)

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) Modifies a member variable of class MR::UniteManyMeshesParams named fixDegenerations.

Calls MR_UniteManyMeshesParams_Set_fixDegenerations().

◆ setForceCut()

void meshlib.UniteManyMeshesParams.setForceCut ( boolean value)

If this option is enabled boolean will cut meshes even if there are self-intersections in intersecting area also applying MR::MeshBuilder::uniteCloseVertices and MR::fillHoles afterwards

Warning
if enabled - closed meshes expected on input
not recommended in most cases Modifies a member variable of class MR::UniteManyMeshesParams named forceCut.

Calls MR_UniteManyMeshesParams_Set_forceCut().

◆ setMaxAllowedError()

void meshlib.UniteManyMeshesParams.setMaxAllowedError ( float value)

Max allowed random shifts in each direction, and max allowed deviation after degeneration fixing not used if both flags (useRandomShifts,fixDegenerations) are false Modifies a member variable of class MR::UniteManyMeshesParams named maxAllowedError.

Calls MR_UniteManyMeshesParams_Set_maxAllowedError().

◆ setMergeOnFail()

void meshlib.UniteManyMeshesParams.setMergeOnFail ( boolean value)

If set - merges meshes instead of booleaning it if boolean operation fails Modifies a member variable of class MR::UniteManyMeshesParams named mergeOnFail.

Calls MR_UniteManyMeshesParams_Set_mergeOnFail().

◆ setNestedComponentsMode()

void meshlib.UniteManyMeshesParams.setNestedComponentsMode ( meshlib.NestedComponenetsMode value)

By default function separate nested meshes and remove them, just like union operation should do read comment of NestedComponenetsMode enum for more information Modifies a member variable of class MR::UniteManyMeshesParams named nestedComponentsMode. The reference to the parameter value might be preserved in this object in element nestedComponentsMode.

Calls MR_UniteManyMeshesParams_Set_nestedComponentsMode().

◆ setNew2oldFaces()

void meshlib.UniteManyMeshesParams.setNew2oldFaces ( meshlib.Vector_MR_ObjFaceId_MR_FaceId value)

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 Modifies a member variable of class MR::UniteManyMeshesParams named new2oldFaces. The reference to the parameter value might be preserved in this object in element new2oldFaces.

Calls MR_UniteManyMeshesParams_Set_new2oldFaces().

◆ setNewFaces()

void meshlib.UniteManyMeshesParams.setNewFaces ( meshlib.FaceBitSet value)

If set, the bitset will store new faces created by boolean operations Modifies a member variable of class MR::UniteManyMeshesParams named newFaces. The reference to the parameter value might be preserved in this object in element newFaces.

Calls MR_UniteManyMeshesParams_Set_newFaces().

◆ setProgressCb()

void meshlib.UniteManyMeshesParams.setProgressCb ( meshlib.std_function_bool_from_float value)

Modifies a member variable of class MR::UniteManyMeshesParams named progressCb. The reference to the parameter value might be preserved in this object in element progressCb.

Calls MR_UniteManyMeshesParams_Set_progressCb().

◆ setRandomShiftsSeed()

void meshlib.UniteManyMeshesParams.setRandomShiftsSeed ( int value)

Seed that is used for random shifts Modifies a member variable of class MR::UniteManyMeshesParams named randomShiftsSeed. The reference to the parameter value might be preserved in this object in element randomShiftsSeed.

Calls MR_UniteManyMeshesParams_Set_randomShiftsSeed().

◆ setUseRandomShifts()

void meshlib.UniteManyMeshesParams.setUseRandomShifts ( boolean value)

Apply random shift to each mesh, to prevent degenerations on coincident surfaces Modifies a member variable of class MR::UniteManyMeshesParams named useRandomShifts.

Calls MR_UniteManyMeshesParams_Set_useRandomShifts().

◆ useRandomShifts()

boolean meshlib.UniteManyMeshesParams.useRandomShifts ( )

Apply random shift to each mesh, to prevent degenerations on coincident surfaces Returns a pointer to a member variable of class MR::UniteManyMeshesParams named useRandomShifts. The reference to this object might be preserved as the return value.

Calls MR_UniteManyMeshesParams_Get_useRandomShifts().


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