Mesh
Defines a simple mesh. The first array is a list of vertices, and the second array defines the faces of the mesh by indexing into the vertex array.
template Mesh
{
<3D82AB44-62DA-11CF-AB39-0020AF71E433>
DWORD nVertices;
array Vector vertices[nVertices];
DWORD nFaces;
array MeshFace faces[nFaces];
[...]
}
Where:
- nVertices - Number of vertices.
- array Vector vertices[nVertices] - Array of vertices, each of type Vector. See Vector.
- nFaces - Number of faces.
- array MeshFace faces[nFaces] - Array of faces, each of type MeshFace. See MeshFace.
- [ ... ] - Any .x file template can be used here. This makes the architecture extensible. Material and TextureFilename templates are typically used.
See also