Lose a seam doing loft

As seen in the picture, I’m losing a seam under this code:

Private Sub RunScript(ByVal Crv As List(Of Curve), ByVal y As Object, ByRef A As Object)
A = Brep.CreateFromLoft(Crv, point3d.Unset, point3d.Unset, LoftType.Normal, True)
End Sub

I guess the problem comes from the parameters points. But I do not understand how to adjust them in this case. Sdk information has not helped me.

What points should I give? What is the logic?
All my attempts have given me null results.

Thanks in advance.

LoftProblem.gh (4.5 KB)CrvsLoftProblem.3dm (73.3 KB)

@Dani_Abalde, you could try below to get the missing seam and create a brep with 2 surfaces:

breps = Brep.CreateFromLoft(Crv, point3d.Unset, point3d.Unset, LoftType.Normal, True)
For Each b In breps
    b.Faces.SplitKinkyFaces(True)
Next
A = breps

LoftProblem.gh (5.6 KB)

Alternatively use the built in Loft component, it creates the missing seam by default.

c.

Great, I wanted this function but I did not know it. Thank you Clement.
:slight_smile: