# Spheres around the circle

Hello All..
How to arrange spheres around the circle(in circular fashion)...It should look like rollers placed in ball bearing..we have x,y,z value for initial sphere(ball)..how to change the value of x,y,z for next spheres so that it is arranged in circular fashion...please tell the formula for drawing this...

S.Vijayaragavan..

Same way as you would calculate any point on a circle, using sin & cos

hi..
please tell me the formula...it deals with x,y,z axis..i am not getting it..i have tried but its not coming correctly..

Thqnks,
Vijay

hi,
Can u please send the sample program for placing spheres around the circle..I am designing bering in OCC..I hav designed outer and inner rings..I m not able to proceed with inner rollers...Please help me...

Thanks,
S.Vijayaragavan.

Hi,
Your problem seems to be arranging the sphere along a pitch circle. You can write a loop which calculates the centre point of the sphere placed on the circle. Assuming that the pitch circle radius is R, and you have to place N balls in your bearing, you can find the X and Y coordinates of the points (assuming you are making it in XOY Plane) by the formula:-

X = R * cos(theta)
Y = R * sin(theta)

where theta ranges from 0 to 2PI radians in the step of 2PI/N. (N = num_of_balls).

Then in the loop itself you can create the sphere for with the centre as each point you compute.

Hope this helps

Regards
N. Sharjith

Hi Sharjith,