plotDelaunayOnSphere: Plot spherical Delaunay triangulation

View source: R/delaunay.R

plotDelaunayOnSphereR Documentation

Plot spherical Delaunay triangulation

Description

Plot a spherical Delaunay triangulation.

Usage

plotDelaunayOnSphere(
  del,
  colors = "random",
  edges = FALSE,
  vertices = FALSE,
  hue = "random",
  luminosity = "bright",
  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 distinctColorPalette

edges

Boolean, whether to plot the edges

vertices

Boolean, whether to plot the vertices

hue, luminosity

if colors = "random", these arguments are passed to randomColor

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)

sphereTessellation documentation built on July 9, 2023, 6:04 p.m.