plotDelaunayOnSphere {sphereTessellation}R Documentation

Plot spherical Delaunay triangulation

Description

Plot a spherical Delaunay triangulation.

Usage

plotDelaunayOnSphere(
  del,
  colors = "random",
  distinctArgs = list(seedcolors = c("#ff0000", "#00ff00", "#0000ff")),
  randomArgs = list(hue = "random", luminosity = "bright"),
  edges = FALSE,
  vertices = FALSE,
  ecolor = "black",
  lwd = 3,
  vcolor = "black",
  vradius = NA,
  ...
)

Arguments

del

an output of DelaunayOnSphere

colors

controls the filling colors of the triangles, either NA for no color, or a single color, or "random" to get multiple colors with randomColor, or "distinct" to get multiple colors with createPalette

distinctArgs

if colors = "distinct", a list of arguments passed to createPalette

randomArgs

if colors = "random", a list of arguments passed to randomColor

edges

Boolean, whether to plot the edges

vertices

Boolean, whether to plot the vertices

ecolor

a color for the edges

lwd

line width for the edges, if they are plotted

vcolor

a color for the vertices

vradius

a radius for the vertices, which are plotted as spheres (if they are plotted); NA for a default value

...

arguments passed to shade3d to plot the spherical triangles

Value

No value is returned.

Examples

library(sphereTessellation)
library(rgl)

vertices <- t(cuboctahedron3d()$vb[-4L, ])
del <- DelaunayOnSphere(vertices, radius = sqrt(2))

open3d(windowRect = 50 + c(0, 0, 512, 512), zoom = 0.8)
plotDelaunayOnSphere(del)

[Package sphereTessellation version 1.2.0 Index]