TriangulatePolygon..::..OrderLoops Method

Determines the order of a set of loops and their positive or negative directionality. If loop directionality is not know, make a array of booleans for isPositive and set isDirectionalityKnown to false.

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

Syntax


public static List<List<int>> OrderLoops(
	IEnumerable<IEnumerable<Vertex>> loops,
	double[] normal,
	ref bool[] isPositive,
	bool isDirectionalityKnown
)
Public Shared Function OrderLoops ( _
	loops As IEnumerable(Of IEnumerable(Of Vertex)), _
	normal As Double(), _
	ByRef isPositive As Boolean(), _
	isDirectionalityKnown As Boolean _
) As List(Of List(Of Integer))
public:
static List<List<int^>^>^ OrderLoops(
	IEnumerable<IEnumerable<Vertex^>^>^ loops, 
	array<double^>^ normal, 
	array<bool^>^% isPositive, 
	bool^ isDirectionalityKnown
)

Parameters

loops
Type: IEnumerable<(Of <(<'IEnumerable<(Of <(<'Vertex>)>)>>)>)>
normal
Type: array<Double>[]()[][]
isPositive
Type: array<Boolean>[]()[][]%
isDirectionalityKnown
Type: Boolean

Return Value