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

#include <MRPositionVertsSmoothly.h>

Public Attributes

const VertBitSetregion = nullptr
 vertices to be moved by the algorithm, nullptr means all valid vertices
 
UndirectedEdgeMetric dist
 target distance of each edge in the mesh (for at least one edge's vertex in the region)
 
int numIters = 10
 the algorithm is iterative, the more iterations the closer result to exact solution
 
float stabilizer = 3
 too small number here can lead to instability, too large - to slow convergence
 
float maxSumNegW = 0.1f
 maximum sum of minus negative weights, if it is exceeded then stabilizer is increased automatically
 
FacePredicate isInverted
 if this predicated is given, then all inverted faces will be converted in degenerate faces at the end of each iteration
 

Member Data Documentation

◆ dist

UndirectedEdgeMetric MR::SpacingSettings::dist

target distance of each edge in the mesh (for at least one edge's vertex in the region)

◆ isInverted

FacePredicate MR::SpacingSettings::isInverted

if this predicated is given, then all inverted faces will be converted in degenerate faces at the end of each iteration

◆ maxSumNegW

float MR::SpacingSettings::maxSumNegW = 0.1f

maximum sum of minus negative weights, if it is exceeded then stabilizer is increased automatically

◆ numIters

int MR::SpacingSettings::numIters = 10

the algorithm is iterative, the more iterations the closer result to exact solution

◆ region

const VertBitSet* MR::SpacingSettings::region = nullptr

vertices to be moved by the algorithm, nullptr means all valid vertices

◆ stabilizer

float MR::SpacingSettings::stabilizer = 3

too small number here can lead to instability, too large - to slow convergence


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