Much of the tests and utility functions for intersecting two triangular meshes