MeshHelper.MergeDuplicatePositions Method
Processes the PositionCollection collection of the specified mesh, merging any values that are closer together than the specified tolerance threshold.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
public static void MergeDuplicatePositions (
MeshContent mesh,
float tolerance
)
Parameters
- mesh
Mesh to be processed. - tolerance
Tolerance to be used when determining duplicate positions. Pass a value of 0 to merge only those values that are exactly identical.
Remarks
This method also updates the PositionIndices data to match the modified position table. This should generally be followed by a call to MergeDuplicateVertices.
See Also
Reference
MeshHelper Class
MeshHelper Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista