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 struct MR_FaceBitSet MR_FaceBitSet |
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++.