This is the bocoup web log with posts from Al, Boaz, Rick, Sam, Nate, Nick & Pete. You should also make sure to checkout code.bocoup.com, where we keep the finished versions of ideas we kick around here.


Mar 2, 2010

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.



Comments:




Please send your questions to this address or call Bocoup at 617-379-2752
This web page is proudly maintained by Bocoup and hosted by (mt) Media Temple
All code on this website is Open Source