#NEWLINE# def _radius_changed( self , old , new ) : #NEWLINE# #INDENT# factor = ( new / old ) #NEWLINE# if numpy . allclose ( self . pos , 0.0 ) : #NEWLINE# #INDENT# self . points [ : ] = ( factor * self . points [ : ] ) #NEWLINE# self . polydata . modified ( ) #NEWLINE# self . normals . update ( ) #NEWLINE# self . tube . update ( ) #NEWLINE# self . actor . mapper . update ( ) #NEWLINE# self . render ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# c = self . pos #NEWLINE# diff = ( ( 0.0 , 0.0 , 0.0 ) - c ) #NEWLINE# self . points = translate_points ( diff , self . points ) #NEWLINE# self . points [ : ] = ( factor * self . points [ : ] ) #NEWLINE# diff = c #NEWLINE# self . points = translate_points ( diff , self . points ) #NEWLINE# self . polydata . points = self . points #NEWLINE# self . polydata . modified ( ) #NEWLINE# self . normals . update ( ) #NEWLINE# self . actor . mapper . update ( ) #NEWLINE# self . tube . update ( ) #NEWLINE# self . render ( )