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

Public Member Functions

 SignedDistanceToMeshOptions (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SignedDistanceToMeshOptions ()
 SignedDistanceToMeshOptions (meshlib.SignedDistanceToMeshOptions _other)
meshlib.SignedDistanceToMeshOptions assignFromAnother (meshlib.SignedDistanceToMeshOptions _other)
meshlib.SignDetectionMode signMode ()
void setSignMode (meshlib.SignDetectionMode value)
float minDistSq ()
void setMinDistSq (float value)
float maxDistSq ()
void setMaxDistSq (float value)
boolean nullOutsideMinMax ()
void setNullOutsideMinMax (boolean value)
float windingNumberThreshold ()
void setWindingNumberThreshold (float value)
float windingNumberBeta ()
void setWindingNumberBeta (float value)
meshlib.DistanceToMeshOptions upcastToDistanceToMeshOptions ()
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.SignedDistanceToMeshOptions staticDowncastFromDistanceToMeshOptions (meshlib.DistanceToMeshOptions 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

options determining computation of signed distance from a point to a mesh Generated from class MR::SignedDistanceToMeshOptions. Base classes: Direct: (non-virtual) MR::DistanceToMeshOptions

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

Constructor & Destructor Documentation

◆ SignedDistanceToMeshOptions() [1/3]

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

◆ SignedDistanceToMeshOptions() [2/3]

meshlib.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions ( )

Constructs an empty (default-constructed) instance.

Calls MR_SignedDistanceToMeshOptions_DefaultConstruct().

◆ SignedDistanceToMeshOptions() [3/3]

meshlib.SignedDistanceToMeshOptions.SignedDistanceToMeshOptions ( meshlib.SignedDistanceToMeshOptions _other)

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

Calls MR_SignedDistanceToMeshOptions_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.SignedDistanceToMeshOptions meshlib.SignedDistanceToMeshOptions.assignFromAnother ( meshlib.SignedDistanceToMeshOptions _other)

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

Calls MR_SignedDistanceToMeshOptions_AssignFromAnother().

◆ maxDistSq()

float meshlib.SignedDistanceToMeshOptions.maxDistSq ( )

maximum squared distance from a point to mesh to be computed precisely Returns a pointer to a member variable of class MR::SignedDistanceToMeshOptions named maxDistSq. The reference to this object might be preserved as the return value.

Calls MR_SignedDistanceToMeshOptions_Get_maxDistSq().

◆ minDistSq()

float meshlib.SignedDistanceToMeshOptions.minDistSq ( )

minimum squared distance from a point to mesh to be computed precisely Returns a pointer to a member variable of class MR::SignedDistanceToMeshOptions named minDistSq. The reference to this object might be preserved as the return value.

Calls MR_SignedDistanceToMeshOptions_Get_minDistSq().

◆ nullOutsideMinMax()

boolean meshlib.SignedDistanceToMeshOptions.nullOutsideMinMax ( )

what to do if actual distance is outside [min, max) range: true - return std::nullopt for std::optional<float> or NaN for float, false - return approximate value of the distance (with correct sign in case of SignDetectionMode.HoleWindingRule); please note that in HoleWindingRule the sign can change even for too small or too large distances, so if you would like to get closed mesh from marching cubes, set false here Returns a pointer to a member variable of class MR::SignedDistanceToMeshOptions named nullOutsideMinMax. The reference to this object might be preserved as the return value.

Calls MR_SignedDistanceToMeshOptions_Get_nullOutsideMinMax().

◆ setMaxDistSq()

void meshlib.SignedDistanceToMeshOptions.setMaxDistSq ( float value)

maximum squared distance from a point to mesh to be computed precisely Modifies a member variable of class MR::SignedDistanceToMeshOptions named maxDistSq.

Calls MR_SignedDistanceToMeshOptions_Set_maxDistSq().

◆ setMinDistSq()

void meshlib.SignedDistanceToMeshOptions.setMinDistSq ( float value)

minimum squared distance from a point to mesh to be computed precisely Modifies a member variable of class MR::SignedDistanceToMeshOptions named minDistSq.

Calls MR_SignedDistanceToMeshOptions_Set_minDistSq().

◆ setNullOutsideMinMax()

void meshlib.SignedDistanceToMeshOptions.setNullOutsideMinMax ( boolean value)

what to do if actual distance is outside [min, max) range: true - return std::nullopt for std::optional<float> or NaN for float, false - return approximate value of the distance (with correct sign in case of SignDetectionMode.HoleWindingRule); please note that in HoleWindingRule the sign can change even for too small or too large distances, so if you would like to get closed mesh from marching cubes, set false here Modifies a member variable of class MR::SignedDistanceToMeshOptions named nullOutsideMinMax.

Calls MR_SignedDistanceToMeshOptions_Set_nullOutsideMinMax().

◆ setSignMode()

void meshlib.SignedDistanceToMeshOptions.setSignMode ( meshlib.SignDetectionMode value)

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

Calls MR_SignedDistanceToMeshOptions_Set_signMode().

◆ setWindingNumberBeta()

void meshlib.SignedDistanceToMeshOptions.setWindingNumberBeta ( float value)

only for SignDetectionMode.HoleWindingRule: determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::SignedDistanceToMeshOptions named windingNumberBeta.

Calls MR_SignedDistanceToMeshOptions_Set_windingNumberBeta().

◆ setWindingNumberThreshold()

void meshlib.SignedDistanceToMeshOptions.setWindingNumberThreshold ( float value)

only for SignDetectionMode.HoleWindingRule: 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::SignedDistanceToMeshOptions named windingNumberThreshold.

Calls MR_SignedDistanceToMeshOptions_Set_windingNumberThreshold().

◆ signMode()

meshlib.SignDetectionMode meshlib.SignedDistanceToMeshOptions.signMode ( )

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

Calls MR_SignedDistanceToMeshOptions_Get_signMode().

◆ staticDowncastFromDistanceToMeshOptions()

meshlib.SignedDistanceToMeshOptions meshlib.SignedDistanceToMeshOptions.staticDowncastFromDistanceToMeshOptions ( meshlib.DistanceToMeshOptions object)
static

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

Calls MR_SignedDistanceToMeshOptions_MutableStaticDowncastFrom_MR_DistanceToMeshOptions().

◆ upcastToDistanceToMeshOptions()

meshlib.DistanceToMeshOptions meshlib.SignedDistanceToMeshOptions.upcastToDistanceToMeshOptions ( )

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

Calls MR_SignedDistanceToMeshOptions_MutableUpcastTo_MR_DistanceToMeshOptions().

◆ windingNumberBeta()

float meshlib.SignedDistanceToMeshOptions.windingNumberBeta ( )

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

Calls MR_SignedDistanceToMeshOptions_Get_windingNumberBeta().

◆ windingNumberThreshold()

float meshlib.SignedDistanceToMeshOptions.windingNumberThreshold ( )

only for SignDetectionMode.HoleWindingRule: 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::SignedDistanceToMeshOptions named windingNumberThreshold. The reference to this object might be preserved as the return value.

Calls MR_SignedDistanceToMeshOptions_Get_windingNumberThreshold().


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