boundarypgramdata {zonohedra} | R Documentation |
compute data about specific parallelograms in the boundary of a zonohedron
Description
The boundary of a zonohedron is the union of parallelograms,
where some of them may be facets, and some may be tiles
in the standard tiling of more complex facets.
The edges of each parallelogram are given by a pair of distinct simplified generators.
If a zonohedron has n
of these generators,
then there are n(n{-}1)/2
such pairs.
For each pair of generators,
there are 2 parallelograms which are antipodal to each other.
This function computes data about one parallelogram from this antipodal pair.
The total number of parallelograms is n(n{-}1)
.
Usage
boundarypgramdata( x, gndpair, cube=FALSE )
Arguments
x |
a zonohedron object as returned by the constructor |
gndpair |
an Mx2 integer matrix.
Each row of |
cube |
if |
Value
boundarypgramdata()
returns a data.frame
with M rows and these columns:
gndpair |
the given |
hyperplaneidx |
the index of the hyperplane in the simplified matroid
of |
center |
the center of the parallelogram relative to the center of the zonohedron. For the antipodal parallelogram, multiply this by -1. |
transitions |
the number of transitions in |
And if cube
is TRUE
, then this column is added:
pcube |
a point in the n-cube that maps to |
If a row of gndpair
has an invalid pair,
the other columns are filled with NA
s.
In case of global error, the function returns NULL
.
WARNING
In this version of the package, when the parallelogram is a tile in a more complex facet, the function may return incorrect results. This will be fixed in a future version.