Assimp  v3.1.1 (June 2014)
assimp::mesh::aiFace Struct Reference

A single face in a mesh, referring to multiple vertices. More...

Public Attributes

uint * mIndices
 Array of the indices defining the face. More...
 
uint mNumIndices
 Number of indices defining this face. More...
 

Detailed Description

A single face in a mesh, referring to multiple vertices.

If mNumIndices is 3, we call the face triangle, for for mNumIndices > 3 it's called polygon.

aiMesh.mPrimitiveTypes can be queried to quickly examine which types of primitive are actually present in a mesh. The aiProcess.SortByPType flag post-processing step splits meshes containing different primitive types (e.g. lines and triangles) in several "clean" submeshes.

Furthermore, there is a configuration option (AI_CONFIG_PP_SBP_REMOVE) to force SortByPType to completely remove specific kinds of primitives from the imported scene. In many cases you'll probably want to set this setting to aiPrimitiveType.LINE | aiPrimitiveType.POINT. Together with the aiProcess.Triangulate flag you can then be sure that mNumIndices is always 3.

Member Data Documentation

uint* assimp::mesh::aiFace::mIndices

Array of the indices defining the face.

The size is given in mNumIndices.

uint assimp::mesh::aiFace::mNumIndices

Number of indices defining this face.

The maximum value for this member is AI_MAX_FACE_INDICES.


The documentation for this struct was generated from the following file: