Separating overlapping triangles and identifying common features