Learn R Programming

rayvertex (version 0.15.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
if (FALSE) { # interactive() || isTRUE(as.logical(Sys.getenv("IN_PKGDOWN")))
# 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)
}

Run the code above in your browser using DataLab