Skip to contents

Get Delaunay simplicies (tiles).

Usage

getDelaunaySimplicies(tessellation, hashes = FALSE)

Arguments

tessellation

the output of delaunay

hashes

Boolean, whether to return the simplicies as hash maps

Value

The list of simplicies of the Delaunay tessellation.

Examples

library(tessellation)
pts <- rbind(
  c(-5, -5,  16),
  c(-5,  8,   3),
  c(4,  -1,   3),
  c(4,  -5,   7),
  c(4,  -1, -10),
  c(4,  -5, -10),
  c(-5,  8, -10),
  c(-5, -5, -10)
)
tess <- delaunay(pts)
getDelaunaySimplicies(tess)
#> $`1`
#>   [,1] [,2] [,3]
#> 3    4   -1    3
#> 5    4   -1  -10
#> 6    4   -5  -10
#> 8   -5   -5  -10
#> 
#> $`2`
#>   [,1] [,2] [,3]
#> 3    4   -1    3
#> 4    4   -5    7
#> 6    4   -5  -10
#> 8   -5   -5  -10
#> 
#> $`3`
#>   [,1] [,2] [,3]
#> 2   -5    8    3
#> 3    4   -1    3
#> 7   -5    8  -10
#> 8   -5   -5  -10
#> 
#> $`4`
#>   [,1] [,2] [,3]
#> 3    4   -1    3
#> 5    4   -1  -10
#> 7   -5    8  -10
#> 8   -5   -5  -10
#> 
#> $`5`
#>   [,1] [,2] [,3]
#> 2   -5    8    3
#> 3    4   -1    3
#> 4    4   -5    7
#> 8   -5   -5  -10
#> 
#> $`6`
#>   [,1] [,2] [,3]
#> 1   -5   -5   16
#> 2   -5    8    3
#> 4    4   -5    7
#> 8   -5   -5  -10
#>