xugrid.Ugrid2d.centroids#

property Ugrid2d.centroids: ndarray#

Centroid (x, y) of every face.

Returns:

centroids

Return type:

ndarray of floats with shape (n_face, 2)