MeshBuilder.FinishMesh Method

Note

This method is available only when developing for Windows.

Ends the creation of a mesh.

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

Syntax

public MeshContent FinishMesh ()

Return Value

Resultant mesh.

Remarks

Once called, FinishMesh optimizes the related mesh by calling MergeDuplicateVertices. In addition, mesh normals are generated (by calling CalculateNormals) if none currently exist.

Note

The related MeshBuilder object can no longer be used after this function is called.

See Also

Reference

MeshBuilder Class
MeshBuilder Members
StartMesh
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP