1 minute read

Grasshopper Script

2.

1.

Advertisement

3.

5.

4.

1. CREATING CIRCLES THAT CAN STRETCH & DEFORM

Reference circle drawn in Rhino & divide into segments of a certain length Draw straight polylines between points Create rods. Add sliders for 3 key paramaters: Length factor, axial strength & bend strength.

2. MAKE CIRCLES REPEL EACH OTHER

Use sphere packing to draw a sphere around each node point. The radius of the sphere is based on the length of the segments created in step 1. This prevents the circles from overlapping each other or folding over themselves. The ‘circle’ component is for visualisation. Use the curve point collide component set to ‘true’ to keep the rods within a set boundary. This forces them to interact with each other instead of moving apart from each other.

3. KEEP CIRCLES WITHIN A BOUNDARY

4. INTRODUCE VORTEXES

The K2 Vortex component is a custom component created by the creator of Kangaroo and downloaded from www.FoodforRhino.com. When it is applied to an axis curve that is perpendicular to the C-plane, it begins to spin the rods in a spiral shape. Flipping the axis changes the direction of the spiral.

Adding a circle at the base of the axis curve with ‘curve point collide’ set to ‘false’ will prevent the rods from wrapping too tightly around the axis, as it will keep points from going inside the circle zone.

5. FEED INTO SOLVER, REORGANISE DATA & DRAW CURVES

Feed the rods, circle packing, boundaries and vortexes into the bouncy solver component to generate fluid shapes. When referencing multiple curves at once, it is necessary to reorganise the data into its original branches so that concentric curves can be drawn through the points correctly. Cleaning the tree and partitioning the list based on the structure of the original branches will achieve this. Rejoin points into their original concentric circles and interpolate the points to generate smooth lines.

This article is from: