Veil Grasshopper pattern: dense vertical lines bulging and pinching

Veil

Flowing vertical line pattern

Dense vertical lines that bulge and pinch together, like a sheer veil draped over the panel.

Want all 53 patterns? Get them in one zip →


Price

Free

Plugins

None, native components only

Works with

Rhino 7 & 8, Mac and Windows

Level

Beginner

Inputs

Reference in Rhino

Surface

The surface the lines are drawn on. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
Guide Spacing A
Guide Spacing B
Guide Spacing C
The gaps between the guide lines, as a percentage of the surface width, repeated in this order across the surface.12
8.9
6.1
Min Points per Guide
Max Points per Guide
Each guide line gets a random number of points between these two, so more points give more bulges along each line.5
9
Tween line countHow finely each gap between two guide lines is filled with lines. Higher values make a denser veil.8
Strip Width as 1/1000 of Surface WidthThe width of every strip, in thousandths of the surface width.6.1

Also try: change the seeds of the Random components in the Divide Randomly and Move Points groups to drape the veil differently.

Notes

  • If the lines run the wrong way, change the index of the List Item in the Get Two Main Surface Directions group from 0 to 1. The lines always run square to the edge it picks.
  • The guide lines never cross. Each point can only move up to halfway toward the neighbouring guide line, and the first and last lines stay straight, so the pattern ends in clean edges.
  • Strips overlap where the lines bunch together. Lower Strip Width as 1/1000 of Surface Width if you want them to stay apart.

Design Logic

How the script builds the pattern, step by step.

Veil Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Find the two directions of the surfaceBrep Edges and List Item take two neighbouring edges: one across the surface and one along it.
2. Place the guide lines at uneven gapsLength and three Expression components turn Guide Spacing A, B and C into distances. Mass Addition, an Expression and Duplicate Data repeat them until they fill the width, and Evaluate Length finds the positions along the edge. Insert Items adds the start and end of the edge. Perp Frame and Brep | Plane cut the surface at each position, giving straight guide lines.
3. Divide each guide line at randomConstruct Domain and Random pick a point count between Min and Max Points per Guide for each guide line, and Divide Curve places the points.
4. Measure the room around each guide lineShatter, Cull Index and Length measure the gaps between guide lines. Shift List lines up each guide with the gap before it and the gap after it.
5. Push the points sidewaysConstruct Domain builds a range from halfway back to the previous guide to halfway on to the next. Random picks a distance in that range for each point, and Amplitude and Move shift the points across the surface.
6. Keep the outer edges straightTree Statistics, List Item, Cull Index and Tree Branch swap the moved points of the first and last guide lines back for the original ones, and Merge puts everything together. Interpolate draws a smooth curve through each set of points.
7. Fill the gaps with in-between linesDivide Curve and Sort Along Curve place matching points on every guide curve. Flip Matrix, Nurbs Curve and Explode connect them across into short segments, and a second Divide Curve splits each segment evenly by Tween line count. Trim Tree, Flip Matrix and Interpolate join the matching points into new lines that blend from one guide curve to the next.
8. Give the lines a widthAn Expression turns Strip Width into a distance. Evaluate Surface takes the plane at the middle of the surface, and two Offset Curve components copy each line to both sides by half the distance in that plane. End Points, Line and Join Curves close the strip, and Surface fills it.

Want to learn how to build scripts like this on your own? Check out the Grasshopper Pro course.

On this page

Related tutorial

Free to use, also commercially

Use and change this script in your own projects, personal or commercial.

Please don't re-upload or redistribute the file. If you share it, link to this page so people always get the latest version.

© Hopific

Something not working?

If a script throws an error or doesn't do what this page describes, tell me and I'll fix it.

Tell me →