Simple Tree Structuring Question - Partition List for Branches - Grasshopper 2023-12-11T03:05:43Z https://www.grasshopper3d.com/forum/topics/simple-tree-structuring-question-partition-list-for-branches?commentId=2985220%3AComment%3A1753480&feed=yes&xn_auth=no That is interesting. Now I ha… tag:www.grasshopper3d.com,2018-08-31:2985220:Comment:1928292 2018-08-31T09:55:59.013Z Congzheng ZOU https://www.grasshopper3d.com/profile/CongzhengZOU <p>That is interesting. Now I have this question. How can you partition your lists in this way:</p> <p>{0;0} N = 3</p> <p>{0;1} N = 3</p> <p>{1;0} N = 5</p> <p>{1;1} N = 5</p> <p>{2;0} N = 30</p> <p>{2;1} N = 30</p> <p></p> <p>partition these six branches into three parts:</p> <p>branch 1:</p> <p>{0;0} N = 3</p> <p>{0;1} N = 3</p> <p></p> <p>branch 2:</p> <p>{1;0} N = 5</p> <p>{1;1} N = 5</p> <p></p> <p>branch 3:</p> <p>{2;0} N = 30</p> <p>{2;1} N = 30</p> <p></p> <p>parthmapper won't change…</p> <p>That is interesting. Now I have this question. How can you partition your lists in this way:</p> <p>{0;0} N = 3</p> <p>{0;1} N = 3</p> <p>{1;0} N = 5</p> <p>{1;1} N = 5</p> <p>{2;0} N = 30</p> <p>{2;1} N = 30</p> <p></p> <p>partition these six branches into three parts:</p> <p>branch 1:</p> <p>{0;0} N = 3</p> <p>{0;1} N = 3</p> <p></p> <p>branch 2:</p> <p>{1;0} N = 5</p> <p>{1;1} N = 5</p> <p></p> <p>branch 3:</p> <p>{2;0} N = 30</p> <p>{2;1} N = 30</p> <p></p> <p>parthmapper won't change the length of branch, explode tree won't give me two branches in one output</p> <p></p> I should have used "floor" to… tag:www.grasshopper3d.com,2017-05-19:2985220:Comment:1754295 2017-05-19T19:45:30.465Z Ernst Bay https://www.grasshopper3d.com/profile/ErnstBay <p>I should have used "floor" to make it more like David's example above. </p> <p>I should have used "floor" to make it more like David's example above. </p> Took me a while to figure thi… tag:www.grasshopper3d.com,2017-05-19:2985220:Comment:1754383 2017-05-19T19:43:45.541Z Ernst Bay https://www.grasshopper3d.com/profile/ErnstBay <p>Took me a while to figure this out since I had no idea which component to use and because I had no idea how path mapper works (that seems to be the component for the job!). Attached divides branches into groups of 2 (as per the notes above).…</p> <p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769287322?profile=original" target="_self"></a></p> <p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769287322?profile=original" target="_self"></a></p> <p></p> <p>Took me a while to figure this out since I had no idea which component to use and because I had no idea how path mapper works (that seems to be the component for the job!). Attached divides branches into groups of 2 (as per the notes above).</p> <p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769287322?profile=original" target="_self"></a></p> <p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769287322?profile=original" target="_self"></a></p> <p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769287552?profile=original" target="_self"></a></p> <p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769287552?profile=original" target="_self"></a></p> <p></p> That is exactly what I am loo… tag:www.grasshopper3d.com,2017-05-18:2985220:Comment:1753655 2017-05-18T16:47:40.655Z Ernst Bay https://www.grasshopper3d.com/profile/ErnstBay <p>That is exactly what I am looking for. n is known. x and y are not known but are unimportant. The number of base level branches (or the total number of initial branches) after transformation is not known, but there will be an even number of sub-branches in each branch.</p> <p></p> <p>Thank you.</p> <p>That is exactly what I am looking for. n is known. x and y are not known but are unimportant. The number of base level branches (or the total number of initial branches) after transformation is not known, but there will be an even number of sub-branches in each branch.</p> <p></p> <p>Thank you.</p> So you have: {0} N = 3 {1} N… tag:www.grasshopper3d.com,2017-05-18:2985220:Comment:1753480 2017-05-18T14:53:13.682Z David Rutten https://www.grasshopper3d.com/profile/DavidRutten <p>So you have:</p> <p></p> <p>{0} N = 3</p> <p>{1} N = 3</p> <p>{2} N = 5</p> <p>{3} N = 5</p> <p>...</p> <p></p> <p>Where n=2, x=3 and y=5? And you want:</p> <p></p> <p>{0;0} N = 3</p> <p>{0;1} N = 3</p> <p>{1;0} N = 5</p> <p>{1;1} N = 5</p> <p>...</p> <p></p> <p>Or did I misunderstand?</p> <p></p> <p>Also, do you know n, x and y, or do you need GH to figure out these values at runtime?</p> <p>So you have:</p> <p></p> <p>{0} N = 3</p> <p>{1} N = 3</p> <p>{2} N = 5</p> <p>{3} N = 5</p> <p>...</p> <p></p> <p>Where n=2, x=3 and y=5? And you want:</p> <p></p> <p>{0;0} N = 3</p> <p>{0;1} N = 3</p> <p>{1;0} N = 5</p> <p>{1;1} N = 5</p> <p>...</p> <p></p> <p>Or did I misunderstand?</p> <p></p> <p>Also, do you know n, x and y, or do you need GH to figure out these values at runtime?</p>