def exerB_6b(): """ Plot a closed B-Spline curve, using a close control polygon. """ V = np.array([[0.,0.], [0.,3.], [1.,2.], [2., 3.], [2.,0.], [1.,1.], [0.,0.]]) k = 4 fn.drawVertexes(V, 'o') fn.drawVertexes(V) fn.drawVertexes(fn.bSplineClosed(V, k))
def example4(): """ Plot a closed B-Spline curve. """ V = np.array([[0.,0.], [0.,6.], [-1.,5.], [-3.,8.], [-1.,14.],[2.,14.],[4.,8.], [2.,5.], [1.,6.], [1.,0.]]) k = 4 fn.drawVertexes(V, 'o') fn.drawVertexes(V) fn.drawVertexes(fn.bSplineClosed(V, k))