Fixed a bug in the detection of triangles intersecting the slicing plane