ModelMesh.MeshParts Property
Gets the ModelMeshPart objects that make up this mesh. Each part of a mesh is composed of a set of primitives that share the same material.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public ModelMeshPartCollection MeshParts { get; }
Property Value
The ModelMeshPart objects that make up this mesh.
Remarks
It is not necessary to use this class directly. In advanced rendering scenarios, it is possible to draw using MeshParts properties in combination with the vertex and index buffers on ModelMesh. However, in most cases, ModelMesh.Draw will be sufficient.
See Also
Tasks
Reference
ModelMesh Class
ModelMesh Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista