Swap Y/Z Axis

swap_yz(mesh)

Arguments

mesh

The mesh to swap orientations.

Value

Mesh with Y and Z axis exchanged

Examples

# 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()
}
#> Setting `lookat` to: c(-0.50, 0.00, 0.50)