uxarray.grid.coordinates._populate_face_centroids

uxarray.grid.coordinates._populate_face_centroids#

uxarray.grid.coordinates._populate_face_centroids(grid, repopulate=False)#

Finds the centroids of faces using cartesian averaging based off the vertices. The centroid is defined as the average of the x, y, z coordinates, normalized. This cannot be guaranteed to work on concave polygons.

Parameters:

repopulate (bool, optional) – Bool used to turn on/off repopulating the face coordinates of the centroids