voxel_space: Voxel space

Description Usage Arguments Details Value Examples

View source: R/manage_voxels.R

Description

Defines the voxel space using minimum and maximum coordinates

Usage

1
2
3
4
5
6
voxel_space(
  coord_min = c(0, 0, 0),
  voxel_size = NULL,
  n_voxel = NULL,
  coord_max = NULL
)

Arguments

coord_min

Vector of the minimum 3D coordinates of the voxel space (point of origin, see details)

voxel_size

Vector of the lengths of the voxel side in x, y and z.

n_voxel

The number of voxels in c, y and z (optional, see details)

coord_max

Vector of the maximum 3D coordinates of the voxel space

Details

The 3D coordinates have the form of c(x,y,z). The user chooses to compute the voxel space from a pair of arguments: either voxel_size and n_voxel, either voxel_size and coord_max, or n_voxel and coord_max.

Value

A voxel space

Examples

1
voxel_space(voxel_size= c(1,1,1), n_voxel= c(10,10,20))

VEZY/archimedR documentation built on Feb. 28, 2020, 6:36 p.m.