MeshLib Documentation
Loading...
Searching...
No Matches
MR::MeshApproxRelaxParams Struct Reference

#include <MRMeshRelax.h>

+ Inheritance diagram for MR::MeshApproxRelaxParams:

Public Attributes

float surfaceDilateRadius { 0.0f }
 
RelaxApproxType type { RelaxApproxType::Planar }
 
- Public Attributes inherited from MR::MeshRelaxParams
bool hardSmoothTetrahedrons { false }
 move all region vertices with exactly three neighbor vertices in the center of the neighbors
 
const VertScalars * weights = nullptr
 weight for each vertex. By default, all the vertices have equal weights.
 
- Public Attributes inherited from MR::RelaxParams
int iterations = 1
 number of iterations
 
const VertBitSet * region = nullptr
 region to relax
 
float force = 0.5f
 speed of relaxing, typical values (0.0, 0.5]
 
bool limitNearInitial = false
 if true then maximal displacement of each point during denoising will be limited
 
float maxInitialDist = 0
 maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false
 
MR_BIND_IGNORE int _padding
 

Member Data Documentation

◆ surfaceDilateRadius

float MR::MeshApproxRelaxParams::surfaceDilateRadius { 0.0f }

radius to find neighbors by surface 0.0f - default = 1e-3 * sqrt(surface area)

◆ type

RelaxApproxType MR::MeshApproxRelaxParams::type { RelaxApproxType::Planar }

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