ucsd-compfab2

Week 4 - Equations and Attractors

Tuesday 10/20

Agenda

Running order (~170 min): review + show and tell 25 · midterm check-in 25 · pattern language 20 · break 10 · Demos.

Review and Discuss

(25 min)

The Pattern Language of Digital Fabrication

(20 min)

Look at enough parametric design and you will see the same patterns again and again: Voronoi cells, hexagons, fractals, saddles, blobs. Some come from mathematics, some from nature, some from the tools themselves (what is easy in Grasshopper gets made a lot). This week we learn to make them and to assess them: what is a pattern doing in a design (structure, light, airflow, weight, material savings, fit) versus what is it signaling (style, “computational-ness”)?

A pattern catalog

Family Patterns Where they come from GH starting point
Cells Voronoi (1 2 3), Delaunay (4 5) nearest-neighbor partitions; foams, giraffe skin, cracked mud Voronoi, Delaunay Mesh, Populate 2D
Tilings regular / semiregular tessellations (1), hex grids (2), Islamic geometric patterns (3 4 5), Penrose (6 7 8) symmetry; covering a plane without gaps Square, Hexagonal, Triangular grids; LunchBox
Fractals Koch snowflake (1 2), Sierpiński triangle/carpet (3 4), recursive subdivision (5 6) self-similarity; repeated rules recursion (Anemone, GhPython), Weaverbird subdivision
Growth L-systems (1 2), branching (3 4), differential growth (5 6) plants, rivers, lungs Rabbit (L-systems), Kangaroo
Fields attractors (1 2), gradients (3 4), contour/isolines (5 6) a value that varies smoothly over space Distance, Remap, Graph Mapper
Freeform surfaces NURBS (1 2 3) spline math (ship and car design) Loft, Network Surface, Surface From Points
Analytic surfaces ellipsoids & other quadrics (1 2 3), saddles (hyperbolic paraboloid) (4 5), minimal surfaces (gyroid, catenoid) (6 7 8) equations Expression, parametric Construct Point
Form-found shells catenary vaults (1 2 3), gridshells (4 5), tensile membranes (6 7) forces (Gaudí’s chains, Frei Otto’s soap films) Kangaroo

Exercise (15 min, groups): each group takes one family. Find two built/fabricated examples online. For each: what is the pattern doing functionally, and what is it doing stylistically? Report back.

Pattern books, then and now

Is Grasshopper’s component library today’s pattern book?

Demos

Example files. Each has a yellow NOTE panel with the steps and things to try. All use built-in components only; units are millimeters, and laser files are laid out on a 12 × 12 in sheet of 1/8 in (3.2 mm) plywood.

Demo File In class
1 01_equation_waffle.gh on your own
2, 3 02_attractor_screen.gh live, ~30min
4 04_voronoi_trees.gh ~25 min
5 05_recursion_koch.gh on your own
6 06_shell_pattern.gh on your own
6b 08_porous_cup.gh live, ~15 min
6c 09_voronoi_lattice.gh live, ~15 min
7 07_galapagos_fitness.gh on your own

The attractor screen uses sample_image.jpg (embedded in the file).

Demo 1: Equation surfaces → waffle

(~15 min) 01_equation_waffle.gh

  1. x and y run from -1 to 1 (Range); Evaluate computes z = f(x, y) at every grid point; Construct Point → Surface From Points.
  2. Switch formulas live (the which slider picks a line from the equations panel):
    • saddle (hyperbolic paraboloid): x*y or x^2 - y^2
    • dish (paraboloid): x^2 + y^2 - 1
    • ripple: sin(Pi*x)*cos(Pi*y)
  3. Type your own formula into the panel. Keep it between -1 and 1; amplitude scales it to millimeters.
  4. Fabrication tie-in: Brep | Plane cuts the surface into ribs in X and Y, each closed down to the table. Ribs in one direction get slots from the bottom, the other from the top, to half the rib height, so they slide together (a waffle). Orient lays every rib flat on the sheet → CUT curves.
  5. The saddle x*y is made of straight lines in both directions. Why does that matter? (sticks, string, hot-wire foam cutting)

