Detection of the intersection of two simple polyhedra