edges2faces: edges2faces

Description Usage Arguments Value Examples

Description

Given a set of edges between vertices (with xy coordinates) it returns a matrix of all triangles formed by the edges.

Usage

1
edges2faces(edges)

Arguments

edges

numeric matrix with two columns: index of points which have a edge

Value

faces numeric matrix with three columns: index of points which form a triangle

Examples

1
2
edges <- cbind(c(1,1,1,2,2,3), c(2,3,4,3,4,4))
edges2faces(edges)

SigbertIngress/findWeb documentation built on May 26, 2019, 4:38 p.m.