Originally Posted by

**romsek** given a point in space it's simple enough to rotate that point along some chosen axis.

There are mathematical objects called rotation matrices that when applied by multiplication to a vector of position coordinates will perform this rotation.

So, in this case, take the set of points that represent your 3D object, and every time step rotate each one by some amount. Erase the old point and draw the new one.

repeat forever.

If your 3D object consists of points connected by lines you would rotate each point, erase the old line, and just draw a new line between the rotated points using the standard algorithm to do that.

You wouldn't bother trying to rotate every point on the line, just the endoints.