TriangulatePolygon..::..Run Method (IEnumerable<(Of <(<'IEnumerable<(Of <(<'Vertex>)>)>>)>)>, array<Double>[]()[][], List<(Of <(<'List<(Of <(<'Int32>)>)>>)>)>%, array<Boolean>[]()[][]%, Boolean)

Triangulates a list of loops into faces in O(n*log(n)) time.

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

Syntax


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

Parameters

loops
Type: IEnumerable<(Of <(<'IEnumerable<(Of <(<'Vertex>)>)>>)>)>
The loops.
normal
Type: array<Double>[]()[][]
The normal.
groupsOfLoops
Type: List<(Of <(<'List<(Of <(<'Int32>)>)>>)>)>%
The groups of loops.
isPositive
Type: array<Boolean>[]()[][]%
The is positive.
ignoreNegativeSpace
Type: Boolean
if set to true [ignore negative space].

Return Value

List<List<Vertex[]>>.