MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshDoubleLayer.h File Reference
#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 MR_FaceBitSetMR_findOuterLayer (const MR_Mesh *mesh)
 

Typedef Documentation

◆ MR_FaceBitSet

typedef struct MR_FaceBitSet MR_FaceBitSet

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

Function Documentation

◆ MR_findOuterLayer()

MRC_API MR_FaceBitSet * MR_findOuterLayer ( const MR_Mesh * mesh)

given a double-layer mesh with one layer having normals outside and the other layer - inside, finds all faces of the outer layer; the algorithm first detects some seed faces of each layer by casting a ray from triangle's center in both directions along the normal; then remaining faces are redistributed toward the closest seed face Generated from function MR::findOuterLayer. Parameter mesh can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_FaceBitSet_Destroy() to free it when you're done using it.