changes for x and y of triangle centroids and to set flux