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
Tags:
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.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by