This nice project by bk8190 scan in three-dimensions a design made out of lego blocks. It scans by positioning its probe above the apropriate block, then reading how many times it is able to lower the probe before it is stopped by a block. The scanner outputs the data into a text file, so that it can be used in other programs.
Nice work!