Partager via


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.Graphics (in microsoft.xna.framework.graphics.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

Reference

ModelMesh Class
ModelMesh Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP