powered by
Returns the mesh of an icosphere.
icosphereMesh(x = 0, y = 0, z = 0, r = 1, iterations = 3L)
A rgl mesh (class mesh3d).
mesh3d
coordinates of the center
radius
number of iterations (the icosphere is obtained by iteratively subdividing the faces of an icosahedron)
library(sphereTessellation) library(rgl) mesh <- icosphereMesh() open3d(windowRect = 50 + c(0, 0, 512, 512)) shade3d(mesh, color = "navy")
Run the code above in your browser using DataLab