# How to fill this voronoi pattern up to the edge?

Hey!

I’m trying to fill the surface between the two beams with a voronoi pattern. The result is almost how I want it to be but on the outer ends, it ends in a converging point instead of filling up the edges. Does anyone know how I can make this work?

i can only guess that it understands the curved boarder at the end as one point to converge to due to some (angle, size or distance) limitations of your parameters i really have no clue honestly. but for a simple solution without trying to find what causes it maybe extend the ends a little further to a flat surface and trim the rest off joining all back into the current boarder. as a last resort at least. or better just manually cut the triangulation off of course.

but how did you derive the green boarder curve at all? is that parametrically?

Ah thanks a lot! Extending it a bit really sounds like a smart work around haha.

Maybe I should mention that this is my first grasshopper project and I’m not exactly sure how certain things work yet. This part is mostly copied from a tutorial I found on voronoi patterns.

I’ll try to explain shortly how I got what I got here:

I started with this surface:

I populated the surface with populate geometry. I then added a boundary box and the voronoi box which resulted in these curves:

https://imgur.com/sh6sp00

So far everything seems to be going great. The next few steps I think I understand but I wouldn’t have thought of them myself. First all the curves are seperated at their intersecting points, then points are created at each intersection.

And these points are used to create closed polylines. In the results you can see it’s kinda “missing” the corner points…

https://imgur.com/7YuhOv7

I did try to add these points manually and add them to the input of the PolyLine box as points or the discontinuity box as curve. Both didn’t do what I wanted.

Is this clear enough to maybe help me solve it in a “clean” way? I prefer not fix it in a sloppy way haha

Thanks!!

i really cant help you further here, maybe if you´d share the file but even then i cant promise that i would find the missing link to your problem. i can understand that you want to get it going properly but if the result is what you are after then it is not sloppy at all, the rest is just playing around maybe somebody still chimes in but till then maybe post a part of your file at least that section with the boundary surface needed for it to work.