Description Usage Arguments Value Examples
View source: R/vis_volume_3d.R
Draw 3D boxes at all given coordinates using rgl, analogous to rgl.spheres
. Constructs the coordinates for triangles making up the boxes, then uses triangles3d
to render them.
1 |
centers |
numerical matrix with 3 columns. Each column represents the x, y, z coordinates of a center at which to create a cube. |
r |
numerical vector or scalar, the cube edge length. This is the length of the axis-parallel edges of the cube. The vector must have length 1 (same edge length for all cubes), or the length must be identical to the number of rows in parameter 'centers'. |
voxelcol |
vector of rgb color strings for the individual voxels. Its length must be identical to |
do_show |
logical, whether to visualize the result in the current rgl scene |
... |
material properties, passed to |
list of 'fs.coloredvoxels' instances, invisible. The function is called for the side effect of visualizing the data, and usually you can ignore the return value.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.