swap_yz {rayvertex} | R Documentation |
Swap Y/Z Axis
swap_yz(mesh)
mesh |
The mesh to swap orientations. |
Mesh with Y and Z axis exchanged
# Flip a mesh
if(run_documentation()) {
sphere_mesh(position=c(-1,0,0)) |>
add_shape(swap_yz(sphere_mesh(position=c(0,1,0)))) |>
rasterize_scene()
}