voronoi.polygons: extract polygons from a voronoi mosaic In tripack: Triangulation of Irregularly Spaced Data

Description

This functions extracts polygons from a `voronoi.mosaic` object.

Usage

 `1` ```voronoi.polygons(voronoi.obj) ```

Arguments

 `voronoi.obj` object of class `voronoi.mosaic`

Value

Returns an object of class `voronoi.polygons` with unamed list elements for each polygon. These list elements are matrices with columns `x` and `y`.

Author(s)

Denis White

`plot.voronoi.polygons`,`voronoi.mosaic`

Examples

 ```1 2 3 4 5 6 7 8``` ```##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. data(tritest) tritest.vm <- voronoi.mosaic(tritest\$x,tritest\$y) tritest.vp <- voronoi.polygons(tritest.vm) tritest.vp ```

Example output

```[[1]]
x          y
[1,] 0.5000000  0.3062500
[2,] 0.2392857  0.1107143
[3,] 0.5000000 -0.7583333
[4,] 0.7607143  0.1107143

[[2]]
x         y
[1,]  0.3062500 0.5000000
[2,]  0.1107143 0.7607143
[3,] -0.7583333 0.5000000
[4,]  0.1107143 0.2392857

[[3]]
x         y
[1,] 0.8892857 0.7607143
[2,] 0.6937500 0.5000000
[3,] 0.8892857 0.2392857
[4,] 1.7583333 0.5000000

[[4]]
x         y
[1,] 0.5000000 1.7583333
[2,] 0.2392857 0.8892857
[3,] 0.5000000 0.6937500
[4,] 0.7607143 0.8892857

[[5]]
x         y
[1,] 0.5000000 0.5000000
[2,] 0.5000000 0.5000000
[3,] 0.3062500 0.5000000
[4,] 0.1107143 0.2392857
[5,] 0.2392857 0.1107143
[6,] 0.5000000 0.3062500

[[6]]
x         y
[1,] 0.7607143 0.1107143
[2,] 0.5000000 0.3062500
[3,] 0.5000000 0.5000000
[4,] 0.6937500 0.5000000
[5,] 0.8892857 0.2392857

[[7]]
x         y
[1,] 0.6937500 0.5000000
[2,] 0.5000000 0.5000000
[3,] 0.5000000 0.5000000
[4,] 0.5000000 0.6937500
[5,] 0.7607143 0.8892857
[6,] 0.8892857 0.7607143

[[8]]
x         y
[1,] 0.1107143 0.7607143
[2,] 0.2392857 0.8892857
[3,] 0.5000000 0.6937500
[4,] 0.5000000 0.5000000
[5,] 0.3062500 0.5000000

attr(,"class")
[1] "voronoi.polygons"
```

tripack documentation built on May 29, 2017, 9:52 p.m.