MeshLib
 
Loading...
Searching...
No Matches
MR::InSphereSearchSettings Struct Reference

controls the finding of maximal inscribed sphere in mesh More...

#include <MRMeshThickness.h>

Public Attributes

bool insideAndOutside = false
 
float maxRadius = 1
 
int maxIters = 16
 maximum number of shrinking iterations for one triangle
 
float minShrinkage = 0.99999f
 iterations stop if next radius is larger than minShrinkage times previous radius
 

Detailed Description

controls the finding of maximal inscribed sphere in mesh

Member Data Documentation

◆ insideAndOutside

bool MR::InSphereSearchSettings::insideAndOutside = false

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

int MR::InSphereSearchSettings::maxIters = 16

maximum number of shrinking iterations for one triangle

◆ maxRadius

float MR::InSphereSearchSettings::maxRadius = 1

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

◆ minShrinkage

float MR::InSphereSearchSettings::minShrinkage = 0.99999f

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


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