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

Public Member Functions

 FindOverlappingSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 FindOverlappingSettings ()
 FindOverlappingSettings (float maxDistSq, float maxNormalDot, float minNormalDot, float minAreaFraction, meshlib.std_function_bool_from_MR_FaceId_MR_FaceId pred, meshlib.std_function_bool_from_float cb)
 FindOverlappingSettings (meshlib.FindOverlappingSettings _other)
meshlib.FindOverlappingSettings assignFromAnother (meshlib.FindOverlappingSettings _other)
float maxDistSq ()
void setMaxDistSq (float value)
float maxNormalDot ()
void setMaxNormalDot (float value)
float minNormalDot ()
void setMinNormalDot (float value)
float minAreaFraction ()
void setMinAreaFraction (float value)
meshlib.std_function_bool_from_MR_FaceId_MR_FaceId pred ()
void setPred (meshlib.std_function_bool_from_MR_FaceId_MR_FaceId value)
meshlib.std_function_bool_from_float cb ()
void setCb (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::FindOverlappingSettings.

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

Constructor & Destructor Documentation

◆ FindOverlappingSettings() [1/4]

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

◆ FindOverlappingSettings() [2/4]

meshlib.FindOverlappingSettings.FindOverlappingSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_FindOverlappingSettings_DefaultConstruct().

◆ FindOverlappingSettings() [3/4]

meshlib.FindOverlappingSettings.FindOverlappingSettings ( float maxDistSq,
float maxNormalDot,
float minNormalDot,
float minAreaFraction,
meshlib.std_function_bool_from_MR_FaceId_MR_FaceId pred,
meshlib.std_function_bool_from_float cb )

Constructs MR::FindOverlappingSettings elementwise. The reference to the parameter pred might be preserved in the constructed object. The reference to the parameter cb might be preserved in the constructed object.

Calls MR_FindOverlappingSettings_ConstructFrom().

◆ FindOverlappingSettings() [4/4]

meshlib.FindOverlappingSettings.FindOverlappingSettings ( meshlib.FindOverlappingSettings _other)

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

Calls MR_FindOverlappingSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.FindOverlappingSettings meshlib.FindOverlappingSettings.assignFromAnother ( meshlib.FindOverlappingSettings _other)

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

Calls MR_FindOverlappingSettings_AssignFromAnother().

◆ cb()

meshlib.std_function_bool_from_float meshlib.FindOverlappingSettings.cb ( )

for reporting current progress and allowing the user to cancel the algorithm Returns a pointer to a member variable of class MR::FindOverlappingSettings named cb. The reference to this object might be preserved as the return value.

Calls MR_FindOverlappingSettings_Get_cb().

◆ maxDistSq()

float meshlib.FindOverlappingSettings.maxDistSq ( )

suggestion: multiply it on mesh.getBoundingBox().size().lengthSq(); Returns a pointer to a member variable of class MR::FindOverlappingSettings named maxDistSq. The reference to this object might be preserved as the return value.

Calls MR_FindOverlappingSettings_Get_maxDistSq().

◆ maxNormalDot()

float meshlib.FindOverlappingSettings.maxNormalDot ( )

maximal dot product of one triangle and another overlapping triangle normals Returns a pointer to a member variable of class MR::FindOverlappingSettings named maxNormalDot. The reference to this object might be preserved as the return value.

Calls MR_FindOverlappingSettings_Get_maxNormalDot().

◆ minAreaFraction()

float meshlib.FindOverlappingSettings.minAreaFraction ( )

consider triangle as overlapping only if the area of the oppositely oriented triangle is at least given fraction of the triangle's area Returns a pointer to a member variable of class MR::FindOverlappingSettings named minAreaFraction. The reference to this object might be preserved as the return value.

Calls MR_FindOverlappingSettings_Get_minAreaFraction().

◆ minNormalDot()

float meshlib.FindOverlappingSettings.minNormalDot ( )

if the dot product of the normals is at least this value, then similarly oriented close triangles are also considered overlapping, provided that their projections on the average plane overlap with positive area (it finds thin folds of the surface); the default value disables this check Returns a pointer to a member variable of class MR::FindOverlappingSettings named minNormalDot. The reference to this object might be preserved as the return value.

Calls MR_FindOverlappingSettings_Get_minNormalDot().

◆ pred()

meshlib.std_function_bool_from_MR_FaceId_MR_FaceId meshlib.FindOverlappingSettings.pred ( )

if predicate is present it should return true for pair of faces that should be considered as overlap Returns a pointer to a member variable of class MR::FindOverlappingSettings named pred. The reference to this object might be preserved as the return value.

Calls MR_FindOverlappingSettings_Get_pred().

◆ setCb()

void meshlib.FindOverlappingSettings.setCb ( meshlib.std_function_bool_from_float value)

for reporting current progress and allowing the user to cancel the algorithm Modifies a member variable of class MR::FindOverlappingSettings named cb. The reference to the parameter value might be preserved in this object in element cb.

Calls MR_FindOverlappingSettings_Set_cb().

◆ setMaxDistSq()

void meshlib.FindOverlappingSettings.setMaxDistSq ( float value)

suggestion: multiply it on mesh.getBoundingBox().size().lengthSq(); Modifies a member variable of class MR::FindOverlappingSettings named maxDistSq.

Calls MR_FindOverlappingSettings_Set_maxDistSq().

◆ setMaxNormalDot()

void meshlib.FindOverlappingSettings.setMaxNormalDot ( float value)

maximal dot product of one triangle and another overlapping triangle normals Modifies a member variable of class MR::FindOverlappingSettings named maxNormalDot.

Calls MR_FindOverlappingSettings_Set_maxNormalDot().

◆ setMinAreaFraction()

void meshlib.FindOverlappingSettings.setMinAreaFraction ( float value)

consider triangle as overlapping only if the area of the oppositely oriented triangle is at least given fraction of the triangle's area Modifies a member variable of class MR::FindOverlappingSettings named minAreaFraction.

Calls MR_FindOverlappingSettings_Set_minAreaFraction().

◆ setMinNormalDot()

void meshlib.FindOverlappingSettings.setMinNormalDot ( float value)

if the dot product of the normals is at least this value, then similarly oriented close triangles are also considered overlapping, provided that their projections on the average plane overlap with positive area (it finds thin folds of the surface); the default value disables this check Modifies a member variable of class MR::FindOverlappingSettings named minNormalDot.

Calls MR_FindOverlappingSettings_Set_minNormalDot().

◆ setPred()

void meshlib.FindOverlappingSettings.setPred ( meshlib.std_function_bool_from_MR_FaceId_MR_FaceId value)

if predicate is present it should return true for pair of faces that should be considered as overlap Modifies a member variable of class MR::FindOverlappingSettings named pred. The reference to the parameter value might be preserved in this object in element pred.

Calls MR_FindOverlappingSettings_Set_pred().


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