#NEWLINE# def rotate( self , angle , axis , origin = numpy . array ( [ 0.0 , 0.0 , 0.0 ] ) ) : #NEWLINE# #INDENT# 'Function takes atleast 2 arguments: axis about which to\n        rotate the actor and angle with which to rotate the actor, the\n        3rd agrument is origin i.e. the point about which to rotate\n        the actor, by default it is set to the global origin' #NEWLINE# ( p , pi , ax ) = rotate ( axis , angle , origin , self . pos , self . points , self . axis ) #NEWLINE# self . set ( pos = p , trait_change_notify = False ) #NEWLINE# self . points = pi #NEWLINE# self . set ( axis = ax , trait_change_notify = False ) #NEWLINE# self . polydata . points = self . points #NEWLINE# self . polydata . modified ( ) #NEWLINE# self . normals . update ( ) #NEWLINE# self . render ( )