Are you asking for the way to determine whether two triangles defined in 3D coordinate space intersect each other?
For triangle intersections, you need to perform an algorithm like this:
1) Calculate the normals of both triangles
2) If the normals are parallel, then:
a) if the angle between one normal and the vertex point of the other normal is not 90, then the triangles do not intersect (they are in parallel planes)
b) if the angle is 90, then you need to test using a standard 2D collision (coplanar) algorithm
3) else you need to check to see if at least one of each triangle's edges intersects the other triangle.
A good place to start looking at the math is here:
http://www.realtimerendering.com/intersections.html
You probably want something like:
http://geomalgorithms.com/a06-_intersect-2.html
The math looks scary, but it really isn't so bad. Most if it is high-school algebra.
(Though, if you are playing with 3D stuff, you should get used to doing transformations using matrices.)
Hope this helps.