Learn R Programming

VoxR (version 0.5.1)

vox: Voxelisation

Description

Voxelisation algorythm of 3d point cloud recording the number of points within each voxels

Usage

vox(data, res)

Arguments

data
a data frame containing the x, y, z, ... coordinates of a point cloud
res
numeric specification of the voxels resolution in the scale of the original coordinate system

Value

A data frame containing the x, y, z coordinates and the number of points within each voxel of a voxel cloud.

Details

Default : res = 1

Examples

Run this code
#-import data

data(treecloud)

#-voxelisation

treecloud_vox <- vox(treecloud,res=0.02)

#-visualisation

require(rgl)
library(rgl)
open3d()
plot3d(treecloud_vox,size=0.1)

Run the code above in your browser using DataLab