Partager via


MeshBuilder.MergePositionTolerance Property

Note

This property is available only when developing for Windows.

Gets or sets the tolerance for MergeDuplicatePositions. The default value is 0.

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

Syntax

public float MergePositionTolerance { get; set; }

Property Value

Tolerance value used by the mesh.

Remarks

When MergeDuplicatePositions is enabled, each call to MeshBuilder.CreatePosition (Vector3) checks to see whether a position exists for which each component of that position varies no more than the current value of MergePositionTolerance from the new position. If one is found, the original position will be reused.

Note

Setting MergePositionTolerance does not also enable position merging. This must be enabled explicitly by calling MergeDuplicatePositions.

See Also

Reference

MeshBuilder Class
MeshBuilder Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP