#NEWLINE# def _create_points( self , r , c ) : #NEWLINE# #INDENT# sp = tvtk . SphereSource ( radius = r , center = tuple ( c ) , phi_resolution = 20 , theta_resolution = 20 ) #NEWLINE# sp . update ( ) #NEWLINE# ps = sp . output #NEWLINE# points = ps . points . to_array ( ) #NEWLINE# points = scale ( self . size , points , self . pos ) #NEWLINE# self . points = points #NEWLINE# self . polydata . points = self . points #NEWLINE# self . polydata . polys = c . polys #NEWLINE# return ( points , ps . polys )