Branching sorted Array in C# - Grasshopper2024-03-29T06:00:28Zhttps://www.grasshopper3d.com/forum/topics/branching-sorted-array-in-c?commentId=2985220%3AComment%3A1758355&feed=yes&xn_auth=noSpend some minutes more on th…tag:www.grasshopper3d.com,2017-05-27:2985220:Comment:17583802017-05-27T06:27:17.403Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p>Spend some minutes more on that Line thingy. See Methods</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290895?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769290895?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p><strong>Finish</strong> the other thing as well.</p>
<p>The Yaz thingy is pointless since it engulfs an awful hotel (and kitsch: I've been there for the F1 event) with a canopy solely for aesthetics (Mies are you listening?). After WW3 (soon) all these things would be forgotten.</p>
<p>Moral: long is the…</p>
<p>Spend some minutes more on that Line thingy. See Methods</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290895?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769290895?profile=RESIZE_1024x1024" class="align-full" width="721"/></a></p>
<p><strong>Finish</strong> the other thing as well.</p>
<p>The Yaz thingy is pointless since it engulfs an awful hotel (and kitsch: I've been there for the F1 event) with a canopy solely for aesthetics (Mies are you listening?). After WW3 (soon) all these things would be forgotten.</p>
<p>Moral: long is the path (and hilly)</p> Thanks a lot! Thats it!tag:www.grasshopper3d.com,2017-05-26:2985220:Comment:17583042017-05-26T22:58:56.010ZChapulin Coloradohttps://www.grasshopper3d.com/profile/ChapulinColorado
<p>Thanks a lot! Thats it!</p>
<p>Thanks a lot! Thats it!</p> tag:www.grasshopper3d.com,2017-05-26:2985220:Comment:17583552017-05-26T21:21:19.581ZDavid Stasiukhttps://www.grasshopper3d.com/profile/DavidStasiuk
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290151?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769290151?profile=original" width="544" class="align-full"/></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290151?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769290151?profile=original" width="544" class="align-full"/></a></p> Just rememberd the assign pat…tag:www.grasshopper3d.com,2017-05-26:2985220:Comment:17581972017-05-26T20:10:31.070ZChapulin Coloradohttps://www.grasshopper3d.com/profile/ChapulinColorado
<p>Just rememberd the assign paths component from the human guy, think its part of tree frog, which does the same, would be interessting to know how it works.</p>
<p>Since I am not into f1 ask my coworker, whos really into it, and she says Vettel will win, but wish you the best,hehe.</p>
<p></p>
<p>Whilst will have a look at your Line Sortings to get the gist.</p>
<p></p>
<p>ah and just stumbled over this thread a few days ago:…</p>
<p></p>
<p>Just rememberd the assign paths component from the human guy, think its part of tree frog, which does the same, would be interessting to know how it works.</p>
<p>Since I am not into f1 ask my coworker, whos really into it, and she says Vettel will win, but wish you the best,hehe.</p>
<p></p>
<p>Whilst will have a look at your Line Sortings to get the gist.</p>
<p></p>
<p>ah and just stumbled over this thread a few days ago:</p>
<p><a href="http://www.grasshopper3d.com/forum/topics/ptpanelgridquads-in-gh?x=1&id=2985220%3ATopic%3A1234864&page=1#comments" target="_blank">http://www.grasshopper3d.com/forum/topics/ptpanelgridquads-in-gh?x=1&id=2985220%3ATopic%3A1234864&page=1#comments</a></p>
<p>I really like that stuff(Schlaich Bergermann und Partner as engineers), will try next week to get something similar.</p>
<p></p> Whilst I'm working for a gene…tag:www.grasshopper3d.com,2017-05-26:2985220:Comment:17582232017-05-26T08:28:38.207Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p>Whilst I'm working for a generic sort with regard ducks or dogs ( but not cats or alligators) ... see attached.</p>
<p>Big questions:</p>
<p>1. Why only one mode works?</p>
<p>2. Can we sort something without a property or that something?</p>
<p>3. What if we had boxes instead?</p>
<p>4. Can Lewis win at Monaco this w/e?</p>
<p>5. What does the Duck.CovertCount ? (see SDK).</p>
<p>Whilst I'm working for a generic sort with regard ducks or dogs ( but not cats or alligators) ... see attached.</p>
<p>Big questions:</p>
<p>1. Why only one mode works?</p>
<p>2. Can we sort something without a property or that something?</p>
<p>3. What if we had boxes instead?</p>
<p>4. Can Lewis win at Monaco this w/e?</p>
<p>5. What does the Duck.CovertCount ? (see SDK).</p> No .. when I say sync Array (…tag:www.grasshopper3d.com,2017-05-25:2985220:Comment:17577392017-05-25T15:05:41.188Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p>No .. when I say sync Array (sync: synchronous) I mean other things.</p>
<p>Anyway ... see attached that makes chaos (good) and then restores order (bad). The thing is that if we had some boxes instead of Lines the Sort should be different (same for sardines etc etc) ... meaning that without a type (+ properties) what exactly to Sort? Answers: The Lord, blah, blah</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290826?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769290826?profile=RESIZE_1024x1024" width="721"></img></a> For…</p>
<p>No .. when I say sync Array (sync: synchronous) I mean other things.</p>
<p>Anyway ... see attached that makes chaos (good) and then restores order (bad). The thing is that if we had some boxes instead of Lines the Sort should be different (same for sardines etc etc) ... meaning that without a type (+ properties) what exactly to Sort? Answers: The Lord, blah, blah</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290826?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769290826?profile=RESIZE_1024x1024" class="align-full" width="721"/></a>For instance imagine that we have to Sort ducks ... but due to the Law of unintended consequences there's dogs around. What to do?</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769291007?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769291007?profile=original" class="align-full" width="523"/></a></p> ok,thanks Peter, will try the…tag:www.grasshopper3d.com,2017-05-25:2985220:Comment:17577342017-05-25T14:36:31.806ZChapulin Coloradohttps://www.grasshopper3d.com/profile/ChapulinColorado
<p>ok,thanks Peter, will try the Array thing,seems to be easiest for me.</p>
<p>I was asking me: the GH sort component, to be able to work on any geometry/data type how is it written is it some huge</p>
<p>if Curve {</p>
<p> Curve[] crvsA = crvs.ToArray()}</p>
<p>if Point 3d{</p>
<p>Point3d[] ptsA = pts.ToArray()}</p>
<p></p>
<p>or is there a more generic way to avoid copying it for every type?</p>
<p></p>
<p></p>
<p>thanks!</p>
<p></p>
<p></p>
<p>ok,thanks Peter, will try the Array thing,seems to be easiest for me.</p>
<p>I was asking me: the GH sort component, to be able to work on any geometry/data type how is it written is it some huge</p>
<p>if Curve {</p>
<p> Curve[] crvsA = crvs.ToArray()}</p>
<p>if Point 3d{</p>
<p>Point3d[] ptsA = pts.ToArray()}</p>
<p></p>
<p>or is there a more generic way to avoid copying it for every type?</p>
<p></p>
<p></p>
<p>thanks!</p>
<p></p>
<p></p> For sorting sardines out of a…tag:www.grasshopper3d.com,2017-05-25:2985220:Comment:17575252017-05-25T06:12:53.317Zpeter fotiadishttps://www.grasshopper3d.com/profile/peterfotiadis
<p>For sorting sardines out of apples Use (ThenBy is optional and arbitrary):</p>
<p><strong>pList = pList.OrderBy(x=>x.Z).ThenBy(x=>x.Y).ToList();</strong></p>
<p>Other options:</p>
<p>(a) Use sorted Dictionary (key = point, value = point.Z),</p>
<p>(b) Sync sort using an Array,</p>
<p>(c) Use LINQ/queries in a variety of ways (see N3).</p>
<p>(d) Forget all that and learn windsurfing.</p>
<p>For sorting sardines out of apples Use (ThenBy is optional and arbitrary):</p>
<p><strong>pList = pList.OrderBy(x=>x.Z).ThenBy(x=>x.Y).ToList();</strong></p>
<p>Other options:</p>
<p>(a) Use sorted Dictionary (key = point, value = point.Z),</p>
<p>(b) Sync sort using an Array,</p>
<p>(c) Use LINQ/queries in a variety of ways (see N3).</p>
<p>(d) Forget all that and learn windsurfing.</p> ok , was reading a little bit…tag:www.grasshopper3d.com,2017-05-24:2985220:Comment:17572372017-05-24T20:25:16.889ZChapulin Coloradohttps://www.grasshopper3d.com/profile/ChapulinColorado
<p>ok , was reading a little bit more about sorting but I am still not sure if I want to use some doubles as sortable keys to sort some geometry accordingly, is the array my friend? Also read about the zip function, but not sure what to use. And how, hehe.</p>
<p></p>
<p>like doing this: …<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290446?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769290446?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>ok , was reading a little bit more about sorting but I am still not sure if I want to use some doubles as sortable keys to sort some geometry accordingly, is the array my friend? Also read about the zip function, but not sure what to use. And how, hehe.</p>
<p></p>
<p>like doing this: <a href="http://storage.ning.com/topology/rest/1.0/file/get/2769290446?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769290446?profile=RESIZE_1024x1024" class="align-full" width="721"/></a></p> 4 and 5 are nice, five obviou…tag:www.grasshopper3d.com,2017-05-24:2985220:Comment:17572272017-05-24T19:08:53.715ZChapulin Coloradohttps://www.grasshopper3d.com/profile/ChapulinColorado
<p>4 and 5 are nice, five obviously nicest(shortest).<br/>Well edited this comment will think a bit of it to get clearer what I want.</p>
<p>Thanks for your help to this point.</p>
<p></p>
<p>Regards!</p>
<p>4 and 5 are nice, five obviously nicest(shortest).<br/>Well edited this comment will think a bit of it to get clearer what I want.</p>
<p>Thanks for your help to this point.</p>
<p></p>
<p>Regards!</p>