Grasshopper

algorithmic modeling for Rhino

Change a point list order from 0-1-2-3-4-5 to 0-1,2-3,4-5

Hi guys,

 

What would be the best way to change a point list order from 0-1-2-3-4-5

to 0-1,2-3,4-5 ?

 

Hope that makes sense,

 

Arthur

Views: 5197

Replies to This Discussion

like this?
Attachments:

Thanks a lot David.

The problem is that it is skipping two lines.

Please see image below:

as i understood you need something like this :

 

Attachments:

Path mapper saves the day... hopefully. :-)

 

Attachments:

Thanks a lot guys,

Mateusz: How would you connect the index to a list of point?

June: What is the "floor" in the path finder? Unfortunately, it is still missing the "in between" values 

 

try that :
Attachments:

If all you need to do is to break down the polyline into segments, use this:

Then use End Points to retrieve points you want.

path mapper is most helpful component ever ! ;]

How about this?

- Giulio
_____________

giulio@mcneel.com
McNeel Europe, Barcelona

Thanks a lot Giulio,

it works perfect!

 

The first Shift list component removes the first point, the other removes the last one.

- Giulio
_________________

giulio@mcneel.com
McNeel Europe, Barcelona

Thanks Giulio! Simple and smart solution.

I applied it to form cells using two lines:

 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service