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

Go to the source code of this file.

Typedefs

typedef struct MR_FaceBitSet MR_FaceBitSet
 
typedef struct MR_Mesh MR_Mesh
 

Functions

MRC_API void MR_straightenBoundary (MR_Mesh *mesh, MR_EdgeId bd, float minNeiNormalsDot, float maxTriAspectRatio, MR_FaceBitSet *newFaces)
 

Typedef Documentation

◆ MR_FaceBitSet

typedef struct MR_FaceBitSet MR_FaceBitSet

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

Function Documentation

◆ MR_straightenBoundary()

MRC_API void MR_straightenBoundary ( MR_Mesh * mesh,
MR_EdgeId bd,
float minNeiNormalsDot,
float maxTriAspectRatio,
MR_FaceBitSet * newFaces )

adds triangles along the boundary to straighten it;

new triangle is added only if 1) aspect ratio of the new triangle is at most maxTriAspectRatio, 2) dot product of its normal with neighbor triangles is at least minNeiNormalsDot. Generated from function MR::straightenBoundary. Parameter mesh can not be null. It is a single object. Parameter newFaces defaults to a null pointer in C++.