Segmentation of Range Images by piecewise Approximation with Shape Constraints