grafting doubts - Grasshopper2024-03-28T10:20:35Zhttps://www.grasshopper3d.com/forum/topics/grafting-doubts?commentId=2985220%3AComment%3A1757059&x=1&feed=yes&xn_auth=noHi Riccardo thank u sooo much…tag:www.grasshopper3d.com,2017-05-24:2985220:Comment:17570592017-05-24T18:12:08.512Zsruthihttps://www.grasshopper3d.com/profile/sruthi
<p>Hi Riccardo thank u sooo much its really helpful !!!!</p>
<p>Hi Riccardo thank u sooo much its really helpful !!!!</p> He got fancy wire disabled, t…tag:www.grasshopper3d.com,2017-05-19:2985220:Comment:17542362017-05-19T10:50:30.919ZRiccardo Majewskihttps://www.grasshopper3d.com/profile/RiccardoMajewski
<p>He got fancy wire disabled, that doesn't help.</p>
<p>A and B are two lists and have (probably) equal length.</p>
<p>A=B= {0,1,0,1,0} (for example)</p>
<p>Before grafting the value are just multiplied together: grasshopper "combine" 1st number of A with 1st of B, 2nd with 2nd, etc.</p>
<p>0x0 1x1 0x0 1x1 0x0</p>
<p></p>
<p>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)</p>
<p>Multiply a list with a tree will make each…</p>
<p>He got fancy wire disabled, that doesn't help.</p>
<p>A and B are two lists and have (probably) equal length.</p>
<p>A=B= {0,1,0,1,0} (for example)</p>
<p>Before grafting the value are just multiplied together: grasshopper "combine" 1st number of A with 1st of B, 2nd with 2nd, etc.</p>
<p>0x0 1x1 0x0 1x1 0x0</p>
<p></p>
<p>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)</p>
<p>Multiply a list with a tree will make each branch to multiply with every element of the list.</p>
<p>A is still {0,1,0,1,0}</p>
<p>B became {0},{1},{0},{1},{0}</p>
<p>(probably my syntax is not correct...)</p>
<p>The multiplication will result:</p>
<p>0x0 0x1 0x0 0x1 0x0</p>
<p>1x0 1x1 1x0 1x1 1x0</p>
<p>0x0 0x1 0x0 0x1 0x0</p>
<p>1x0 1x1 1x0 1x1 1x0</p>
<p>0x0 0x1 0x0 0x1 0x0</p>
<p>so</p>
<p>0 0 0 0 0</p>
<p>0 1 0 1 0</p>
<p>0 0 0 0 0</p>
<p>0 1 0 1 0</p>
<p>0 0 0 0 0</p>
<p></p>
<p>I hope this somehow help...</p>