Description Usage Arguments Examples
View source: R/mesh_to_cubes.R
Get cubes coordinates from voxelized mesh3d
1 | mesh_to_cubes(mesh, voxelSize, scene_dim = c(10, 545))
|
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. |
1 2 3 | library(Rvcg)
simple_mesh <- Rvcg::vcgIcosahedron()
cubes <- mesh_to_cubes(simple_mesh, voxelSize = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.