Grasshopper

algorithmic modeling for Rhino

How to change a flat hexagonal grid's density with an attractor ?

Hi guys,

 

Has someone ever managed to change the density of a hexagonal flat grid in GH based on an attractor ?

 

I have tried jellyfish but couldn't keep the outcome flat.

 

Many thanks,

 

Arthur

Views: 56553

Replies to This Discussion

Actually any idea about how to locally change/deform a grid density while keeping the edges of the grid as they are and the grid flat would be helpful :)

Cheers,

Arthur

 

A quick anwser could be use a packing circle box ( like this http://www.grasshopper3d.com/forum/topics/packing-circles-on-curved), and then put inside the hexagon.

 

The other option, (that I think you are looking for) would be starting from a very little and constant grid of triangles, and then changing the number of points that build the hexagon, depending on the distance of the point

Attachments:

Thanks a lot Manu,

 

This is amazing! 

 

 

Do you think there would be a way to connect the centres of these circles together into a grid? I am trying to make a continuous pattern based on the drawing hereafter and when placing the hexagon inside the circle they are all disconnected:

 

 

 

Cheers,

 

Arthur

 

 

 

To conect the circles by lines, is easy using "delanauy edges" (in mesh components), mades the more natural grid. The problem is to group the lines into hexagons, I don`t know now how is possible to done....

Suerte!

Attachments:

Muchas Gracias Manu !

 

I have no idea how to organize delauney edges into a hexagonal pattern.

This might deserve a question on its own!

 

Cheers,

Arthur

Hehehe, Also in my project I was looking for something like you ask with the hexagons, but after a lot I looked, I decided to change the design into  circles, it is easier. I sugest you start to work with the triangular grid, and the order to asocieted points to draw hexagons.

Good Luck! :D

If your Delaunay triangulation has 6 triangles around each vertex, then the Voronoi decomposition of the vertices will be made up of hexagons.

Thanks Daniel

 

Actually the points do always have 6 triangles around each vertex :)

The hexagons are really hardly recognisable though:

 

 

I have found a cool definition from Co-de-it doing what I wanted, but when using several attractors there is a weird separation between the cells, not sure how to fix that:

 

 

I also found a great applet by n-e-r-v-o-u-s which uses springs from "traer.physics" to stretch the hexagonal grid, would you know if the same is possible with the Kangaroo's spring component? 

 

Exciting :)

Cheers,

 

Arthur

 

Look again at your first picture - definitely not all 6 triangles per vertex - several pentagons and heptagons in there, and this is a limitation of that approach to circle packing.

 

and here's my Kangaroo take on Nervous System's applet. I think it works rather well :)

(definition attached)

Attachments:

Daniel,

 

You are awesome, thanks so much!

It looks even better when animated...

 

I'll start placing the pattern from the grid and will post the results.

 

 

 

Hi Daniel,

 

Would you have a trick to bring these single lines back to hexagonal cells after the Kangaroo component? It'd be great if the lines removed from the "remove duplicate lines" could be brought back. Sounds difficult though.

 

Cheers,

 

Arthur

 

 

Rebuilding the cells is no trouble at all - that's what the Geometry Input and Output of Kangaroo is there for. Just connect the vertices from the explode component to the input, and it will be output deformed by the physics simulation but with path and list structure still intact, so you can make closed polyline cells from it

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service