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

Public Member Functions

 RebuildMeshSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 RebuildMeshSettings ()
 RebuildMeshSettings (boolean preSubdivide, float voxelSize, meshlib.SignDetectionModeShort signMode, boolean closeHolesInHoleWindingNumber, meshlib.OffsetMode offsetMode, meshlib.UndirectedEdgeBitSet outSharpEdges, float windingNumberThreshold, float windingNumberBeta, meshlib.std_shared_ptr_MR_IFastWindingNumber fwn, int reduceAngleNumIters, boolean decimate, float tinyEdgeLength, meshlib.std_function_bool_from_float progress, meshlib.std_function_void_from_MR_SignDetectionMode onSignDetectionModeSelected)
 RebuildMeshSettings (meshlib.RebuildMeshSettings _other)
meshlib.RebuildMeshSettings assignFromAnother (meshlib.RebuildMeshSettings _other)
boolean preSubdivide ()
void setPreSubdivide (boolean value)
float voxelSize ()
void setVoxelSize (float value)
meshlib.SignDetectionModeShort signMode ()
void setSignMode (meshlib.SignDetectionModeShort value)
boolean closeHolesInHoleWindingNumber ()
void setCloseHolesInHoleWindingNumber (boolean value)
meshlib.OffsetMode offsetMode ()
void setOffsetMode (meshlib.OffsetMode value)
java.lang.foreign.MemorySegment outSharpEdges ()
void setOutSharpEdges (meshlib.UndirectedEdgeBitSet value)
float windingNumberThreshold ()
void setWindingNumberThreshold (float value)
float windingNumberBeta ()
void setWindingNumberBeta (float value)
meshlib.std_shared_ptr_MR_IFastWindingNumber fwn ()
void setFwn (meshlib.std_shared_ptr_MR_IFastWindingNumber value)
int reduceAngleNumIters ()
void setReduceAngleNumIters (int value)
boolean decimate ()
void setDecimate (boolean value)
float tinyEdgeLength ()
void setTinyEdgeLength (float value)
meshlib.std_function_bool_from_float progress ()
void setProgress (meshlib.std_function_bool_from_float value)
meshlib.std_function_void_from_MR_SignDetectionMode onSignDetectionModeSelected ()
void setOnSignDetectionModeSelected (meshlib.std_function_void_from_MR_SignDetectionMode 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::RebuildMeshSettings.

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

Constructor & Destructor Documentation

◆ RebuildMeshSettings() [1/4]

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

◆ RebuildMeshSettings() [2/4]

meshlib.RebuildMeshSettings.RebuildMeshSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_RebuildMeshSettings_DefaultConstruct().

◆ RebuildMeshSettings() [3/4]

meshlib.RebuildMeshSettings.RebuildMeshSettings ( boolean preSubdivide,
float voxelSize,
meshlib.SignDetectionModeShort signMode,
boolean closeHolesInHoleWindingNumber,
meshlib.OffsetMode offsetMode,
meshlib.UndirectedEdgeBitSet outSharpEdges,
float windingNumberThreshold,
float windingNumberBeta,
meshlib.std_shared_ptr_MR_IFastWindingNumber fwn,
int reduceAngleNumIters,
boolean decimate,
float tinyEdgeLength,
meshlib.std_function_bool_from_float progress,
meshlib.std_function_void_from_MR_SignDetectionMode onSignDetectionModeSelected )

Constructs MR::RebuildMeshSettings elementwise. The reference to the parameter signMode might be preserved in the constructed object. The reference to the parameter offsetMode might be preserved in the constructed object. The reference to the parameter outSharpEdges might be preserved in the constructed object. 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. The reference to the parameter onSignDetectionModeSelected might be preserved in the constructed object.

Calls MR_RebuildMeshSettings_ConstructFrom().

◆ RebuildMeshSettings() [4/4]

meshlib.RebuildMeshSettings.RebuildMeshSettings ( meshlib.RebuildMeshSettings _other)

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

Calls MR_RebuildMeshSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.RebuildMeshSettings meshlib.RebuildMeshSettings.assignFromAnother ( meshlib.RebuildMeshSettings _other)

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

Calls MR_RebuildMeshSettings_AssignFromAnother().

◆ closeHolesInHoleWindingNumber()

boolean meshlib.RebuildMeshSettings.closeHolesInHoleWindingNumber ( )

whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber Returns a pointer to a member variable of class MR::RebuildMeshSettings named closeHolesInHoleWindingNumber. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_closeHolesInHoleWindingNumber().

◆ decimate()

boolean meshlib.RebuildMeshSettings.decimate ( )

whether to decimate resulting mesh Returns a pointer to a member variable of class MR::RebuildMeshSettings named decimate. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_decimate().

◆ fwn()

meshlib.std_shared_ptr_MR_IFastWindingNumber meshlib.RebuildMeshSettings.fwn ( )

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

Calls MR_RebuildMeshSettings_Get_fwn().

◆ offsetMode()

meshlib.OffsetMode meshlib.RebuildMeshSettings.offsetMode ( )

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

Calls MR_RebuildMeshSettings_Get_offsetMode().

◆ onSignDetectionModeSelected()

meshlib.std_function_void_from_MR_SignDetectionMode meshlib.RebuildMeshSettings.onSignDetectionModeSelected ( )

this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort.Auto), but before actual work begins Returns a pointer to a member variable of class MR::RebuildMeshSettings named onSignDetectionModeSelected. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_onSignDetectionModeSelected().

