Learn R Programming

cgalMeshes (version 2.2.0)

sphereMesh: Sphere mesh

Description

Triangle mesh of a sphere.

Usage

sphereMesh(x = 0, y = 0, z = 0, r = 1, iterations = 3L)

Value

A rgl mesh (class mesh3d).

Arguments

x, y, z

coordinates of the center

r

radius

iterations

number of iterations (the mesh is obtained by iteratively subdividing the faces of an icosahedron)