0

How can I solve next problem? I have a curve and area which I need to rotate around x axis to make a sphere. Can it be like an animation? So far I made a half of sphere, and a whole sphere, bit I don't know how to animate it? enter image description here

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
Danica
  • 3
  • 1

2 Answers2

4
RevolutionPlot3D[Sqrt[4 - x^2], {x, -3, 3}, 
  RevolutionAxis -> "X", BoxRatios -> {1, 1, 1}]

plot

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
1

I'm not entirely certain if this is a particularly useful approach to the problem hidden behind your question, but this should help while maintaining the form:

RevolutionPlot3D[Sign[x] Sqrt[4 - x^2], {x, -2, 2}, 
 BoxRatios -> {1, 1, 1}]

enter image description here

kirma
  • 19,056
  • 1
  • 51
  • 93
  • Ok, sorry for less informations and no code. Somehow I got this far, bit i need to turn next thing in the sphere you made for me using some animation or parameter...here's the code: Plot[Sqrt[4 - x^2], {x, -2, 2}, Filling -> Axis, PlotRange -> {{-3, 3}, {-1, 3}}] – Danica Jan 20 '19 at 18:01