#NEWLINE# def bounding_box( positions ) : #NEWLINE# #INDENT# 'Computes the bounding box for a list of 3-dimensional points.\n    ' #NEWLINE# ( x0 , y0 , z0 ) = ( x1 , y1 , z1 ) = positions [ 0 ] #NEWLINE# for ( x , y , z ) in positions : #NEWLINE# #INDENT# x0 = min ( x0 , x ) #NEWLINE# y0 = min ( y0 , y ) #NEWLINE# z0 = min ( z0 , z ) #NEWLINE# x1 = max ( x1 , x ) #NEWLINE# y1 = max ( y1 , y ) #NEWLINE# z1 = max ( z1 , z ) #NEWLINE# #UNINDENT# return ( ( x0 , y0 , z0 ) , ( x1 , y1 , z1 ) )