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 |
Generated from: MR::InSphereSearchSettings controls the finding of maximal inscribed sphere in mesh
| 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
| 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.
| int mrmeshpy.ConstInSphereSearchSettings.maxIters | ( | self | ) |
maximum number of shrinking iterations for one triangle
Reimplemented in mrmeshpy.InSphereSearchSettings, and mrmeshpy.InSphereSearchSettings.
| 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.
| 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.
| float mrmeshpy.ConstInSphereSearchSettings.minShrinkage | ( | self | ) |
iterations stop if next radius is larger than minShrinkage times previous radius
Reimplemented in mrmeshpy.InSphereSearchSettings, and mrmeshpy.InSphereSearchSettings.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |