| generate_axes | R Documentation |
Creates three coloured arrow meshes (red X, green Y, blue Z) from a centre point.
generate_axes(center = c(0, 0, 0), size = 1, shaft_radius = 0.02)
center |
Length-3 vector: origin of the axes. |
size |
Length of each axis. |
shaft_radius |
Cylinder radius for axis shafts. |
A mesh descriptor list suitable for render_mesh()
or inclusion in a scene list.
axes_mesh <- generate_axes(size = 2)
nrow(axes_mesh$vertices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.