#NEWLINE# def _create_points( self , r , h , c , d ) : #NEWLINE# #INDENT# cs = tvtk . ConeSource ( radius = r , height = h , center = tuple ( c ) , direction = tuple ( d ) ) #NEWLINE# cs . update ( ) #NEWLINE# ps = cs . output #NEWLINE# points = ps . points . to_array ( ) #NEWLINE# self . points = points #NEWLINE# self . polydata . points = self . points #NEWLINE# self . polydata . polys = ps . polys #NEWLINE# return ( cs , ps . polys )