extrude3d package:rgl R Documentation _G_e_n_e_r_a_t_e _e_x_t_r_u_s_i_o_n _m_e_s_h _D_e_s_c_r_i_p_t_i_o_n: Given a two-dimensional polygon, this generates a three-dimensional extrusion of the shape by triangulating the polygon and creating a cylinder with that shape as the end faces. _U_s_a_g_e: extrude3d(x, y = NULL, thickness = 1, smooth = FALSE, ...) _A_r_g_u_m_e_n_t_s: x, y: A polygon description in one of the forms supported by ‘triangulate’. thickness: The extrusion will have this thickness. smooth: logical; should normals be added so that the edges of the extrusion appear smooth? ...: Other parameters to pass to ‘tmesh3d’ when constructing the mesh. _D_e_t_a_i_l_s: The extrusion is always constructed with the polygon in the xy plane at ‘z = 0’ and another copy at ‘z = thickness’. Use the transformation functions (e.g. ‘rotate3d’) to obtain other orientations and placements. _V_a_l_u_e: A mesh object containing a triangulation of the polygon for each face, and quadrilaterals for the sides. _A_u_t_h_o_r(_s): Duncan Murdoch _S_e_e _A_l_s_o: ‘polygon3d’ for a simple polygon, ‘triangulate’ for the triangulation, ‘turn3d’ for a solid of rotation. _E_x_a_m_p_l_e_s: x <- c(1:10, 10:1) y <- rev(c(rep(c(0, 2), 5), rep(c(1.5, -0.5), 5))) plot(x, y, type = "n") polygon(x, y) open3d() shade3d( extrude3d(x, y), col = "red" )