diff --git a/src/MeshKernelNET/Api/IMeshKernelApi.cs b/src/MeshKernelNET/Api/IMeshKernelApi.cs index c022bb1..79b2ed9 100644 --- a/src/MeshKernelNET/Api/IMeshKernelApi.cs +++ b/src/MeshKernelNET/Api/IMeshKernelApi.cs @@ -1376,13 +1376,12 @@ int Mesh2dIntersectionsFromPolygon(int meshKernelId, ref int[] faceEdgeIndex); /// - /// Compute the global mesh with a given number of points along the longitude and latitude directions. + /// Compute the global mesh with a given number of points along the longitude direction. /// /// Id of the mesh state /// The number of points along the longitude - /// The number of points along the latitude (half hemisphere) /// Error code - int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes, int numLatitudeNodes); + int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes); /// /// Make a triangular grid in a polygon diff --git a/src/MeshKernelNET/Api/MeshKernelApi.cs b/src/MeshKernelNET/Api/MeshKernelApi.cs index 4311fb5..6329f43 100644 --- a/src/MeshKernelNET/Api/MeshKernelApi.cs +++ b/src/MeshKernelNET/Api/MeshKernelApi.cs @@ -1390,9 +1390,9 @@ public int Mesh2dIntersectionsFromPolygon(int meshKernelId, return successful; } - public int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes, int numLatitudeNodes) + public int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes) { - return MeshKernelDll.Mesh2dMakeGlobal(meshKernelId, numLongitudeNodes, numLatitudeNodes); + return MeshKernelDll.Mesh2dMakeGlobal(meshKernelId, numLongitudeNodes); } public int Mesh2dMakeTriangularMeshFromPolygon(int meshKernelId, DisposableGeometryList disposableGeometryList, double scaleFactor) diff --git a/src/MeshKernelNET/Native/MeshKernelDll.cs b/src/MeshKernelNET/Native/MeshKernelDll.cs index 9ea9526..3a568e3 100644 --- a/src/MeshKernelNET/Native/MeshKernelDll.cs +++ b/src/MeshKernelNET/Native/MeshKernelDll.cs @@ -1723,14 +1723,13 @@ internal static extern int Mesh2dIntersectionsFromPolygon([In] int meshKernelId, [In][Out] IntPtr faceEdgeIndex); /// - /// Compute the global mesh with a given number of points along the longitude and latitude directions. + /// Compute the global mesh with a given number of points along the longitude direction. /// /// Id of the mesh state /// The number of points along the longitude - /// The number of points along the latitude (half hemisphere) /// Error code [DllImport(MeshKernelDllName, EntryPoint = "mkernel_mesh2d_make_global", CallingConvention = CallingConvention.Cdecl)] - internal static extern int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes, int numLatitudeNodes); + internal static extern int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes); /// /// Make a triangular grid in a polygon diff --git a/test/MeshKernelNET.Tests/Api/MeshKernelApiTest.cs b/test/MeshKernelNET.Tests/Api/MeshKernelApiTest.cs index c461761..de675a7 100644 --- a/test/MeshKernelNET.Tests/Api/MeshKernelApiTest.cs +++ b/test/MeshKernelNET.Tests/Api/MeshKernelApiTest.cs @@ -3424,7 +3424,7 @@ public void Mesh2dMakeGlobalThroughApi() { int projectionType = 1; id = api.AllocateState(projectionType); - Assert.That(api.Mesh2dMakeGlobal(id, 19, 25), Is.EqualTo(0)); + Assert.That(api.Mesh2dMakeGlobal(id, 19), Is.EqualTo(0)); Assert.That(api.Mesh2dGetData(id, out mesh2d), Is.EqualTo(0)); Assert.That(mesh2d.NumEdges, Is.EqualTo(1225));