0
$\begingroup$

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

$\endgroup$

closed as off-topic by m_goldberg, MikeLimaOscar, José Antonio Díaz Navas, bbgodfrey, Yves Klett Jan 24 at 8:14

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – MikeLimaOscar, bbgodfrey
  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, José Antonio Díaz Navas
If this question can be reworded to fit the rules in the help center, please edit the question.

1
$\begingroup$

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

$\endgroup$
  • $\begingroup$ 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}}] $\endgroup$ – Danica Jan 20 at 18:01
3
$\begingroup$
RevolutionPlot3D[Sqrt[4 - x^2], {x, -3, 3}, 
  RevolutionAxis -> "X", BoxRatios -> {1, 1, 1}]

plot

$\endgroup$
  • $\begingroup$ I actually got this far by myself, but thank you. It still helps :) $\endgroup$ – Danica Jan 20 at 17:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.