#center line control points n_Cc = 4 Cc_x = np.linspace(0,10,n_Cc) Cc_r = np.zeros((n_Cc,)) Cc = np.array(zip(Cc_x,Cc_r)) body = Body(P,Cc,cartesian=False) #move the control points for centerline deltaC_r = np.array([0,2,0,0]) deltaC_x = np.array([0,0,0,1]) deltaCc = np.array(zip(deltaC_x,deltaC_r)) #calculate new P's body.deform(deltaCc) fig = pylab.figure() ax = fig.add_subplot(3,1,1) ax.set_title('Centerline b-sPiine Interpolant') body.plot_spline(ax) ax.legend(loc=2) ax = fig.add_subplot(3,1,3) ax.set_title('Initial and Final Geometries') body.plot_geom(ax) ax.legend()