Random Point with distance - Grasshopper2024-03-28T09:03:40Zhttps://www.grasshopper3d.com/forum/topics/random-point-with-distance?commentId=2985220%3AComment%3A818023&feed=yes&xn_auth=noAh yeah, I added the alpha ca…tag:www.grasshopper3d.com,2013-03-28:2985220:Comment:8192332013-03-28T00:22:21.403ZYoann Mescam (Systemiq)https://www.grasshopper3d.com/profile/Systemiq
<p>Ah yeah, I added the alpha calculus from the paper (delta/d0).</p>
<p>Here is how it should look like:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768804418?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768804418?profile=RESIZE_1024x1024" width="721"></img></a> It computes the distance to the closest point, for all points, and keeps lowest value.</p>
<p></p>
<p>Springs from Line creates constraints between pairs of points, if you provide a pair (= a line) with Rest Length = D, that means Kangaroo will try to keep the points…</p>
<p>Ah yeah, I added the alpha calculus from the paper (delta/d0).</p>
<p>Here is how it should look like:</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768804418?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768804418?profile=RESIZE_1024x1024" width="721"/></a>It computes the distance to the closest point, for all points, and keeps lowest value.</p>
<p></p>
<p>Springs from Line creates constraints between pairs of points, if you provide a pair (= a line) with Rest Length = D, that means Kangaroo will try to keep the points exactly D units away.</p>
<p>If Upper cutoff is set to D, that means points won't be able to be closer than D, but can be farther (its like a repulsion sphere of radius D around points).</p>
<p></p>
<p>Also, I am not sure this alpha measure is very good, you can have a very regular Voronoi with just 2 points close together. Using the variance or standard deviation of [distance of closest point] would be better.</p> Hello Systemiq,
I do not thin…tag:www.grasshopper3d.com,2013-03-27:2985220:Comment:8190032013-03-27T23:13:20.266Zpaolohttps://www.grasshopper3d.com/profile/paolo839
<p>Hello Systemiq,</p>
<p>I do not think you got it wrong. I think you understand exactly what I meant, and I would be really grateful if you would explain a little better what you did. I believe that the attached file is missing a part that you see in the image instead... where is the alfa parameter? The second thing that is not clear to me how it works the component Spring Line from Kangaroo: What is the value of Reset Length and Upper Cutoff?<br></br>Anyway thank you so ..... I am very grateful…</p>
<p>Hello Systemiq,</p>
<p>I do not think you got it wrong. I think you understand exactly what I meant, and I would be really grateful if you would explain a little better what you did. I believe that the attached file is missing a part that you see in the image instead... where is the alfa parameter? The second thing that is not clear to me how it works the component Spring Line from Kangaroo: What is the value of Reset Length and Upper Cutoff?<br/>Anyway thank you so ..... I am very grateful to for post this work, and because you have reopened the hopes in me for my thesis. You'll devote a page in the acknowledgments.....!!</p> tag:www.grasshopper3d.com,2013-03-27:2985220:Comment:8184742013-03-27T00:37:03.671ZYoann Mescam (Systemiq)https://www.grasshopper3d.com/profile/Systemiq
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805253?profile=original" target="_self"><img class="align-full" height="306" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805253?profile=original" width="468"></img></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805307?profile=original" target="_self"><img class="align-full" height="302" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805391?profile=original" width="469"></img></a> <a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805421?profile=original" target="_self"><img class="align-full" height="301" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805421?profile=original" width="467"></img></a></p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768805253?profile=original"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805253?profile=original" height="306" width="468"/></a></p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768805307?profile=original"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805391?profile=original" height="302" width="469"/></a><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768805421?profile=original"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805421?profile=original" height="301" width="467"/></a></p> Perhaps I misunderstood but t…tag:www.grasshopper3d.com,2013-03-27:2985220:Comment:8183792013-03-27T00:10:15.221ZYoann Mescam (Systemiq)https://www.grasshopper3d.com/profile/Systemiq
<p>Perhaps I misunderstood but this is easy to make with Kangaroo:</p>
<p>Perhaps I misunderstood but this is easy to make with Kangaroo:</p> Doing that in GH natively, is…tag:www.grasshopper3d.com,2013-03-26:2985220:Comment:8186152013-03-26T23:16:20.759ZHannes Löschkehttps://www.grasshopper3d.com/profile/HannesLoeschke
<p>Doing that in GH natively, is probably overkill. GH isn't designed for iterations and hoopsnake may have it's limits... If you already have a Matlab script, you may be able to transfer that to VB, Python or C#, or write your own script from the algorithm.</p>
<p>Doing that in GH natively, is probably overkill. GH isn't designed for iterations and hoopsnake may have it's limits... If you already have a Matlab script, you may be able to transfer that to VB, Python or C#, or write your own script from the algorithm.</p> You think it's impossible to…tag:www.grasshopper3d.com,2013-03-26:2985220:Comment:8184632013-03-26T22:48:18.225Zpaolohttps://www.grasshopper3d.com/profile/paolo839
<p>You think it's impossible to do this in grasshopper? i think that this is made with MATLAB. It's impossible to do this neither any VBscript. </p>
<p>I'm desperate, because this work is essential for my master thesis. I can't do nothing?</p>
<p>anyway thanks for the reply!!!</p>
<p>You think it's impossible to do this in grasshopper? i think that this is made with MATLAB. It's impossible to do this neither any VBscript. </p>
<p>I'm desperate, because this work is essential for my master thesis. I can't do nothing?</p>
<p>anyway thanks for the reply!!!</p> I want to create n point that…tag:www.grasshopper3d.com,2013-03-26:2985220:Comment:8182252013-03-26T12:01:45.293Zpaolohttps://www.grasshopper3d.com/profile/paolo839
<p>I want to create n point that meet the criterion. When an item does not meet the criteria will have to create another until every point does not meet the criterion. I want to determine the number of points and the minimum distance that must have one another.</p>
<p>I want to create n point that meet the criterion. When an item does not meet the criteria will have to create another until every point does not meet the criterion. I want to determine the number of points and the minimum distance that must have one another.</p> Do you want to select n point…tag:www.grasshopper3d.com,2013-03-26:2985220:Comment:8181192013-03-26T11:28:49.395ZHannes Löschkehttps://www.grasshopper3d.com/profile/HannesLoeschke
<p>Do you want to select n points out of a cloud of N, that have this minimum distance or dou you want to create a cloud ouf n points that meet the criterion?</p>
<p></p>
<p>Both will, to some degree, require an iteration. Say you have three points, for the two closest ones you will get one distance and still need to decide which one to remove. Depending on which you chose, the resulting distances will vary. So for a lot of points, this will come down to alot of choices and a lot of…</p>
<p>Do you want to select n points out of a cloud of N, that have this minimum distance or dou you want to create a cloud ouf n points that meet the criterion?</p>
<p></p>
<p>Both will, to some degree, require an iteration. Say you have three points, for the two closest ones you will get one distance and still need to decide which one to remove. Depending on which you chose, the resulting distances will vary. So for a lot of points, this will come down to alot of choices and a lot of trial'n'error.</p>
<p>If you want to distribute a given number of points, you may come to a state, where you need to move some of the already existing points in order not to violate the minimum distance.</p>
<p></p>
<p>Even if you don't care about the number of points left and just want no points colser than the given minimum, you could calculate the minimum distance of each point to its cell boundaries and cull those. But then you would remove both points corresponding to that distance, where you would probably need to remove only one...</p> Hi David.... thx for reply...…tag:www.grasshopper3d.com,2013-03-26:2985220:Comment:8179622013-03-26T09:39:05.890Zpaolohttps://www.grasshopper3d.com/profile/paolo839
<p>Hi David.... thx for reply... i know this! It's the same to work with HoopSnoke, and i use this for other question! It's a LLoyd's diagram, that take the centroids of voronoi. But in this way i can't control the diagram. I must define this parameter ALFA, which allow me to select a point, for control the regularity of voronoi diagram! I don't know if i explaine well! </p>
<p>In the file that i upload you can see this espression, and i want to select a n point, where i can change n, but any…</p>
<p>Hi David.... thx for reply... i know this! It's the same to work with HoopSnoke, and i use this for other question! It's a LLoyd's diagram, that take the centroids of voronoi. But in this way i can't control the diagram. I must define this parameter ALFA, which allow me to select a point, for control the regularity of voronoi diagram! I don't know if i explaine well! </p>
<p>In the file that i upload you can see this espression, and i want to select a n point, where i can change n, but any point must have a minimum distance DELTA between each other.</p>
<p>You can see in the image what the article mean: if i put n point with tistance d0, the inscribed circle in a regular exagon don't intersect any other. If i put a random point, i can accept only the point that have delta distance from each other, otherwise the circle with center in the point and radius delta intersect any other circle.</p>
<p></p>
<p>I don't know if it's possible to do this!</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805299?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805299?profile=RESIZE_1024x1024" width="721" class="align-full"/></a><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805530?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805530?profile=RESIZE_1024x1024" width="721" class="align-full"/></a><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805704?profile=original" target="_self"><br/></a><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805704?profile=original" target="_self"><br/></a> </p> Would successive relaxations…tag:www.grasshopper3d.com,2013-03-26:2985220:Comment:8180232013-03-26T08:01:05.696ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>Would successive relaxations get you there?</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805583?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805583?profile=RESIZE_1024x1024" width="721" class="align-center"/></a></p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>
<p>Would successive relaxations get you there?</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768805583?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768805583?profile=RESIZE_1024x1024" width="721" class="align-center"/></a></p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>