Grasshopper

algorithmic modeling for Rhino

Hi, 

I'm trying to work with a list (csv file) that reprisents a set of angels and lengths.

I was wondering if its possible to split the list one more time according to the content of cell number 5 (reprisents a group number). that way i can refer to each group.

eventually i'll get the endpoints of each group, create lines between them and then loft them into a surface...

thnks,

ziv

Views: 15775

Attachments:

Replies to This Discussion

There is a Split List Component. I've also used this for getting the value at index 5 as this will remove it from your original list.

thanks,

but i'm trying to refer to the data (items 0-4) that relates to each group (item 5) in order to create lines...

for example, i have endpoints of the lines that the code crates and i need to know which of them belongs to which group.

the item in cell 5 is just helping me to define relation between points.

thanks again,

ziv

every set with item 5 = 2 go into group 2 for example.

Is this what you mean

yes

can i do that?

Using the Replace Branches

Attachments:

that's a good direction.

is it possible to keep the 1-4 cell order under the group?

for example: under group 1 i'll have list of cells that contains cells 1-4:

{group 1}

[0;0]

1

2

3

4

[0;1]

1

2

3

4

{group 2}

[0;0]
1
2
3
4
[0;1]
1
2
3
4

it's import to me because the file is creating points in the spece that are taken according to angels between 3 armes and one changing lengh.i wnt to create lines between all the endpoints of group 1, all the endpoints of group 2... etc. then loft them into a surface. for that i need to know whitch of the endpoits belongs to whitch group...

i'm sorry if i'm not so clear... i'm new to the list thing so i dont rally know it's limits.

thanks anyway

ziv

does it matter if the second branch numbering doesn't follow 0,1,2,3, etc but holds the original branch value?

Attachments:

thanks again for the attampt.

it is important for me that secend branch will follow 0,1,2,3,4 because i'm using this information later in the code by calling to the items - this i the way that i'm putting specific points in space.

if its not possible or too messy i can try other directions...

ziv

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service