uxarray.grid.coordinates._populate_centroid_coord#

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

Finds the centroids using cartesian averaging of faces 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