condition for triangulation, trying to find some boundaries