diff --git a/src/MeshKernelNET/Api/IMeshKernelApi.cs b/src/MeshKernelNET/Api/IMeshKernelApi.cs
index edaaa253..8f8b32b0 100644
--- a/src/MeshKernelNET/Api/IMeshKernelApi.cs
+++ b/src/MeshKernelNET/Api/IMeshKernelApi.cs
@@ -386,6 +386,7 @@ int CurvilinearLineAttractionRepulsion(int meshKernelId,
///
/// The id of the mesh state
/// The x coordinate of the first node of the set line
+ /// The number of rows to generate
/// The x coordinate of the first node of the set line
/// The y coordinate of the first node of the set line
/// The x coordinate of the second node of the set line
@@ -393,6 +394,7 @@ int CurvilinearLineAttractionRepulsion(int meshKernelId,
/// Error code
int CurvilinearLineMirror(int meshKernelId,
double mirroringFactor,
+ int numRowsToGenerate,
double xFirstGridLineNode,
double yFirstGridLineNode,
double xSecondGridLineNode,
diff --git a/src/MeshKernelNET/Api/MeshKernelApi.cs b/src/MeshKernelNET/Api/MeshKernelApi.cs
index 70645fc5..c94a3b55 100644
--- a/src/MeshKernelNET/Api/MeshKernelApi.cs
+++ b/src/MeshKernelNET/Api/MeshKernelApi.cs
@@ -393,6 +393,7 @@ public int CurvilinearLineAttractionRepulsion(int meshKernelId,
public int CurvilinearLineMirror(int meshKernelId,
double mirroringFactor,
+ int numRowsToGenerate,
double xFirstGridLineNode,
double yFirstGridLineNode,
double xSecondGridLineNode,
@@ -400,6 +401,7 @@ public int CurvilinearLineMirror(int meshKernelId,
{
return MeshKernelDll.CurvilinearLineMirror(meshKernelId,
mirroringFactor,
+ numRowsToGenerate,
xFirstGridLineNode,
yFirstGridLineNode,
xSecondGridLineNode,
diff --git a/src/MeshKernelNET/Native/MeshKernelDll.cs b/src/MeshKernelNET/Native/MeshKernelDll.cs
index 8f6329dc..0e7839f9 100644
--- a/src/MeshKernelNET/Native/MeshKernelDll.cs
+++ b/src/MeshKernelNET/Native/MeshKernelDll.cs
@@ -427,6 +427,7 @@ internal static extern int CurvilinearLineAttractionRepulsion([In] int meshKerne
///
/// The id of the mesh state
/// The x coordinate of the first node of the set line
+ /// The number of rows to generate
/// The x coordinate of the first node of the set line
/// The y coordinate of the first node of the set line
/// The x coordinate of the second node of the set line
@@ -435,6 +436,7 @@ internal static extern int CurvilinearLineAttractionRepulsion([In] int meshKerne
[DllImport(MeshKernelDllName, EntryPoint = "mkernel_curvilinear_line_mirror", CallingConvention = CallingConvention.Cdecl)]
internal static extern int CurvilinearLineMirror([In] int meshKernelId,
[In] double mirroringFactor,
+ [In] int numRowsToGenerate,
[In] double xFirstGridLineNode,
[In] double yFirstGridLineNode,
[In] double xSecondGridLineNode,
diff --git a/test/MeshKernelNETTest/Api/MeshKernelCurvilinearTest.cs b/test/MeshKernelNETTest/Api/MeshKernelCurvilinearTest.cs
index fd72a276..3705fafa 100644
--- a/test/MeshKernelNETTest/Api/MeshKernelCurvilinearTest.cs
+++ b/test/MeshKernelNETTest/Api/MeshKernelCurvilinearTest.cs
@@ -884,7 +884,7 @@ public void CurvilinearLineMirrorThroughAPI()
Assert.AreEqual(0, api.CurvilinearSet(id, grid));
// Execute
- Assert.AreEqual(0, api.CurvilinearLineMirror(id, 1.2, 0.0, 0.0, 0.0, 50.0));
+ Assert.AreEqual(0, api.CurvilinearLineMirror(id, 1.2, 1, 0.0, 0.0, 0.0, 50.0));
// Assert
Assert.AreEqual(0, api.CurvilinearGridGetData(id, out curvilinearGrid));