Language

XFileGuid.Mesh Field (Microsoft.DirectX.Direct3D)

Retrieves the globally unique identifier (GUID) for mesh templates.

Definition

Visual Basic Public Shared Mesh As GuidLeave Site
C# public static GuidLeave Site Mesh;
C++ public: static GuidLeave Site Mesh;
JScript public static var Mesh : GuidLeave Site

Field Value

System.Guid
A GuidLeave Site value that contains the GUID for mesh templates.

This field is read-only. 

Remarks

Mesh templates define a simple mesh. In the following Mesh template, the first array is a list of vertices, and the second array defines the faces of the mesh by indexing into the vertex array.

[C#]
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.
  • nFaces - Number of faces.
  • array MeshFace faces[nFaces] - Array of faces, each of type MeshFace.
  • [ ... ] - Any .x file template which makes the architecture extensible. The Material and TextureFilename templates typically are used.