powered by
This function “turns” the curve (as on a lathe) to form a solid of rotation along the x axis.
turn3d(x, y = NULL, n = 12, smooth = FALSE, ...)
A mesh object containing triangles and/or quadrilaterals.
Points on the curve, in a form suitable for xy.coords. The y values must be non-negative.
xy.coords
y
How many steps in the rotation?
logical; whether to add normals for a smooth appearance.
Additional parameters to pass to tmesh3d.
tmesh3d
Fang He and Duncan Murdoch
extrude3d
x <- 1:10 y <- rnorm(10)^2 open3d() shade3d(turn3d(x, y), col = "green")
Run the code above in your browser using DataLab