MNFace Flags

MNFace Flags

Module description

Macros

#define MN_FACE_OPEN_REGION   (1<<8)
 This face is part of a region of the mesh that is not closed, i.e. More...
 
#define MN_FACE_CHECKED   (1<<9)
 
#define MN_FACE_CHANGED   (1<<10)
 This flag can be cleared on all faces before an operation that moves some of the vertices of an MNMesh, then set for each face touching one of the moved vertices. More...
 
#define MN_FACE_CULLED   (1<<11)
 Used to indicate a face has been culled during hit-testing. More...
 
#define MN_FACE_CREATED   (1<<12)
 Used to indicate a face has been created by an operation. More...
 

Macro Definition Documentation

#define MN_FACE_OPEN_REGION   (1<<8)

This face is part of a region of the mesh that is not closed, i.e.

there are 1-sided edges. This means that the mesh is not a solid object, it has gaps or holes.

#define MN_FACE_CHECKED   (1<<9)

For recursive face-and-neighbor-checking

#define MN_FACE_CHANGED   (1<<10)

This flag can be cleared on all faces before an operation that moves some of the vertices of an MNMesh, then set for each face touching one of the moved vertices.

This tells the parent MNMesh that these faces may need to have information such as triangulation recomputed. This flag is set by the MNMesh::SabinDoo() method.

#define MN_FACE_CULLED   (1<<11)

Used to indicate a face has been culled during hit-testing.

#define MN_FACE_CREATED   (1<<12)

Used to indicate a face has been created by an operation.

For example, this flag is set by the MNMesh::QuadChamfer method on faces that are part of the chamfer. Methods that use this flag will clear it on all faces before performing operations, so that only newly-created faces will have it set.