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

Public Member Functions

 DoubleOffsetSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 DoubleOffsetSettings ()
 DoubleOffsetSettings (float voxelSize, float offsetA, float offsetB, float adaptivity, meshlib.std_shared_ptr_MR_IFastWindingNumber fwn, float windingNumberThreshold, float windingNumberBeta, meshlib.std_function_bool_from_float progress)
 DoubleOffsetSettings (meshlib.DoubleOffsetSettings _other)
meshlib.DoubleOffsetSettings assignFromAnother (meshlib.DoubleOffsetSettings _other)
float voxelSize ()
void setVoxelSize (float value)
float offsetA ()
void setOffsetA (float value)
float offsetB ()
void setOffsetB (float value)
float adaptivity ()
void setAdaptivity (float value)
meshlib.std_shared_ptr_MR_IFastWindingNumber fwn ()
void setFwn (meshlib.std_shared_ptr_MR_IFastWindingNumber value)
float windingNumberThreshold ()
void setWindingNumberThreshold (float value)
float windingNumberBeta ()
void setWindingNumberBeta (float value)
meshlib.std_function_bool_from_float progress ()
void setProgress (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

Generated from class MR::DoubleOffsetSettings.

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

Constructor & Destructor Documentation

◆ DoubleOffsetSettings() [1/4]

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

◆ DoubleOffsetSettings() [2/4]

meshlib.DoubleOffsetSettings.DoubleOffsetSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_DoubleOffsetSettings_DefaultConstruct().

◆ DoubleOffsetSettings() [3/4]

meshlib.DoubleOffsetSettings.DoubleOffsetSettings ( float voxelSize,
float offsetA,
float offsetB,
float adaptivity,
meshlib.std_shared_ptr_MR_IFastWindingNumber fwn,
float windingNumberThreshold,
float windingNumberBeta,
meshlib.std_function_bool_from_float progress )

Constructs MR::DoubleOffsetSettings elementwise. The reference to the parameter fwn might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object.

Calls MR_DoubleOffsetSettings_ConstructFrom().

◆ DoubleOffsetSettings() [4/4]

meshlib.DoubleOffsetSettings.DoubleOffsetSettings ( meshlib.DoubleOffsetSettings _other)

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

Calls MR_DoubleOffsetSettings_ConstructFromAnother().

Member Function Documentation

◆ adaptivity()

float meshlib.DoubleOffsetSettings.adaptivity ( )

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a pointer to a member variable of class MR::DoubleOffsetSettings named adaptivity. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_adaptivity().

◆ assignFromAnother()

meshlib.DoubleOffsetSettings meshlib.DoubleOffsetSettings.assignFromAnother ( meshlib.DoubleOffsetSettings _other)

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

Calls MR_DoubleOffsetSettings_AssignFromAnother().

◆ fwn()

meshlib.std_shared_ptr_MR_IFastWindingNumber meshlib.DoubleOffsetSettings.fwn ( )

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Returns a pointer to a member variable of class MR::DoubleOffsetSettings named fwn. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_fwn().

◆ offsetA()

float meshlib.DoubleOffsetSettings.offsetA ( )

the amount of first offset Returns a pointer to a member variable of class MR::DoubleOffsetSettings named offsetA. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_offsetA().

◆ offsetB()

float meshlib.DoubleOffsetSettings.offsetB ( )

the amount of second offset Returns a pointer to a member variable of class MR::DoubleOffsetSettings named offsetB. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_offsetB().

◆ progress()

meshlib.std_function_bool_from_float meshlib.DoubleOffsetSettings.progress ( )

to report algorithm's progress and to cancel it Returns a pointer to a member variable of class MR::DoubleOffsetSettings named progress. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_progress().

◆ setAdaptivity()

void meshlib.DoubleOffsetSettings.setAdaptivity ( float value)

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Modifies a member variable of class MR::DoubleOffsetSettings named adaptivity.

Calls MR_DoubleOffsetSettings_Set_adaptivity().

◆ setFwn()

void meshlib.DoubleOffsetSettings.setFwn ( meshlib.std_shared_ptr_MR_IFastWindingNumber value)

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Modifies a member variable of class MR::DoubleOffsetSettings named fwn. The reference to the parameter value might be preserved in this object in element fwn.

Calls MR_DoubleOffsetSettings_Set_fwn().

◆ setOffsetA()

void meshlib.DoubleOffsetSettings.setOffsetA ( float value)

the amount of first offset Modifies a member variable of class MR::DoubleOffsetSettings named offsetA.

Calls MR_DoubleOffsetSettings_Set_offsetA().

◆ setOffsetB()

void meshlib.DoubleOffsetSettings.setOffsetB ( float value)

the amount of second offset Modifies a member variable of class MR::DoubleOffsetSettings named offsetB.

Calls MR_DoubleOffsetSettings_Set_offsetB().

◆ setProgress()

void meshlib.DoubleOffsetSettings.setProgress ( meshlib.std_function_bool_from_float value)

to report algorithm's progress and to cancel it Modifies a member variable of class MR::DoubleOffsetSettings named progress. The reference to the parameter value might be preserved in this object in element progress.

Calls MR_DoubleOffsetSettings_Set_progress().

◆ setVoxelSize()

void meshlib.DoubleOffsetSettings.setVoxelSize ( float value)

the size of voxel in intermediate voxel grid representation Modifies a member variable of class MR::DoubleOffsetSettings named voxelSize.

Calls MR_DoubleOffsetSettings_Set_voxelSize().

◆ setWindingNumberBeta()

void meshlib.DoubleOffsetSettings.setWindingNumberBeta ( float value)

determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::DoubleOffsetSettings named windingNumberBeta.

Calls MR_DoubleOffsetSettings_Set_windingNumberBeta().

◆ setWindingNumberThreshold()

void meshlib.DoubleOffsetSettings.setWindingNumberThreshold ( float value)

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Modifies a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold.

Calls MR_DoubleOffsetSettings_Set_windingNumberThreshold().

◆ voxelSize()

float meshlib.DoubleOffsetSettings.voxelSize ( )

the size of voxel in intermediate voxel grid representation Returns a pointer to a member variable of class MR::DoubleOffsetSettings named voxelSize. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_voxelSize().

◆ windingNumberBeta()

float meshlib.DoubleOffsetSettings.windingNumberBeta ( )

determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberBeta. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_windingNumberBeta().

◆ windingNumberThreshold()

float meshlib.DoubleOffsetSettings.windingNumberThreshold ( )

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold. The reference to this object might be preserved as the return value.

Calls MR_DoubleOffsetSettings_Get_windingNumberThreshold().


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