Description Usage Arguments Details Value Author(s) See Also Examples

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.

1 |

`x, y` |
A polygon description in one of the forms supported by |

`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 |

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.

A mesh object containing a triangulation of the polygon for each face, and quadrilaterals for the sides.

Duncan Murdoch

`polygon3d`

for a simple polygon, `triangulate`

for
the triangulation, `turn3d`

for a solid of rotation.

1 2 3 4 5 6 |

rgl documentation built on Nov. 17, 2017, 2:24 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.