xugrid.Ugrid2d.to_shapely#

Ugrid2d.to_shapely(dim)[source]#

Convert UGRID topology to shapely objects.

  • nodes: points

  • edges: linestrings

  • faces: polygons

Parameters:

dim (str) – Node, edge, or face dimension.

Returns:

geometry

Return type:

ndarray of shapely.Geometry