Module gltf::mesh [] [src]

Contains Mesh and other related data structures.

Structs

Attributes

An Iterator that visits the attributes of a Primitive.

IndicesU32

Index data coerced into u32 values.

Mesh

A set of primitives to be rendered. A node can contain one or more meshes and its transform places the meshes in the scene.

MorphTargets

Morph targets.

NormalDisplacements

XYZ vertex normal displacements of type [f32; 3].

Normals

XYZ vertex normals of type [f32; 3].

PositionDisplacements

XYZ vertex position displacements of type [f32; 3].

Positions

XYZ vertex positions of type [f32; 3].

Primitive

Geometry to be rendered with the given material.

Primitives

An Iterator that visits the primitives of a Mesh.

TangentDisplacements

XYZ vertex tangent displacements of type [f32; 3].

Tangents

XYZW vertex tangents of type [f32; 4] where the w component is a sign value (-1 or +1) indicating the handedness of the tangent basis.

TexCoordsF32

Texture co-ordinates coerced into [f32; 2] values.

Enums

Attribute

Vertex attribute data.

Colors

Vertex colors.

Indices

Index data.

Joints

Vertex joints. Refer to the documentation on morph targets and skins for more information.

Mode

The type of primitives to render.

Semantic

Vertex attribute semantic name.

TexCoords

UV texture co-ordinates.

Weights

Weights, Refer to the documentation on morph targets for more information.