Generate multiple curves from a txt files

I am a new user of Rhino. I have been trying to convert a txt file to multiple closed curves.
Now I can only convert the file to generate one close curves.
The data format would be: D X Y Z
D would be the number of curves.
X Y Z would be the coordinates.
:sweat_smile:

XYZ seems more the coordinates of a point, rather than a curve.

Can you attach your source .txt file?

Sure thing, the txt file was generated by my Matlab optimizer program, the geometry will later convert to surfaces.
GH.txt (46.5 KB)


txt_to_polyline.gh (8.4 KB)
This should do it.

5 Likes

Wow! That is amazing!

Nice.