#NEWLINE# def _points_changed( self , value ) : #NEWLINE# #INDENT# self . polydata . points = value #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# np = 0 #NEWLINE# lines = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# np = ( len ( self . points ) - 1 ) #NEWLINE# lines = numpy . zeros ( ( np , 2 ) , 'l' ) #NEWLINE# lines [ : , 0 ] = numpy . arange ( 0 , ( np - 0.5 ) , 1 , 'l' ) #NEWLINE# lines [ : , 1 ] = numpy . arange ( 1 , ( np + 0.5 ) , 1 , 'l' ) #NEWLINE# #UNINDENT# self . polydata . lines = lines #NEWLINE# self . polydata . modified ( ) #NEWLINE# self . stripper . update ( ) #NEWLINE# self . tube . update ( ) #NEWLINE# v = self . viewer #NEWLINE# if ( v is not None ) : #NEWLINE# #INDENT# v . scene . render ( )