warpmovieMulti: make a warpmovie with multiple registered meshes

View source: R/warpmovieMulti.R

warpmovieMultiR Documentation

make a warpmovie with multiple registered meshes

Description

make a warpmovie with multiple registered meshes - this is a pimped version of warpmovie3d from package 'Morpho'

Usage

warpmovieMulti(
  ...,
  n,
  col = NULL,
  folder = NULL,
  movie = "warpmovie",
  add = FALSE,
  close = TRUE,
  countbegin = 0,
  ask = TRUE,
  whichcolor = NULL,
  align = TRUE,
  scale = FALSE,
  mixcolor = TRUE,
  shade = c("s", "w", "b")
)

Arguments

...

registered meshes or a list containing registered meshes.

n

amount of intermediate images between two meshes

col

mesh color - overrides options whichcolor and mixcolor

folder

character: output folder for created images (optional)

movie

character: name of the output files

add

logical: if TRUE, the movie will be added to the focussed rgl-windows.

close

logical: if TRUE, the rgl window will be closed when finished. width and 200 the height of the image.

countbegin

integer: number to start image sequence.

ask

logical: if TRUE, the viewpoint can be selected manually.

whichcolor

select which mesh's vertexcolors to use.

align

logical: align all meshes to the first one

scale

if align=TRUE this controls if scaling is allowed.

mixcolor

logical: if available existing colors are subsequently mixed using mixColorMesh.

shade

select shade: "s"=shade3d, "w"= wire3d, "b"=both

Examples

require(Morpho)
data(nose)
redmesh <- shortnose.mesh
redmesh$material$color <- rep("#FF0000",ncol(shortnose.mesh$vb))
bluemesh <- shortnose.mesh
bluemesh$material$color <- rep("#0000FF",ncol(shortnose.mesh$vb))
## Not run: 
warpmovieMulti(bluemesh, redmesh, n=15)

## End(Not run)

zarquon42b/mesheR documentation built on Jan. 28, 2024, 2:17 p.m.