Is there a good website
geomalgorithms.com with algorithms of computational geometry, including with
the algorithm of intersection of triangles. There are also Paul Bourke and
his publications. But generally speaking, I would not advise independently to write such algorithms, they are very hard to develop and test, for such things it is better to take
ready library.