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
We moved off of Disqus for data privacy and consent concerns, and are currently searching for a new commenting tool.
Hi, thanks for posting this! Also, your fix worked on my win7 OS.
Genius Sam, thank you very much.
Its been a few years, but the replacement stormacs.h file isn’t there any more. 🙁
Looks like a bad link snuck through a website revision we did a year or so ago. I’ve just fixed this Barry!