C 2-continuous surface reconstruction with piecewise polynomial patches