plot3d.hxsurf: Plot amira surface objects in 3D using rgl

Description Usage Arguments See Also Examples

View source: R/hxsurf.R

Description

Plot amira surface objects in 3D using rgl

Usage

1
2
## S3 method for class 'hxsurf'
plot3d(x, materials = NULL, col = NULL, ...)

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 meterial colours defined in Amira (if available), or rainbow otherwise.

...

Additional arguments passed to

See Also

read.hxsurf

Other hxsurf: as.hxsurf, as.mesh3d, materials, read.hxsurf, subset.hxsurf, write.hxsurf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot3d(kcs20)
plot3d(MBL.surf)


# plot only vertical lobe
clear3d()
plot3d(MBL.surf, materials="VL", alpha=0.3)

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

jefferis/nat documentation built on Sept. 29, 2018, 5:22 p.m.