Approach to distribute objects randomly while avoiding intersection - Grasshopper2024-03-29T12:23:04Zhttps://www.grasshopper3d.com/forum/topics/approach-to-distribute-objects-randomly-while-avoiding?commentId=2985220%3AComment%3A1717493&x=1&feed=yes&xn_auth=noGreat work!
Starting from you…tag:www.grasshopper3d.com,2020-05-07:2985220:Comment:20644642020-05-07T09:51:45.793ZViola Cambiéhttps://www.grasshopper3d.com/profile/ViolaCambie
<p>Great work!</p>
<p>Starting from your example I would like to try a similar exercise: positioning circles going farther from a specific point and not shuffling the list every iteration.</p>
<p>Any suggestion on how to achieve this? </p>
<p>Thanks in advance!</p>
<p>Great work!</p>
<p>Starting from your example I would like to try a similar exercise: positioning circles going farther from a specific point and not shuffling the list every iteration.</p>
<p>Any suggestion on how to achieve this? </p>
<p>Thanks in advance!</p> Looks like you understand it…tag:www.grasshopper3d.com,2017-03-21:2985220:Comment:17174932017-03-21T17:12:21.177ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Looks like you understand it well enough to use it - cool! Would love to see your work but you forgot to internalize your reference curves and meshes. Right-click those params and "Internalize data" to avoid having to send a Rhino file.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769263700?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769263700?profile=original" width="255" class="align-full"/></a></p>
<p>Looks like you understand it well enough to use it - cool! Would love to see your work but you forgot to internalize your reference curves and meshes. Right-click those params and "Internalize data" to avoid having to send a Rhino file.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769263700?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769263700?profile=original" width="255" class="align-full"/></a></p> Thank you Joseph Oster, this…tag:www.grasshopper3d.com,2017-03-21:2985220:Comment:17174782017-03-21T16:24:19.429Zd@2Thttps://www.grasshopper3d.com/profile/d2T
<p>Thank you Joseph Oster, this does right what I was looking for and the time will come that I also understand how it does it.<br></br>To reproduce the initial design I changed some slight details for my purposes, like mirroring the tubes, rotating them against z-axis with step-wise angles, using rhino geometry for the area and using meshes as external colliders.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769263772?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769263772?profile=RESIZE_1024x1024" width="721"></img></a> Its now…</p>
<p>Thank you Joseph Oster, this does right what I was looking for and the time will come that I also understand how it does it.<br/>To reproduce the initial design I changed some slight details for my purposes, like mirroring the tubes, rotating them against z-axis with step-wise angles, using rhino geometry for the area and using meshes as external colliders.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769263772?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769263772?profile=RESIZE_1024x1024" class="align-full" width="721"/></a>Its now easy to use different shapes</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769264939?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769264939?profile=RESIZE_1024x1024" class="align-full" width="721"/></a><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769265551?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769265551?profile=original" class="align-full"/></a></p> Adding fixed obstacles is ext…tag:www.grasshopper3d.com,2017-03-21:2985220:Comment:17174392017-03-21T13:07:16.526ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Adding fixed obstacles is extremely easy.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769263298?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769263298?profile=original" width="611" class="align-full"/></a></p>
<p>Adding fixed obstacles is extremely easy.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769263298?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769263298?profile=original" width="611" class="align-full"/></a></p> This is freakin amazing, just…tag:www.grasshopper3d.com,2017-03-21:2985220:Comment:17172602017-03-21T12:09:45.018Zd@2Thttps://www.grasshopper3d.com/profile/d2T
<p>This is freakin amazing, just what I was looking for! Though it will take some time to comprehend this gem, I will try to implement the option to place external 'colliders' to leave out certain spaces (imagine placing a sphere somwhere in this tangle and omit sticks that intersect with it).</p>
<p>Thank you so much!</p>
<p>This is freakin amazing, just what I was looking for! Though it will take some time to comprehend this gem, I will try to implement the option to place external 'colliders' to leave out certain spaces (imagine placing a sphere somwhere in this tangle and omit sticks that intersect with it).</p>
<p>Thank you so much!</p> This is actually one approach…tag:www.grasshopper3d.com,2017-03-21:2985220:Comment:17174292017-03-21T12:01:38.153Zd@2Thttps://www.grasshopper3d.com/profile/d2T
<p>This is actually one approach I thougth of, but I wasn't able to put it into practice properly. The downside here in my opinion is the difficulty to control the resulting amount of sticks - which is crucial to me.<br/>But this sounds like a case for galapagos, where the the <em>gene</em> would be the seed to randomize points and the <em>fitness</em> would be the resulting amount of pipes that don't intersect?</p>
<p>My thanks, anyway!</p>
<p>This is actually one approach I thougth of, but I wasn't able to put it into practice properly. The downside here in my opinion is the difficulty to control the resulting amount of sticks - which is crucial to me.<br/>But this sounds like a case for galapagos, where the the <em>gene</em> would be the seed to randomize points and the <em>fitness</em> would be the resulting amount of pipes that don't intersect?</p>
<p>My thanks, anyway!</p> This is a better version of t…tag:www.grasshopper3d.com,2017-03-21:2985220:Comment:17168082017-03-21T01:56:11.358ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>This is a better version of the <a href="http://www.food4rhino.com/app/anemone" target="_blank">Anemone loop</a> approach to this challenge. More robust, more fun to play with and watch. The green "X' points are the ones that remain unoccupied, the blue pipe is the one being tested. The basic idea is simple. What is quite challenging in Grasshopper, compared to conventional programming languages, is the lack of "if ___ then" to avoid possible error conditions. Instead, both…</p>
<p>This is a better version of the <a href="http://www.food4rhino.com/app/anemone" target="_blank">Anemone loop</a> approach to this challenge. More robust, more fun to play with and watch. The green "X' points are the ones that remain unoccupied, the blue pipe is the one being tested. The basic idea is simple. What is quite challenging in Grasshopper, compared to conventional programming languages, is the lack of "if ___ then" to avoid possible error conditions. Instead, both possibilities must be generated and then the correct one selected with 'Stream Filters'.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261091?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769261091?profile=RESIZE_1024x1024" width="721" class="align-full"/></a>This is what it looks like when that loop finishes - none of the pipes collide.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261629?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769261629?profile=original" width="586" class="align-full"/></a></p> Anemone - This was fun. You…tag:www.grasshopper3d.com,2017-03-20:2985220:Comment:17168442017-03-20T21:29:57.596ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p><a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwi1_7Cwg-bSAhUC4WMKHbYkAu4QFggcMAA&url=http%3A%2F%2Fwww.food4rhino.com%2Fapp%2Fanemone&usg=AFQjCNFWpOmZ8XvAyZcdvH2cJ-hivyZbzQ&sig2=HqlFGMEyCQRaN4GdDZDerw" rel="nofollow" target="_blank">Anemone</a> - This was fun. You could use 'Fast Loop' but it's fun to watch.…</p>
<p></p>
<p><a rel="nofollow" href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwi1_7Cwg-bSAhUC4WMKHbYkAu4QFggcMAA&url=http%3A%2F%2Fwww.food4rhino.com%2Fapp%2Fanemone&usg=AFQjCNFWpOmZ8XvAyZcdvH2cJ-hivyZbzQ&sig2=HqlFGMEyCQRaN4GdDZDerw" target="_blank">Anemone</a> - This was fun. You could use 'Fast Loop' but it's fun to watch.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261284?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769261284?profile=original" width="516" class="align-full"/></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261633?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769261633?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>I see that Brian Harms has done a version without looping. Interesting approach but different model so different results.</p> Here is an example of that
tag:www.grasshopper3d.com,2017-03-20:2985220:Comment:17169362017-03-20T20:35:04.697ZBrian Harmshttps://www.grasshopper3d.com/profile/BrianHarms
<p>Here is an example of that</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261496?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769261496?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>Here is an example of that</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261496?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769261496?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> You could also just create a…tag:www.grasshopper3d.com,2017-03-20:2985220:Comment:17170222017-03-20T20:12:50.834ZBrian Harmshttps://www.grasshopper3d.com/profile/BrianHarms
<p>You could also just create a bunch of sticks that are randomly placed/angled, and just cull all the ones that happen to have intersections. </p>
<p>You could also just create a bunch of sticks that are randomly placed/angled, and just cull all the ones that happen to have intersections. </p>