#NEWLINE# def _getCommandListOfPath( self , path , offset = Point ( ) ) : #NEWLINE# #INDENT# "\n        Linearises a path into Gerber points. The 'offset' Point() is\n        added to the location.\n        Returns a list of Gerber 'commands'.\n        " #NEWLINE# commands = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# polarity_sequence = '' #NEWLINE# order = '' #NEWLINE# coords = self . _pathToPoints ( commands ) #NEWLINE# coord_list = [ ] #NEWLINE# for segment in coords : #NEWLINE# #INDENT# segment_coord_list = [ ] #NEWLINE# text = self . _getGerberisedPoint ( segment [ 0 ] , offset ) #NEWLINE# segment_coord_list . append ( ( 'G01%sD02*\n' % text ) ) #NEWLINE# for coord in segment [ 1 : ] : #NEWLINE# #INDENT# text = self . _getGerberisedPoint ( coord , offset ) #NEWLINE# segment_coord_list . append ( ( 'G01%sD01*\n' % text ) ) #NEWLINE# #UNINDENT# coord_list . append ( segment_coord_list ) #NEWLINE# #UNINDENT# return coord_list