MeshLib C# Docs
Loading...
Searching...
No Matches

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

Inheritance diagram for MR.Const_InSphereSearchSettings:

Classes

struct  _Underlying

Public Member Functions

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

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

unsafe bool * __ref_storage_insideAndOutside
unsafe float * __ref_storage_maxRadius
unsafe int * __ref_storage_maxIters
unsafe float * __ref_storage_minShrinkage
unsafe float * __ref_storage_minAngleCos

Properties

unsafe bool 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
unsafe float 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 } )
unsafe int maxIters [get]
 maximum number of shrinking iterations for one triangle
unsafe float minShrinkage [get]
 iterations stop if next radius is larger than minShrinkage times previous radius
unsafe float 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

Detailed Description

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

Constructor & Destructor Documentation

◆ Const_InSphereSearchSettings() [1/4]

unsafe MR.Const_InSphereSearchSettings.Const_InSphereSearchSettings ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_InSphereSearchSettings() [2/4]

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

Constructs MR.InSphereSearchSettings elementwise.

◆ Const_InSphereSearchSettings() [3/4]

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

◆ Const_InSphereSearchSettings() [4/4]

MR.Const_InSphereSearchSettings.Const_InSphereSearchSettings ( InSphereSearchSettings _other)
inline

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_InSphereSearchSettings.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_InSphereSearchSettings.Dispose ( bool disposing)
inlineprotectedvirtual

Member Data Documentation

◆ __ref_storage_insideAndOutside

unsafe bool* MR.Const_InSphereSearchSettings.__ref_storage_insideAndOutside
protected

◆ __ref_storage_maxIters

unsafe int* MR.Const_InSphereSearchSettings.__ref_storage_maxIters
protected

◆ __ref_storage_maxRadius

unsafe float* MR.Const_InSphereSearchSettings.__ref_storage_maxRadius
protected

◆ __ref_storage_minAngleCos

unsafe float* MR.Const_InSphereSearchSettings.__ref_storage_minAngleCos
protected

◆ __ref_storage_minShrinkage

unsafe float* MR.Const_InSphereSearchSettings.__ref_storage_minShrinkage
protected

Property Documentation

◆ insideAndOutside

unsafe bool MR.Const_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

unsafe int MR.Const_InSphereSearchSettings.maxIters
get

maximum number of shrinking iterations for one triangle

◆ maxRadius

unsafe float MR.Const_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

unsafe float MR.Const_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

unsafe float MR.Const_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: