Export (0) Print
Expand All

MeshHelper.CalculateNormals Method

Bb195210.note(en-us,XNAGameStudio.41).gifNote
This method is available only when developing for Windows.
Computes new normals for the specified mesh.

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

public static void CalculateNormals (
         MeshContent mesh,
         bool overwriteExistingNormals
)

Parameters

mesh
Type: MeshContent
Mesh containing the normals being computed.
overwriteExistingNormals
Type: Boolean
true if existing normals are to be discarded; false otherwise. Existing normals are searched for as if they are a vertex data channel (of type Vector3 Structure) with the name VertexChannelNames.Normal.

The new normals are stored in vertex data channels (of type Vector3 Structure) with the name VertexChannelNames.Normal.

Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2014 Microsoft