MeshBuilder.MergeDuplicatePositions Property
Gets or sets the current value for position merging of the mesh.
This can be used to preserve topology of unique vertices.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
public bool MergeDuplicatePositions { get; set; }
Property Value
Current value of the property.
Remarks
If this property is enabled, every call to MeshBuilder.CreatePosition (Vector3) will check 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 is used.
This property should be used in conjunction with MergePositionTolerance. The following code demonstrates this:
MeshBuilder b = MeshBuilder.StartMesh( "bill" );
b.MergeDuplicatePositions = true;
b.MergePositionTolerance = 1.0f;
// Additional mesh building code here.
MeshContent mesh = b.FinishMesh();
See Also
Reference
MeshBuilder Class
MeshBuilder Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows XP SP2, Windows Vista