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

Go to the source code of this file.

Classes

struct  MRFixSelfIntersectionsSettings
 Setting set for mesh self-intersections fix. More...
 

Typedefs

typedef MR_EXTERN_C_BEGIN enum MRFixSelfIntersectionsMethod MRFixSelfIntersectionsMethod
 Fix method.
 
typedef struct MRFixSelfIntersectionsSettings MRFixSelfIntersectionsSettings
 Setting set for mesh self-intersections fix.
 

Enumerations

enum  MRFixSelfIntersectionsMethod { MRFixSelfIntersectionsMethodRelax , MRFixSelfIntersectionsMethodCutAndFill }
 Fix method. More...
 

Functions

MRMESHC_API MRFixSelfIntersectionsSettings mrFixSelfIntersectionsSettingsNew (void)
 creates a default instance
 
MRMESHC_API MRFaceBitSetmrFixSelfIntersectionsGetFaces (const MRMesh *mesh, MRProgressCallback cb, MRString **errorString)
 Find all self-intersections faces component-wise.
 
MRMESHC_API void mrFixSelfIntersectionsFix (MRMesh *mesh, const MRFixSelfIntersectionsSettings *settings, MRString **errorString)
 Finds and fixes self-intersections per component:
 

Typedef Documentation

◆ MRFixSelfIntersectionsMethod

◆ MRFixSelfIntersectionsSettings

typedef struct MRFixSelfIntersectionsSettings MRFixSelfIntersectionsSettings

Setting set for mesh self-intersections fix.

Enumeration Type Documentation

◆ MRFixSelfIntersectionsMethod

Fix method.

Enumerator
MRFixSelfIntersectionsMethodRelax 

Relax mesh around self-intersections.

MRFixSelfIntersectionsMethodCutAndFill 

Cut and re-fill regions around self-intersections (may fall back to Relax)

Function Documentation

◆ mrFixSelfIntersectionsFix()

MRMESHC_API void mrFixSelfIntersectionsFix ( MRMesh * mesh,
const MRFixSelfIntersectionsSettings * settings,
MRString ** errorString )

Finds and fixes self-intersections per component:

◆ mrFixSelfIntersectionsGetFaces()

MRMESHC_API MRFaceBitSet * mrFixSelfIntersectionsGetFaces ( const MRMesh * mesh,
MRProgressCallback cb,
MRString ** errorString )

Find all self-intersections faces component-wise.

◆ mrFixSelfIntersectionsSettingsNew()

MRMESHC_API MRFixSelfIntersectionsSettings mrFixSelfIntersectionsSettingsNew ( void )

creates a default instance