Click or drag to resize
DigitalRuneGeometryHelperMergeDuplicatePositions Method (IListVector3F, 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.GenericIListVector3F
In: The positions.
Out: The positions without duplicates.
positionTolerance
Type: SystemSingle
The position tolerance. If the distance between two positions is less than this value, the positions are merged.
positionRemap
Type: SystemInt32
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 if no positions were removed.

Return Value

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