Neil's News

+ 2010
+ 2009
+ 2008
+ 2007
- 2006
 Entropy
 About Work
 Cartography
 Unplugged
 Fledermaus
 Nickels and Dimes
 Voxel Sphere
 Moo Down
 Googled
 Night Vision
 Teamwork
 Carleton
 Design Patterns
 Table Sorter
 Course Correction
 MobWrite
 Instant Delete
 Beirut
 WbOsMuRtPtE
 Diff, Match & Patch
 Fuzzy Patch
 Fuzzy Match
 Diff Cleanup
 What's the Diff?
 Diff Accelerators
 Widget
 Lord of the Rings
 Makers
 Generic Icons
 Colour Picker
+ 2005
+ 2004
+ 2003
+ 2002

Voxel Sphere

17 November 2006

A rival team was monopolizing the robotics lab, so I had a couple of hours to kill. Me and free time are always a dangerous combination. So, I set about writing a tool to compute the construction of spheres using blocks. There are several well-published patterns for making Lego spheres, but they only apply to Lego's unique aspect ratio. I have my eye on Minibrix, so I needed a more generic sphere building tool.

XYZ
Block dimensions:
Centred on block:
Sphere radius:

Special thanks to Hong for helping to prove that my first attempt was horribly flawed, and Patrick for pointing me in the right direction.

Update: Rendering speed is now much improved. But there's an odd distortion of the table cells in all browsers except IE. It's rather mysterious. Has something to do with the doctype. Update: Fixed.

Update: A z-axis scaling bug has been fixed. -- August 2007

< Previous | Next >

 
-------------------------------------