Skip to contents

Draw a 3D mesh with rgl

Usage

# S3 method for class 'inla_mesh_3d'
plot(
  x,
  include = c(FALSE, TRUE, TRUE),
  alpha = c(0.9, 0.3, 0.1),
  col = c("black", "blue", "red"),
  t_sub = NULL,
  size = 5,
  lwd = 2,
  fill_col = NULL,
  add = FALSE,
  ...
)

Arguments

x

A inla_mesh_3d object

include

Whether to draw vertices, edges, and triangles, Default: c(FALSE, TRUE, TRUE)

alpha

Opaqueness of vertices, edges, and triangles, Default: c(0.9, 0.3, 0.1)

col

Colour of vertices, edges, and triangles, Default: c("black", "blue", "red")

t_sub

A subset of tetrahedron indices to include, Default: NULL (draw all tetrahedra)

size

Vertex size, in pixels

lwd

Edge width, in pixels

fill_col

Fill color specification for triangles, Default: NULL

add

If TRUE, adds to an existing rgl device, Default: FALSE

...

Further parameters passed through to the rgl plotting functions

Examples

if (FALSE) { # \dontrun{
if (interactive()) {
  # EXAMPLE1
}
} # }