Grasshopper

algorithmic modeling for Rhino

Hi everybody!

It's been a few weeks now that I've been learning grasshopper. 

I've successfully created a few simple scripts (fractals with Anemone/ form-finding with Kangaroo2), but am struggling to use Kangaroo2 and Anemone together.

I've looked an example shared by Daniel Piker here:

http://www.grasshopper3d.com/forum/topics/differential-growth-in-cu...

Please find the two Grasshopper files attached:

 Differential Curve With Kangaroo2

The first draws a line on a rectangular surface and makes it curve more and more to fill the surface. This one only uses Kangaroo2: it has a X number of divisions and fills the space as you increase the line length multiplier. This results in very fine squiggles that get bigger and bigger, that can fill a given surface.

NB:

-It's best to reset after changing anything (except "Spring Length Multiplier")

-The "Spring Length Multiplier" should be set to 1.00 before every reset

-Increase "Spring Length Multiplier" slowly to avoid kinks.

-Kinks can be ironed out by moving the "Spring Length Multiplier" 

 Differential Curve With Anemony & Kangaroo2 (WIP)

In this case I'm trying to generate my curve's squiggliness in a slightly different way. I'm essentially trying to use the same script as above, but use Anemone to generate the curve. 

This is drawing a line, and using Anemone to keep breaking it, and subsequent segments, in half based on a counter attached to the loop start. 

I want to bake each iteration, so I need the squiggliness to increase smoothly. However when I increase the division count, the curve jumps around and folds on itself and I'm not sure why.  

For this script, I imagine that I'll be increasing squiggliness with the division count on the loop start, and my spring length multiplier should have a relationship with division count, but I'm not sure what that relationship should be.

I'm also not sure which Kangaroo solver to use and why. Maybe StepSolver?

How can I edit this script so that my curve squiggles smoothly?



Many Thanks,

Nick

Views: 2017

Attachments:

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service