Grasshopper

algorithmic modeling for Rhino

Hi guys,

 

Would there be simple geometrical rule to change a rectangular grid into a hexagonal one?

 

Any reference would help !

 

Many thanks,

 

Arthur

Views: 2124

Replies to This Discussion

Scale 1-dimensionally to 86.6% and Shear 60° ?

Oops, that made a triangular grid, not the same thing...

Thanks Marten,

I could also cull some of the points but is that a real hexagonal grid?

 

 

It's a different topology (connectivity), so the intermediate forms won't make a closed pattern. (see attached). Though you could fix that by defining two deformations:

 

1)   0.0 -> 0.5  Move the columns up and down without deforming the square cells

2)   0.5 -> 1.0  Deform the vertices of the rectangles to match the hexagons.

 

At the moment I do both at the same time, which results in gaps.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

 

Attachments:

Here's another formula that separates the two motions.

 

(got it right the first time, wooo!)

 

Though I should mention this second approach is based on the assumption the grid is aligned exactly the way it is now, whereas the first formula doesn't care about orientation.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

 

Attachments:
Cool! Version 0.8.008? :)

Thanks a lot David, really cool!

 

Trying to think how I could adapt the definition but I guess I should have started with a more basic question:

 

Would there be a way to get an organized rectangular or hexagonal grid with cells as output from points imported from Rhino?

 

 

In the definition you have sent, the hexagons do not touch the original grid, I was hoping the hexagonal grid could still be "constrained" to these lines as they are important construction lines. Marten's first technique would have been good for that as it shifts points on a line...

 

Thanks again,

Amazing help so late at night!

 

Arthur

 

It doesn't matter where the hexagons are located, or if they are indeed exact hexagons. You can place them where ever you want.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service