MeshLib
 
Loading...
Searching...
No Matches
MRMeshDecimate.h File Reference
#include "MRMeshFwd.h"

Go to the source code of this file.

Classes

struct  MRDecimateSettings
 parameters for mrDecimateMesh More...
 
struct  MRDecimateResult
 results of mrDecimateMesh More...
 
struct  MRResolveMeshDegenSettings
 parameters for mrResolveMeshDegenerations More...
 
struct  MRRemeshSettings
 parameters for mrRemesh More...
 

Typedefs

typedef MR_EXTERN_C_BEGIN enum MRDecimateStrategy MRDecimateStrategy
 Defines the order of edge collapses inside Decimate algorithm.
 
typedef struct MRDecimateSettings MRDecimateSettings
 parameters for mrDecimateMesh
 
typedef struct MRDecimateResult MRDecimateResult
 results of mrDecimateMesh
 
typedef struct MRResolveMeshDegenSettings MRResolveMeshDegenSettings
 parameters for mrResolveMeshDegenerations
 
typedef struct MRRemeshSettings MRRemeshSettings
 parameters for mrRemesh
 

Enumerations

enum  MRDecimateStrategy { MRDecimateStrategyMinimizeError = 0 , MRDecimateStrategyShortestEdgeFirst }
 Defines the order of edge collapses inside Decimate algorithm. More...
 

Functions

MRMESHC_API MRDecimateSettings mrDecimateSettingsNew (void)
 initializes a default instance
 
MRMESHC_API MRDecimateResult mrDecimateMesh (MRMesh *mesh, const MRDecimateSettings *settings)
 Collapse edges in mesh region according to the settings.
 
MRMESHC_API MRResolveMeshDegenSettings mrResolveMeshDegenSettingsNew (void)
 initializes a default instance
 
MRMESHC_API bool mrResolveMeshDegenerations (MRMesh *mesh, const MRResolveMeshDegenSettings *settings)
 
MRMESHC_API MRRemeshSettings mrRemeshSettingsNew (void)
 initializes a default instance
 
MRMESHC_API bool mrRemesh (MRMesh *mesh, const MRRemeshSettings *settings)
 Splits too long and eliminates too short edges from the mesh.
 

Typedef Documentation

◆ MRDecimateResult

typedef struct MRDecimateResult MRDecimateResult

results of mrDecimateMesh

◆ MRDecimateSettings

typedef struct MRDecimateSettings MRDecimateSettings

parameters for mrDecimateMesh

◆ MRDecimateStrategy

Defines the order of edge collapses inside Decimate algorithm.

◆ MRRemeshSettings

typedef struct MRRemeshSettings MRRemeshSettings

parameters for mrRemesh

◆ MRResolveMeshDegenSettings

typedef struct MRResolveMeshDegenSettings MRResolveMeshDegenSettings

Enumeration Type Documentation

◆ MRDecimateStrategy

Defines the order of edge collapses inside Decimate algorithm.

Enumerator
MRDecimateStrategyMinimizeError 

the next edge to collapse will be the one that introduced minimal error to the surface

MRDecimateStrategyShortestEdgeFirst 

the next edge to collapse will be the shortest one

Function Documentation

◆ mrDecimateMesh()

MRMESHC_API MRDecimateResult mrDecimateMesh ( MRMesh * mesh,
const MRDecimateSettings * settings )

Collapse edges in mesh region according to the settings.

◆ mrDecimateSettingsNew()

MRMESHC_API MRDecimateSettings mrDecimateSettingsNew ( void )

initializes a default instance

◆ mrRemesh()

MRMESHC_API bool mrRemesh ( MRMesh * mesh,
const MRRemeshSettings * settings )

Splits too long and eliminates too short edges from the mesh.

◆ mrRemeshSettingsNew()

MRMESHC_API MRRemeshSettings mrRemeshSettingsNew ( void )

initializes a default instance

◆ mrResolveMeshDegenerations()

MRMESHC_API bool mrResolveMeshDegenerations ( MRMesh * mesh,
const MRResolveMeshDegenSettings * settings )

Resolves degenerate triangles in given mesh This function performs decimation, so it can affect topology

Returns
true if the mesh has been changed

◆ mrResolveMeshDegenSettingsNew()

MRMESHC_API MRResolveMeshDegenSettings mrResolveMeshDegenSettingsNew ( void )

initializes a default instance