amora
Subscriber

Thank you so much, that's working.

I just have the last question please, I changed the script, so that the truncated cone starts from the top of another cylinder with a radius 'r1' I chose the value of the bottom radius to be equal to r1 as well. However, I found that the bottom of the truncated cone is smaller than the cylinder. please have a look at the XZ view in the attached photo, thanks.