MeshLib C# Docs
Loading...
Searching...
No Matches
MR.InSphereSearchSettings Class Reference

controls the finding of maximal inscribed sphere in mesh Generated from class MR.InSphereSearchSettings. This is the non-const half of the class. More...

+ Inheritance diagram for MR.InSphereSearchSettings:

Public Member Functions

unsafe InSphereSearchSettings ()
 Constructs an empty (default-constructed) instance.
 
unsafe InSphereSearchSettings (bool insideAndOutside, float maxRadius, int maxIters, float minShrinkage, float minAngleCos)
 Constructs MR.InSphereSearchSettings elementwise.
 
unsafe InSphereSearchSettings (MR.Const_InSphereSearchSettings _other)
 Generated from constructor MR.InSphereSearchSettings.InSphereSearchSettings.
 
 InSphereSearchSettings (InSphereSearchSettings _other)
 Generated from constructor MR.InSphereSearchSettings.InSphereSearchSettings.
 
unsafe MR.InSphereSearchSettings assign (MR.Const_InSphereSearchSettings _other)
 Generated from method MR.InSphereSearchSettings.operator=.
 

Properties

new unsafe ref bool insideAndOutside [get]
 
new unsafe ref float maxRadius [get]
 
new unsafe ref int maxIters [get]
 maximum number of shrinking iterations for one triangle
 
new unsafe ref float minShrinkage [get]
 iterations stop if next radius is larger than minShrinkage times previous radius
 
new unsafe ref float minAngleCos [get]
 

Detailed Description

controls the finding of maximal inscribed sphere in mesh Generated from class MR.InSphereSearchSettings. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ InSphereSearchSettings() [1/4]

unsafe MR.InSphereSearchSettings.InSphereSearchSettings ( )
inline

Constructs an empty (default-constructed) instance.

◆ InSphereSearchSettings() [2/4]

unsafe MR.InSphereSearchSettings.InSphereSearchSettings ( bool insideAndOutside,
float maxRadius,
int maxIters,
float minShrinkage,
float minAngleCos )
inline

Constructs MR.InSphereSearchSettings elementwise.

◆ InSphereSearchSettings() [3/4]

unsafe MR.InSphereSearchSettings.InSphereSearchSettings ( MR.Const_InSphereSearchSettings _other)
inline

Generated from constructor MR.InSphereSearchSettings.InSphereSearchSettings.

◆ InSphereSearchSettings() [4/4]

MR.InSphereSearchSettings.InSphereSearchSettings ( InSphereSearchSettings _other)
inline

Generated from constructor MR.InSphereSearchSettings.InSphereSearchSettings.

Member Function Documentation

◆ assign()

unsafe MR.InSphereSearchSettings MR.InSphereSearchSettings.assign ( MR.Const_InSphereSearchSettings _other)
inline

Generated from method MR.InSphereSearchSettings.operator=.

Property Documentation

◆ insideAndOutside

new unsafe ref bool MR.InSphereSearchSettings.insideAndOutside
get

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

◆ maxIters

new unsafe ref int MR.InSphereSearchSettings.maxIters
get

maximum number of shrinking iterations for one triangle

◆ maxRadius

new unsafe ref float MR.InSphereSearchSettings.maxRadius
get

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

◆ minAngleCos

new unsafe ref float MR.InSphereSearchSettings.minAngleCos
get

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

◆ minShrinkage

new unsafe ref float MR.InSphereSearchSettings.minShrinkage
get

iterations stop if next radius is larger than minShrinkage times previous radius


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