File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1149,7 +1149,8 @@ def get_splines(
1149
1149
return geometry_list_out
1150
1150
1151
1151
def mesh2d_get_mesh_boundaries_as_polygons (
1152
- self , geometry_list : GeometryList
1152
+ self ,
1153
+ geometry_list : GeometryList = GeometryList (),
1153
1154
) -> GeometryList :
1154
1155
"""Retrieves the boundaries of a mesh as a series of separated polygons within the selecting polygon.
1155
1156
If the polygon is empty, all the mesh boundaries are retrieved.
@@ -1158,7 +1159,7 @@ def mesh2d_get_mesh_boundaries_as_polygons(
1158
1159
one for the inner boundary and one for the outer boundary.
1159
1160
1160
1161
Args:
1161
- geometry_list (GeometryList): The selecting polygon.
1162
+ geometry_list (GeometryList, optional ): The selecting polygon.
1162
1163
1163
1164
Returns:
1164
1165
GeometryList: The output network boundary polygon.
Original file line number Diff line number Diff line change @@ -1121,12 +1121,7 @@ def test_mesh2d_get_mesh_boundaries_as_polygons(meshkernel_with_mesh2d: MeshKern
1121
1121
1122
1122
mk = meshkernel_with_mesh2d (2 , 2 )
1123
1123
1124
- # Create an empty polygon for selecting all boundaries
1125
- x_coordinates = np .empty (0 , dtype = np .double )
1126
- y_coordinates = np .empty (0 , dtype = np .double )
1127
- geometry_list_in = GeometryList (x_coordinates , y_coordinates )
1128
-
1129
- mesh_boundary = mk .mesh2d_get_mesh_boundaries_as_polygons (geometry_list_in )
1124
+ mesh_boundary = mk .mesh2d_get_mesh_boundaries_as_polygons ()
1130
1125
1131
1126
assert_array_equal (
1132
1127
mesh_boundary .x_coordinates ,
You can’t perform that action at this time.
0 commit comments