Message Boards Message Boards

0
|
8635 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to draw a circle with SphericalPlot3D?

Posted 12 years ago
Hi everyone, my teacher want us to draw a "meridian" which is a circle pass through the sphere, like longitudes on the Earth's surface.
I try to use SphericalPlot3D, but it does not allow to do so. The teacher said p=1, theta = 0 and phi go from 0 to 2pi,
but Mathematica doesn't get theta=0
POSTED BY: Vy Vo
3 Replies
If you really want to use SphericalPlot3D, just switch off the surface plotting and control the 'mesh' lines to give a result that looks like a meridian line:
SphericalPlot3D[1, {theta, 0, 2 Pi} , {phi, 0, 2 Pi}, PlotStyle -> None, Mesh -> 1]


Or you could draw a circle in 3D space:
With[{radius = 1},
Graphics3D[
  Line[Table[{radius Cos[a], 0, radius Sin[a]},
    {a, 0, 2 Pi, Pi/120}]],
  Axes -> True]]
POSTED BY: C ormullion
Vy Vo, could you please post the Mathematica code of what you have so far.
POSTED BY: EDITORIAL BOARD
Try Using ParametricPlot3D[]
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract