Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Although the classes in the Petzold.Media3D library will probably suffice for simple figures, you will likely encounter a need that the library does not satisfy. For that reason, it's important that you learn not only how to use the classes in this library, but also the principles under which they were developed.
Let's begin with a sphere. The equation of a unit sphere—a sphere with a radius of 1 with its center at the origin—is: