Utility.GetEdgesWithoutDuplicates (IList<IndexTriangle>, Int32) Method

Gets a list of edges without duplicates from a mesh of triangles.
Public Shared Function GetEdgesWithoutDuplicates( _ 
ByVal polygons As IList(Of IndexTriangle), _ 
ByVal numVerts As Integer
) As Integer(,)
This language is not supported or no code example is available.
public static int[,] GetEdgesWithoutDuplicates( 
IList<IndexTriangle> polygons
int numVerts 
)
This language is not supported or no code example is available.

Parameters

polygons
IList<IndexTriangle>

Polygon list definition, each row can have independently 3 or 4 indices.

numVerts
int

Number of vertices in the mesh

Return Value

int[,]

The rectangular array of the resulting - unique - edges. First and second indices are the edge vertex indices, third and fourth are the parent triangle indices. Fourth index can be -1 for edges with only one parent triangle.

.NET Framework

Supported in: 4.8

In this article

Definition