I want the source code or algorithm about constructing triangle fans from independent triangle data(triangle list).