dirtGIF3d: Save a GIF image of a spinning soil surface

Description Usage Arguments Value

View source: R/dirtGIF3d.R

Description

Showing the 3D scans in motion is a useful way to visualize cleat indentations and visualize the surface microtopography.

Usage

1
2
3
4
5
6
7
8
9
dirtGIF3d(
  mesh,
  output_file,
  phi = -35,
  zoom = 0.8,
  n_snaps = 10,
  fps = 2,
  bg_color = "grey60"
)

Arguments

mesh

mesh3d object to record

output_file

relative file path to save (quoted, ending in ".gif")

phi

vertical observer angle, see rgl.viewpoint()

zoom

zooming factor, larger number is smaller object. Defaults to 0.8.

n_snaps

number of snapshots to concatenate

fps

speed at which frames are displayed (frames per second)

bg_color

quoted color name or hex code for the scene background

Value

no return value; file is saved to disk


evanmascitti/soilmesh documentation built on Sept. 30, 2021, 7:57 a.m.