xyz2cube3d: Visualise 3d point as voxel

Description Usage Arguments Value Author(s) Examples

View source: R/xyz2cube3d.R

Description

Visualise 3d point as voxel. Usage with rgl: open3d(); cube3d(1,1,1,...)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
xyz2cube3d(
  x = 0,
  y = 0,
  z = 0,
  bordered = TRUE,
  filled = TRUE,
  lwd = 2,
  scale = 1,
  fillcol = "gray",
  bordercol = "black",
  alpha = 0.5,
  ...
)

Arguments

x

x coordinate

y

y coordinate

z

z coordinate

bordered

Logical, Draws a border

filled

Logical, Fills the cube with a color

lwd

Line width of the border. Default 2

scale

Size of the cube, e.g. 0.1 when 10 cm voxels are used. Default 1 (meter).

fillcol

## Color of the cube. Default gray.

bordercol

Color of the border

alpha

Transparancy of the cube

Value

A cube object that can be plotted with rgl

Author(s)

Matthias Kunz, last updated: 18.02.2020

Examples

1
xyz2cube3d(data.frame(x=runif(20),y=runif(20), z=runif(20)), alpha=1.0)

spatial-mk/tre3d documentation built on April 1, 2020, 5:26 p.m.