The Mesh class is initialized with a mesh file.
Parameters
filename |
str | Path |
mesh filename |
required |
Attributes
geometry |
GeometryFM2D |
Flexible Mesh geometry |
Examples
import mikeio
mikeio.Mesh("../data/odense_rough.mesh")
<Mesh>
number of elements: 654
number of nodes: 399
projection: UTM-33
Methods
to_shapely |
Convert Mesh geometry to shapely MultiPolygon. |
write |
write mesh to file. |
to_shapely
Convert Mesh geometry to shapely MultiPolygon.
Returns
|
MultiPolygon |
mesh as shapely MultiPolygon |
Examples
import mikeio
msh = mikeio.open("../data/odense_rough.mesh")
msh.to_shapely()
write
write mesh to file.
Parameters
outfilename |
str |
path to file |
required |