A hierarchical RBF online learning algorithm for real-time 3-D scanner