xugrid.Ugrid2d.centroid_triangulation#
- property Ugrid2d.centroid_triangulation#
Triangulation of centroidal voronoi tesselation.
Required for e.g. contouring face data, which takes triangles and associated values at the triangle vertices.
- Returns:
vertices (ndarray of floats with shape
(n_centroids, 2)
)face_node_connectivity (ndarray of integers with shape
(n_triangle, 3)
) – Describes face node connectivity of triangle topology.face_index (1d array of integers)