shapelist3d               package:rgl               R Documentation

_C_r_e_a_t_e _a_n_d _p_l_o_t _a _l_i_s_t _o_f _s_h_a_p_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     These functions create and plot a list of shapes.

_U_s_a_g_e:

     shapelist3d(shapes, x = 0, y = NULL, z = NULL, size = 1, matrix = NULL, override = TRUE, 
                 ..., plot = TRUE)  

_A_r_g_u_m_e_n_t_s:

  shapes: A single 'shape3d' object, or a list of them. 

 x, y, z: Translation(s) to apply 

    size: Scaling(s) to apply 

  matrix: A single matrix transformation, or a list of them. 

override: Whether the material properties should override the ones in
          the shapes. 

     ...: Material properties to apply. 

    plot: Whether to plot the result. 

_D_e_t_a_i_l_s:

     'shapelist3d' is a quick way to create a complex object made up of
     simpler ones. Each of the arguments 'shapes' through 'override'
     may be a vector of  values (a list in the case of 'shapes' or
     'matrix').  All values will be recycled to produce a list of
     shapes as long as the longest of them.

     The 'xyz.coords' function will be used to process the 'x', 'y' and
     'z' arguments, so a matrix may be used as 'x' to  specify all
     three.   If a vector is used for 'x' but 'y' or 'z' is missing,
     default values of '0' will be used.

     The '"shapelist3d"' class is simply a list of '"shape3d"' objects.

     Methods for 'dot3d', 'wire3d', 'shade3d', 'translate3d',
     'scale3d', and 'rotate3d' are defined for these objects.

_V_a_l_u_e:

     An object of class 'c("shapelist3d", "shape3d")'.

_A_u_t_h_o_r(_s):

     Duncan Murdoch

_S_e_e _A_l_s_o:

     'mesh3d'

_E_x_a_m_p_l_e_s:

      
     shapelist3d(icosahedron3d(), x=rnorm(10), y=rnorm(10), z=rnorm(10), col=1:5, size=0.3)

