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

Public Member Functions

 SpacingSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SpacingSettings ()
 SpacingSettings (meshlib.VertBitSet region, meshlib.std_function_float_from_MR_UndirectedEdgeId dist, int numIters, float stabilizer, float maxSumNegW, meshlib.std_function_bool_from_MR_FaceId isInverted)
 SpacingSettings (meshlib.SpacingSettings _other)
meshlib.SpacingSettings assignFromAnother (meshlib.SpacingSettings _other)
java.lang.foreign.MemorySegment region ()
void setRegion (meshlib.VertBitSet value)
meshlib.std_function_float_from_MR_UndirectedEdgeId dist ()
void setDist (meshlib.std_function_float_from_MR_UndirectedEdgeId value)
int numIters ()
void setNumIters (int value)
float stabilizer ()
void setStabilizer (float value)
float maxSumNegW ()
void setMaxSumNegW (float value)
meshlib.std_function_bool_from_MR_FaceId isInverted ()
void setIsInverted (meshlib.std_function_bool_from_MR_FaceId 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

Generated from class MR::SpacingSettings.

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

Constructor & Destructor Documentation

◆ SpacingSettings() [1/4]

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

◆ SpacingSettings() [2/4]

meshlib.SpacingSettings.SpacingSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_SpacingSettings_DefaultConstruct().

◆ SpacingSettings() [3/4]

meshlib.SpacingSettings.SpacingSettings ( meshlib.VertBitSet region,
meshlib.std_function_float_from_MR_UndirectedEdgeId dist,
int numIters,
float stabilizer,
float maxSumNegW,
meshlib.std_function_bool_from_MR_FaceId isInverted )

Constructs MR::SpacingSettings elementwise. The reference to the parameter region might be preserved in the constructed object. The reference to the parameter dist might be preserved in the constructed object. The reference to the parameter isInverted might be preserved in the constructed object.

Calls MR_SpacingSettings_ConstructFrom().

◆ SpacingSettings() [4/4]

meshlib.SpacingSettings.SpacingSettings ( meshlib.SpacingSettings _other)

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

Calls MR_SpacingSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.SpacingSettings meshlib.SpacingSettings.assignFromAnother ( meshlib.SpacingSettings _other)

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

Calls MR_SpacingSettings_AssignFromAnother().

◆ dist()

meshlib.std_function_float_from_MR_UndirectedEdgeId meshlib.SpacingSettings.dist ( )

must be defined by the caller Returns a pointer to a member variable of class MR::SpacingSettings named dist. The reference to this object might be preserved as the return value.

Calls MR_SpacingSettings_Get_dist().

◆ isInverted()

meshlib.std_function_bool_from_MR_FaceId meshlib.SpacingSettings.isInverted ( )

if this predicated is given, then all inverted faces will be converted in degenerate faces at the end of each iteration Returns a pointer to a member variable of class MR::SpacingSettings named isInverted. The reference to this object might be preserved as the return value.

Calls MR_SpacingSettings_Get_isInverted().

◆ maxSumNegW()

float meshlib.SpacingSettings.maxSumNegW ( )

maximum sum of minus negative weights, if it is exceeded then stabilizer is increased automatically Returns a pointer to a member variable of class MR::SpacingSettings named maxSumNegW. The reference to this object might be preserved as the return value.

Calls MR_SpacingSettings_Get_maxSumNegW().

◆ numIters()

int meshlib.SpacingSettings.numIters ( )

the algorithm is iterative, the more iterations the closer result to exact solution Returns a pointer to a member variable of class MR::SpacingSettings named numIters. The reference to this object might be preserved as the return value.

Calls MR_SpacingSettings_Get_numIters().

◆ region()

java.lang.foreign.MemorySegment meshlib.SpacingSettings.region ( )

vertices to be moved by the algorithm, nullptr means all valid vertices Returns a pointer to a member variable of class MR::SpacingSettings named region. The reference to this object might be preserved as the return value.

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

◆ setDist()

void meshlib.SpacingSettings.setDist ( meshlib.std_function_float_from_MR_UndirectedEdgeId value)

must be defined by the caller Modifies a member variable of class MR::SpacingSettings named dist. The reference to the parameter value might be preserved in this object in element dist.

Calls MR_SpacingSettings_Set_dist().

◆ setIsInverted()

void meshlib.SpacingSettings.setIsInverted ( meshlib.std_function_bool_from_MR_FaceId value)

if this predicated is given, then all inverted faces will be converted in degenerate faces at the end of each iteration Modifies a member variable of class MR::SpacingSettings named isInverted. The reference to the parameter value might be preserved in this object in element isInverted.

Calls MR_SpacingSettings_Set_isInverted().

◆ setMaxSumNegW()

void meshlib.SpacingSettings.setMaxSumNegW ( float value)

maximum sum of minus negative weights, if it is exceeded then stabilizer is increased automatically Modifies a member variable of class MR::SpacingSettings named maxSumNegW.

Calls MR_SpacingSettings_Set_maxSumNegW().

◆ setNumIters()

void meshlib.SpacingSettings.setNumIters ( int value)

the algorithm is iterative, the more iterations the closer result to exact solution Modifies a member variable of class MR::SpacingSettings named numIters.

Calls MR_SpacingSettings_Set_numIters().

◆ setRegion()

void meshlib.SpacingSettings.setRegion ( meshlib.VertBitSet value)

vertices to be moved by the algorithm, nullptr means all valid vertices Modifies a member variable of class MR::SpacingSettings named region. The reference to the parameter value might be preserved in this object in element region.

Calls MR_SpacingSettings_Set_region().

◆ setStabilizer()

void meshlib.SpacingSettings.setStabilizer ( float value)

too small number here can lead to instability, too large - to slow convergence Modifies a member variable of class MR::SpacingSettings named stabilizer.

Calls MR_SpacingSettings_Set_stabilizer().

◆ stabilizer()

float meshlib.SpacingSettings.stabilizer ( )

too small number here can lead to instability, too large - to slow convergence Returns a pointer to a member variable of class MR::SpacingSettings named stabilizer. The reference to this object might be preserved as the return value.

Calls MR_SpacingSettings_Get_stabilizer().


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