Recognition of polyhedrons with a range-finder