◆ outSharpEdges()

java.lang.foreign.MemorySegment meshlib.RebuildMeshSettings.outSharpEdges ( )

if non-null then created sharp edges (only if offsetMode = OffsetMode.Sharpening) will be saved here Returns a pointer to a member variable of class MR::RebuildMeshSettings named outSharpEdges. The reference to this object might be preserved as the return value.

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

◆ preSubdivide()

boolean meshlib.RebuildMeshSettings.preSubdivide ( )

whether to make subdivision of initial mesh before conversion to voxels, despite time and memory required for the subdivision, it typically makes the whole rebuilding faster (or even much faster in case of large initial triangles), because AABB tree contains small triangles in leaves, which is good for both 1) search for closest triangle because the closest box more frequently contains the closest triangle, 2) and winding number approximation because of more frequent usage of approximation for distant dipoles Returns a pointer to a member variable of class MR::RebuildMeshSettings named preSubdivide. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_preSubdivide().

◆ progress()

meshlib.std_function_bool_from_float meshlib.RebuildMeshSettings.progress ( )

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

Calls MR_RebuildMeshSettings_Get_progress().

◆ reduceAngleNumIters()

int meshlib.RebuildMeshSettings.reduceAngleNumIters ( )

the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Returns a pointer to a member variable of class MR::RebuildMeshSettings named reduceAngleNumIters. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_reduceAngleNumIters().

◆ setCloseHolesInHoleWindingNumber()

void meshlib.RebuildMeshSettings.setCloseHolesInHoleWindingNumber ( boolean value)

whether to construct closed mesh in signMode = SignDetectionModeShort.HoleWindingNumber Modifies a member variable of class MR::RebuildMeshSettings named closeHolesInHoleWindingNumber.

Calls MR_RebuildMeshSettings_Set_closeHolesInHoleWindingNumber().

◆ setDecimate()

void meshlib.RebuildMeshSettings.setDecimate ( boolean value)

whether to decimate resulting mesh Modifies a member variable of class MR::RebuildMeshSettings named decimate.

Calls MR_RebuildMeshSettings_Set_decimate().

◆ setFwn()

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

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

Calls MR_RebuildMeshSettings_Set_fwn().

◆ setOffsetMode()

void meshlib.RebuildMeshSettings.setOffsetMode ( meshlib.OffsetMode value)

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

Calls MR_RebuildMeshSettings_Set_offsetMode().

◆ setOnSignDetectionModeSelected()

void meshlib.RebuildMeshSettings.setOnSignDetectionModeSelected ( meshlib.std_function_void_from_MR_SignDetectionMode value)

this callback is invoked when SignDetectionMode is determined (useful if signMode = SignDetectionModeShort.Auto), but before actual work begins Modifies a member variable of class MR::RebuildMeshSettings named onSignDetectionModeSelected. The reference to the parameter value might be preserved in this object in element onSignDetectionModeSelected.

Calls MR_RebuildMeshSettings_Set_onSignDetectionModeSelected().

◆ setOutSharpEdges()

void meshlib.RebuildMeshSettings.setOutSharpEdges ( meshlib.UndirectedEdgeBitSet value)

