icosphereMesh {sphereTessellation} | R Documentation |
Icosphere
Description
Returns the mesh of an icosphere.
Usage
icosphereMesh(x = 0, y = 0, z = 0, r = 1, iterations = 3L)
Arguments
x , y , z |
coordinates of the center |
r |
radius |
iterations |
number of iterations (the icosphere is obtained by iteratively subdividing the faces of an icosahedron) |
Value
A rgl mesh (class mesh3d
).
Examples
library(sphereTessellation)
library(rgl)
mesh <- icosphereMesh()
open3d(windowRect = 50 + c(0, 0, 512, 512))
shade3d(mesh, color = "navy")
[Package sphereTessellation version 1.2.0 Index]