Intersection test algorithm for spacial triangular facets