FBXUtility Class Reference

Description

Various helper methods to use during FBX import.

Static methods

static void normalsFromSmoothing (const Vector< Vector3 > &positions, const Vector< int > &indices, const Vector< int > &smoothing, Vector< Vector3 > &normals)
 Calculates per-index normals based on the provided smoothing groups. More...
 
static void splitVertices (const FBXImportMesh &source, FBXImportMesh &dest)
 Find vertices in the source mesh that have different attributes but have the same indexes, and splits them into two or more vertexes. More...
 
static void flipWindingOrder (FBXImportMesh &input)
 Flips the triangle window order for all the triangles in the mesh. More...
 

Method documentation

static void flipWindingOrder ( FBXImportMesh input)
static

Flips the triangle window order for all the triangles in the mesh.

static void normalsFromSmoothing ( const Vector< Vector3 > &  positions,
const Vector< int > &  indices,
const Vector< int > &  smoothing,
Vector< Vector3 > &  normals 
)
static

Calculates per-index normals based on the provided smoothing groups.

static void splitVertices ( const FBXImportMesh source,
FBXImportMesh dest 
)
static

Find vertices in the source mesh that have different attributes but have the same indexes, and splits them into two or more vertexes.

Mesh with split vertices is output to dest.

Parameters
[in]sourceSource mesh to perform the split on. It's expected the position values are per-vertex, and all other attributes are per-index.
[in]destOutput mesh with split vertices. Both vertex positions and attributes are per-vertex.