diff --git a/meshkernel/meshkernel.py b/meshkernel/meshkernel.py index 1fb824c2..7d7be7a8 100644 --- a/meshkernel/meshkernel.py +++ b/meshkernel/meshkernel.py @@ -287,7 +287,7 @@ def mesh2d_get_mesh_inner_boundaries_as_polygons(self) -> GeometryList: """Gets the inner boundary polygons from the MeshKernel. Returns: - Mesh2d: A copy of the inner boundary polygons. + GeometryList: A sequence of points describing the inner boundary polygons of the mesh. """ c_geometry_list_dimension = c_int() diff --git a/tests/test_mesh2d_basics.py b/tests/test_mesh2d_basics.py index 9616b87b..fadcdb0b 100644 --- a/tests/test_mesh2d_basics.py +++ b/tests/test_mesh2d_basics.py @@ -1198,12 +1198,12 @@ def test_mesh2d_get_mesh_boundaries_as_polygons(meshkernel_with_mesh2d: MeshKern mesh_boundary = mk.mesh2d_get_mesh_boundaries_as_polygons() assert_array_equal( + np.array([0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0], dtype=np.double), mesh_boundary.x_coordinates, - np.array([0.0, 0.0, 0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0], dtype=np.double), ) assert_array_equal( mesh_boundary.y_coordinates, - np.array([0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0], dtype=np.double), + np.array([0.0, 0.0, 0.0, 1.0, 2.0, 2.0, 2.0, 1.0, 0.0], dtype=np.double), )