| generate_bbox | R Documentation |
Creates 12 edge segments around an axis-aligned bounding box.
generate_bbox(bbox, color = c(0, 0, 0, 1), radius = 0.01)
bbox |
A bounding box list from |
color |
RGBA colour for the edges (length 4, 0-1 scale). |
radius |
Cylinder radius for the edges. |
A mesh descriptor list suitable for render_mesh()
or inclusion in a scene list.
mesh <- generate_cuboid(c(0, 0, 0), c(1, 2, 3))
bbox_mesh <- generate_bbox(mesh)
nrow(bbox_mesh$vertices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.