swap_yz {rayvertex}R Documentation

Swap Y/Z Axis

Description

Swap Y/Z Axis

Usage

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()
}

[Package rayvertex version 0.10.4 Index]