# Convert quad mesh into alternating convex and concave hexagons rows

Hello everyone,

I have a quad mesh through a form finding process in RhinoVault2, which is a freeform shell. So far I have used the quadmesh to create a flat brick pavilion like the Armadillo Vault from Block. I used the following tutorial for this: https://www.youtube.com/watch?v=2Bhzu_OwTbY&t=4554s.

Now, for assembly reasons, I want a tessellation of alternating rows of concave and convex hexagons (see picture).

My approach was to subdivide the quad meshes and then move two of the resulting vertices. However, I donâ€™t know how to move the vertices. Also, Iâ€™m not sure if I can planarize the hexagons like my quadmeshes. If not, it would also be possible to divide them into triangles, like the white lines in the picture if there is a need to do so.

240209_FlatBrickVault.gh (245.1 KB)

.

If anyone knows a solution, I would appreciate help.

Whoa! Too bad, especially since I can find my way though to see geometry. Always confusing to find â€śDonâ€™t draw any preview geometryâ€ťâ€¦ And Data Dams set to â€śNeverâ€ť.

Hey Joseph,

sorry this is the first time Iâ€™ve posted something here. I thought about removing the data dams, but without them the file is a bit heavy, at least for my computer.

I need the plugins for my script, should I have linked them?

The concave and convex hexagons, do both of them need to be planar?

Not mandatory at first, in my script the quad faces are not planar at first either, but then become planar through the â€śProjects Pairsâ€ť component of the Ngon plugin. I assume it should work similarly with hexagons.

It is often better to set Data Dams to 10 seconds instead of â€śNeverâ€ť but there is no rule.

Part of your script is creating an offset (thickened) mesh. I would save that part until after you solve the alternating concave and convex hexagonal faces.

This is a failed effort, I should be embarrassed and not post it but oh wellâ€¦

Interesting that looking at only half the branches shows the pattern you want, sort of.

FlatBrickVault_2024Feb14b.gh (249.8 KB)

Before I added the purple group to separate vertical and horizontal segments (which only partially worked), I had this:

FlatBrickVault_2024Feb14a.gh (238.2 KB)

As I said, oh well. I didnâ€™t bother trying to reconstruct the mesh because itâ€™s so obviously flawed.

1 Like

Many thanks for your efforts and tips, Joseph! Iâ€™ll have a look at your definitions and try to find a solution.

Two â€śtricksâ€ť to it that I could see:

1. Selecting alternate faces to become either convex or concave hexagons.

2. Selecting side (â€śverticalâ€ť) segments vs. top / bottom (â€śhorizontalâ€ť) segments.

Good luck.

1 Like

Hello everyone again,

I have managed to reorganize the structure of my mesh by using a different approach in RhinoVault2 and by projecting the mesh onto the XY plane.

Now Iâ€™m almost there, but Iâ€™m having a problem creating the convex hexagons. To create the polylines of the convex hexagons I want to access the shifted midpoints of the concave ones. However, I have problems with the last row of the convex hexagons (see picture). Is there a better way to connect the data structures than renaming the branches?

If anyone has a solution for this, I would be gratefulâ€¦

240215_ConcaveConvexPattern.gh (946.6 KB)

1 Like

Cairo Tiling v0.gh (942.7 KB)

1 Like

Hey Quan Li,

thanks for your help. Even though I like the simplicity, too many details of the original geometry are lost in the script.

Just bump up, if you want to preserve more details, there are other methods that can be added.

1 Like