Facebook Twitter YouTube

class Mesh

Defined in:  TSMesh.h
The Mesh class encapsulates data for a single geometrical mesh.
Definition

class Mesh : public Packable

Member Functions
Mesh::GetVertexCount Returns the number of vertices in a mesh.
Mesh::GetPrimitiveCount Returns the number of primitives in a mesh.
Mesh::GetArray Returns a pointer to one of the geometrical arrays stored in a mesh.
Mesh::GetArrayDescriptor Returns the descriptor for one of the geometrical arrays stored in a mesh.
Mesh::AllocateStorage Allocates memory for the contents of a mesh.
Mesh::CopyMesh Copies the contents of a mesh.
Mesh::CopyRigidMesh Copies the contents of a mesh and removes skinning data.
Mesh::TransformMesh Transforms the geometrical data in a mesh.
Mesh::TranslateMesh Translates the geometrical data in a mesh.
Mesh::ScaleMesh Scales the geometrical data in a mesh.
Mesh::InvertMesh Inverts the geometrical data in a mesh.
Mesh::WeldMesh Welds the surfaces a mesh together.
Mesh::MendMesh Mends the vertices in each surface of a mesh.
Mesh::UnifyMesh Unifies duplicate vertices in a mesh.
Mesh::BuildNormalArray Builds the array of normal vectors for a mesh.
Mesh::BuildTangentArray Builds the array of tangent vectors for a mesh.
Constructor

Mesh();

Description
The Mesh class serves as a container that holds all of the geometric data for an individual triangle mesh. The geometric data comprises various vertex attribute arrays, a triangle array, optional skinning information, and optional surface data (for multiple material assignment). One or more Mesh objects are stored in a GeometryObject structure as the raw data for one or more levels of detail making up a single instanceable geometry in the world.
Base Classes
Packable Meshes can be packed for storage in resources.
See Also

GeometryObject