#NEWLINE# def generic_grid( supershape = None , neighborhood_center_index = None ) : #NEWLINE# #INDENT# grid = pmz . PolyGrid ( supershape = supershape ) #NEWLINE# if neighborhood_center_index : #NEWLINE# #INDENT# center_shape = grid . create ( neighborhood_center_index ) #NEWLINE# for n_index in center_shape . n_indexes ( ) : #NEWLINE# #INDENT# grid . create ( n_index ) #NEWLINE# #UNINDENT# #UNINDENT# return supershape