plot2trans {zonohedra} | R Documentation |
plot the 2-transition surface associated with a zonohedron
Description
The 2-transition surface has the topology of a sphere and is contained in the zonohedron. All the facets are parallelograms. The surface is centrally symmetric, with the same center as the zonohedron. The surface may have self-intersections.
Usage
plot2trans( x, type='ef', ecol='black', econc=FALSE,
fcol='yellow', falpha=0.5, level=NULL,
normals=FALSE, both=TRUE, bgcol="gray40", add=FALSE, ... )
Arguments
x |
a zonohedron object as returned by the constructor |
type |
a character string with what parts to draw.
If |
ecol |
The color to use when drawing the edges. |
econc |
If |
fcol |
The color to use when drawing the facets. |
falpha |
The opacity to use when drawing the facets. |
level |
An integer vector which is a subvector of |
normals |
If |
both |
if |
bgcol |
the background color |
add |
If |
... |
not used |
Details
Facets and regular edges are drawn with rgl::quads3d()
.
Concave edges are drawn with rgl::segments3d()
.
Points are drawn with rgl::points3d()
.
Value
The function returns TRUE
; or FALSE
in case of error.
Note
The package rgl is required for 3D plots. A large black point is drawn at 0, a large white point at the "white point", and a 50% gray point at the center. A line from the black point to the white point is also drawn.
See Also
zonohedron()
,
plothighertrans()
,
plot.zonohedron()