Syntaktika

A toolkit bringing established and novel spatial analytics to Grasshopper. Isovists, thresholds, partitions, the convex and axial maps, the Medial Axis Transform, and others.

Isovist Analysis

Compute the vector-based visibility polygon at any point inside the plan. Get precise occluding edges and calculate Thresholds, which partition an isovist into depth-based areas.

See the isovist templates

Isovist Fields

Compute an isovist from every cell of a grid and map its measures across the whole plan. Area, perimeter, occlusivity and compactness become fields that show where a layout opens up, where it closes down, and how visibility changes from room to room.

See the grid isovist template

Medial Axis Transform

Reduce a plan to its medial axis: a graph-like skeleton that identifies the parts of a floorplan, and classifies each part as Line–Line, Convex–Line, Convex–Convex or Concave.

See the medial axis template

Building Partitions (Coming Soon)

Find the partition lines that split a plan into its parts and produce a graph of their permeability. Inspired from methods of the shape recognition field.

Get started in three steps

  1. In Rhino 8, run PackageManager, search for Syntaktika and click Install. Restart Rhino.

  2. Place the Templates component (Syntaktika › General), right-click it and choose a definition. See Templates.

  3. Replace the Boundary and Obstacles curves with your geometry: right-click the parameter and choose Set one Curve or Set Multiple Curves.

How Syntaktika works

The Environment

Almost every analysis starts with an Environment component. It is built from a closed boundary curve and any number of obstacles (walls, columns, furniture). Curves need to be simplified into polylines.

Internally, the Environment works with integer coordinates, which keeps visibility and polygon operations exact. Precision Scaling sets how many decimals are kept: 2 means a model in metres is resolved to the centimetre.

Floor plan 1 as an Environment: the free space is filled, walls and obstacles are holes Floor plan 2 as an Environment: the free space is filled, walls and obstacles are holes Floor plan 3 as an Environment: the free space is filled, walls and obstacles are holes Floor plan 4 as an Environment: the free space is filled, walls and obstacles are holes Floor plan 5 as an Environment: the free space is filled, walls and obstacles are holes Floor plan 6 as an Environment: the free space is filled, walls and obstacles are holes

Dependencies

Syntaktika is written in C# and builds on a few open libraries. All of them ship with the plugin, except pyvoronoi, which Rhino installs on first use.

RhinoCommon Rhino 8 SDK
Every input and output is ordinary Rhino geometry: points, curves, polylines and meshes. RhinoCommon provides these types, and the Grasshopper SDK provides the components themselves.
Clipper2 polygon clipping
The Environment stores its boundary and obstacles as Clipper paths with 64-bit integer coordinates, which is where the integer geometry comes from: coordinates are multiplied by Precision Scaling and rounded. Clipper then computes unions, differences, areas and point-in-polygon tests exactly, for example to build the free space of a plan and the isovist polygons.
QuikGraph graphs
The .NET graph library, the maintained successor of QuickGraph. The medial axis, its parts and the visibility and threshold maps are stored as QuikGraph graphs, and its algorithms, such as connected components, walk them.
MSAGL graph layout
Microsoft Automatic Graph Layout draws graphs as readable diagrams. Syntaktika uses its layered (Sugiyama) layout to place the nodes and route the edges.
pyvoronoi Python, medial axis
The medial axis comes from the Voronoi diagram of the plan's line segments, computed by pyvoronoi, a Python wrapper of the Boost.Polygon segment Voronoi.

How Python runs inside Syntaktika

No separate Python installation is needed. The script that calls pyvoronoi (SegmentVoronoi.py) is embedded in the plugin and runs on Rhino 8's own CPython 3 engine, the one behind the Script Editor, through RhinoCode (Rhino.Runtime.Code):

  1. Start the engine. If Python 3 is not running yet, Syntaktika starts it in the background, without opening a window, and the component recomputes once it is ready.
  2. Install the package. The script's header, # r: pyvoronoi==1.2.4, tells Rhino to install the package with pip the first time, so the first run needs an internet connection. Version 1.2.4 is pinned because it is the latest with prebuilt packages for Rhino 8's Python 3.9; newer versions would need a C++ compiler.
  3. Solve. pyvoronoi works on integers, so segment endpoints are multiplied by Precision Scaling and rounded. The script returns each Voronoi cell with its source segment and category, and Syntaktika turns them back into Rhino polylines at the original scale.

Cite Syntaktika

If you use Syntaktika in your work, please cite it.

Vegas, G. (2026). Syntaktika: A Grasshopper plugin for spatial analysis of buildings
(Version 0.5.0) [Computer software].
https://gonzalovegas.com/syntaktika-site/