MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.InSphereSearchSettings Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, InSphereSearchSettings arg0)
 
None __init__ (self, bool insideAndOutside, float maxRadius, int maxIters, float minShrinkage)
 
bool insideAndOutside (self)
 
None insideAndOutside (self, bool arg1)
 
int maxIters (self)
 
None maxIters (self, int arg1)
 
float maxRadius (self)
 
None maxRadius (self, float arg1)
 
float minShrinkage (self)
 
None minShrinkage (self, float arg1)
 

Detailed Description

Generated from:  MR::InSphereSearchSettings

controls the finding of maximal inscribed sphere in mesh

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.InSphereSearchSettings.__init__ ( self)
Implicit default constructor.

◆ __init__() [2/3]

None meshlib.mrmeshpy.InSphereSearchSettings.__init__ ( self,
InSphereSearchSettings arg0 )
Implicit copy constructor.

◆ __init__() [3/3]

None meshlib.mrmeshpy.InSphereSearchSettings.__init__ ( self,
bool insideAndOutside,
float maxRadius,
int maxIters,
float minShrinkage )
Implicit aggregate constructor.

Member Function Documentation

◆ insideAndOutside() [1/2]

bool meshlib.mrmeshpy.InSphereSearchSettings.insideAndOutside ( self)
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

◆ insideAndOutside() [2/2]

None meshlib.mrmeshpy.InSphereSearchSettings.insideAndOutside ( self,
bool arg1 )

◆ maxIters() [1/2]

int meshlib.mrmeshpy.InSphereSearchSettings.maxIters ( self)
maximum number of shrinking iterations for one triangle

◆ maxIters() [2/2]

None meshlib.mrmeshpy.InSphereSearchSettings.maxIters ( self,
int arg1 )

◆ maxRadius() [1/2]

float meshlib.mrmeshpy.InSphereSearchSettings.maxRadius ( self)
maximum allowed radius of the sphere;
for almost closed meshes the article recommends maxRadius = 0.5f * std::min( { boxSize.x, boxSize.y, boxSize.z } )

◆ maxRadius() [2/2]

None meshlib.mrmeshpy.InSphereSearchSettings.maxRadius ( self,
float arg1 )

◆ minShrinkage() [1/2]

float meshlib.mrmeshpy.InSphereSearchSettings.minShrinkage ( self)
iterations stop if next radius is larger than minShrinkage times previous radius

◆ minShrinkage() [2/2]

None meshlib.mrmeshpy.InSphereSearchSettings.minShrinkage ( self,
float arg1 )

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