Plot amira surface objects in 3D using rgl

# S3 method for hxsurf
plot3d(
  x,
  materials = NULL,
  col = NULL,
  gridlines = FALSE,
  ...,
  plotengine = getOption("nat.plotengine")
)

Arguments

x

An hxsurf surface object

materials

Character vector or regex naming materials to plot (defaults to all materials in x). See subset.hxsurf.

col

Character vector specifying colors for the materials, or a function that will be called with the number of materials to plot. When NULL (default) will use material colours defined in Amira (if available), or rainbow otherwise.

gridlines

Whether to display gridlines when using plotly as the backend plotting engine (default: FALSE)

...

Additional arguments passed to triangles3d

plotengine

the plotting backend engine to use either 'rgl' or 'plotly'.

Examples

plot3d(kcs20)
plot3d(MBL.surf)

# \donttest{
# plot only vertical lobe
nclear3d()
plot3d(MBL.surf, materials="VL", alpha=0.3)

# everything except vertical lobe
nclear3d()
plot3d(MBL.surf, alpha=0.3, 
  materials=grep("VL", MBL.surf$RegionList, value = TRUE, invert = TRUE))
# }