ucsd-compfab2

Week 3 - Data-Driven Design

Tuesday 10/13

Agenda

Review and Discuss

What is Data-Driven Form?

Last week the inputs to our definitions were sliders that we set by hand. This week, the inputs come from somewhere else: measurements (data), a sketch, and image, 3d scans. Now rather than designing rules for geometry we are designing a mapping — the rules that translate data into form.

A key question for today: how meaningful is your mapping? A waveform extruded as a profile is a direct physicalization; population data as a vase profile is a chosen geometric transform; data mapped to porosity or twist is metaphorical. Think through those choices and how the communicate.

Precedents

Historical

Contemporary

Six roles for data

How is data used in the design?

Role The data… Examples
Source becomes the shape (transcoding, or capture/trace) waveform jewelry, Lehanneur, Marey, 3D scans, body-fitted orthotics
Constraint sets boundary conditions the form must fit topography, a scanned rock or wall, a room corner; your Object Inventory
Objective defines what the form must perform well at wind load, sun exposure, structural optimization (week 4 → 8)
Seed sets initial conditions for a growth process reaction-diffusion, differential growth, branching (Nervous System)
Corpus is many examples, and the form comes from their pattern averaged objects, ML-generated geometry, LLM-written definitions (week 5)
Live input keeps changing the form after fabrication kinetic façades, hygromorphic wood (Menges, HygroSkin), 4D printing (Tibbits)

Within “source” there’s a useful distinction (from C.S. Peirce semiotic theories): a scan is an index — evidence of the thing itself — while a data mapping is a symbol — a convention you chose.

Exercise (10 min, pairs): pick one precedent above. Name its role(s). Then propose the same dataset used in a different role.

Demos: External Data into Grasshopper

Example files are linked below. Each has a yellow NOTE panel with the steps and things to try. All use built-in components only; note: units are millimeters.

Demo File Sample data
1 01_csv_vase.gh sample_city_a.csv, sample_city_b.csv
2 02_image_relief.gh sample_image.jpg (embedded in the file)
3 03_scan_contours.gh bunny.ply, reduced and embedded in the file
4 04_sketch_profile.gh a sample sketch, embedded in the file
5 05_graph_object.gh sample_city_a.csv
6 06_plotter_pipeline.gh the image from Demo 2 and the scan from Demo 3

The two CSVs are synthetic sample data (52 weekly rows: week, temp_c, rain_mm, daylight_h for two made-up cities) — not real measurements. Demos 1 and 5 read the CSV from a file path in a panel: download the CSV and edit the file path panel to point at your copy before anything will show up.

Demo 1: CSV → vase

(30 min) 01_csv_vase.gh. Builds on parametric-vase.gh: last week the radii came from sliders, now there is one ring per row of data in the input file.

  1. Find or make a small dataset (10–100 numbers): monthly temperature, tides, daily steps, census data, or a sound file’s amplitude (export as text from Audacity). The example uses the 52-row sample CSVs.
  2. Read: Read File → Cull Index (drop the header row) → Text Split (at the comma) → List Item to pick a column → Flatten Tree → numbers. The column slider picks 1 temp, 2 rain, 3 daylight: same file, three different vases.
  3. Map: Bounds finds the data range → Remap Numbers to 0–1 → Graph Mapper → Remap Numbers again into a radius range in mm (min radius, max radius).
  4. Vase: a vertical Line SDL → Perp Frames (one frame per row) → Circle with the remapped list as radius → Loft → Cap Holes. The result is a full solid; print it in the slicer’s vase / spiral mode for a thin wall.
  5. Swap in a second dataset live: unplug file path and plug in the dataset B panel (another city, same columns).
  6. Right-click the Graph Mapper > Graph types (linear, power, sine, parabola) and drag the grips: same data, very different vases. Mapping is a determinant transform in the data to form flow.

Demo 2: Image → relief / perforation

(~30 min) 02_image_relief.gh. An image as a field of numbers.

  1. Sample: Square grid → Flatten Tree → Image Sampler (Params > Input) returns the brightness (0 = black, 1 = white) under each point. The image is stretched over a frame from (0,0) to (84,120) mm; keep spacing × count inside it.
  2. Branch A, relief: Remap Numbers brightness to a height → Unit Z → Move each point up → Surface From Points (U Count = points per row). Swap the two ends of height range to make dark high instead of light.
  3. Make it printable: a surface has no thickness. Brep Edges → Join Curves gives the rim; Project it down to a floor plane; Ruled Surface makes the walls, Boundary Surfaces the floor; Brep Join closes it. The closed? panel must read True. Bake PRINT mesh → export .stl.
  4. Branch B, halftone (drawn at x = 100): the same brightness values → Remap Numbers to a radius (dark = big) → Circle → CUT curves for the laser. Same grid, same numbers, different mapping (preview of week 4).
  5. Try your own image: a portrait, a satellite tile, a depth map. Double-click the Image Sampler, load a file, keep the X domain 0 to 84, Y domain 0 to 120, channel = Value.

Demo 3: Scan → contours → fit

