D3DX supplies the following UVAtlas functions:
The UVAtlas functions compute an optimal, unique texture parameterization for an input mesh using a per-face integrated metric tensor.
Using UVAtlas