Tangent hexagons on sharp corner

Hi

If you use the tangent circles on two surfaces cornering one another, is there a way to make the shapes on the edges connect with each? Maybe use the edge vertices on one surface as a target for the other surface?

Thanks


Sharp corner.gh (15.8 KB)

Why two groups of code instead of entwining the two surfaces? And why Kangaroo?


Sharp corner_2025May22a.gh (8.3 KB)

Haven’t thought about how to solve the problem yet… :thinking:

My initial though was that you need to input both surfaces into the one solver with increased tolerance so the points along the edges snap together but obviously the dual at the very end works per triangle.

Instead of using the dual, you can also create a voronoi diagram.

Sharp voronoi mrtn.gh (26.1 KB)

1 Like

It could help to create more even cell sizes…

I would take this approach, finding precise points that make the hexagons meet at the corner.


Sharp corner_2025May22b.gh (9.7 KB)

The two surfaces have different “normals”, one goes “in” and one goes “out”. :roll_eyes:

Another option, if you’re not specifically using the tangentIncircles property is to join the surfaces into a single Brep and TriRemesh that:


The dual cells automatically crease at the sharp edges

6 Likes

I tried that but failed to realize at the time, that in this case, merge without flattening isn’t enough. Bitten again by GIGO :red_exclamation_mark:

Thank you, this gets the result I was looking for

I fiddled further (too much!) with the HexGrid approach before finally realizing that the smaller surface is not vertical :bangbang: I knew that the other end of the large surface is angled but… :man_facepalming:

All the more remarkable that joining the two surfaces works so well. :+1:

1 Like