How to make a polyline between different point data?

Hi,

I am trying to make polylines between every data line, so for example if there are two data tree’s with points going from 0 - 2, I want to make polylines between all the 0’s, all the 1’s and all the 2’s.

On the image below there you can see two different data tree’s and i want to connect the 0 dots from all the tree’s with eachother and so on for the data on ine 1 and 2.

I hope someone can help me out with this.

Regards,

Giorgio

Hi @sgiorgioramsaroep

If I understood your problem correctly here you have a possbile solution:

Regards!

Data Tree Operations.gh (6.3 KB)

I have tried to open your solution, but it doesn’t work. I dont get how the path mapper works exactly. Is there any guide to this component how it exactly works?

EDIT: It works now, but thats not exactly what I was looking for, But i can try to figure it out first with the path mapper. Thanks @bbalbastre !

@sgiorgioramsaroep

Can you use the .gh file I uploaded and paint the polyline you want to obtain with these points? Maybe I can help you with the solution.

Here you can find great stuff about how Path Mapper works:

Regards!

1 Like

Thanks for the video! These are the lines that I want to create. So the 0’s are connected to the 0’s , the 1’s with the 1’s etc.

Seems like you just want to Graft the points that are in the Data Tree, and connect those to the list of points with a Line.

Hi @sgiorgioramsaroep

That’s exactly what I did on the script I sent you on the first comment.

It is strange that the script does not work when you open it. I am using Rhino 7.

The script is this one:

Data Tree Operations.gh (6.3 KB)

Regards

When I open it (Rhino 6), the data tree after mapping is empty. See the script below when i open it:

Very weird, it now works. I changed the component with some different lines in it and changed it back. Now it works.

Thank you very much @bbalbastre !

1 Like

@sgiorgioramsaroep

Quite strange indeed! I am glad to hear that!

Anyway, Although I would prefer the Path Mapper option, I have solve that problem without using it in two different ways if you prefer. That’s one of them:

Do not forget to press the solution button please!

Regards!

Data Tree Operations.gh (11.9 KB)

1 Like