Grasshopper

algorithmic modeling for Rhino

# grafting doubts

Hi !!!

I have been following Nick senske's video tutorials and I am just a beginner.In this video (Im attaching the link )

I understand everything in this video except from 7.00-7.30 when he duplicates a couple of components and grafts it to the multiplication component.Thats when I dont understand whats happening.It would be of great help if someone can explain what is happening in that process.Thank you in advance !!!

Best

Sruthi

Views: 317

### Replies to This Discussion

He got fancy wire disabled, that doesn't help.

A and B are two lists and have (probably) equal length.

A=B= {0,1,0,1,0} (for example)

Before grafting the value are just multiplied together: grasshopper "combine" 1st number of A with 1st of B, 2nd with 2nd, etc.

0x0 1x1 0x0 1x1 0x0

By grafting a list you get a "tree" with a branch for every element of the list (so the length of every branch will be 1)

Multiply a list with a tree will make each branch to multiply with every element of the list.

A is still {0,1,0,1,0}

B became {0},{1},{0},{1},{0}

(probably my syntax is not correct...)

The multiplication will result:

0x0 0x1 0x0 0x1 0x0

1x0 1x1 1x0 1x1 1x0

0x0 0x1 0x0 0x1 0x0

1x0 1x1 1x0 1x1 1x0

0x0 0x1 0x0 0x1 0x0

so

0  0  0  0  0

0  1  0  1  0

0  0  0  0  0

0  1  0  1  0

0  0  0  0  0

I hope this somehow help...

Hi Riccardo thank u sooo much its really helpful !!!!

by kgm

by kgm

by kgm