designcoding
About Table of Contents Keywords Monthly Archive
Support designcoding!

Waffle Macro

May 7, 2014 | Algorithms
#contouring #interlocking #macro #rhinoceros

Here are two macros that automate some of the classical structural styles in today’s architectural geometry. They could be developed more to include joint details, however. It is a relaxing experience to study macros when the process doesn’t have algorithmic expressions (such as recursion, iteration, or conditionals). It is today’s subject in the first-year design computing course at İBU. The first one requires at least two curves already present in order to define a lofted surface (to be “waffled”):

Waffle Macro contouring, interlocking
! ; Waffle Structure Macro 2
_-loft _pause _enter
_sellast
_setobjectname mysurface
_contour j y 0,0,0 10,0,0 2
_extrudecrv 0.2
_sellast
_extrudesrf 0.6
_sellast
_group
_setgroupname ribs1
_selnone
_-selname mysurface
_contour j y 0,0,0 0,10,0 2
_extrudecrv 0.2
_sellast
_extrudesrf 0.6
_sellast
_group
_setgroupname ribs2
_-selgroup ribs1
_-selgroup ribs2
_invert
_hide

The second macro below takes any object you’ve modeled before and puts a drape surface on it (to be “waffled” again). This one also practices the use of layers:

Waffle Macro macro, rhinoceros
! ; Waffle Structure Macro 3
_setview w t
_drape _pause
;_-loft _pause _enter
_sellast
_setobjectname mysurface
_setview w p
_zoom s
_contour j y 0,0,0 10,0,0 2
_sellast
_group
_setgroupname ribs1
_selnone
_-selname mysurface
_contour j y 0,0,0 0,10,0 2
_sellast
_group
_setgroupname ribs2
_selnone
_-selgroup ribs1
_-selgroup ribs2
_pipe 0.2 _enter
_sellast
_-layer e RIBS _enter
_-changelayer RIBS
_-layer c RIBS f Default _enter
_selnone

It is surprising that in some cases mouse is almost not necessary for Rhino. The addition of a couple more statements to the selection of objects might even advance this technique more. Note that the Command List at the Help menu includes all available commands to macro.

Cite this post

Yazar, T. (2014, May 7). Waffle Macro. designcoding. Retrieved August 24, 2026, from https://www.designcoding.net/waffle-macro/

Related Posts

Gaudi Column Macro

March 7, 2015

Gaudi-like columns are generated as part of the “boolean” classes of Design Computing. The most inspiring, beautiful, and ugly variations are often done by boolean intersection, as this operation is the surprising one of the three brothers. While the class deals with the concept of emergence once again via solid and void relationships, constructive solid modeling techniques are introduced. Although it is widely used as a spatial analysis approach in architecture, there are some examples of using boolean algebra in…

A Text Effect

January 2, 2015

This is a macro exercise in Rhino, showing that Rhino is pretty much capable of automating some cool text effects. Just copy and paste the below code into the command bar of the Rhino, or open the macro editor by typing macro edit, then paste it there and press play. You’ll enter any string when prompted, then the macro handles the rest of the process. You can play with the parameters by changing the numeric values you see in the…

Binary Branching using Macro

April 15, 2013

Today’s design computing class was about fractals. In Rhino, writing macro statements are very easy to learn as it just mimics your behaviors in a sequential text. There are a few syntactic rules that we should know. First, you should watch the command line carefully to understand the steps of your design process. Each command in Rhino requires different inputs from the user. In macro, you may enter these values or tell the macro to ask the user by typing…

Back to Macro

December 14, 2012

Can we go back to the beginnings of algorithmic design tools, when it was still as simple as possible (not to the binary level of course)? Most of the theorists agree about the fact that contemporary parametric design tools sometimes provide needlessly many possibilities that suppress the designer’s own creativity. The Voronoi component in Grasshopper was one of the cult examples of that (mentioned here). Throughout this blog, I always search for simple and powerful definitions to design problems, without…

Interlocking Structure with Boolean

August 23, 2026

You are seeing the last of the interlocking system trials that I have previously tested in two exercises. If you remember, in our first trial, we were drawing interlocking joinery details on cross-sections using closed curves, without any solid modeling. And here is the most advanced one, I guess. In this exercise, however, we are creating a solid model that incorporates these interlocking details. This time, we will look at how to construct the same system using Boolean operations. Boolean…

  • Chapters

    • Algorithms
    • Discourses
    • Fabrications
    • Studios
  • Explore

    • All Keywords
    • Table of Contents
    • Monthly Archive
    • #tutorial
    • #polyhedra
    • #unrolling
    • #archimedean-solid
    • #platonic-solid
    • #parametric-surface
    • #relief
    • #folding
    • #truncated
    • #icosahedron
    • #buckminster-fuller
    • #euclidean-construction
    • #tessellation
    • #icosidodecahedron
    • #dodecahedron
    • #stellated-solid
    • #octahedron
    • #tetrahedron
    • #deformation
    • #pattern
  • Search

  • Support designcoding!

  • Enjoying designcoding? Support me on Patreon to keep it growing. Thank you!

  • copyright 2026 designcoding.net | about | privacy policy | end user license agreement