| translate_mesh | R Documentation |
Translate a mesh
translate_mesh(mesh, translation)
mesh |
A mesh descriptor list. |
translation |
Length-3 numeric vector (x, y, z). |
A new mesh descriptor list with translated vertices.
mesh <- generate_cuboid(c(0, 0, 0), c(1, 1, 1))
moved <- translate_mesh(mesh, c(5, 0, 0))
colMeans(moved$vertices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.