Inputs
Reference in Rhino
Surface
The surface the pattern is built on. It must be a planar (flat) surface.
Curve
The line the bulge follows. It must cross every row of the surface, in the direction of the sticks.
Main Sliders
| Slider | What it changes | Default |
|---|---|---|
| Divisions | The number of rows of sticks. More rows means shorter sticks. | 20 |
| Sticks Density | How many sticks fit into the bulge on each side of the curve. It also sets the spacing of the evenly spaced sticks outside the bulge. | 19 |
| Attractor Range | How far the bulge reaches along each row, on both sides of the curve, as a share of the row length. | 0.42 |
| Rectangle Width | The width of every stick. It stays the same everywhere; only the spacing changes. | 0.09 |
Also try: reshape the two Graph Mapper components to make the bulge sharper or softer.
Notes
- The curve must cross every row, running across the whole surface in the same direction as the sticks. If it misses a row, the script fails.
- The sticks never get thicker. Every stick has the same width; the bulge comes from the spacing alone. The sticks spread apart where they meet the curve and pack tightly away from it.
- Any curve shape works as long as it crosses each row once. A straight diagonal gives a clean bulge; a wavy curve makes it meander.
- Balance Sticks Density and Rectangle Width. With a high density and wide sticks, the tightly packed sticks away from the curve merge into a solid band.
Design Logic
How the script builds the pattern, step by step.
| Step | How the script does it |
|---|---|
| 1. Split the surface into rows | Divide Surface makes a grid of points. Flip Matrix and Nurbs Curve join them into one curve per row, and Extend Curve lets each row run slightly past the edge. |
| 2. Find where each row crosses your curve | Curve | Curve returns the position of the crossing along each row. That’s the centre of the bulge. |
| 3. Open up the spacing toward the crossing | Range creates evenly spaced values. Construct Domain and Remap Numbers fit them into the stretch just before and just after the crossing, and a Graph Mapper on each side bends the spacing so the sticks spread apart toward the curve and sit close together at the far end of the stretch. |
| 4. Keep an even rhythm elsewhere | List Item and Subtraction take the tightest spacing from step 3. Duplicate Data and Mass Addition repeat it outward from both ends of the bulge, and Sub Curve takes the rest of each row, where the sticks stay evenly spaced. |
| 5. Turn the values into positions | Evaluate Curve places a point at every value. Includes and Cull Pattern remove any that fall outside their stretch. |
| 6. Draw the sticks | Line SDL draws a line from each point in the direction of the sticks. Extrude with Amplitude gives it its width, and Move centres it on the point. |
| 7. Trim to the surface | Region Intersection keeps only what falls inside the surface. |
Want to learn how to build scripts like this on your own? Check out the Grasshopper Pro course.
