Fading Hexagonal pattern on double curved surface with attractor

Hey Guys,

I realize I’ve landed myself way in over my head, and it need some expert input on how to solve it.

I’m trying to create a faded hexagonal pattern that has to move across double curved geometry, so I have been trying to follow youtube tutorials and forum suggestions ( like this one: Creating a circular, hexagonal fading pattern with paneling tools curve attractor ) but I can’t wrap my head around how to set it up, so that the pattern will follow the double curved surface and use a curve attractor.

Desired effect 2

The two images above pretty much shows what I’m going for, and so far I managed to dismantle a few algorithms from images online, this is the one that comes closest:

Resulting in the following:

Which is… kinda okay. It’s not perfect as I cant seem to have it focus on a curve attractor element, only on a point defined by the multi dimensional slider, and that limits how far out the edges I can pull the hex pattern.

I need it to be focused on the center of the surface with larger hexes which then fades outwards.

The tricky bit is that I need a similar result on two other double curved surfaces. And nothing I can come up with creates anything useful.

I’ve attached the three recieving surfaces and my attempt at the grasshopper definition below.

All input and suggestions are welcome. I’ve had my head stuck at this for a week so even trying to come up with new solutions seems to fall apart.

Fading hex pattern definition.gh (37.5 KB)
target surfaces.3dm (310.8 KB)

Okay, after surfing a bit more I found a tutorial that put me a bit closer…

However I need some smooth surface to be left. I don’t want hexes all over the area, so they need some distance between them as seen in the result of the huge algorithm.

New definition uploaded in the file as well.
Fading hex pattern definition.gh (41.0 KB)

I’ve been crunching some more on how to do this and thought I had it nailed after a break.
However, though I’ve now managed to put in an isocurve to the definition to attract to, it now doesn’t solve my cull functions anymore… so… back to the drawing board for version 7!


Fading hex pattern definition v.6.gh (48.8 KB)

Hi,

In all your files above, the geometry is missing, because you forgot to internalize it! This is essential if you upload Grasshopper files without the corresponding Rhino document.

This should get you going. The small, blue dot is the attractor.

Fading hex pattern definition v.7.gh (27.3 KB)

1 Like

Ahh, I’m sorry about that.
I’ve been a bit tired after trying to get my head around it.

I’ve managed to find the attractor point, however I need to convert it to a curve, so that the pattern will follow that line in intensity.

In my latest attempt i managed to setup a curve attraction by using an iso curve, however, that breaks my cull parts, and thus doesnt produce a result.

I’ll return to this on Monday, so I’ll follow up when I manage to get to the next step.

Just got back down with this to have a look at it with a pair of fresh rested eyes and well set head.

I’ve had a look and a poke at your file, however it still follows the approach of my original attempt, where I use the md slider to make an attraction point.

I’m looking for how to use a curve as an attractor. My latest attempt was to make an iso curve along the middle of the surface, which then in turn would work as the attractor.

However when I try this, all my cull actions fall apart, and the pattern doesn’t solve.

(And now with internalized data!)
Fading hex pattern definition v.8.gh (101.9 KB)

Can you upload a file including the curve that you intend to use as an attractor?
I can take a look later.

This is going to work as a bit of a progress diary it seems, so I hope others can benefit from it!

In my v.9 definition I’ve managed to get the isocurve input to work, but the result comes out wonky as seen in this screenshot. It seems that the values are not adapted correctly to the surface area, which I’ll have to work out as well.

The attraction isn’t that good either, as the hexes seems to be more or less identical across the target surface, but I hope that might change if I manage to get the the attraction curve to work and not just an isocurve.

The newest version also has a curve element with the desired attration curve internalized.

Fading hex pattern definition v.9.gh (106.6 KB)

Fading hex pattern definition v.10.gh (74.4 KB)

2 Likes

Oh my god yes!

I’ll have a look at it later tonight!

Taking your approach with the projected curve onto the brep works fine in my definition, however it still makes some wonky geometry output like the screenshot I posted earlier.

I guess it’s something in the mapping and distribution I did earlier that I might have to redo completely.

Even with the latest file I posted?

no that’s great and works wonders - eventhough I can’t get it to work on other surfaces inserted, which is strange. The “split with other brep” action fails and I can’t figure out what makes that happen.

When I use the project onto brep section from your definition in my original definition, it still messes up the out put.

I would like to have the spacing between the hexes like my original definition:

So my thought was to use the attraction part from your definition, but that doesn’t work.

Hi!

Maybe you could help me.
I tried to extract the resulting hexagonal holes and fill them with a 3d dimensional hexagonal “gem”

Maybe you have an idea, how to make it work - I am a beginner :sweat_smile:

Thank you!

Do you want to generate gems to fit exactly into the holes or place predefined, sized one?

I thought of Gems that fit exactly the hole so they have a different size :slight_smile:

Here’s a quickly cobbled together definition that should give you an idea how to approach this!

Since the initial hexagonal cells produced by LunchBox are not planar, be aware that only the top and bottom face of the “rubis” are currently planar.
A workaround for this could potentially be to planarize the LunchBox hexagons with Kangaroo first, but that’s another topic and depends on your base surface.

Fading hex pattern definition v.11.gh (76.9 KB)

2 Likes

So nice! This helps a lot. I will take a look and text you if I have further questions. Thank you for your time :slight_smile: