Grasshopper

algorithmic modeling for Rhino

Hi,

I generated the list of points, that you can see in the attached jpeg.

I now want to use them to create polylines.

In this case, it would be 4 polylines (#1 made from (0;0) to (0;3), #2 from (1;0) to (1;3) and so on.

I have a feeling, that this is not very complicated, but can't get it to work...

Anyone here with an answer?

 

Thanks! Julian

 

Views: 1477

Replies to This Discussion

If all the points you need to create the polylines are on the upper branch then a Path Mapper with {A;B} --> {A} would get all right points on one branch for each line.

ha,

 

haven´t seen your anwser :-)

 

Best regards

 

DeDackel

Hi,

thanks for the quick answer!

I don't think that would work. At the moment, if I plug this list into a Polyline component, it tells me, that there is an insufficient number of points to create a polyline. I understand, why that is (because each point is in a seperate branch and a polyline needs more than one Pt. GH tries to create 14 Polylines with one Pt each).

I somehow need to tell it, that all points with an index (0;x) should be used for one polyline and then all points with an index (1;x) and so on.

The Pathmapper doesn't seem to be the right tool here.

 

Julian

That's exactly what the Path Mapper does. You are remapping all of the points referenced on the B branch to be grouped together on the A. Have a look at the image above (which might not have been there before when you first looked)

Sorry, you're actually right...

Thanks for your answer!

Hey

You can use the Pathmapper therefore

 

{A;B} --> {A}

 

This generates a new List with 4 paths {} with items (). 

{1} (3)

{2} (3)

{3} (4)

{4} (4)

 

Through the items you now can make a Polyline

 

Best Regards

 

DeDackel

Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service