MeshHelper.MergeDuplicatePositions Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Merge any positions in the PositionCollection of the specified mesh that are at a distance less than the specified tolerance from each other.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static void MergeDuplicatePositions(
	MeshContent mesh, 
	float tolerance
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

mesh
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshContent
Mesh to be processed.
tolerance
Type: System.Single
Tolerance value that determines how close positions must be to each other to be merged.
This method will also update the PositionIndices in the GeometryContent of the specified mesh.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop