| scale_mesh | R Documentation |
Scale a mesh uniformly or per-axis
scale_mesh(mesh, scale)
mesh |
A mesh descriptor list. |
scale |
A single numeric scale factor (uniform) or a length-3 numeric vector for per-axis scaling (x, y, z). |
A new mesh descriptor list with scaled vertices.
mesh <- generate_cuboid(c(0, 0, 0), c(1, 1, 1))
big <- scale_mesh(mesh, 3)
flat <- scale_mesh(mesh, c(2, 0.5, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.