makeblock3D | R Documentation |
Given vertices of a 3D block, create a glyph structure (faces and normals)
makeblock3D(block1)
block1 |
matrix of vertices |
glyph structure list
aglyph |
list of faces (x,y,z) |
anorm |
Normals to faces |
Jonathan M. Lees<jonathan.lees@unc.edu>
ROTZ, ROTY, ROTX, BOXarrows3D, Z3Darrow, TRANmat
block1 = matrix(c(0,0,0,
1,0,0,
1,0.5,0,
0,0.5,0,
0,0,-2,
1,0,-2,
1,0.5,-2,
0,0.5,-2), byrow=TRUE, ncol=3)
Bblock1 = makeblock3D(block1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.