Minor modifications on the polynomial surface.
Add some utility functions for B-splines.