| generate_cylinder | R Documentation |
Creates a cylinder from start to end with the given
radius, subdivided into segments around the axis.
Both end caps are included.
generate_cylinder(
start,
end,
radius = 0.5,
segments = 32,
color = c(1, 1, 1, 1)
)
start |
Length-3 vector: cylinder start point. |
end |
Length-3 vector: cylinder end point. |
radius |
Cylinder radius. |
segments |
Subdivision count (default 32). |
color |
Length-4 RGBA colour. |
A mesh descriptor list.
mesh <- generate_cylinder(c(0, -1, 0), c(0, 1, 0), radius = 0.5)
nrow(mesh$vertices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.