Add nurbs_def method to Shape class.