Sphere

Sphere[p]

represents a unit sphere centered at the point p.

Sphere[p,r]

represents a sphere of radius r centered at the point p.

Sphere[{p1,p2,},r]

represents a collection of spheres of radius r.

Details

  • Sphere can be used as a geometric region and a graphics primitive.
  • Sphere[] is equivalent to Sphere[{0,0,0}]. »
  • Sphere[n] for positive integer n is equivalent to Sphere[{0,,0}], a unit sphere in .
  • Sphere represents the shell {x|TemplateBox[{{x, -, p}}, Norm]=r}.
  • Sphere can be used in Graphics and Graphics3D.
  • In graphics, the points p, pi and radii r can be Scaled and Dynamic expressions.
  • Graphics rendering is affected by directives such as FaceForm, Specularity, Opacity, and color.
  • Sphere[{p1,p2,},{r1,r2,}] represents a collection of spheres with centers pi and radii ri.

Examples

open allclose all

Basic Examples  (2)

A unit sphere at the origin:

In[3]:=
Click for copyable input
Out[1]=

Volume and centroid:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (22)

Applications  (5)

Properties & Relations  (8)

Neat Examples  (4)

See Also

Circle  Ball  Circumsphere  Cylinder  Cone  Cuboid  GraphicsComplex  SpherePoints  SphericalPlot3D

Tutorials

Introduced in 2007
(6.0)
| Updated in 2014
(10.0)