MeshLib Documentation
Loading...
Searching...
No Matches
MRFillHoleNicely.h File Reference
#include "MRMeshFillHole.h"

Go to the source code of this file.

Classes

struct  MRFillHoleNicelyParams
 

Typedefs

typedef MR_EXTERN_C_BEGIN enum MREdgeWeights MREdgeWeights
 
typedef struct MRFillHoleNicelyParams MRFillHoleNicelyParams
 

Enumerations

enum  MREdgeWeights { MREdgeWeightsUnit , MREdgeWeightsCotan , MREdgeWeightsCotanTimesLength , MREdgeWeightsCotanWithAreaEqWeight }
 

Functions

MRMESHC_API MRFillHoleNicelyParams mrFillHoleNicelyParamsNew (void)
 
MRMESHC_API MRFaceBitSetmrFillHoleNicely (MRMesh *mesh, MREdgeId holeEdge_, const MRFillHoleNicelyParams *params)
 

Typedef Documentation

◆ MREdgeWeights

◆ MRFillHoleNicelyParams

typedef struct MRFillHoleNicelyParams MRFillHoleNicelyParams

Enumeration Type Documentation

◆ MREdgeWeights

Enumerator
MREdgeWeightsUnit 

all edges have same weight=1

MREdgeWeightsCotan 

edge weight depends on local geometry and uses cotangent values

MREdgeWeightsCotanTimesLength 

[deprecated] edge weight is equal to edge length times cotangent weight

MREdgeWeightsCotanWithAreaEqWeight 

cotangent edge weights and equation weights inversely proportional to square root of local area

Function Documentation

◆ mrFillHoleNicely()

MRMESHC_API MRFaceBitSet * mrFillHoleNicely ( MRMesh * mesh,
MREdgeId holeEdge_,
const MRFillHoleNicelyParams * params )

fills a hole in mesh specified by one of its edge, optionally subdivides new patch on smaller triangles, optionally make smooth connection with existing triangles outside the hole

Returns
triangles of the patch

◆ mrFillHoleNicelyParamsNew()

MRMESHC_API MRFillHoleNicelyParams mrFillHoleNicelyParamsNew ( void )