MeshHelper Class (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

System.Object
   Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshHelper

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
[ExtensionAttribute]
public static class MeshHelper

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The MeshHelper type exposes the following members.

  Platforms Name Description
CalculateNormals(MeshContent, bool) Generates vertex normals by accumulation of triangle face normals. 
CalculateNormals(GeometryContent, bool) Generates vertex normals by accumulation of triangle face normals. 
CalculateTangentFrames(MeshContent, string, string, string) Generate the tangents and binormals (tangent frames) for each vertex in the mesh. 
CalculateTangentFrames(GeometryContent, string, string, string)  
CalculateTangentFrames(IList<Vector3>, IList<int>, IList<Vector3>, IList<Vector2>, out Vector3[], out Vector3[])  
FindSkeleton Search for the root bone of the skeletion. 
FlattenSkeleton Traverses a skeleton depth-first and builds a list of its bones. 
MergeDuplicatePositions Merge any positions in the PositionCollection of the specified mesh that are at a distance less than the specified tolerance from each other. 
MergeDuplicateVertices(GeometryContent) Merge vertices with the same PositionIndices and VertexChannel data within the specified GeometryContent
MergeDuplicateVertices(MeshContent) Merge vertices with the same PositionIndices and VertexChannel data within the Geometry of this mesh. If you want to merge positions too, call MergeDuplicatePositions(MeshContent, float) on your mesh before this function. 
OptimizeForCache  
SwapWindingOrder Reverses the triangle winding order of the mesh. 
TransformScene Transforms the contents of a node and its descendants. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop