Skip to contents

TDA's triang over an x,y point set.

Usage

tda_triang(x, y, ...)

Arguments

x, y

coordinate vectors.

...

passed to tda_run.

Value

the output file's lines (the triangle list).

Examples

# a Delaunay triangulation of five points: the edges of the triangles
tda_triang(x = c(0, 2, 1, 3, 1), y = c(0, 0, 1, 1, 2))
#>      [,1] [,2]
#> [1,]    1    2
#> [2,]    1    3
#> [3,]    1    5
#> [4,]    2    4
#> [5,]    2    3
#> [6,]    3    4
#> [7,]    3    5
#> [8,]    4    5