Multiresolution editing for B-spline curves and surfaces