MiscFunctions..::..SortAlongDirection Method

Returns a list of sorted vertices along a set direction. Ties are broken by direction[1] then direction[2] if available.

Namespace:  TVGL
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static void SortAlongDirection(
	double[][] directions,
	List<Vertex> vertices,
	out List<Vertex> sortedVertices,
	out List<int[]> duplicateRanges
)
Public Shared Sub SortAlongDirection ( _
	directions As Double()(), _
	vertices As List(Of Vertex), _
	<OutAttribute> ByRef sortedVertices As List(Of Vertex), _
	<OutAttribute> ByRef duplicateRanges As List(Of Integer()) _
)
public:
static void SortAlongDirection(
	array<array<double^>^>^ directions, 
	List<Vertex^>^ vertices, 
	[OutAttribute] List<Vertex^>^% sortedVertices, 
	[OutAttribute] List<array<int^>^>^% duplicateRanges
)

Parameters

directions
Type: array<array<Double>[]()[][]>[]()[][]
The directions.
vertices
Type: List<(Of <(<'Vertex>)>)>
The vertices.
sortedVertices
Type: List<(Of <(<'Vertex>)>)>%
The sorted vertices.
duplicateRanges
Type: List<(Of <(<'array<Int32>[]()[][]>)>)>%
The duplicate ranges.

Exceptions


ExceptionCondition
Exception Must provide between 1 to 3 direction vectors or Must provide between 1 to 3 direction vectors