ALAR 5403 · Fall 2026

Grasshopper

Import, decimate, cut a section, draw the section line
Tuesdays 9:00–11:30 AM · Campbell Hall 405 · Bradley Cantrell, Commonwealth Professor of Landscape Architecture

Goal

Import a point cloud from SiteScape or Polycam, control how many points display, cut a section through it, and draw the section line.

Method B - one GhPython component (fast and reliable)

Use pointcloud-section.gh to skip the setup and open the definition ready-made, or build it yourself from pointcloud-section.py. It reads an XYZ/PTS file directly, decimates, cuts, and draws the line in a single component. This is the most robust route for arbitrary point cloud files and is the easiest to share as a single file.

Steps:

  1. Place a GhPython component (Maths > Script > GhPython, or search Python in the finder).
  2. Double-click it and paste the full contents of pointcloud-section.py.
  3. Add five inputs. Right-click the component and use the input editor, then rename them to exactly: file_path, decimate, axis, section_pos, tolerance.
  4. Add four outputs and rename them to exactly: status, cloud_pts, section_pts, section_line.
  5. Connect a Panel holding the file path to file_path, a Number Slider to decimate, a Panel with X, Y, or Z to axis, a Number Slider to section_pos, and a Number Slider to tolerance.
  6. The outputs give you the decimated cloud, the section points, and the section line.

Why both methods

Method A is the idiomatic Grasshopper route and uses built-in components. Method B is more reliable across point cloud file types and easier to hand to someone else as a single file. Use A for a clean native graph, B when you hit a file that will not import or when you need a shareable definition.

Notes on the section