Algorithms for generating texture coords.

Does anyone know about any algorithms for generating texture coordinates?
I know it is some kind of “philosopher’s stone”, but who knows about papers (or source code) describing good general-purpose coordinate generating algorithms. Something that could as well be used to assign 2D texture coords to an apple or to a spaceship. The model is supposed to be a net of triangles. Please, help.

search for “Lapped Textures” on google.

edit: it’s general-purpose though complicated.

[This message has been edited by Quaternion (edited 05-31-2002).]

If you are looking for an algorithm to do it, sorry I can’t help you. But if all you need is to generate texture coords for a model, there is a free program called LithUnwrap that does a halfway decent job. I used it for my own models.