Click or drag to resize
DigitalRuneGeometryHelper.MergeDuplicatePositions Method (IList<Vector3F>, Single,Int32[])
Merges duplicate positions.

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static int MergeDuplicatePositions(
	IList<Vector3F> positions,
	float positionTolerance,
	out int[] positionRemap
)

Parameters

positions
Type: System.Collections.Generic.IList<Vector3F>
In: The positions.
Out: The positions without duplicates.
positionTolerance
Type: System.Single
The position tolerance. If the distance between two positions is less than this value, the positions are merged.
positionRemap
Type:System.Int32[]
An array with one entry per position that describes how to reorder the original positions. This maps the original position index to the new position index. The array is null if no positions were removed.

Return Value

Type: Int32
The number of removed positions.
Exceptions
ExceptionCondition
ArgumentNullExceptionpositions is null.
ArgumentOutOfRangeExceptionpositionTolerance is negative or 0.
See Also