plotGyroMesh {gyro} | R Documentation |
Plot hyperbolic mesh
Description
Plot the hyperbolic version of a triangle 3D mesh.
Usage
plotGyroMesh(
mesh,
s = 1,
model = "U",
iterations = 5,
n = 100,
edges = TRUE,
edgesAsTubes = TRUE,
edgesColor = "yellow",
tubesRadius = 0.03,
verticesAsSpheres = edgesAsTubes,
spheresColor = edgesColor,
spheresRadius = 0.05,
facesColor = "navy",
bias = 1,
interpolate = "linear",
g = identity
)
Arguments
mesh |
there are two possibilities for this argument; it can be a
triangle rgl mesh (class |
s |
positive number, the radius of the Poincaré ball if
|
model |
the hyperbolic model, either |
iterations |
argument passed to |
n |
argument passed to |
edges |
Boolean, whether to plot the edges (as tubes or as lines) |
edgesAsTubes |
Boolean, whether to plot tubular edges; if |
edgesColor |
a color for the edges |
tubesRadius |
radius of the tubes, if |
verticesAsSpheres |
Boolean, whether to plot the vertices as
spheres; if |
spheresColor |
a color for the spheres, if
|
spheresRadius |
radius of the spheres,
if |
facesColor |
this argument sets the color of the faces; it can be
either a single color or a color palette, i.e. a vector of colors; if it
is a color palette, it will be passed to the argument |
bias , interpolate , g |
these arguments are passed to
|
Value
No value, called for plotting.
Examples
# hyperbolic great stellated dodecahedron
library(gyro)
library(rgl)
GSD <- system.file(
"extdata", "greatStellatedDodecahedron.ply", package = "gyro"
)
mesh <- Rvcg::vcgPlyRead(GSD, updateNormals = FALSE, clean = FALSE)
open3d(windowRect = c(50, 50, 562, 562), zoom = 0.7)
plotGyroMesh(
mesh,
edgesAsTubes = FALSE, edgesColor = "black",
facesColor = "firebrick1"
)