Grasshopper

algorithmic modeling for Rhino

Hi!

I made this small example on how to restructure a data tree based on their closest point, in a way that the points near one attractor end up on the same branch.

From time to time, I come across the need to have my grid data in a different formation than the default rows/columns setting. One example being the grid deformation using multiple attractor points, which ends up creating these very morphed cells in attractor border areas, because cell curve points might not "belong" to the same attractor. You can test this with e.g. co-de-it's "Attractors vector deformation" definition (http://www.co-de-it.com/wordpress/code/grasshopper-code)

So, by grouping the cells to branches by their closeness to attractors, I can e.g. deform them based on the cell's closeness, not by the curve points closeness. This tears the grid apart, creating these separate islands of deformed hexagons. The resulting void corresponds with a voronoi diagram.

Views: 977

Attachments:

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