Point Attractor in Boundary Curve

Guys,

How can I do the hexagonal cells creating only in boundary area? As you see the cell pattern looks a rectangular area

My flows:

Anybody can help me about that? Im trying the figure out like this visual geometry . Thank you.

unnamed.gh (15.4 KB)

you can for instance Cull Pattern on Cell centers based on if they are contained in the boundary of the Surface, but that will leave some intersecting hexagons here and there…

if you want to be even more precise, for each exagonal cell you can check if all the vertexes of the exagon are all inside the boundary curve, sum their True/False together, and keep only if result equals 7*2=14 (and put in & with your already existing other filtering):

unnamed_inno.gh (28.8 KB)

14 is the number because those hexagons have 6 points + the first again :slight_smile: and each fully contained point is worth 2, so 7*2

Inno thank you so much for solution! Your projects amazing!

You haven’t internalized the geometry in your file, and you’ve left your filename “unnamed.gh”

You could try something like this:


Point Attractor in Boundary Curve VR 1.gh (18.8 KB)

But maybe you want something different, llike a field based on the distance to the curve, or excluding attractor points outside the curve?

I found my solution rather clever…

It will work without discontinuities on the cell to work with.

I couldn’t add your work in my flow

Sorry for that, Here is:

Boundary project.3dm (55.3 KB)

point attractor in boundary.gh (15.0 KB)

It’s fine. I realized afterward, I just have to make a random boudary curve for the surface for the script to work.

As long as the cells are hexes, @inno 's solution is a good way to go.


@Yunus_BABUR Here’s the integration anyways:


Point Attractor in Boundary Curve VR1.gh (18.5 KB)

You’re great, so clear