Detection of triangles crossing contrained edges