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 vertices[Vector]; \
DWORD nFaces; \
array faces[Vector]; \
// optional:
meshFaceWraps template; \
meshTextureCoordinates template; \
meshNormals template; \
meshVertexColors template; \
meshMaterialList template; \
}
Where:
- nVertices - Number of vertices.
- array vertices[Vector] - Array of vertices. See Vector.
- nFaces - Number of faces.
- array faces[Vector] - Array of faces. See Vector.
The following data elements are optional:
- meshFaceWraps - If this is not present, wrapping for both u and v defaults to false. See MeshFaceWraps.
- meshTextureCoordinates - If this is not present, there are no texture coordinates. See MeshTextureCoords.
- meshNormals - If this is not present, normals are generated. See MeshNormals.
- meshVertexColors - If this is not present, the colors default to white. See MeshVertexColors.
- meshMaterialList - If this is not present, the material defaults to white. See MeshMaterialList.