Multiresolution Curve and Surface Representation: Reversing Subdivision Rules by Least-Squares Data Fitting