Description Usage Arguments Details Value Examples

A hexahedron is a three dimensional shape that is defined by 6 faces and 8 corner points.
`fillhexa`

allows to fill such a shape with a regular point raster.

1 | ```
fillhexa(hex, res)
``` |

`hex` |
dataframe with three columns and eight rows to define a hexahedron by its corner point coordinates x, y and z |

`res` |
numeric value > 0 and <= 1 for the resolution of the point raster |

See https://stackoverflow.com/questions/36115215/filling-a-3d-body-with-a-systematic-point-raster for a description of the function and how it was developed.

data.frame with the spatial coordinates of the resulting points of the grid

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
hexatestdf <- data.frame(
x = c(0,1,0,4,5,5,5,5),
y = c(1,1,4,4,1,1,4,4),
z = c(4,8,4,9,4,8,4,6)
)
cx = fillhexa(hexatestdf, 0.1)
#library(rgl)
#plot3d(
# cx[,1], cx[,2], cx[,3],
# type = "p",
# xlab = "x", ylab = "y", zlab = "z"
#)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.