Google Earth image Rendering of STL file Photo of finished carving
Keuka Lake (Google Earth) Com­puted STL solid model Fin­ished product

It started when L. spot­ted an arti­cle in Ready­Made about Flu­id­Forms, a com­pany which makes cus­tomized “Fluid Earth bowls” out of wood. You go to their Web site, select a geo­graphic area of inter­est, and their com­put­ers carve a scale model of that ter­rain out of a slab of wood. In the­ory you can use it as a bowl for your vegetables.

“That’s easy,” I decided. We had recently acquired a 3-axis CNC router at work, and although I didn’t yet know how to use it, I fig­ured it would be sim­ple enough. We were slated to visit New York’s Fin­ger Lakes region in a cou­ple of weeks, so an obvi­ous first project would be a gift which shows the ter­rain near her family’s lake house. Now, for the data.

Google Earth was the log­i­cal start­ing point, since every­one knows how to use it. Unfor­tu­nately, it is also a closed-source com­mer­cial pro­gram. They make it very easy to put data into it, but for var­i­ous rea­sons it is very dif­fi­cult to get data back out. NASA offers a sim­i­lar appli­ca­tion called World Wind which solves the open­ness prob­lem, but the full fea­ture set is only avail­able on the Microsoft Win­dows ver­sion. What to do?

The solu­tion was pro­vided by the US Geo­log­i­cal Sur­vey, which oper­ates a Web ser­vice called The National Map Seam­less Server. The USGS pro­vides a vari­ety of geo­ref­er­enced data prod­ucts free of charge. These are nor­mally divided up into rec­tan­gu­lar quad­ran­gles which do not nec­es­sar­ily cover the entire area of inter­est. But the Seam­less Server can qui­etly stitch together mul­ti­ple maps. You sim­ply select the area of inter­est, choose the data prod­ucts you need, and down­load them.

Flu­id­Forms, like Google Earth, relies on world­wide ele­va­tion data from Feb­ru­ary 2000′s Shut­tle Radar Topog­ra­phy Mis­sion. NASA cal­cu­lated the height at every point on the Earth’s sur­face using space-based radar inter­fer­om­e­try. Because it is based on radar reflec­tions, it is not tremen­dously accurate—it can’t dis­cern between dense tree­tops and the ground, for example—but it does cover most of the Earth at 30 meter res­o­lu­tion. But because I’m mod­el­ing loca­tions in the United States, the USGS offers me a bet­ter choice: the National Ele­va­tion Dataset. The NED is derived from a vari­ety of sources, includ­ing tra­di­tional sur­vey­ing, and is largely hand-checked for accu­racy. It is avail­able in ridicu­lously high res­o­lu­tions (presently 10 meters, with 3 meters com­ing soon). As a result, even lit­tle streams and creeks are vis­i­ble. Perfect!

The next step was to find a pro­gram to con­vert down­loaded ele­va­tion datasets into 3D solid mod­els in a for­mat that could be under­stood by com­put­er­ized man­u­fac­tur­ing tools like 3D print­ers and CNC routers. I quickly dis­cov­ered that no such pro­gram exists, so I wrote one. The cho­sen DEM data for­mat (Geo­T­IFF) as basi­cally a grid of floating-point alti­tude val­ues geo­ref­er­enced to the UTM coor­di­nate sys­tem. Had I been inter­ested in a larger area, I would have had to “unwrap” the Mer­ca­tor pro­jec­tion onto a spher­i­cal or ellip­ti­cal sur­face, but because the lake is rel­a­tively small, I decided to forego the extra math. The pro­gram sim­ply applies the proper scal­ing fac­tors and adjusts the Z-height to reflect the desired min­i­mum thick­ness of the wood. The solid model out­put is in STL for­mat, which is basi­cally a giant mesh of inter­con­nected tri­an­gles in 3D space. Each tri­an­gle is described by 3 ver­tices and a unit nor­mal vec­tor to tell the com­puter which side is the outer sur­face. For sim­plic­ity, I turned the entire X-Y grid into tri­an­gles. The pro­gram con­nects the tri­an­gu­lated sur­face with yet more tri­an­gles which describe the sides and bot­tom of the fin­ished prod­uct. Done.

Unfor­tu­nately, in my zeal for detail, I dis­cov­ered that STL files with more than one mil­lion tri­an­gles can choke even a pow­er­ful com­puter. Ide­ally I would reduce the num­ber tri­an­gles in non-detailed areas, but such algo­rithms are beyond my skill level. I’m just an elec­tri­cal engi­neer here. I wound up reduc­ing the res­o­lu­tion of the whole area.

With the STL solid model com­plete, all that was left was to gen­er­ate toolpaths—the actual motions that the CNC router will fol­low while carv­ing. For­tu­nately, the router comes with CAM soft­ware to accom­plish this task.

