WOLFRAM|DEMONSTRATIONS PROJECT

Approximating Spheres with Boxes

​
radius
1
sampling rate
4
Using cubes, you can approximate the shape of a sphere of a given radius. By sliding the sampling rate
s
up and down, you can add and subtract the number of cubes in a uniform manner. Using spherical coordinates
θ
and
ϕ
, the sample rate takes a reading every
π/s
radians up to
2π
for the
θ
angle and every
π/s
radians up to
π
for the
ϕ
angle.