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.
extrude3d(x, y = NULL, thickness = 1, smooth = FALSE, ...)
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.
obtain other orientations and placements.
A mesh object containing a triangulation of the polygon for each face, and quadrilaterals for the sides.