Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I'm using Kangaroo2 to do some circle packing on a plane surface. I wanted to have the circle size varying iteratively based on proximity to a certain geometry object (points, curves). Is it possible to have the radii updating while the Kangaroo Solver iterates?

Many thanks!

Andre

Views: 1395

Replies to This Discussion

Hi Andre,

To update the circle radii during iteration isn't possible with the standard goals in the current version, but it is with a scripted goal. I posted one here which sizes the circles based on the colour values in an image. You could either use this as it is by making an image from your proximity function, or you could modify this line

var Rad = Map.T0 +
(ColorAt(M, M.ClosestMeshPoint(Pt, 100)).R / 255.0)
* (Map.T1 - Map.T0);

which reads the colour at that point, changing it instead to a proximity function. Let me know if you need help with this.

Hi Daniel,

Great to hear from you again!

This is great and will definitely do the job.

Many thanks,

Andre

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service