SortalGI Shape Grammar Interpreter
(by stouffs)
The SortalGI shape grammar interpreter supports the specification and application of (non-parametric) shape rules.
Support Email

The SortalGI Grasshopper plug-in encapsulates the SortalGI shape grammar interpreter and makes part of its functionality available within Grasshopper. It supports the specification and application of shape rules and the generation of single or multiple rule application results. The SortalGI Grasshopper plug-in currently only supports (non-parametric) line segments and labelled points, in 2D or 3D. Emergence is naturally supported.

Installation

The SortalGI Grasshopper plug-in is made available as a .zip file. After unzipping it, you will find a folder containing the following components: a sortal-setup folder, a components folder, a sample folder and a PDF document explaining the installation process.

  • The sortal-setup folder contains a setup batch file and a number of support packages, including the SortalGI (Python) library.
  • The components folder contains the Grasshopper user objects that give access to (part of) the functionality of the SortalGI (Python) sortal grammar interpreter.
  • The sample folder offers a few demonstrations of the use of the SortalGI Grasshopper plug-in.
  • Annex E Installation (Windows) provides the installation instructions for the SortalGI Grasshopper plug-in for Windows.

The installation involves two steps. The first step is the installation of the SortalGI library, the second step is the installation of the SortalGI plug-in user objects. These steps are also explained in the Annex E Installation (Windows) instructions.

  1. Execute the setup.bat batch file which can be found in the sortal-setup folder. This will copy the content of the sortal-setup\site-packages folder into the Plug-ins\IronPython\Lib\site-packages folder of your Rhino installation folder. Alternatively, you can do so manually.
  2. Next, add the Plug-ins\IronPython\Lib\site-packages folder of your Rhino installation folder into Rhino's Module Search Paths.
  • Launch Rhino
  • Type EditPythonScript in the Command box
  • In the Rhino Python Editor window, select 'Options...' from the Tools menu
  • Add the Plug-ins\IronPython\Lib\site-packages folder of your Rhino installation folder into the 'Module Search Paths'
  • Select the Script Engine tab, check the 'Frames Enabled' option and click 'OK'.
  1. Open Grasshopper and select the 'User Object Folder', under 'Special Folders', from the File menu. Copy the content of the sgi_components folder into the UserObjects folder.
  2. Exit Rhino and relaunch Rhino. The SortalGI plug-in should now be present as a specific tab in the Grasshopper Components Tab Panel, called 'SGI'.

You are now set to go.

Demonstration

The sample folder contains a few grasshopper demonstration files

  1. rules 1 creation.gh shows the creation of two rules. One to move a square diagonally and another to move an L-shape diagonally.
  2. rules 2 application.gh shows a derivation (Knight, 2003) applying the two rules created above, using a series of Apply nodes.
  3. rules 3 exploration.gh shows an extended derivation of all possible rule applications over two steps, applying the two rules created above, using two Apply All nodes. Note that if you change the input values to the SGI Setup node, you may need to press function key 'F5' in order to re-execute all the nodes, based on the new input.
  4. inscribed square.gh shows a derivation (Stiny, 1985) applying a rule to inscribe a square with a rotated square, using a labeled point to constrain rule application.
License: