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

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.
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe bool insideAndOutside [get]
 
unsafe float maxRadius [get]
 
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]
 
- Properties inherited from MR.Misc.Object< Const_InSphereSearchSettings >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_InSphereSearchSettings >
bool _IsOwningVal
 

Detailed Description

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

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

◆ 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


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