I am in need of the isintersect function. However I have a problem. I have to find out the intersection of about 1 million triangles and few rectangles. I am trying to run your code, but I takes an insane amount of time to run it. Is there a easy way that you can propose in which the checking can be done?