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

Public Member Functions

 DecimateResult (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 DecimateResult ()
 DecimateResult (int vertsDeleted, int facesDeleted, float errorIntroduced, boolean cancelled)
 DecimateResult (meshlib.DecimateResult _other)
meshlib.DecimateResult assignFromAnother (meshlib.DecimateResult _other)
int vertsDeleted ()
void setVertsDeleted (int value)
int facesDeleted ()
void setFacesDeleted (int value)
float errorIntroduced ()
void setErrorIntroduced (float value)
boolean cancelled ()
void setCancelled (boolean 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)

Constructor & Destructor Documentation

◆ DecimateResult() [1/4]

meshlib.DecimateResult.DecimateResult ( 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.

◆ DecimateResult() [2/4]

meshlib.DecimateResult.DecimateResult ( )

Constructs an empty (default-constructed) instance.

Calls MR_DecimateResult_DefaultConstruct().

◆ DecimateResult() [3/4]

meshlib.DecimateResult.DecimateResult ( int vertsDeleted,
int facesDeleted,
float errorIntroduced,
boolean cancelled )

Constructs MR::DecimateResult elementwise.

Calls MR_DecimateResult_ConstructFrom().

◆ DecimateResult() [4/4]

meshlib.DecimateResult.DecimateResult ( meshlib.DecimateResult _other)

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

Calls MR_DecimateResult_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.DecimateResult meshlib.DecimateResult.assignFromAnother ( meshlib.DecimateResult _other)

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

Calls MR_DecimateResult_AssignFromAnother().

◆ cancelled()

boolean meshlib.DecimateResult.cancelled ( )

whether the algorithm was cancelled by the callback Returns a pointer to a member variable of class MR::DecimateResult named cancelled. The reference to this object might be preserved as the return value.

Calls MR_DecimateResult_Get_cancelled().

◆ errorIntroduced()

float meshlib.DecimateResult.errorIntroduced ( )

for DecimateStrategy.MinimizeError: estimated distance deviation of decimated mesh from the original mesh for DecimateStrategy.ShortestEdgeFirst: the shortest remaining edge in the mesh Returns a pointer to a member variable of class MR::DecimateResult named errorIntroduced. The reference to this object might be preserved as the return value.

Calls MR_DecimateResult_Get_errorIntroduced().

◆ facesDeleted()

int meshlib.DecimateResult.facesDeleted ( )

< Number deleted faces Returns a pointer to a member variable of class MR::DecimateResult named facesDeleted. The reference to this object might be preserved as the return value.

Calls MR_DecimateResult_Get_facesDeleted().

◆ setCancelled()

void meshlib.DecimateResult.setCancelled ( boolean value)

whether the algorithm was cancelled by the callback Modifies a member variable of class MR::DecimateResult named cancelled.

Calls MR_DecimateResult_Set_cancelled().

◆ setErrorIntroduced()

void meshlib.DecimateResult.setErrorIntroduced ( float value)

for DecimateStrategy.MinimizeError: estimated distance deviation of decimated mesh from the original mesh for DecimateStrategy.ShortestEdgeFirst: the shortest remaining edge in the mesh Modifies a member variable of class MR::DecimateResult named errorIntroduced.

Calls MR_DecimateResult_Set_errorIntroduced().

◆ setFacesDeleted()

void meshlib.DecimateResult.setFacesDeleted ( int value)

< Number deleted faces Modifies a member variable of class MR::DecimateResult named facesDeleted.

Calls MR_DecimateResult_Set_facesDeleted().

◆ setVertsDeleted()

void meshlib.DecimateResult.setVertsDeleted ( int value)

< Number deleted verts. Same as the number of performed collapses Modifies a member variable of class MR::DecimateResult named vertsDeleted.

Calls MR_DecimateResult_Set_vertsDeleted().

◆ vertsDeleted()

int meshlib.DecimateResult.vertsDeleted ( )

< Number deleted verts. Same as the number of performed collapses Returns a pointer to a member variable of class MR::DecimateResult named vertsDeleted. The reference to this object might be preserved as the return value.

Calls MR_DecimateResult_Get_vertsDeleted().


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