mesh_to_cubes: Get cubes coordinates from voxelized mesh3d

Description Usage Arguments Examples

View source: R/mesh_to_cubes.R

Description

Get cubes coordinates from voxelized mesh3d

Usage

1
mesh_to_cubes(mesh, voxelSize, scene_dim = c(10, 545))

Arguments

mesh

3dmesh

voxelSize

voxel size for space discretization

scene_dim

Dimensions of the scene (min and max coordinates). Vector of size 2 or 2*3 data.frame with named columns x, y, z.

Examples

1
2
3
library(Rvcg)
simple_mesh <- Rvcg::vcgIcosahedron()
cubes <- mesh_to_cubes(simple_mesh, voxelSize = 0.5)

statnmap/mesh2ray documentation built on Nov. 5, 2019, 9:20 a.m.