I am looking for an algorithm to generate

spheres, cylinders, and arcs with triangles

only. I want to provide the dimensions of the shape (ie. radius, coordinates, height) and have an object composed of triangles.

Basically what Im trying to do is do some collision detection using coldet. From my understanding, you have to have a shape consisting of triangles and... I want to test collisions on these shapes.

If there is an easier way, please let me know. I just figured that there was a script or something already out there to do the shape conversions to triangles and that it would be pretty painless.

Thanks for any help.

-Thorrin