For our first piece, we lam­i­nated 3 pieces of Baltic Birch ply­wood with PVA glue. The outer dimen­sions are 16 x 14.5 inches. The carv­ing takes about 3 hours: a first pass with a 1/2″ diam­e­ter mill roughs the wood down to the approx­i­mate shape, then a final pass with a 1/8″ ball-end mill cre­ates the final sur­face. After about an hour of sand­ing and a cou­ple coats of Dan­ish oil, the bowl was done. Success!

May 31, 2008 May 31, 2008 archives by Scott 2 Comments

I passed a bus ear­lier today shrink-wrapped with a National Grid adver­tise­ment boast­ing that “by run­ning on nat­ural gas, this bus saves 54 tons of car­bon from the environment.”

To which I say: what’s so unde­sir­able about the Earth’s sec­ond most abun­dant ele­ment by weight? The sole com­po­nent of graphite and dia­mond? The key to turn­ing ordi­nary iron into steel, which brought forth the Indus­trial Rev­o­lu­tion? The basis of organic chem­istry? The chem­i­cal basis for all known life?

Maybe they meant “car­bon dioxide.”

While we’re on the sub­ject, we need to imme­di­ately stop the spread of the vogue term “car­bon foot­print” before it takes over the world. Its brevity makes it a poor choice for explain­ing how global warm­ing works. It also recalls other irri­tat­ingly bad abbre­vi­a­tions of this decade, such as the use of “ter­ror” to mean “terrorism.”

May 22, 2008 May 22, 2008 archives by Scott No Comments

Grover Norquist was the guest on the Col­bert Report last night. I am apalled by his bla­tant over­sim­pli­fi­ca­tions of obvi­ously com­plex issues—he claims that the fed­eral gov­ern­ment should pro­vide lit­tle more than safety and secu­rity (to which Col­bert teased that we could prob­a­bly do with­out the Inter­state High­way Sys­tem too).

But I can appre­ci­ate his theme of reduc­ing unnec­es­sary gov­ern­ment restric­tions on com­merce and pri­vate life when­ever pos­si­ble. So I won­der: why are the Repub­li­cans not the biggest cham­pi­ons of legal­iz­ing gay marriage?

May 15, 2008 May 15, 2008 archives by Scott No Comments

This com­par­a­tive analy­sis of the 50 largest Amer­i­can cities is a trea­sure trove of infor­ma­tion and clever analysis—one which could be the spring­board for a thou­sand future conversations.

One of my favorite met­rics is the ratio of eth­nic restau­rants to fast food restau­rants. Boston ranks well at #3. Cincin­nati is at the bot­tom of the list (#50).

May 6, 2008 May 6, 2008 archives by Scott No Comments

The country’s first all-plastic road bridge is being built in my old neigh­bor­hood in Cincinnati.

April 26, 2008 April 26, 2008 archives by Scott No Comments

It’s always fun to see your home­town on the big screen, but this film is bet­ter sum­ma­rized as “two hours of my life I’m not going to get back.”

Also, my $6 bag of pop­corn was repul­sively bad. Thanks, Regal Cinemas.

April 23, 2008 April 23, 2008 archives by Scott No Comments

A cap­tion on the Boston Globe web site says that Prime Min­is­ter Gor­don Brown “will speak today to Boston” at the JFK Library.

That state­ment is sim­ply untrue. I checked, and in fact the whole library is closed for the day. (Boston was not invited.)

April 18, 2008 April 18, 2008 archives by Scott No Comments

Sun­day, after the race, L. and I dropped by the Smithsonian’s Hir­sh­horn Museum and checked out their exhibit “The Cin­ema Effect: Illu­sion, Real­ity, and the Mov­ing Image.” The qual­ity of the pieces was all over the place. But the unmis­tak­able whirring of a large film pro­jec­tor (heard from an adjoin­ing room) led me to my favorite piece: Rod­ney Graham’s “Rheinmetall/Victoria 8.” In a room by itself, on a plat­form, a giant 1961-vintage 35 mm film pro­jec­tor (the Vic­to­ria 8), equipped with a clever auto­matic loop­ing device for its 10 min­utes of film, clat­tered away effort­lessly. It was pro­ject­ing a film of an even older type­writer (the Rhein­metall) being dusted with snow. The pro­jected black-and-white image was pow­er­ful, bright, and gor­geously contrasty—standing in sharp con­trast to neigh­bor­ing exhibits with lack­lus­ter dig­i­tal pro­jec­tion. But despite the com­pelling yet inan­i­mate sub­ject of the film, I found myself drawn like a mag­net to the pro­jec­tor. The intense glow from its lam­p­house seemed reluc­tant to be con­strained by its enclo­sure, spilling out of every crack like sun­light through the walls of a dark barn. The film spool­ing out of the infi­nite loop plat­ter moved swiftly and smoothly. It was beau­ti­ful mechan­i­cal har­mony, and great art.

April 9, 2008 April 9, 2008 archives by Scott No Comments