Skip To Main Content

Compiling Clarkson’s Hull in OS X

Posted by Sam Clearman

Mar 02 2010

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.

Posted by
Sam Clearman
on March 2nd, 2010

Comments

We moved off of Disqus for data privacy and consent concerns, and are currently searching for a new commenting tool.

Contact Us

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