Galapagos - Dividing 2 Rail Curve Into equal areas - Grasshopper2024-03-28T13:44:31Zhttps://www.grasshopper3d.com/forum/topics/galapagos-dividing-2-rail-curve-into-equal-areas?commentId=2985220%3AComment%3A752939&feed=yes&xn_auth=noI'm so sorry Fred -as usual-…tag:www.grasshopper3d.com,2013-01-20:2985220:Comment:7731442013-01-20T10:27:21.594Zstefano vafiadishttps://www.grasshopper3d.com/profile/stefanovafiadis
<p>I'm so sorry Fred -as usual- for my late reply! <br/>Frankly it took me a while to understand it but now i can say that your algorithm is really perfect.<br/>I also realized that Galapagos i such a powerful tool (...and my knowing of it must increase, because it's = 0!!!)</p>
<p></p>
<p>Thanks again and again Fred!</p>
<p><br/>PS: I do really think that this community is one of the strengths that made Grasshopper so loved by people.</p>
<p>I'm so sorry Fred -as usual- for my late reply! <br/>Frankly it took me a while to understand it but now i can say that your algorithm is really perfect.<br/>I also realized that Galapagos i such a powerful tool (...and my knowing of it must increase, because it's = 0!!!)</p>
<p></p>
<p>Thanks again and again Fred!</p>
<p><br/>PS: I do really think that this community is one of the strengths that made Grasshopper so loved by people.</p> Couldn't help it...
This one…tag:www.grasshopper3d.com,2013-01-06:2985220:Comment:7643802013-01-06T03:37:10.588ZFred Becquelinhttps://www.grasshopper3d.com/profile/FBecquelin
<p>Couldn't help it...</p>
<p>This one is much cleaner.</p>
<p>Maybe I have to explain that the whole point of wrestling with param domains is to avoid the plain and simple region boolean components. Faaaar too slow to be used in a solver set up.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768785912?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768785912?profile=RESIZE_1024x1024" width="650"></img></a> Also, the final tweak : You'll notice the dark blue group, it sets a higher average value than possible. this avoids the…</p>
<p>Couldn't help it...</p>
<p>This one is much cleaner.</p>
<p>Maybe I have to explain that the whole point of wrestling with param domains is to avoid the plain and simple region boolean components. Faaaar too slow to be used in a solver set up.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768785912?profile=original"><img width="650" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768785912?profile=RESIZE_1024x1024" width="650"/></a>Also, the final tweak : You'll notice the dark blue group, it sets a higher average value than possible. this avoids the "cutting corners" that occurred with the real average (in red). Plus the total area is higher, which is good, I guess.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768786143?profile=original"><img width="580" class="align-center" src="http://storage.ning.com/topology/rest/1.0/file/get/2768786143?profile=RESIZE_1024x1024" width="580"/></a>That's all Folks!</p>
<p>***Happy New Year***</p> Er, I'm not too sure... Just…tag:www.grasshopper3d.com,2012-12-27:2985220:Comment:7546362012-12-27T12:30:48.021ZFred Becquelinhttps://www.grasshopper3d.com/profile/FBecquelin
<p>Er, I'm not too sure... Just some random wiring I guess!</p>
<p>It' the length of the domains that I use to dispatch. I don't want a subcurve from 0.0215 to 1, it's irrelevant.but I want the 0 to 0.0215 part to join it with the 0.954 to 1 that I get from the other side.</p>
<p>It's the problem when using the modulus trick. The first parameter may belong either to the first/last division line, or the second one. Accordingly the last parameter will correspond either to the first/last or the…</p>
<p>Er, I'm not too sure... Just some random wiring I guess!</p>
<p>It' the length of the domains that I use to dispatch. I don't want a subcurve from 0.0215 to 1, it's irrelevant.but I want the 0 to 0.0215 part to join it with the 0.954 to 1 that I get from the other side.</p>
<p>It's the problem when using the modulus trick. The first parameter may belong either to the first/last division line, or the second one. Accordingly the last parameter will correspond either to the first/last or the "penultimate" line.</p>
<p>So I came up with this complicated and unintuitive way of determining which side of the seam I was. Not very smart and elegant indeed, but thanks for your compliment anyway!</p>
<p>Congrats for your graduation.</p> Hello Fred!
Sorry for the lat…tag:www.grasshopper3d.com,2012-12-22:2985220:Comment:7529392012-12-22T19:40:07.062Zstefano vafiadishttps://www.grasshopper3d.com/profile/stefanovafiadis
<p>Hello Fred!</p>
<p>Sorry for the late reply but i graduated and then started working immediatly so how you can imagine the last 3 weeks had been very intense!</p>
<p>Thanks for your very interisting reply, your algorithm is very smart and elegant, many solution (like the "modulus" comand to adjust numbers bigger than 1 i suppose) will be very usefull for my next Grasshopper challenges...</p>
<p>Anyway i tried it and i think it's all very clear thanks also to your explanations, the only…</p>
<p>Hello Fred!</p>
<p>Sorry for the late reply but i graduated and then started working immediatly so how you can imagine the last 3 weeks had been very intense!</p>
<p>Thanks for your very interisting reply, your algorithm is very smart and elegant, many solution (like the "modulus" comand to adjust numbers bigger than 1 i suppose) will be very usefull for my next Grasshopper challenges...</p>
<p>Anyway i tried it and i think it's all very clear thanks also to your explanations, the only thing i didn't get is why you test the majority of the parameters of the curve with "0.5" and then you dispatch them...</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768782717?profile=original" target="_self"><img width="500" src="http://storage.ning.com/topology/rest/1.0/file/get/2768782717?profile=RESIZE_1024x1024" width="500" class="align-full"/></a></p>
<p>What do you want to achieve in that way?<br/><br/></p>
<p>Anyway the rest it's, in my opinion, well understood and very helpfull too!</p>
<p>Thanks again and again!!!</p>
<p></p>
<p>Kind regards,</p>
<p>Stefano///</p> tag:www.grasshopper3d.com,2012-12-05:2985220:Comment:7419732012-12-05T18:52:17.009ZFred Becquelinhttps://www.grasshopper3d.com/profile/FBecquelin
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768779227?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768779227?profile=RESIZE_1024x1024" width="721"/></a></p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768779227?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768779227?profile=RESIZE_1024x1024" width="721"/></a></p> Hi,
Well I'm so sorry I didn'…tag:www.grasshopper3d.com,2012-12-05:2985220:Comment:7418562012-12-05T18:41:03.614ZFred Becquelinhttps://www.grasshopper3d.com/profile/FBecquelin
<p>Hi,</p>
<p>Well I'm so sorry I didn't have time to come back for a long time!</p>
<p>I had a bug in the part that deals with the inner curve seam, always troublesome:) I just killed it.</p>
<p>Here is my attempt, it works quite well I think.…</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768777122?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768777122?profile=RESIZE_1024x1024" width="500"></img></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768777432?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768777432?profile=RESIZE_1024x1024" width="500"></img></a></p>
<p>Hi,</p>
<p>Well I'm so sorry I didn't have time to come back for a long time!</p>
<p>I had a bug in the part that deals with the inner curve seam, always troublesome:) I just killed it.</p>
<p>Here is my attempt, it works quite well I think.</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768777122?profile=original"><img width="500" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768777122?profile=RESIZE_1024x1024" width="500"/></a></p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768777432?profile=original"><img width="500" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768777432?profile=RESIZE_1024x1024" width="500"/></a></p>
<p>I found that the best way was to solve each rail separately.The reason for that is that one division depends on the other. It's also much quicker than solving everything in one shot.</p>
<p></p>
<p>Run the 1st solver with the inner points genelist set to zeros.</p>
<p>The outer points genelist actually controls both divisions at the same time.</p>
<p>This ensures that the separation lines remain roughly perpendicular to the rails</p>
<p>Then run the 2nd solver for refining.</p>
<p></p>
<p>Run both solvers in annealing mode, as there are obviously several possibilities. Of course the longer the better.</p>
<p></p>
<p>You can see a pattern in the genomes, which means that there must be an analytic solution to this problem. Gives me a headache! I think it's a great example of the use of galapagos. David you can use it if you like of course.</p>
<p></p>
<p>Thanks for the food!</p> Hi Stefano,
Sorry, I think I…tag:www.grasshopper3d.com,2012-12-03:2985220:Comment:7400062012-12-03T09:01:41.155Zphilliphttps://www.grasshopper3d.com/profile/phillip
<p>Hi Stefano,</p>
<p>Sorry, I think I was missing something fundametal here:</p>
<p></p>
<p><em>Record: Multiple fitness values were supplied, fitness is defined as the average.</em></p>
<p><em> </em></p>
<p>So The reason on thing worked better was more or less coincidence. </p>
<p>Lets try this again:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768772412?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768772412?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p>(the input curves would be your two rails.)</p>
<p>So…</p>
<p>Hi Stefano,</p>
<p>Sorry, I think I was missing something fundametal here:</p>
<p></p>
<p><em>Record: Multiple fitness values were supplied, fitness is defined as the average.</em></p>
<p><em> </em></p>
<p>So The reason on thing worked better was more or less coincidence. </p>
<p>Lets try this again:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768772412?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768772412?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>(the input curves would be your two rails.)</p>
<p>So far... </p>
<p>Best,</p>
<p>Phillip</p>
<p></p>
<p></p> Thanks a lot everyone!
I'm so…tag:www.grasshopper3d.com,2012-12-02:2985220:Comment:7399152012-12-02T11:38:51.668Zstefano vafiadishttps://www.grasshopper3d.com/profile/stefanovafiadis
<p>Thanks a lot everyone!</p>
<p>I'm so sorry for my late feedback but i'm 100% focused on my thesis project that i have to deliver tomorrow.</p>
<p>I'm sorry twice David but at the end i used the "Equalize N" command from Kangaroo and i applied it to the medium side of my trapezoids that form the perimeter.</p>
<p>The result was not very precise though but in my case (quite desperate) acceptable.…</p>
<p></p>
<p>Thanks a lot everyone!</p>
<p>I'm so sorry for my late feedback but i'm 100% focused on my thesis project that i have to deliver tomorrow.</p>
<p>I'm sorry twice David but at the end i used the "Equalize N" command from Kangaroo and i applied it to the medium side of my trapezoids that form the perimeter.</p>
<p>The result was not very precise though but in my case (quite desperate) acceptable.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768775449?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768775449?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>Anyway i tried also to solve the overshoot problem that Phillip too encountered <strong>dividing each frame of the curve 100 times</strong> (creating a sort of domain) and giving the possibility to slide with a <strong>shift list value</strong> given by the genome each iteration.</p>
<p>I will try to make it work as a finish my task and i will let you know!</p>
<p>Phillip sorry but i suppose your version of Ghs is newer than mine (yes i know i have to update!) and i can't open it... Anyway was it working well your definition with absolutes???</p>
<p></p>
<p>Thanks again,</p>
<p>Hear you soon,</p>
<p>Stefano///</p> (absolutes seems to work bett…tag:www.grasshopper3d.com,2012-11-30:2985220:Comment:7385882012-11-30T10:52:51.781Zphilliphttps://www.grasshopper3d.com/profile/phillip
<p>(absolutes seems to work better - strange.)</p>
<p>(absolutes seems to work better - strange.)</p> Interesting task.
Just had a…tag:www.grasshopper3d.com,2012-11-30:2985220:Comment:7386362012-11-30T10:19:38.132Zphilliphttps://www.grasshopper3d.com/profile/phillip
<p>Interesting task.</p>
<p>Just had a quick look, but your problem seems to be the domains. By giving every genome the possibility to add or substract a value, you give it the chance your values actually overshoot 1 or 0.</p>
<p>This also means your curves do not need to be closed, so they do not produce an area.</p>
<p>I did a small try giving not initial divisions and adding 0 and 1 manually. Not really satisfied with the result though. Maybe it would also be better to not make the division…</p>
<p>Interesting task.</p>
<p>Just had a quick look, but your problem seems to be the domains. By giving every genome the possibility to add or substract a value, you give it the chance your values actually overshoot 1 or 0.</p>
<p>This also means your curves do not need to be closed, so they do not produce an area.</p>
<p>I did a small try giving not initial divisions and adding 0 and 1 manually. Not really satisfied with the result though. Maybe it would also be better to not make the division on the second curve so rigid. </p>
<p>I will play some more as soon as possible. Also looking forward to see other solutions.</p>
<p>Best,</p>
<p>Phillip</p>
<p></p>