#NEWLINE# def _create_points( self ) : #NEWLINE# #INDENT# for i in range ( 0 , 360 , 1 ) : #NEWLINE# #INDENT# theta = ( ( i * pi ) / 180 ) #NEWLINE# self . points [ i ] [ 0 ] = 0.0 #NEWLINE# self . points [ i ] [ 1 ] = ( self . radius * sin ( theta ) ) #NEWLINE# self . points [ i ] [ 2 ] = ( self . radius * cos ( theta ) ) #NEWLINE# #UNINDENT# np = ( len ( lines . 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# self . polydata . points = self . points #NEWLINE# self . polydata . lines = lines #NEWLINE# v = self . viewer #NEWLINE# if ( v is not None ) : #NEWLINE# #INDENT# v . scene . render ( )