Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/MeshKernelNET/Api/IMeshKernelApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1376,13 +1376,12 @@ int Mesh2dIntersectionsFromPolygon(int meshKernelId,
ref int[] faceEdgeIndex);

/// <summary>
/// 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.
/// </summary>
/// <param name="meshKernelId">Id of the mesh state</param>
/// <param name="numLongitudeNodes">The number of points along the longitude</param>
/// <param name="numLatitudeNodes">The number of points along the latitude (half hemisphere)</param>
/// <returns>Error code</returns>
int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes, int numLatitudeNodes);
int Mesh2dMakeGlobal(int meshKernelId, int numLongitudeNodes);

/// <summary>
/// Make a triangular grid in a polygon
Expand Down
4 changes: 2 additions & 2 deletions src/MeshKernelNET/Api/MeshKernelApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions src/MeshKernelNET/Native/MeshKernelDll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,14 +1723,13 @@ internal static extern int Mesh2dIntersectionsFromPolygon([In] int meshKernelId,
[In][Out] IntPtr faceEdgeIndex);

/// <summary>
/// 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.
/// </summary>
/// <param name="meshKernelId">Id of the mesh state</param>
/// <param name="numLongitudeNodes">The number of points along the longitude</param>
/// <param name="numLatitudeNodes">The number of points along the latitude (half hemisphere)</param>
/// <returns>Error code</returns>
[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);

/// <summary>
/// Make a triangular grid in a polygon
Expand Down
2 changes: 1 addition & 1 deletion test/MeshKernelNET.Tests/Api/MeshKernelApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down