MeshLib
 
Loading...
Searching...
No Matches
MRMeshDecimate.h File Reference
#include "MRMeshFwd.h"
#include "MRProgressCallback.h"
#include "MRConstants.h"
#include <cfloat>
#include <climits>
#include <functional>

Go to the source code of this file.

Classes

struct  MR::DecimateSettings
 Parameters structure for MR::decimateMesh. More...
 
struct  MR::DecimateResult
 Results of MR::decimateMesh. More...
 
struct  MR::ResolveMeshDegenSettings
 
struct  MR::RemeshSettings
 

Namespaces

namespace  MR
 

Enumerations

enum  MR::DecimateStrategy { MR::MinimizeError , MR::ShortestEdgeFirst }
 Defines the order of edge collapses inside Decimate algorithm. More...
 

Functions

MRMESH_API DecimateResult MR::decimateMesh (Mesh &mesh, const DecimateSettings &settings={})
 Collapse edges in mesh region according to the settings.
 
MRMESH_API QuadraticForm3f MR::computeFormAtVertex (const MeshPart &mp, VertId v, float stabilizer)
 Computes quadratic form at given vertex of the initial surface before decimation.
 
MRMESH_API Vector< QuadraticForm3f, VertIdMR::computeFormsAtVertices (const MeshPart &mp, float stabilizer)
 Computes quadratic forms at every vertex of mesh part before decimation.
 
MRMESH_API bool MR::resolveMeshDegenerations (Mesh &mesh, const ResolveMeshDegenSettings &settings={})
 Resolves degenerate triangles in given mesh.
 
MRMESH_API bool MR::resolveMeshDegenerations (Mesh &mesh, int maxIters, float maxDeviation=0, float maxAngleChange=PI_F/3, float criticalAspectRatio=10000)
 
MRMESH_API bool MR::remesh (Mesh &mesh, const RemeshSettings &settings)