DHI / mikeio

Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files.
https://dhi.github.io/mikeio
BSD 3-Clause "New" or "Revised" License
136 stars 53 forks source link

Detach `Mesh` from `_UnstructuredFile` #616

Closed ecomodeller closed 4 months ago

ecomodeller commented 8 months ago

Since the introduction of the GeometryFM2D the Mesh class is in fact very simple.

This PR detaches the Mesh class from _UnstructuredFile and incorporates the functionality in the _Dfsu class.

ecomodeller commented 6 months ago
Cell In[4], line 1
----> 1 mp = msh.to_shapely()
      2 mp

AttributeError: 'Mesh' object has no attribute 'to_shapely'
ecomodeller commented 5 months ago
Cell In[4], line 1
----> 1 mp = msh.to_shapely()
      2 mp

AttributeError: 'Mesh' object has no attribute 'to_shapely'

Fixed.