MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstInSphereSearchSettings Class Reference
Inheritance diagram for mrmeshpy.ConstInSphereSearchSettings:

Public Member Functions

 __init__ (self, *args, **kwargs)
bool insideAndOutside (self)
int maxIters (self)
float maxRadius (self)
float minAngleCos (self)
float minShrinkage (self)

Static Protected Attributes

typing _offsetof_insideAndOutside = 0
typing _offsetof_maxIters = 8
typing _offsetof_maxRadius = 4
typing _offsetof_minAngleCos = 16
typing _offsetof_minShrinkage = 12

Detailed Description

Generated from:  MR::InSphereSearchSettings

controls the finding of maximal inscribed sphere in mesh

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstInSphereSearchSettings.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstInSphereSearchSettings) -> None

2. __init__(self: meshlib.mrmeshpy.ConstInSphereSearchSettings, arg0: meshlib.mrmeshpy.ConstInSphereSearchSettings) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstInSphereSearchSettings, insideAndOutside: bool, maxRadius: float, maxIters: int, minShrinkage: float, minAngleCos: float) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstInSphereSearchSettings, : meshlib.mrmeshpy.ConstInSphereSearchSettings) -> None

Member Function Documentation

◆ insideAndOutside()

bool mrmeshpy.ConstInSphereSearchSettings.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

Reimplemented in mrmeshpy.InSphereSearchSettings, and mrmeshpy.InSphereSearchSettings.

◆ maxIters()

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

Reimplemented in mrmeshpy.InSphereSearchSettings, and mrmeshpy.InSphereSearchSettings.

◆ maxRadius()

float mrmeshpy.ConstInSphereSearchSettings.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 } )

Reimplemented in mrmeshpy.InSphereSearchSettings, and mrmeshpy.InSphereSearchSettings.

◆ minAngleCos()

float mrmeshpy.ConstInSphereSearchSettings.minAngleCos ( self)
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

Reimplemented in mrmeshpy.InSphereSearchSettings, and mrmeshpy.InSphereSearchSettings.

◆ minShrinkage()

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

Reimplemented in mrmeshpy.InSphereSearchSettings, and mrmeshpy.InSphereSearchSettings.

Member Data Documentation

◆ _offsetof_insideAndOutside

typing mrmeshpy.ConstInSphereSearchSettings._offsetof_insideAndOutside = 0
staticprotected

◆ _offsetof_maxIters

typing mrmeshpy.ConstInSphereSearchSettings._offsetof_maxIters = 8
staticprotected

◆ _offsetof_maxRadius

typing mrmeshpy.ConstInSphereSearchSettings._offsetof_maxRadius = 4
staticprotected

◆ _offsetof_minAngleCos

typing mrmeshpy.ConstInSphereSearchSettings._offsetof_minAngleCos = 16
staticprotected

◆ _offsetof_minShrinkage

typing mrmeshpy.ConstInSphereSearchSettings._offsetof_minShrinkage = 12
staticprotected

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