| generate_sphere | R Documentation |
Creates a UV sphere centred at center with the given
radius. The sphere is subdivided into segments
rings and segments per ring.
generate_sphere(center, radius = 1, segments = 32, color = c(1, 1, 1, 1))
center |
Length-3 vector: sphere centre. |
radius |
Sphere radius. |
segments |
Subdivision count (default 32). |
color |
Length-4 RGBA colour. |
A mesh descriptor list.
mesh <- generate_sphere(c(0, 0, 0), radius = 1.5, segments = 32)
nrow(mesh$vertices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.