Compiling Clarkson’s Hull in OS X

If you’re interested in parametric or generative design (the terminology doesn’t seem to be well standardized) you have probably run into Voronoi diagrams and their cousins, Delaunay triangulations. The latter can be used to make concave hulls given an input point set, a construction which is called an Alpha Shape.

Jim Clarkson wrote a great program called hull to compute all these guys in C (let me tell you, doing it in Rhinoscript is not fun, especially if you’re running in a VM). Unfortunately, if you try to compile his program on OS X (I haven’t tried Linux but I suspect you’d get the same result in any modern GCC), you get errors like:

hull.c:34:1: error: pasting “*” and “simplex” does not give a valid preprocessing token

As a service to all of those architects and designers out there who’d rather not learn C, here’s the fix. Replace the “stormacs.h” file with this guy: stormacs.h and you should be good to go.


Contact Us

We'd love to hear from you. Get in touch!


+1 617-283-2807


P.O. Box 961436
Boston, MA 02196