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

Public Member Functions

 MeshRelaxParams (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeshRelaxParams ()
 MeshRelaxParams (meshlib.MeshRelaxParams _other)
meshlib.MeshRelaxParams assignFromAnother (meshlib.MeshRelaxParams _other)
boolean hardSmoothTetrahedrons ()
void setHardSmoothTetrahedrons (boolean value)
java.lang.foreign.MemorySegment weights ()
void setWeights (meshlib.VertScalars value)
int iterations ()
void setIterations (int value)
java.lang.foreign.MemorySegment region ()
void setRegion (meshlib.VertBitSet value)
float force ()
void setForce (float value)
boolean updateCaches ()
void setUpdateCaches (boolean value)
boolean limitNearInitial ()
void setLimitNearInitial (boolean value)
float maxInitialDist ()
void setMaxInitialDist (float value)
meshlib.RelaxParams upcastToRelaxParams ()
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 ()

Static Public Member Functions

static meshlib.MeshRelaxParams staticDowncastFromRelaxParams (meshlib.RelaxParams object)

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::MeshRelaxParams. Base classes: Direct: (non-virtual) MR::RelaxParams Derived classes: Direct: (non-virtual) MR::MeshApproxRelaxParams MR::MeshEqualizeTriAreasParams

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

Constructor & Destructor Documentation

◆ MeshRelaxParams() [1/3]

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

◆ MeshRelaxParams() [2/3]

meshlib.MeshRelaxParams.MeshRelaxParams ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshRelaxParams_DefaultConstruct().

◆ MeshRelaxParams() [3/3]

meshlib.MeshRelaxParams.MeshRelaxParams ( meshlib.MeshRelaxParams _other)

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

Calls MR_MeshRelaxParams_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.MeshRelaxParams meshlib.MeshRelaxParams.assignFromAnother ( meshlib.MeshRelaxParams _other)

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

Calls MR_MeshRelaxParams_AssignFromAnother().

◆ force()

float meshlib.MeshRelaxParams.force ( )

speed of relaxing, typical values (0.0, 0.5] Returns a pointer to a member variable of class MR::MeshRelaxParams named force. The reference to this object might be preserved as the return value.

Calls MR_MeshRelaxParams_Get_force().

◆ hardSmoothTetrahedrons()

boolean meshlib.MeshRelaxParams.hardSmoothTetrahedrons ( )

move all region vertices with exactly three neighbor vertices in the center of the neighbors Returns a pointer to a member variable of class MR::MeshRelaxParams named hardSmoothTetrahedrons. The reference to this object might be preserved as the return value.

Calls MR_MeshRelaxParams_Get_hardSmoothTetrahedrons().

◆ iterations()

int meshlib.MeshRelaxParams.iterations ( )

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

Calls MR_MeshRelaxParams_Get_iterations().

◆ limitNearInitial()

boolean meshlib.MeshRelaxParams.limitNearInitial ( )

if true then maximal displacement of each point during denoising will be limited Returns a pointer to a member variable of class MR::MeshRelaxParams named limitNearInitial. The reference to this object might be preserved as the return value.

Calls MR_MeshRelaxParams_Get_limitNearInitial().

◆ maxInitialDist()

float meshlib.MeshRelaxParams.maxInitialDist ( )

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Returns a pointer to a member variable of class MR::MeshRelaxParams named maxInitialDist. The reference to this object might be preserved as the return value.

Calls MR_MeshRelaxParams_Get_maxInitialDist().

◆ region()

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

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

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

◆ setForce()

void meshlib.MeshRelaxParams.setForce ( float value)

speed of relaxing, typical values (0.0, 0.5] Modifies a member variable of class MR::MeshRelaxParams named force.

Calls MR_MeshRelaxParams_Set_force().

◆ setHardSmoothTetrahedrons()

void meshlib.MeshRelaxParams.setHardSmoothTetrahedrons ( boolean value)

move all region vertices with exactly three neighbor vertices in the center of the neighbors Modifies a member variable of class MR::MeshRelaxParams named hardSmoothTetrahedrons.

Calls MR_MeshRelaxParams_Set_hardSmoothTetrahedrons().

◆ setIterations()

void meshlib.MeshRelaxParams.setIterations ( int value)

number of iterations Modifies a member variable of class MR::MeshRelaxParams named iterations.

Calls MR_MeshRelaxParams_Set_iterations().

◆ setLimitNearInitial()

void meshlib.MeshRelaxParams.setLimitNearInitial ( boolean value)

if true then maximal displacement of each point during denoising will be limited Modifies a member variable of class MR::MeshRelaxParams named limitNearInitial.

Calls MR_MeshRelaxParams_Set_limitNearInitial().

◆ setMaxInitialDist()

void meshlib.MeshRelaxParams.setMaxInitialDist ( float value)

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Modifies a member variable of class MR::MeshRelaxParams named maxInitialDist.

Calls MR_MeshRelaxParams_Set_maxInitialDist().

◆ setRegion()

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

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

Calls MR_MeshRelaxParams_Set_region().

◆ setUpdateCaches()

void meshlib.MeshRelaxParams.setUpdateCaches ( boolean value)

in functions taking Mesh or PointCloud: if false then all mesh caches (AABB trees) are invalidated after relaxation, if true then they are updated only in the region (faster, but the trees might become less efficient) Modifies a member variable of class MR::MeshRelaxParams named updateCaches.

Calls MR_MeshRelaxParams_Set_updateCaches().

◆ setWeights()

void meshlib.MeshRelaxParams.setWeights ( meshlib.VertScalars value)

weight for each vertex. By default, all the vertices have equal weights. Modifies a member variable of class MR::MeshRelaxParams named weights. The reference to the parameter value might be preserved in this object in element weights.

Calls MR_MeshRelaxParams_Set_weights().

◆ staticDowncastFromRelaxParams()

meshlib.MeshRelaxParams meshlib.MeshRelaxParams.staticDowncastFromRelaxParams ( meshlib.RelaxParams object)
static

Static downcast from the base class MR::RelaxParams. Undefined behavior if the object isn't actually a MeshRelaxParams. The result refers to object.

Calls MR_MeshRelaxParams_MutableStaticDowncastFrom_MR_RelaxParams().

◆ upcastToRelaxParams()

meshlib.RelaxParams meshlib.MeshRelaxParams.upcastToRelaxParams ( )

Upcasts to the base class MR::RelaxParams. The result refers to this object.

Calls MR_MeshRelaxParams_MutableUpcastTo_MR_RelaxParams().

◆ updateCaches()

boolean meshlib.MeshRelaxParams.updateCaches ( )

in functions taking Mesh or PointCloud: if false then all mesh caches (AABB trees) are invalidated after relaxation, if true then they are updated only in the region (faster, but the trees might become less efficient) Returns a pointer to a member variable of class MR::MeshRelaxParams named updateCaches. The reference to this object might be preserved as the return value.

Calls MR_MeshRelaxParams_Get_updateCaches().

◆ weights()

java.lang.foreign.MemorySegment meshlib.MeshRelaxParams.weights ( )

weight for each vertex. By default, all the vertices have equal weights. Returns a pointer to a member variable of class MR::MeshRelaxParams named weights. The reference to this object might be preserved as the return value.

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


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