Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makeblock3D

Make a 3D block Structure


Description

Given vertices of a 3D block, create a glyph structure (faces and normals)

Usage

makeblock3D(block1)

Arguments

block1

matrix of vertices

Value

glyph structure list

aglyph

list of faces (x,y,z)

anorm

Normals to faces

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

ROTZ, ROTY, ROTX, BOXarrows3D, Z3Darrow, TRANmat

Examples

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)

RFOC

Graphics for Spherical Distributions and Earthquake Focal Mechanisms

v3.4-6
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Keehoon Kim [ctb]
Initial release
2018-01-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.