Demo 2: Classic point attractor

(~30 min) 02_attractor_screen.gh. The signature move of parametric design: a point whose distance to each element in an array drives some property of that element.

  1. Grid of hole centres on the sheet → Distance to the attractor point → Bounds + Remap Numbers → Circle radius.
  2. Move the attractor (right-click > Set one Point, or internalize a Rhino point and drag it) — the pattern updates live.
  3. The file has a FIELD IN slot with four sources ready; drag one onto it to swap:
    • A point: Distance
    • B curve: Curve Closest Point instead of Distance
    • C nearest of several points: Pull Point
    • D image: see Demo 3
  4. Shaped falloff: Graph Mapper between two remaps. Right-click > Graph types; drag it upside down to invert.
  5. Bridge check: each radius is capped at (spacing − min bridge) / 2 with Minimum, and a panel reports the thinnest bridge. For 1/8 in ply keep bridges at 2 mm or more.
  6. Try: distance drives something else — rotation, extrusion height, number of sides.

Demo 3: Image field as attractor

(~10 min) Same file, source D: week 3’s Image Sampler reads the brightness under each hole. Plug it into FIELD IN. Nothing downstream changes.

Demo 4: Voronoi screen (and data trees)

(~25 min) 04_voronoi_trees.gh

  1. Seed region (the sheet inside a margin) → Populate 2D (seeded) → Voronoi.
  2. Area centroid of each cell → Distance to an attractor → Remap Numbers to a scale factor → Scale each cell about its centroid → Fillet the corners → CUT curves. The bridge is about (1 − scale) × cell size.
  3. Data trees — the tree lab in the same file joins one grid of points three ways: as is (one line per column), Flatten (one zig-zag), Flip Matrix (one line per row). Read each with the Param Viewer. Then break the screen on purpose: right-click Voronoi’s Points input > Graft. Rule of thumb: when a grid comes out as one long list, or each point connects to every other point, check your tree.

Demo 5: Recursion — Koch snowflake

05_recursion_koch.gh

Demo 6: Pattern on a shell

06_shell_pattern.gh

Screens are flat patterns cut through a sheet (laser). Function: light, shade, privacy, airflow, weight. Shells are patterns on a curved surface, thickened (3D print or kit-of-parts). Function: enclosure, structure, lightness.

  1. Three curves → Loft = the shell. Thicken it: Offset Surface → Ruled Surface between the edges → Brep Join = a closed slab.
  2. An attractor screen on a flat square under the shell (as in Demo 2).
  3. Project Point lifts each hole centre onto the shell; Surface Closest Point + Evaluate Surface give the normal there.
  4. A Cylinder along each normal, as wide as the hole → Solid Difference drills the slab → Mesh Brep → printable mesh.
    • Try: Map to Surface to move the flat curves themselves onto the shell; Divide Domain² + Isotrim for UV cells instead of circles; or Box Morph for 3D tiles.

Demo 6b: Porous cup

08_porous_cup.gh. Start from a plain solid, hollow it into a cup, and take most of it away: lighter, cheaper to print, and closer to bone, coral or a radiolarian.

  1. Pick a square or round cup (taper narrows the round one’s base) and a copy one wall (5 mm) smaller that pokes out above the top. Solid Difference leaves a floor, walls and an open top.
  2. Populate Geometry scatters seeds over the outside. Seeds in the top solid rim band are skipped so the lip stays whole; the sides and the bottom get cut.
  3. Cutters: Voronoi 3D gives each seed its own cell; Scale shrinks each cell about its seed by opening. What is left between the shrunken cells are ribs, about (1 − opening) × the seed spacing wide. Or style 1: bubbles (Sphere sized by the distance to the nearest seed).
  4. Solid Difference again (cup minus cutters); only the largest piece is kept.
  5. Panels compare the solid block, the plain cup and the porous cup, in mm³ and grams of PLA. With the defaults (round, 70 mm) the porous cup uses about 58% of the plain cup’s material and a fifth of the solid block’s.

