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.

This entry was posted by Sam Clearman on March 02, 2010 in Uncategorized.

Comments

Training

We offer comprehensive beginner and advanced jQuery, JavaScript and HTML5 training onsite and at The Bocoup Loft in Boston, MA.

Check out our upcoming courses:

More about training →

Categories

AJAX, Apache, Arduino, Audio, audio data api, Augmented Reality, Backbone, Bash, Bocoup, boston, Build Tool, Burst, burst-engine, Canvas, Chrome, Chromium, conflict, CouchDB, CSS, CSS3, Data, Data Visualization, EventSource, facebook, Feature Detection, Fieldrunners, Firebug, Firefox, fx4, Games, Gecko, Git, Google, Google Analytics, Grunt, hardware, heart, hole, html, HTML5, inset, Internet Explorer, Inventions, JavaScript, Johnny-Five, jQuery, jQuery Plugins, jQuery.Hive, JSARToolkit, Linux, list, Media, merge, Minefield, Mobile, moz10, mozilla, Node.js, OOP, Open Source, Open Web Apps, Opera, opposite-winding, Performance, PHP, PollenJS, Popcorn, Popcorn.js, primatives, Processing.js, RaphaëlJS, Regular Expressions, Ringmark, Ringmark Gallery, Safari, Security, shadow, social, Social Networking, specs, SpiderMonkey, sprite-viking, Standards, SVG, Sys Admin, terminal, Testing, Tools, Training, Tutorial, ubuntu, Uncategorized, Uselessware, V8, Video, Visualization, VML, W3C, Web Project Management, Web Workers, webgl, WebKit, WebRTC, wget, Workflow, wtfjs and xml.

Twitter