Slope Analysis

Steepest Paths down a Topography with Aggregate Runoff Tracing the steepest slopes over a topography has a common mapping exercise within Landscape Urbanism practices (and one which has been used productively by our students at EPFL). It makes for a good scripting exercise because there is really no good way to do it on the … Continue reading

Half-Edge Mesh

Each segment of this network has two half-edges Though the logic behind the data-structure of a half-edge mesh can be difficult or unintuitive to work with at first, once it becomes clear, it can become difficult to imagine working without recourse to functions that will tell you which face an edge is adjacent to, which … Continue reading

Mesh Import

Rhino to Processing This sketch expands on the earlier Half-Edge Mesh sketch, demonstrating how to generate a large HEM class from text files containing the vertex positions and the vertex indices for each face as comma separated lists. (To generate these .txt files from Rhino via Rhinoscript see this post.) The difference between this sketch … Continue reading

Mesh Export

Rhino to Processing In a previous post I covered the implementation of a Half-Edged Mesh as a class in Processing. In that definition, however, both the vertex coordinates and face indexing were hard-coded in the body of the script (Lines 8-9). This may be acceptable for a mesh with only 16 faces, but for most … Continue reading