algorithmic modeling for Rhino
I am trying to recreate this http://murderandcreate.com/physics/random_arboretum/index.html using Kangaroo and Hoopsnake. However, the definition fails at the second step.
Tags:
Hi Sridhar-
The main issue with your setup has to do with how you need to work with kangaroo when it's used in a loop. Basically, you won't get the same simulation effect you see in the processing sketch you reference because you can't alter the setup organisation of a kangaroo simulation while it's running...you can adjust force values dynamically, but you can't add new particles or alter the relationships between them...so, what you need to do is have kangaroo reset itself for each loop, and then run the simulation. With the kangaroo options, you are able to set how many subiterations are run between each redraw, which allows for you to essentially generate a complete simulation between each step.
In the attached definition I've also simplified how you're extracting particles somewhat...I think it may be easier to just get the start and end points from each of your lines than pass both particles and lines back through...I've also used exoskeleton and weaverbird to visualize the results...but they aren't necessary for the def to work :) You also may want to check out the plug-in "anenome" which also allows for looping similar to hoopsnake, though with a greater range of options.
Nice work. Thanks for the detailed explanation on Kangaroo settings. I will check out Anemone and Exoskeleton.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by