(~25 min) 03_scan_contours.gh. The scan param holds bunny.ply, reduced to 8000 faces and scaled to 80 mm tall. To use buffalo.stl or your own phone scan (see 3D scanning reference): import it into Rhino, then right-click scan > Set one Mesh.

  1. A, data as source: Contour cuts the mesh every material thickness; each cut is one sheet of cardboard or plywood. Boundary Surfaces + Extrude previews the stack.
  2. Layout for the laser (drawn at x = 80): Offset Curve grows each outline by half the laser kerf → Project to z = 0 → Move each slice to its own cell on a grid (Series → Modulus / Integer Division → Vector XYZ). Note the Graft on Move’s Motion input: one vector per slice, so the pieces of a slice stay together. Turn it off to see why it matters.
  3. B, data as constraint: here the scan is treated not as the primary object but as what an object must fit. Mesh | Plane sections the scan at collar height → Offset Curve by a clearance → offset again for the rim → Boundary Surfaces → Extrude results in a collar at a given height that fits the scan.
  4. Check the fit: Divide Curve on the collar’s inner edge → Mesh Closest Point → Distance → Bounds reports the real 3D gap between collar and object. It is smaller than the clearance wherever the scan leans in over the collar — the offset only knows about one flat section.
  5. These examples contrast data as source (the contours) vs data as constraint (the fit).

Demo 4: Sketch → profile

(~15 min) 04_sketch_profile.gh. Here we use a hand drawn sketch (a vase profile next to a dashed centre line) in two different ways.

  1. Traced: photograph a hand sketch → Picture in Rhino → trace it with InterpCrv. The traced profile and axis params hold a trace of the sample sketch; replace them with right-click > Set one Curve / Set one Line.
  2. A, revolve: Revolution (profile + axis) → Cap Holes → Rotate 3D to stand it up (drawn at y = -60).
  3. B, sweep (drawn at x = 100): Perp Frame at the start of the same curve → Circle → Sweep1 → Cap Holes. Now the line is a rail to sweep along instead of a profile for a revolution.
  4. Sampled: runs the same sketch through Image Sampler on a grid; Smaller Than a threshold + Dispatch keeps the dark points. You get a cloud of points — no curve, no start, no end, no axis.
  5. Discussion: tracing is interpretation while sampling is automatic. Which one is “data”? What did the trace add that the photo did not contain?

Demo 5: Graph → object

(15 min) optional. 05_graph_object.gh. This shows the simplest possible transcoding from data to object: plotting data as a line, then making the line into a thing.

Demo 6: Pen plotter pipeline

(~20 min) 06_plotter_pipeline.gh. Plotters draw lines, not fills.

  1. A, ridge lines: the relief from Demo 2, drawn instead of printed. Rectangular grid → Flip Matrix (one branch per row) → Image Sampler → Remap Numbers → Move each point up the page by its darkness → Interpolate = one line per row. Try an amplitude larger than the line spacing: the lines cross.
  2. B, Make2D (drawn on a second page): the contour stack from Demo 3 seen from an angle. A rotated Rectangle → Make2D Parallel View is the camera (view turn, view tilt); Make2D flattens the 3D curves onto the page. In Rhino the same thing is the Make2D command, which also removes hidden lines from solids.
  3. The example draws both pages at 1:1 on US Letter portrait, 215.9 × 279.4 mm; edit the paper panels for another size. (TK: plotter model and paper size.)
  4. Each pen has its own Curve param (PEN 1 black, PEN 2 red). Bake each to its own layer. SelDup to remove duplicate curves (the plotter will draw them twice).
  5. Export Selected → .svg or .ai (TK: confirm format for our plotter software), scale 1:1 in mm, and print the layout to PDF for documentation.
  6. Plot one layer per pen. Try two pen weights. We will use an axidraw A3.

Object Inventory Kickoff

~10 min, whole class, to introduce the Object Inventory.

Optional activities

If there’s time in class, or on your own while working on the inventory:

Homework

Data-Driven Object

Exercise 3 - Data-Driven Object

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

Object Inventory

Complete the first step of Project 1. See the kickoff for the card format and optional activities. Submit to Canvas by Monday 10/19 EOD.

Midterm Proposal

Complete the Project 1 Proposal. Identify where data — as source, constraint, objective, seed, corpus, or live input — enters your design. Start your concept paragraph with your parameter sentence.

Start thinking about this week, after your Object Inventory. We will narrow down your ideas at the Week 4 check-in.

DUE end of Week 4, Friday 10/23 EOD, to Canvas.

Reading 3: Data Physicalization

Read excerpts from:

  1. Jansen, Y., Dragicevic, P., Isenberg, P., Alexander, J., Karnik, A., Kildal, J., Subramanian, S., Hornbæk, K. “Opportunities and Challenges for Data Physicalization.” CHI 2015.
  2. Drucker, J. “Humanities Approaches to Graphical Display.” Digital Humanities Quarterly 5.1 (2011). Open access.

Check canvas for pdfs and details. DUE Monday 10/19 EOD.

References

Pen Plotters

Data physicalization and data art

Theory

Technique

AI and architecture: generative models before LLMs

LLMs that write the modeling code

LLMs in Grasshopper

MCP: agents that drive the software