Pairs of Closest Points - Grasshopper2024-03-28T08:49:03Zhttps://www.grasshopper3d.com/forum/topics/pairs-of-closest-points-1?commentId=2985220%3AComment%3A1855517&feed=yes&xn_auth=nothe closest pair combination…tag:www.grasshopper3d.com,2017-11-19:2985220:Comment:18556452017-11-19T12:55:33.045ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<blockquote><p>the closest pair combination possible</p>
</blockquote>
<p>Referring to the original question, not the second one about the curves, this would be the minimum possible sum ('MA') of line lengths, right? Hyungsoo Kim's solution totals 577.98:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349533?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769349533?profile=original" width="468"></img></a></p>
<p>This one (attached) yields a sum of 561.4. The difference is that each time through the loop, I choose the…</p>
<blockquote><p>the closest pair combination possible</p>
</blockquote>
<p>Referring to the original question, not the second one about the curves, this would be the minimum possible sum ('MA') of line lengths, right? Hyungsoo Kim's solution totals 577.98:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349533?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769349533?profile=original" width="468" class="align-full"/></a></p>
<p>This one (attached) yields a sum of 561.4. The difference is that each time through the loop, I choose the shortest pair, removing those two points from further consideration:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349709?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769349709?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>Hyungsoo Kim's result:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349919?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769349919?profile=original" width="430" class="align-full"/></a></p>
<p>My result:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349973?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769349973?profile=original" width="430" class="align-full"/></a></p> I think this is a case quite…tag:www.grasshopper3d.com,2017-11-19:2985220:Comment:18554772017-11-19T07:17:57.484ZHyungsoo Kimhttps://www.grasshopper3d.com/profile/HyungsooKim
<p>I think this is a case quite different from what you initially thought.<br></br>And the solution with my Anemone depends on the order of your list. This is because it sequentially identifies and removes items one by one and produces the final result.<br></br>The attached file is a bit of an adjustment to your case, but it will not be a perfect solution.</p>
<p>(Try seed variations grouped "red".)<br></br>What you want is that the end points of the two pairs of curves are connected as closely as possible…</p>
<p>I think this is a case quite different from what you initially thought.<br/>And the solution with my Anemone depends on the order of your list. This is because it sequentially identifies and removes items one by one and produces the final result.<br/>The attached file is a bit of an adjustment to your case, but it will not be a perfect solution.</p>
<p>(Try seed variations grouped "red".)<br/>What you want is that the end points of the two pairs of curves are connected as closely as possible to each other in a similar position and must be unique.<br/>Making an algorithm that satisfies these conditions using GH 's native can be very troublesome.<br/>IMHO, you might want to ask for a solution using Scripting (C # or python).<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349289?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769349289?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> Thank you very much, this hel…tag:www.grasshopper3d.com,2017-11-19:2985220:Comment:18556162017-11-19T02:11:40.223ZLevent Ozruhhttps://www.grasshopper3d.com/profile/LeventOzruh
<p>Thank you very much, this helps a lot!</p>
<p></p>
<p>I was wondering if the following could be achieved with a similar manner;</p>
<p></p>
<p>I have to sets of curves - each set indicating a specific territory -. I want to connect these curves' end points with minimum obstruction in the central space.</p>
<p></p>
<p>I tried to do it manually; green and purple are my sets of curves and blue is kind of what I am trying to do. I realise there are not equal number of blue lines with green and…</p>
<p>Thank you very much, this helps a lot!</p>
<p></p>
<p>I was wondering if the following could be achieved with a similar manner;</p>
<p></p>
<p>I have to sets of curves - each set indicating a specific territory -. I want to connect these curves' end points with minimum obstruction in the central space.</p>
<p></p>
<p>I tried to do it manually; green and purple are my sets of curves and blue is kind of what I am trying to do. I realise there are not equal number of blue lines with green and purple but that is fine as long as the script does what I tried to do manually which is drawing lines around the perimeter and between end points of list A and B.</p> Hi.
You might want to apply s…tag:www.grasshopper3d.com,2017-11-19:2985220:Comment:18555172017-11-19T00:51:34.654ZHyungsoo Kimhttps://www.grasshopper3d.com/profile/HyungsooKim
<p>Hi.</p>
<p>You might want to apply simple loop algorithm to your task.</p>
<p>Attached is an example using "<a href="http://www.food4rhino.com/app/anemone" target="_blank">Anemone</a>" plug-in.<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349298?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769349298?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>Hi.</p>
<p>You might want to apply simple loop algorithm to your task.</p>
<p>Attached is an example using "<a href="http://www.food4rhino.com/app/anemone" target="_blank">Anemone</a>" plug-in.<a href="http://storage.ning.com/topology/rest/1.0/file/get/2769349298?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769349298?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>