Manipulating multiple trees

Hello all. I’ve recently started using grasshopper to design geometric patterns for laser engraving, what I am trying to achieve is a curve output which can be converted to DXF for the laser cutter.

I’ve developed this algorithm which allows me to create a grid of hexagons, and then control 2 sets of vectors from the centre to the outer points to create geometric patterns, as can be scene in the file.

Currently I am only able to control all the hexagons as a group, the sliders control the vectors of all the points, however I would like to be able to control the two amplitude variables based on attractor points

I would like to be able to control these 2 variables for each individual hexagon to create something similar to what’s below

Thank you for reading

.Test sample.gh (14.4 KB)

Hope it helps you out.


Test sample_re.gh (23.1 KB)

1 Like

@Bill I put together a general solution that works with curve attractors and different polygons.
PolygonAttractorSample.gh (25.1 KB)

2 Likes

Thank you both for your solutions, I have one follow up question. Would it be possible to keep the spacing between the polygons regular despite their size? so you could prevent them from overlapping?

Everything is possible, you just need to factor it in your script, for example, make the spacing of your grid a factor of the size of that grid.

1 Like