MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Draw a circle in 3D

The Presentations package at my website ($50), among many other things, has
a Circle3D, and also Disk3D, routine.

Circle3D[position, normal, radius, anglerange] will draw a circle with the
specified position and radius. The orientation of the circle is given by the
normal vector.

Here is an example of its use, drawing two circles at different locations
with different colors and orientations, and also adding arrows at the center
to show the normals.

  Circle3D[{0, 0, 0}, {0, 0, 1}, 2, Mesh -> {5, 10}],
  Circle3D[{2, 2, 2}, {2, 0, 2}, 1, Mesh -> None],
  Arrow3D[{0, 0, 0}, {0, 0, 1}, {0.3}],
  Arrow3D[{2, 2, 2}, {2, 2, 2} + Normalize[{2, 0, 2}], {0.3}]},
 NeutralLighting[0, 0.5, 0.1],
 PlotRange -> All,
 Axes -> True,
 ImageSize -> 400]

One method to obtain the circles without the package would be to parametrize
a 3D circle that lies in the xy-plane at the origin and then use Rotate[g,
{u, v}] to orient it in the desired direction. (And also use Translate if
you want it at some other location.)

David Park
djmpark at  

From: ibmichuco at [mailto:ibmichuco at] 


I would like to draw circles of radius 1 centered at the origin in 3d,
similar to (but not limited to) the longitude lines of the globe. That
is planes that lies in the a particular plane made an angle  with the
one of the axes etc.

Is there any mathematica function to do this?

Many thanks in advance,


  • Prev by Date: Re: two graph problems in Adjacency types
  • Next by Date: Re: Introducing the Wolfram Mathematica Tutorial Collection
  • Previous by thread: Re: Draw a circle in 3D
  • Next by thread: book and the web