MeshBuilder.FinishMesh Method

Bb196910.note(en-us,XNAGameStudio.41).gifNote
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)

public MeshContent FinishMesh ()

Return Value

Resultant mesh.

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

Bb196910.note(en-us,XNAGameStudio.41).gifNote
The related MeshBuilder object can no longer be used after this function is called.

Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: