All Discussions Tagged 'kangaroo2' - Grasshopper2024-03-28T15:48:10Zhttps://www.grasshopper3d.com/group/kangaroo/forum/topic/listForTag?tag=kangaroo2&feed=yes&xn_auth=noData visualisation with 2D Circle Packingtag:www.grasshopper3d.com,2018-06-29:2985220:Topic:19168062018-06-29T09:38:53.268ZMax Marschallhttps://www.grasshopper3d.com/profile/MaxMarschall
<p>Hi all,</p>
<p>I'm trying to do a 2D data visualisation animation where I have several circles that gradually change their radii over time. I want the circles to touch but not overlap, and to 'gravitate' towards the origin. I.e. it may start like this:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655080580?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2655080580?profile=RESIZE_320x320" width="200"></img></a></p>
<p>Then one gets bigger:…</p>
<p></p>
<p>Hi all,</p>
<p>I'm trying to do a 2D data visualisation animation where I have several circles that gradually change their radii over time. I want the circles to touch but not overlap, and to 'gravitate' towards the origin. I.e. it may start like this:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655080580?profile=original" target="_self"><img width="200" src="http://storage.ning.com/topology/rest/1.0/file/get/2655080580?profile=RESIZE_320x320" width="200" class="align-full"/></a></p>
<p>Then one gets bigger:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655080870?profile=original" target="_self"><img width="200" src="http://storage.ning.com/topology/rest/1.0/file/get/2655080870?profile=RESIZE_320x320" width="200" class="align-full"/></a></p>
<p>So they rearrange to something like this:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655080933?profile=original" target="_self"><img width="200" src="http://storage.ning.com/topology/rest/1.0/file/get/2655080933?profile=RESIZE_320x320" width="200" class="align-full"/></a></p>
<p>It might have to be that the bigger the circles, the 'heavier' they are, thereby gravitating more towards the origin and pushing smaller circles aside.</p>
<p></p>
<p>Pretty sure this is a Kangaroo task but I'm new to the plugin and not sure which key words to search for. I've tried 'circle packing' and 'collision' but haven't found quite what I'm looking for. I've tried editing Daniel's "SphereCollide_MultipleRadii" example (gh attached):</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655081109?profile=original" target="_self"><img width="750" src="http://storage.ning.com/topology/rest/1.0/file/get/2655081109?profile=RESIZE_1024x1024" width="750" class="align-full"/></a></p>
<p>but it doesn't converge; the circles overlap and flutter out of control, here is a snapshot:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655081256?profile=original" target="_self"><img width="350" src="http://storage.ning.com/topology/rest/1.0/file/get/2655081256?profile=RESIZE_480x480" width="350" class="align-full"/></a></p>
<p>Any help to point me in the right direction would be greatly appreciated!</p>
<p></p>
<p></p> Hydrostatic Pressure in Kangaroo 2tag:www.grasshopper3d.com,2017-10-18:2985220:Topic:18349172017-10-18T15:09:04.861ZAnnie Locke Schererhttps://www.grasshopper3d.com/profile/AnnieLockeScherer
<p>I'm working on simulating cast concrete in fabric that has a <a href="https://en.wikipedia.org/wiki/Smocking" target="_blank">smocking</a> pattern. I am currently using pressure to simulate the concrete, but wanted to have a bit more realistic control. I know Kangaroo has hydrostatic pressure, but what is the best way to simulate it using Kangaroo 2? Thanks in advance!…</p>
<p></p>
<p></p>
<p>I'm working on simulating cast concrete in fabric that has a <a href="https://en.wikipedia.org/wiki/Smocking" target="_blank">smocking</a> pattern. I am currently using pressure to simulate the concrete, but wanted to have a bit more realistic control. I know Kangaroo has hydrostatic pressure, but what is the best way to simulate it using Kangaroo 2? Thanks in advance!</p>
<p></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655070066?profile=original" target="_self"><img width="750" src="http://storage.ning.com/topology/rest/1.0/file/get/2655070066?profile=RESIZE_1024x1024" width="750" class="align-full"/></a></p> K2 Engineering Outputtag:www.grasshopper3d.com,2017-07-11:2985220:Topic:17820982017-07-11T12:43:30.599ZMaryanne Wachterhttps://www.grasshopper3d.com/profile/MaryanneWachter
<p>Apologies if this is an obvious question, but I'm fairly new to Kangaroo2.</p>
<p></p>
<p>I'm trying to use the K2 Engineering package to get stress/reactions from a simple input curve that relaxes to an elastica shape. While I've been able to isolate the K2Engineering goals from the output of the Solver component, I'm getting two errors in the CastRodOutput component (see screenshot).…</p>
<p></p>
<p></p>
<p>Apologies if this is an obvious question, but I'm fairly new to Kangaroo2.</p>
<p></p>
<p>I'm trying to use the K2 Engineering package to get stress/reactions from a simple input curve that relaxes to an elastica shape. While I've been able to isolate the K2Engineering goals from the output of the Solver component, I'm getting two errors in the CastRodOutput component (see screenshot).</p>
<p></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2655053054?profile=original" target="_self"><img width="750" src="http://storage.ning.com/topology/rest/1.0/file/get/2655053054?profile=RESIZE_1024x1024" width="750" class="align-full"/></a>1. Invalid cast: ObjectWrapper » Object[]</p>
<p>2. Solution exception:Object reference not set to an instance of an object.</p>
<p>Are the objects returned from the Solver output references to the objects, or the actual objects? The second error seems to imply that I'm getting references rather than the objects themselves, but the panel output appears to be goal objects?</p>
<p></p>
<p></p> Kangaroo 2 scriptingtag:www.grasshopper3d.com,2015-08-06:2985220:Topic:13391792015-08-06T11:09:41.796Zenrique sorianohttps://www.grasshopper3d.com/profile/enriquesoriano
<p><span>Hi Daniel and hi all,</span></p>
<p><span>Short question, debugging issues. </span>I'm modifying a c# custom goal scripting example. I've been writing some lines but I'm completely blind.</p>
<p></p>
<div>Inside the custom goal, inside public override void Calculate(List<KangarooSolver.Particle> p), is there any way of outputing other geometry (such as vectors or lines, to see what is happening) or using the Print() command? (I've been getting errors when trying…</div>
<p><span>Hi Daniel and hi all,</span></p>
<p><span>Short question, debugging issues. </span>I'm modifying a c# custom goal scripting example. I've been writing some lines but I'm completely blind.</p>
<p></p>
<div>Inside the custom goal, inside public override void Calculate(List<KangarooSolver.Particle> p), is there any way of outputing other geometry (such as vectors or lines, to see what is happening) or using the Print() command? (I've been getting errors when trying it)</div>
<div>Thanks a lot!</div> Kangaroo Area Component behaving very differently for two very similar curvestag:www.grasshopper3d.com,2015-05-11:2985220:Topic:12846352015-05-11T15:45:01.206ZMorteza Karimihttps://www.grasshopper3d.com/profile/MortezaKarimi
<p>Hi everyone,</p>
<p>I was trying to use Kangaroo's new area goal to reduce the area of a closed curve by a given factor. I'm actually using one of the example files that Daniel posted, the script seems to work fine for some curves but not for all. </p>
<p>Attached I included the GH file with two very similar input curves, one works perfectly the other is totally wrong.</p>
<p>any ideas?…</p>
<p>Hi everyone,</p>
<p>I was trying to use Kangaroo's new area goal to reduce the area of a closed curve by a given factor. I'm actually using one of the example files that Daniel posted, the script seems to work fine for some curves but not for all. </p>
<p>Attached I included the GH file with two very similar input curves, one works perfectly the other is totally wrong.</p>
<p>any ideas?<a href="http://storage.ning.com/topology/rest/1.0/file/get/2654903879?profile=original" target="_self"><img width="750" src="http://storage.ning.com/topology/rest/1.0/file/get/2654903879?profile=RESIZE_1024x1024" width="750" class="align-full"/></a></p> Internalised timertag:www.grasshopper3d.com,2015-05-08:2985220:Topic:12826942015-05-08T17:11:57.751ZJens Pedersenhttps://www.grasshopper3d.com/profile/JensPedersen
<p>Good evening Daniel, </p>
<p>I have a quick question; is there a big trade secret behind how you internalize the timer for kangaroo 2?</p>
<p></p>
<p>or would you mind sharing some information about how you cracked it? </p>
<p></p>
<p>I am currently trying to do it with the StopWatch class, but I am thinking that you should be able to access your current component and force it to refresh somehow.. </p>
<p></p>
<p>Looking forward to hear from you.</p>
<p>Good evening Daniel, </p>
<p>I have a quick question; is there a big trade secret behind how you internalize the timer for kangaroo 2?</p>
<p></p>
<p>or would you mind sharing some information about how you cracked it? </p>
<p></p>
<p>I am currently trying to do it with the StopWatch class, but I am thinking that you should be able to access your current component and force it to refresh somehow.. </p>
<p></p>
<p>Looking forward to hear from you.</p> [Bug?] Trying to apply planarHex example to closed curves.tag:www.grasshopper3d.com,2015-04-26:2985220:Topic:12735052015-04-26T19:59:20.802ZÁngel Linareshttps://www.grasshopper3d.com/profile/AngelLinares
<p>Hi!,</p>
<p></p>
<p>First of all, thanks Daniel for the amazing work and effort that you did to release Kangaroo2. It's being amazing experimenting and introducing all this new features (and approach) to my personal workflow. </p>
<p></p>
<p>Diving into the problem I had: I've tried to apply the PlanarHex.gh example to a custom set of curves (all closed and working fine when baked).</p>
<p></p>
<p>Kangaroo displays and error saying "there have been one or more errors" (but in spanish...I…</p>
<p>Hi!,</p>
<p></p>
<p>First of all, thanks Daniel for the amazing work and effort that you did to release Kangaroo2. It's being amazing experimenting and introducing all this new features (and approach) to my personal workflow. </p>
<p></p>
<p>Diving into the problem I had: I've tried to apply the PlanarHex.gh example to a custom set of curves (all closed and working fine when baked).</p>
<p></p>
<p>Kangaroo displays and error saying "there have been one or more errors" (but in spanish...I don't understand why this kind of messages are localized) and nothing happens.</p>
<p></p>
<p>Anyone finding this same problem?</p>
<p></p>
<p>Please find attached a copy of the curve set linked to the PlanarHex.gh definition.</p>
<p></p>
<p>Thanks in advance.</p>
<p>Cheers.</p>
<p></p>
<p>Ángel.</p>
<p></p>
<p></p>
<p> </p>