I am working on my school project now . I got stuck ((((

I tried to make a sphere based on a circle as cross section .

I am trying to simulate inflating of a construction to present a concept. of my project.

The main purpose is to make correlation between a radius of a circle and a radius of a sphere, so that when I decrease the radius of a circule the radius of sphere will be increased .

When the radius of the cross-section is to small there is a very small peace of a top of the sphere above the cross section. When the radius has its maximum value then there is the biggest part of sphere above.

So you have 3 “steps”, and the variables are:
Cr = circle radius
Sr = sphere radius
V = volume
How can we make a “function” if all of them are changing through the steps?
Shouldn’t, like, the circle radius be constant? And so you obtain the sphere radius and center with a function of the volume… inflating.
If no-one of the variables is constant… i need another rule to put up some idea…