| generate_cuboid | R Documentation |
Creates an axis-aligned cuboid (box) centred at center
with the given half-extents along each axis.
generate_cuboid(center, half_extents, color = c(0.7, 0.7, 0.7, 1))
center |
Length-3 vector: centre of the cuboid. |
half_extents |
Length-3 vector: half-width, half-height, half-depth. |
color |
Length-4 RGBA colour (0-1 scale). |
A mesh descriptor list.
mesh <- generate_cuboid(c(0, 0, 0), c(1, 2, 0.5))
nrow(mesh$vertices)
nrow(mesh$triangles)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.