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

Public Member Functions

 InSphereSearchSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 InSphereSearchSettings ()
 InSphereSearchSettings (boolean insideAndOutside, float maxRadius, int maxIters, float minShrinkage, float minAngleCos)
 InSphereSearchSettings (meshlib.InSphereSearchSettings _other)
meshlib.InSphereSearchSettings assignFromAnother (meshlib.InSphereSearchSettings _other)
boolean insideAndOutside ()
void setInsideAndOutside (boolean value)
float maxRadius ()
void setMaxRadius (float value)
int maxIters ()
void setMaxIters (int value)
float minShrinkage ()
void setMinShrinkage (float value)
float minAngleCos ()
void setMinAngleCos (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

controls the finding of maximal inscribed sphere in mesh Generated from class MR::InSphereSearchSettings.

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

Constructor & Destructor Documentation

◆ InSphereSearchSettings() [1/4]

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

◆ InSphereSearchSettings() [2/4]

meshlib.InSphereSearchSettings.InSphereSearchSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_InSphereSearchSettings_DefaultConstruct().

◆ InSphereSearchSettings() [3/4]

meshlib.InSphereSearchSettings.InSphereSearchSettings ( boolean insideAndOutside,
float maxRadius,
int maxIters,
float minShrinkage,
float minAngleCos )

Constructs MR::InSphereSearchSettings elementwise.

Calls MR_InSphereSearchSettings_ConstructFrom().

◆ InSphereSearchSettings() [4/4]

meshlib.InSphereSearchSettings.InSphereSearchSettings ( meshlib.InSphereSearchSettings _other)

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

Calls MR_InSphereSearchSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.InSphereSearchSettings meshlib.InSphereSearchSettings.assignFromAnother ( meshlib.InSphereSearchSettings _other)

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

Calls MR_InSphereSearchSettings_AssignFromAnother().

◆ insideAndOutside()

boolean meshlib.InSphereSearchSettings.insideAndOutside ( )

if false then searches for the maximal inscribed sphere in mesh; if true then searches for both a) maximal inscribed sphere, and b) maximal sphere outside the mesh touching it at two points; and returns the smaller of two, and if it is b) then with minus sign Returns a pointer to a member variable of class MR::InSphereSearchSettings named insideAndOutside. The reference to this object might be preserved as the return value.

Calls MR_InSphereSearchSettings_Get_insideAndOutside().

◆ maxIters()

int meshlib.InSphereSearchSettings.maxIters ( )

maximum number of shrinking iterations for one triangle Returns a pointer to a member variable of class MR::InSphereSearchSettings named maxIters. The reference to this object might be preserved as the return value.

Calls MR_InSphereSearchSettings_Get_maxIters().

◆ maxRadius()

float meshlib.InSphereSearchSettings.maxRadius ( )

maximum allowed radius of the sphere; for almost closed meshes the article recommends maxRadius = 0.5f * std::min( { boxSize.x, boxSize.y, boxSize.z } ) Returns a pointer to a member variable of class MR::InSphereSearchSettings named maxRadius. The reference to this object might be preserved as the return value.

Calls MR_InSphereSearchSettings_Get_maxRadius().

◆ minAngleCos()

float meshlib.InSphereSearchSettings.minAngleCos ( )

minimum cosine of the angle between two unit directions: 1) search unit direction (m.inDir), 2) unit direction from sphere's center to the other found touch point; -1 value means no filtering by this angle; the increase of this value helps avoiding too small spheres on noisy surfaces Returns a pointer to a member variable of class MR::InSphereSearchSettings named minAngleCos. The reference to this object might be preserved as the return value.

Calls MR_InSphereSearchSettings_Get_minAngleCos().

◆ minShrinkage()

float meshlib.InSphereSearchSettings.minShrinkage ( )

iterations stop if next radius is larger than minShrinkage times previous radius Returns a pointer to a member variable of class MR::InSphereSearchSettings named minShrinkage. The reference to this object might be preserved as the return value.

Calls MR_InSphereSearchSettings_Get_minShrinkage().

◆ setInsideAndOutside()

void meshlib.InSphereSearchSettings.setInsideAndOutside ( boolean value)

if false then searches for the maximal inscribed sphere in mesh; if true then searches for both a) maximal inscribed sphere, and b) maximal sphere outside the mesh touching it at two points; and returns the smaller of two, and if it is b) then with minus sign Modifies a member variable of class MR::InSphereSearchSettings named insideAndOutside.

Calls MR_InSphereSearchSettings_Set_insideAndOutside().

◆ setMaxIters()

void meshlib.InSphereSearchSettings.setMaxIters ( int value)

maximum number of shrinking iterations for one triangle Modifies a member variable of class MR::InSphereSearchSettings named maxIters.

Calls MR_InSphereSearchSettings_Set_maxIters().

◆ setMaxRadius()

void meshlib.InSphereSearchSettings.setMaxRadius ( float value)

maximum allowed radius of the sphere; for almost closed meshes the article recommends maxRadius = 0.5f * std::min( { boxSize.x, boxSize.y, boxSize.z } ) Modifies a member variable of class MR::InSphereSearchSettings named maxRadius.

Calls MR_InSphereSearchSettings_Set_maxRadius().

◆ setMinAngleCos()

void meshlib.InSphereSearchSettings.setMinAngleCos ( float value)

minimum cosine of the angle between two unit directions: 1) search unit direction (m.inDir), 2) unit direction from sphere's center to the other found touch point; -1 value means no filtering by this angle; the increase of this value helps avoiding too small spheres on noisy surfaces Modifies a member variable of class MR::InSphereSearchSettings named minAngleCos.

Calls MR_InSphereSearchSettings_Set_minAngleCos().

◆ setMinShrinkage()

void meshlib.InSphereSearchSettings.setMinShrinkage ( float value)

iterations stop if next radius is larger than minShrinkage times previous radius Modifies a member variable of class MR::InSphereSearchSettings named minShrinkage.

Calls MR_InSphereSearchSettings_Set_minShrinkage().


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