NurbsSurface.ByPoints wrong connection between points

I’m using DynaShape to create this tensile structure. In the end I want to import a shape inside Revit and I tried to creat a nurbs surface that connects each point that I extracted from Dynashape.

The problem is that nurb surface result is not respecting the boundary and wrongly connecting the points. How can I generate the right nurb surface?