MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshPatch.h File Reference
#include <MRCMisc/exports.h>

Go to the source code of this file.

Functions

MRC_API MR_FaceBitSet * MR_patchMesh (MR_Mesh *mesh, const MR_FaceBitSet *patchBS, const MR_FillHoleNicelySettings *settings)
MRC_API MR_FaceBitSet * MR_patchMeshByGroups (MR_Mesh *mesh, const MR_FaceBitSet *faces, const float *angleThreshold, const MR_FillHoleNicelySettings *settings)

Function Documentation

◆ MR_patchMesh()

MRC_API MR_FaceBitSet * MR_patchMesh ( MR_Mesh * mesh,
const MR_FaceBitSet * patchBS,
const MR_FillHoleNicelySettings * settings )

removes patchBS from mesh and fills every hole appeared with new triangles using fillHoleNicely and settings; if 'settings.subdivideSettings.maxEdgeLen' <= 0 uses patch boundary average edge length * 1.5f returns new faces Generated from function MR::patchMesh. Parameter mesh can not be null. It is a single object. Parameter patchBS can not be null. It is a single object. Parameter settings is a single object. Parameter settings has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_FaceBitSet_Destroy() to free it when you're done using it.

◆ MR_patchMeshByGroups()

MRC_API MR_FaceBitSet * MR_patchMeshByGroups ( MR_Mesh * mesh,
const MR_FaceBitSet * faces,
const float * angleThreshold,
const MR_FillHoleNicelySettings * settings )

splits given faces on groups separated by sharp edges (see MeshComponents::getAllComponentsMapBySharpEdges), then removes each group and fills the appeared holes separately using patchMesh; if patch subdivision splits a face of a not yet patched group or of an earlier patch, the new half is added to that group or to the result

Returns
all new faces Generated from function MR::patchMeshByGroups. Parameter mesh can not be null. It is a single object. Parameter faces can not be null. It is a single object. Parameter angleThreshold has a default argument: 0.5f, pass a null pointer to use it. Parameter settings is a single object. Parameter settings has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_FaceBitSet_Destroy() to free it when you're done using it.