
Wed, 02/27/2008 - 08:29
Forums:
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...
Thanks in Advance
S.Vijayaragavan..
Wed, 02/27/2008 - 11:19
Same way as you would calculate any point on a circle, using sin & cos
Wed, 02/27/2008 - 11:30
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
Wed, 02/27/2008 - 11:33
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.
Sun, 03/02/2008 - 07:51
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
Tue, 03/04/2008 - 07:33
Hi Sharjith,
Thanks for your reply..Its working fine..
Regards,
S.Vijayaragavan.