 | GeometryHelper.MergeDuplicatePositions Method (IList<Vector3F>, Single,Int32[]) |
Merges duplicate positions.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntaxpublic static int MergeDuplicatePositions(
IList<Vector3F> positions,
float positionTolerance,
out int[] positionRemap
)
Public Shared Function MergeDuplicatePositions (
positions As IList(Of Vector3F),
positionTolerance As Single,
<OutAttribute> ByRef positionRemap As Integer()
) As Integer
public:
static int MergeDuplicatePositions(
IList<Vector3F>^ positions,
float positionTolerance,
[OutAttribute] array<int>^% positionRemap
)
static member MergeDuplicatePositions :
positions : IList<Vector3F> *
positionTolerance : float32 *
positionRemap : int[] byref -> int
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:
Int32The number of removed positions.
Exceptions
See Also