MeshHelper.MergeDuplicatePositions Method
Note
This method is available only when developing for Windows.
Processes the PositionCollection collection of the specified mesh, merging any values that are closer together than the specified tolerance threshold.
Syntax
'Declaration
Public Shared Sub MergeDuplicatePositions ( _
mesh As MeshContent, _
tolerance As Single _
)
public static void MergeDuplicatePositions (
MeshContent mesh,
float tolerance
)
public:
static void MergeDuplicatePositions(
MeshContent mesh,
float tolerance
)
Parameters
- mesh
Type: MeshContent
Mesh to be processed. - tolerance
Type: Single
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.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
MeshHelper Class
MeshHelper Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP