This documentation is archived and is not being maintained.

MeshContent Class

Provides properties and methods that define various aspects of a mesh.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

public class MeshContent : NodeContent

A mesh has the following characteristics:

  • It is not jointed. For example, the wheels of a car are separate meshes from the body mesh of the same car.
  • It may contain multiple materials. For example, the car body can be a single mesh even if the windshield component uses a different texture and shader as compared to the leather seat component of the car body.
  • Vertices containing different channels may be mixed in a single mesh. For example, the seat geometry includes tangent vectors but the windshield does not. However, using a single mesh preserves topological continuity (shared vertex identities) across material and vertex format boundaries.

Build content in XNA Game Studio for Windows Phone 7, Xbox 360, Windows 7, Windows Vista, and Windows XP.
Show: