automatic face indices from vertex list

How might you go about generating on the fly face indices from a list of vertices ( triangles some sharing the same vertex all drawn counter clockwise ) ? This is without using a 3d modeling program.

Try looking here http://research.microsoft.com/~hoppe/

Nate Miller http://nate.scuzzy.net