Demo 6c: Voronoi cage

09_voronoi_lattice.gh. Turn a solid scan (bunny.ply, 80 mm) into a hollow cage: a network of struts on its surface, nothing inside. Like a lampshade, or the glass sponge Euplectella.

  1. Populate Geometry scatters seeds over the scan’s surface, evenly by area, so thin parts like the ears get their share.
  2. Voronoi 3D gives each seed its cell; Mesh | Mesh finds where the cells cut the surface: a Voronoi net drawn on the skin.
  3. Divide Length puts points along the net; ShrinkWrap with an offset = strut radius wraps one smooth, closed mesh around them. Disjoint Mesh + sort by volume keeps the largest piece.
  4. No offsets and no booleans, so thin parts don’t break it. With the defaults the cage uses about 36% of the solid scan’s material.
    • Needs supports under the chin and belly (tree supports for FDM), or resin / SLS.

Precedents: Matsys (Andrew Kudless), Michael Hansmeyer (subdivided columns), Nervous System, ICD/ITKE pavilions (header image), Living Seawalls (header image — pattern as habitat, not ornament).

Plugins (free, food4rhino) for going further: Weaverbird (subdivision/mesh frames/thicken), LunchBox (paneling), Anemone (loops/recursion). Kangaroo and Galapagos ship with Rhino 8.

Demo 7: Optimization (preview)

(~10 min) 07_galapagos_fitness.gh. So far we choose the attractor position. What if we specify a goal instead, and let the computer search?

  1. Genome: attractor x, y and the min / max radius — four sliders, grouped.
  2. Fitness: open-area ratio, penalized wherever a hole would leave a bridge thinner than min bridge (proxy: each radius against (spacing − min bridge) / 2). Computed in the file and ready to read.
  3. Wire Galapagos: drag its Genome output onto the four sliders, Fitness onto FITNESS, set Maximize, start the solver. Let it run.
    • Discussion: when you hand over an objective instead of a geometry, what are you still authoring? This is optimization — search through a space you defined — not yet “AI.” Next week we hand over intent to an LLM agent.
    • Structural / topology optimization (Karamba, Millipede; cf. Joris Laarman’s Bone Chair from Project 1 references) — we return to this in week 9.

Geometry to Toolpath

Laser cutting (see laser cutting reference)

Pen plotting: the same pattern as linework — try plotting the attractor field (circles, or contours of the distance field).

FDM: shells need wall thickness ≥ 2× nozzle width; watch overhangs on openings near vertical.

Homework

Pattern Object

Exercise 4 - Pattern Object

DUE by next class, 9:30am 10/27 (Tuesday) to Canvas.

Reading 4: Pattern and Ornament

Read excerpts from both (PDFs on Canvas):

  1. Iwamoto, L. Digital Fabrications: Architectural and Material Techniques. Princeton Architectural Press, 2009. “Tessellating” essay, pp. 34–41 (stop before the project case studies). Optional: Introduction, pp. 4–9.
  2. Picon, A. Ornament: The Politics of Architecture and Subjectivity. Wiley, 2013. “Textures, Patterns and Topology: A Different Ornament,” pp. 27–34 (stop at the end of the paragraph on Islamic décor).

Questions on Canvas.

DUE Monday 10/26 EOD. Post your response to the discussion forum.

Midterm

Complete the Project 1 Proposal for the idea you picked in today’s selection matrix. DUE end of this week, Friday 10/23 EOD, to Canvas.

Keep building. Next week we bring an LLM agent into the Rhino/GH workflow — come with a working definition of your midterm object that you want to extend or revise.

References

Pattern geometry

Specific families

Pattern and ornament