# load a voxel file
vxsp <- readVoxelSpace(system.file("extdata", "tls_sample.vox", package = "AMAPVox"))
# get position of voxel(i=0, j=0, k=0)
getPosition(vxsp, c(0, 0, 0))
# get position of voxels 1 to 10 in the data.table
getPosition(vxsp, vxsp@data[1:10,])
# get positions of every voxel
getPosition(vxsp)
Run the code above in your browser using DataLab