Flip Orientation

flip_orientation_mesh(mesh)

Arguments

mesh

The mesh to swap orientations.

Value

Mesh with flipped vertex orientation

Examples

# Flip a mesh
sphere_mesh(position=c(-1,0,0)) |>
  add_shape(flip_orientation_mesh(sphere_mesh(position=c(1,0,0)))) |>
  rasterize_scene(debug="normals",fov=30)
#> Setting `lookat` to: c(0.00, 0.00, 0.00)