Geometric Objects

Hi everyone, can anybody tell me how can i construct my own objects like spheres, toruses, cylinders, or so. without using
glut or glu, i mean with math. thanx

Hec