algorithmic modeling for Rhino
hi everyone,
i am sorry if this is a repetitive question and there are probably other threads about this, but i went through the entire page and couldnt fit anything that fit...
i have a square surface with rectangular point divisions with hexagons. they can change scale with an attractorpoint. but, how do i increase their density, too? (as in, how can i ask grasshopper to fill in more small hexagons if there is enough space as they get small at the attractor points/lines?)
is my setup totally wrong for this?
(this example is very cool, but it makes the hexagons too skewed for my purposes..:
http://www.grasshopper3d.com/forum/topics/how-to-change-a-flat-hexa...)
i am attaching my file and the definition.
i'll appreceate any help!
jessi
Tags:
It is not possible to change the density of a hexagon grid as the smaller hexagons would no longer fit with the larger hexagons. Rectangles do have this property, so you can vary densities all you want.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
hi david,
thanks so much for your quick reply! yes i know they would fit perfectly anymore, i wouldnt mind that so much - we can for all intents and purposes also substitute the hexagons with circles...
how do i not only change the size of a circle with the attractorpoint, but also add more circles in some sort of regular fashion wherever they fit as they get smaller? (maybe with some sort of if the distance is more than twice the readius, add another circle...? how would i write that in gh?)
do you know if there is a tutorial out there that does something similar?
thanks so much!
jessi
jessi
What you describe (adding circles when certain criteria are met) isn't posible with straight forward GH logic, because GH normally doesn't allow iterations.
There are several approaches to the problem of circle packing using iterative add on components such as Kangaroo and Hoopsnake. Try a search and see if this suits your problem.
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