# view a zonohedron using rgl::shade3d()
zono12 = zonohedron( classics.genlist[[12]] )
mesh = rgl::as.mesh3d( zono12 )
rgl::shade3d( mesh, back='culled' )
cube = zonohedron( classics.genlist[[ 'C' ]] )
mesh = rgl::as.mesh3d( cube )
class( mesh ) = "list" # we bypass print.mesh3d() and see the contents of the mesh
mesh
## $vb
## [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
## [1,] 0 0 1 1 1 1 0 0
## [2,] 0 1 1 0 1 0 0 1
## [3,] 0 0 0 0 1 1 1 1
## [4,] 1 1 1 1 1 1 1 1
##
## $ib
## [,1] [,2] [,3] [,4] [,5] [,6]
## [1,] 1 4 1 8 5 6
## [2,] 2 6 7 7 3 4
## [3,] 3 7 8 6 2 3
## [4,] 4 1 2 5 8 5
##
## $material
## $material$color
## [1] "blue" "blue" "blue" "blue" "blue" "blue"
##
## $material$alpha
## [1] 1
##
## $meshColor
## [1] "faces"
Run the code above in your browser using DataLab