#include <MRMesh/MRMeshFixer.h>
◆ Mode
| Enumerator |
|---|
| Decimate | use decimation only to fix degeneracies
|
| Remesh | if decimation does not succeed, perform subdivision too
|
| RemeshPatch | if both decimation and subdivision does not succeed, removes degenerate areas and fills occurred holes
|
◆ cb
◆ criticalTriAspectRatio
| float MR::FixMeshDegeneraciesParams::criticalTriAspectRatio { 1e4f } |
the algorithm will ignore dihedral angle check if one of triangles had aspect ratio equal or more than this value; and the algorithm will permit temporary increase in aspect ratio after collapse, if before collapse one of the triangles had larger aspect ratio
◆ maxAngleChange
| float MR::FixMeshDegeneraciesParams::maxAngleChange { PI_F / 3 } |
Permit edge flips if it does not change dihedral angle more than on this value.
◆ maxDeviation
| float MR::FixMeshDegeneraciesParams::maxDeviation { 0.0f } |
maximum permitted deviation from the original surface
◆ mimicPatch
| bool MR::FixMeshDegeneraciesParams::mimicPatch = false |
trying to stay close to initial surface when patching also disables smoothing on patch
◆ protectAttributeBorders
| bool MR::FixMeshDegeneraciesParams::protectAttributeBorders = true |
only for fixMeshDataDegeneracies (fixMeshDegeneracies ignores it): never flip the edges between faces with different colors or texture ids, the selected edges and the creases, so that the fixing does not move them, but their vertices can still shift by up to max( maxDeviation, tinyEdgeLength ) in the collapses of nearby edges; a degenerate triangle with the longest edge among them is then fixed only if its opposite vertex is within max( maxDeviation, tinyEdgeLength ) from that edge, or by Mode::RemeshPatch
◆ region
| FaceBitSet* MR::FixMeshDegeneraciesParams::region = nullptr |
degenerations will be fixed only in given region, it is updated during the operation
◆ Remesh
◆ stabilizer
| float MR::FixMeshDegeneraciesParams::stabilizer = 1e-6f |
Small stabilizer is important to achieve good results on completely planar mesh parts, if your mesh is not-planer everywhere, then you can set it to zero
◆ tinyEdgeLength
| float MR::FixMeshDegeneraciesParams::tinyEdgeLength { 0.0f } |
edges not longer than this value will be collapsed ignoring normals and aspect ratio checks
The documentation for this struct was generated from the following file: