This function directs the wireframe plot based on the plotengine backend selected.

wire3d(x, ..., add = TRUE, plotengine = getOption("nat.plotengine"))

# S3 method for hxsurf
wire3d(x, Regions = NULL, ...)

# S3 method for mesh3d
wire3d(
  x,
  override = TRUE,
  meshColor = c("vertices", "edges", "faces", "legacy"),
  ...
)

# S3 method for shapelist3d
wire3d(x, override = TRUE, ...)

Arguments

x

object of type 'mesh3d' (triangular mesh or quad mesh), 'hxsurf' or 'shapelist3d'

...

Additional arguments passed to wire3d or add_trace depending on the @param plotengine option choosen

add

whether to add objects to an existing plot

plotengine

Whether to use plotting backend of 'rgl' or 'plotly'

Regions

When x is a multi region hxsurf object. Default plots all. Seed as.mesh3d for details of how the argument is handled.

override

should the parameters specified here override those stored in the object?

meshColor

how should colours be interpreted? See details below

See also

Examples

# \donttest{ library(alphashape3d) kcs20.a=ashape3d(xyzmatrix(kcs20), alpha = 10) plot(kcs20.a)
#> Device 8 : alpha = 10
# convert to mesh3d kcs20.mesh=as.mesh3d(kcs20.a, meshColor = "edges") # For plotly.. options(nat.plotengine = 'plotly') wire3d(kcs20.mesh,alpha = 0.1, add = FALSE, col = 'blue') # For rgl.. options(nat.plotengine = 'rgl') wire3d(kcs20.mesh,alpha = 0.1, add = FALSE, col = 'blue') # }