if non-null then created sharp edges (only if offsetMode = OffsetMode.Sharpening) will be saved here Modifies a member variable of class MR::RebuildMeshSettings named outSharpEdges. The reference to the parameter value might be preserved in this object in element outSharpEdges.

Calls MR_RebuildMeshSettings_Set_outSharpEdges().

◆ setPreSubdivide()

void meshlib.RebuildMeshSettings.setPreSubdivide ( boolean value)

whether to make subdivision of initial mesh before conversion to voxels, despite time and memory required for the subdivision, it typically makes the whole rebuilding faster (or even much faster in case of large initial triangles), because AABB tree contains small triangles in leaves, which is good for both 1) search for closest triangle because the closest box more frequently contains the closest triangle, 2) and winding number approximation because of more frequent usage of approximation for distant dipoles Modifies a member variable of class MR::RebuildMeshSettings named preSubdivide.

Calls MR_RebuildMeshSettings_Set_preSubdivide().

◆ setProgress()

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

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

Calls MR_RebuildMeshSettings_Set_progress().

◆ setReduceAngleNumIters()

void meshlib.RebuildMeshSettings.setReduceAngleNumIters ( int value)

the number of iterations to minimize summed deviation of triangle-triangle angles from plane; this mode highlights sharp edges; if decimation is on, this mode is performed before and after decimation and further reduces the number of triangles Modifies a member variable of class MR::RebuildMeshSettings named reduceAngleNumIters.

Calls MR_RebuildMeshSettings_Set_reduceAngleNumIters().

◆ setSignMode()

void meshlib.RebuildMeshSettings.setSignMode ( meshlib.SignDetectionModeShort value)

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

Calls MR_RebuildMeshSettings_Set_signMode().

◆ setTinyEdgeLength()

void meshlib.RebuildMeshSettings.setTinyEdgeLength ( float value)

only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Modifies a member variable of class MR::RebuildMeshSettings named tinyEdgeLength.

Calls MR_RebuildMeshSettings_Set_tinyEdgeLength().

◆ setVoxelSize()

void meshlib.RebuildMeshSettings.setVoxelSize ( float value)

Size of voxel in grid conversions; The user is responsible for setting some positive value here Modifies a member variable of class MR::RebuildMeshSettings named voxelSize.

Calls MR_RebuildMeshSettings_Set_voxelSize().

◆ setWindingNumberBeta()

void meshlib.RebuildMeshSettings.setWindingNumberBeta ( float value)

if general winding number is used to differentiate inside from outside: determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::RebuildMeshSettings named windingNumberBeta.

Calls MR_RebuildMeshSettings_Set_windingNumberBeta().

◆ setWindingNumberThreshold()

void meshlib.RebuildMeshSettings.setWindingNumberThreshold ( float value)

if general winding number is used to differentiate inside from outside: 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::RebuildMeshSettings named windingNumberThreshold.

Calls MR_RebuildMeshSettings_Set_windingNumberThreshold().

◆ signMode()

meshlib.SignDetectionModeShort meshlib.RebuildMeshSettings.signMode ( )

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

Calls MR_RebuildMeshSettings_Get_signMode().

◆ tinyEdgeLength()

float meshlib.RebuildMeshSettings.tinyEdgeLength ( )

only if decimate = true: edges not longer than this value will be collapsed even if it results in appearance of a triangle with high aspect ratio Returns a pointer to a member variable of class MR::RebuildMeshSettings named tinyEdgeLength. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_tinyEdgeLength().

◆ voxelSize()

float meshlib.RebuildMeshSettings.voxelSize ( )

Size of voxel in grid conversions; The user is responsible for setting some positive value here Returns a pointer to a member variable of class MR::RebuildMeshSettings named voxelSize. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_voxelSize().

◆ windingNumberBeta()

float meshlib.RebuildMeshSettings.windingNumberBeta ( )

if general winding number is used to differentiate inside from outside: determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::RebuildMeshSettings named windingNumberBeta. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_windingNumberBeta().

◆ windingNumberThreshold()

float meshlib.RebuildMeshSettings.windingNumberThreshold ( )

if general winding number is used to differentiate inside from outside: 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::RebuildMeshSettings named windingNumberThreshold. The reference to this object might be preserved as the return value.

Calls MR_RebuildMeshSettings_Get_windingNumberThreshold().


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