Utility.GetEdgesWithoutDuplicates (SilhoPolyRegion(), Int32, out LinkedList<SharedEdge>(), Boolean) Method
Public Shared Function GetEdgesWithoutDuplicates( _
ByVal polygons As SilhoPolyRegion(), _
ByVal numVerts As Integer, _
ByRef edgesPerVertex As LinkedList(Of SharedEdge)(), _
Optional ByVal skipBorderEdges As Boolean = false _
) As Integer(,)
This language is not supported or no code example is available.
public static int[,] GetEdgesWithoutDuplicates(
SilhoPolyRegion[] polygons,
int numVerts,
out LinkedList<SharedEdge>[] edgesPerVertex,
bool skipBorderEdges = false
)
This language is not supported or no code example is available.
Parameters
- polygons
- SilhoPolyRegion[]
Polygon list definition, dimensions can be [n,3] or [n,4].
- numVerts
- int
Number of vertices in the mesh
- edgesPerVertex
- LinkedList<SharedEdge>[]
An array of linked list of - unique - edges propagating from the same vertex. This is an intermediate result.
- skipBorderEdges
- bool
If true, the edges with just one adjacent triangle are skipped
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.