One possibility is to use coordinates. You need to use the coordinatesof the centroids of the triangles.