Learn R Programming

rayvertex (version 0.12.0)

flip_orientation_mesh: Flip Orientation

Description

Flip Orientation

Usage

flip_orientation_mesh(mesh)

Value

Mesh with flipped vertex orientation

Arguments

mesh

The mesh to swap orientations.

Examples

Run this code
# Flip a mesh 
if(run_documentation()) {
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)
}

Run the code above in your browser using DataLab