#NEWLINE# def draw( self , viewer ) : #NEWLINE# #INDENT# cpoints = self . get_cpoints ( viewer , points = self . points ) #NEWLINE# cr = viewer . renderer . setup_cr ( self ) #NEWLINE# if ( len ( cpoints ) < 4 ) : #NEWLINE# #INDENT# cr . draw_path ( cpoints ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( cr , 'draw_bezier_curve' ) : #NEWLINE# #INDENT# cr . draw_bezier_curve ( cpoints ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# steps = max ( * viewer . get_window_size ( ) ) #NEWLINE# ipoints = self . calc_bezier_curve_range ( steps , cpoints ) #NEWLINE# cr . draw_path ( ipoints ) #NEWLINE# #UNINDENT# #UNINDENT# if self . showcap : #NEWLINE# #INDENT# self . draw_caps ( cr , self . cap , cpoints )