How to create a growth simulation boundary on Grasshopper?

Hi, I’m a beginner to Grasshopper / Rhino and i’m trying to create a picture frame using an organic growth simulation on Grasshopper. Currently the shapes continue to flow into the centre of the shape but I want the organic shapes to be bound to a frame shape.

The red square is where I would want the growth to be restricted to.

I’ve been following this tutorial: https://www.youtube.com/watch?v=viEpaivq9A0&list=PL53b5FInvH_N76KAGag187zRg-Py9YpMb&index=5&t=2347s

Does anyone know how I would do this?
Thanks

Can you be more specific? I can’t watch the whole tutorial, if you upload your.gh file people can help more easily.

You could just scale what you have until it is bigger than the red rectangle.

Something is making the growth form in a rectangle… In the tutorial, is there a base rectangle that the growth stays inside of? You might be able to adjust that part of the model to constrain the growth to be between 2 rectangles.

Without seeing your model it’s hard to advise!

In general search “differential growth” (But in 99.99999% of cases solutions are carried over strictly via code - as they should).

I would suggest:

  1. If you have plans to walk the C# walk I could provide some hints on that matter (plus the restrict in boundary option - see Image N2). That said this IS NOT the ideal start point for a novice (by any means).

  2. Search this (and maybe the other - alas dead- Forum) : maybe someone has posted some working solution on 2/3D DF (Laurent, for instance).

  3. Maybe this is also a task for K2 (but I expect delays).




PS: My nerves are not strong enough to follow any YT tutoral.

1 Like

Hi! I would like to do this following the 2D-Shape of a Rectangle for example, is it possible?

Does someone knows how to do it and can share some info with me, please?

the basic principle in 2D is, given a segment of length L and end-points a, b, apply a repulsion force to a, b in such a way to extend the length of the segment itself

when the segment length L reaches a defined amount x, split it in two segments

and apply the same principle again to both… rinse and repeat

it’s easier to explain by visualizing the forces applied to each end-point of each segment as single vectors, but the “hands-on” scenario is that those are colliding spheres of set radius, and each of them can collide with all the other ones: not only pushing the others out, but also keeping the minimum distance of sphere_diameter between neighbor polyline vertexes, in a circle-packing fashion

for instance, screenshot taken from Peter’s videos, all those spikes that look like very evenly spaced and would never become thinner than they are now, comes from the fact that polyline vertexes can’t get closer than that, they have reached the minimum distance and the circles built on their vertexes are tightly packed against each other (see this at current time, a beautiful C# webinar from Long Nguyen https://youtu.be/urWRRpy1fCw?list=PLapoQ_9M-ujfYGOsZProIXPGx-HRfjJ9C&t=9899 )