#NEWLINE# def __init__( self , objects , objectsOverlay , objectInputOverlay , outputdir ) : #NEWLINE# #INDENT# self . objects = objects #NEWLINE# self . objectsOverlay = objectsOverlay #NEWLINE# self . objectsInputOverlay = objectInputOverlay #NEWLINE# self . outputdir = outputdir #NEWLINE# self . counter = 0 #NEWLINE# self . max_spread_x = 0 #NEWLINE# self . max_spread_y = 0 #NEWLINE# self . max_spread_z = 0 #NEWLINE# for iobj in self . objects . values ( ) : #NEWLINE# #INDENT# spread_x = ( max ( iobj [ 0 ] ) - min ( iobj [ 0 ] ) ) #NEWLINE# if ( self . max_spread_x < spread_x ) : #NEWLINE# #INDENT# self . max_spread_x = spread_x #NEWLINE# #UNINDENT# spread_y = ( max ( iobj [ 1 ] ) - min ( iobj [ 1 ] ) ) #NEWLINE# if ( self . max_spread_y < spread_y ) : #NEWLINE# #INDENT# self . max_spread_y = spread_y #NEWLINE# #UNINDENT# spread_z = ( max ( iobj [ 2 ] ) - min ( iobj [ 2 ] ) ) #NEWLINE# if ( self . max_spread_z < spread_z ) : #NEWLINE# #INDENT# self . max_spread_z = spread_z #NEWLINE# #UNINDENT# #UNINDENT# self . max_spread_x = ( ( self . max_spread_x / 2 ) + 10 ) #NEWLINE# self . max_spread_y = ( ( self . max_spread_y / 2 ) + 10 ) #NEWLINE# self . max_spread_z = ( self . max_spread_z / 2 ) #NEWLINE# from enthought.mayavi import mlab #NEWLINE# self . scene = mlab . figure ( size = ( ( 2 * self . max_spread_x ) , ( 2 * self . max_spread_y ) ) , bgcolor = ( 1.0 , 1.0 , 1.0 ) ) #NEWLINE# self . engine = mlab . get_engine ( )