// // time: Tue Apr 23 15:50:59 1996 // // version: 3.0.0 (format), 3.1.2 (DX) // // // MODULE main // CATEGORY Macros // // comment: This is an example of electron density data for a simple water molecule. The density // comment: is shown as nested Isodensity surfaces, with the central one colored by the magnitude // comment: of the gradient. Probes are used to construct starting points for streamlines . // comment: A 3d slice (slab) is shown in "z" and the gradient of the density is mapped by color // comment: and size of the arrows . The arrows also show the direction. The data were calculated // comment: in Gaussian 92. The arrows can be moved through the density with the Sequencer. // comment: Rotation and Zoom are through the direct interactors. // comment: // workspace: width = 933, height = 897 // layout: snap = 0, width = 50, height = 50, align = CC // macro main( ) -> ( ) { // // node ProbeList[1]: x = 112, y = 11, inputs = 0, label = Start_Points // output[1]: visible = 1, type = 16777224, value = {[1.96182, -0.980296, -0.74915], [1.49245, -1.16365, -0.10142], [0.905953, -1.0688, -0.448715], [-0.309135, -0.810823, -0.474446], [0.0127342, -0.21203, -0.289927], [-0.316259, 0.0954111, -0.28871], [0.346225, 1.03828, -1.49088], [-0.621211, 1.20681, -0.947634], [1.55018, 0.587511, -0.142052], [2.12483, -0.325069, -1.77178], [2.43479, 1.15271, -1.68814], [2.41664, 0.723625, -1.80189], [1.91784, 0.0710673, -1.82305], [1.70038, -0.840041, -1.31017]} // // // node Construct[1]: x = 170, y = 112, inputs = 4, label = Construct // input[2]: visible = 0 // input[3]: defaulting = 0, visible = 0, type = 8, value = [14, 1, 1] // input[4]: visible = 0 // main_Construct_1_out_1 = Construct( main_ProbeList_1_out_1, main_Construct_1_in_2, main_Construct_1_in_3, main_Construct_1_in_4 ) [instance: 1, cache: 1]; // // node Import[1]: x = 402, y = 3, inputs = 6, label = Import // input[1]: defaulting = 0, visible = 0, type = 32, value = "surface" // input[2]: visible = 0 // input[3]: visible = 0 // main_Import_1_out_1 = Import( main_Import_1_in_1, main_Import_1_in_2, main_Import_1_in_3, main_Import_1_in_4, main_Import_1_in_5, main_Import_1_in_6 ) [instance: 1, cache: 1]; // // node Reduce[2]: x = 391, y = 107, inputs = 2, label = Reduce // input[2]: defaulting = 0, visible = 0, type = 16777221, value = { 3.0 } // main_Reduce_2_out_1 = Reduce( main_Import_1_out_1, main_Reduce_2_in_2 ) [instance: 2, cache: 1]; // // node Gradient[2]: x = 720, y = 10, inputs = 2, label = Gradient // input[2]: defaulting = 0, visible = 0, type = 32, value = "manhattan" // main_Gradient_2_out_1 = Gradient( main_Reduce_2_out_1, main_Gradient_2_in_2 ) [instance: 2, cache: 1]; // // node Map[4]: x = 182, y = 240, inputs = 4, label = Map // main_Map_4_out_1 = Map( main_Construct_1_out_1, main_Gradient_2_out_1, main_Map_4_in_3, main_Map_4_in_4 ) [instance: 4, cache: 1]; // // node Color[1]: x = 134, y = 418, inputs = 5, label = Color // input[2]: defaulting = 0, visible = 0, type = 32, value = "red" // input[3]: defaulting = 0, visible = 0, type = 5, value = 1.000000 // main_Color_1_out_1 = Color( main_Map_4_out_1, main_Color_1_in_2, main_Color_1_in_3, main_Color_1_in_4, main_Color_1_in_5 ) [instance: 1, cache: 1]; // // node AutoGlyph[1]: x = 120, y = 526, inputs = 7, label = AutoGlyph // input[2]: defaulting = 0, visible = 0, type = 32, value = "rocket" // input[3]: visible = 0 // input[4]: defaulting = 0, visible = 0, type = 5, value = 0.600000 // input[5]: visible = 0 // main_AutoGlyph_1_out_1 = AutoGlyph( main_Color_1_out_1, main_AutoGlyph_1_in_2, main_AutoGlyph_1_in_3, main_AutoGlyph_1_in_4, main_AutoGlyph_1_in_5, main_AutoGlyph_1_in_6, main_AutoGlyph_1_in_7 ) [instance: 1, cache: 1]; // // node Sequencer[2]: x = 417, y = 227, inputs = 7, label = Sequencer // input[1]: defaulting = 0, visible = 0, type = 32, value = "Sequencer_2" // input[4]: defaulting = 1, visible = 0, type = 1, value = 0 // input[5]: defaulting = 1, visible = 0, type = 1, value = 12 // input[6]: defaulting = 1, visible = 0, type = 1, value = 1 // input[7]: defaulting = 0, visible = 0, type = 16777217, value = { 0 12 1 3 10 0 } // vcr[2]: min = 0, max = 12, beg = 3, end = 10, cur = 3, inc = 1, loop = on, step = off, pal = on // main_Sequencer_2_out_1 = @frame; // // node Slab[1]: x = 355, y = 324, inputs = 4, label = Slab // input[2]: defaulting = 0, visible = 0, type = 32, value = "x" // input[4]: defaulting = 0, visible = 0, type = 1, value = 0 // main_Slab_1_out_1 = Slab( main_Gradient_2_out_1, main_Slab_1_in_2, main_Sequencer_2_out_1, main_Slab_1_in_4 ) [instance: 1, cache: 1]; // // node AutoColor[3]: x = 403, y = 395, inputs = 10, label = AutoColor // input[2]: defaulting = 0, visible = 0, type = 5, value = 1.000000 // input[3]: defaulting = 0, visible = 0, type = 5, value = 1.500000 // input[4]: defaulting = 0, visible = 0, type = 5, value = 0.490000 // input[5]: defaulting = 0, visible = 0, type = 5, value = 0.900000 // input[7]: visible = 0 // output[2]: visible = 0 // main_AutoColor_3_out_1, main_AutoColor_3_out_2 = AutoColor( main_Slab_1_out_1, main_AutoColor_3_in_2, main_AutoColor_3_in_3, main_AutoColor_3_in_4, main_AutoColor_3_in_5, main_AutoColor_3_in_6, main_AutoColor_3_in_7, main_AutoColor_3_in_8, main_AutoColor_3_in_9, main_AutoColor_3_in_10 ) [instance: 3, cache: 1]; // // node Compute[3]: x = 408, y = 487, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "norm($0)" // expression: value = norm(a) // name[2]: value = a // main_Compute_3_out_1 = Compute( main_Compute_3_in_1, main_AutoColor_3_out_1 ) [instance: 3, cache: 1]; // // node Glyph[1]: x = 418, y = 567, inputs = 7, label = Glyph // input[2]: defaulting = 0, visible = 0, type = 32, value = "rocket" // input[3]: defaulting = 0, visible = 0, type = 5, value = 1.000000 // input[4]: defaulting = 0, visible = 0, type = 5, value = 0.700000 // input[5]: visible = 0 // main_Glyph_1_out_1 = Glyph( main_Compute_3_out_1, main_Glyph_1_in_2, main_Glyph_1_in_3, main_Glyph_1_in_4, main_Glyph_1_in_5, main_Glyph_1_in_6, main_Glyph_1_in_7 ) [instance: 1, cache: 1]; // // node ScalarList[1]: x = 571, y = 91, inputs = 11, label = ScalarList // input[1]: defaulting = 0, visible = 0, type = 32, value = "ScalarList_1" // input[2]: visible = 0 // input[3]: defaulting = 0, visible = 0, type = 16777221, value = { 0.14 0.08 0.03 0.01 0.3 } // input[4]: defaulting = 0, visible = 0, type = 3, value = 1 // input[5]: defaulting = 1, visible = 0, type = 5, value = -1000000.0 // input[6]: defaulting = 1, visible = 0, type = 5, value = 1000000.0 // input[7]: defaulting = 1, visible = 0, type = 5, value = 1.00000 // input[9]: defaulting = 1, visible = 0, type = 1, value = 5 // output[1]: visible = 1, type = 16777221, value = { 0.14 0.08 0.03 0.01 0.3 } // // // node Isosurface[4]: x = 533, y = 272, inputs = 6, label = Isosurface // input[3]: visible = 0 // input[6]: defaulting = 0, visible = 0, type = 1, value = -1 // main_Isosurface_4_out_1 = Isosurface( main_Import_1_out_1, main_ScalarList_1_out_1, main_Isosurface_4_in_3, main_Isosurface_4_in_4, main_Isosurface_4_in_5, main_Isosurface_4_in_6 ) [instance: 4, cache: 1]; // // node Map[2]: x = 717, y = 328, inputs = 4, label = Map // main_Map_2_out_1 = Map( main_Isosurface_4_out_1, main_Gradient_2_out_1, main_Map_2_in_3, main_Map_2_in_4 ) [instance: 2, cache: 1]; // // node AutoColor[2]: x = 606, y = 408, inputs = 10, label = AutoColor // input[3]: defaulting = 0, visible = 0, type = 5, value = 1.000000 // input[4]: defaulting = 0, visible = 0, type = 5, value = 0.600000 // input[7]: visible = 0 // output[2]: visible = 0 // main_AutoColor_2_out_1, main_AutoColor_2_out_2 = AutoColor( main_Map_2_out_1, main_AutoColor_2_in_2, main_AutoColor_2_in_3, main_AutoColor_2_in_4, main_AutoColor_2_in_5, main_AutoColor_2_in_6, main_AutoColor_2_in_7, main_AutoColor_2_in_8, main_AutoColor_2_in_9, main_AutoColor_2_in_10 ) [instance: 2, cache: 1]; // // node ClipPlane[1]: x = 664, y = 532, inputs = 3, label = ClipPlane // input[2]: visible = 0 // input[3]: defaulting = 0, visible = 0, type = 8, value = [0, 0, 1] // main_ClipPlane_1_out_1 = ClipPlane( main_AutoColor_2_out_1, main_ClipPlane_1_in_2, main_ClipPlane_1_in_3 ) [instance: 1, cache: 1]; // // node Streamline[1]: x = 61, y = 124, inputs = 7, label = Streamline // input[3]: visible = 0 // input[4]: visible = 0 // input[5]: visible = 0 // input[6]: visible = 0 // input[7]: visible = 0 // main_Streamline_1_out_1 = Streamline( main_Gradient_2_out_1, main_ProbeList_1_out_1, main_Streamline_1_in_3, main_Streamline_1_in_4, main_Streamline_1_in_5, main_Streamline_1_in_6, main_Streamline_1_in_7 ) [instance: 1, cache: 1]; // // node Ribbon[1]: x = 68, y = 233, inputs = 2, label = Ribbon // input[2]: visible = 0 // main_Ribbon_1_out_1 = Ribbon( main_Streamline_1_out_1, main_Ribbon_1_in_2 ) [instance: 1, cache: 1]; // // node Map[1]: x = 16, y = 383, inputs = 4, label = Map // main_Map_1_out_1 = Map( main_Ribbon_1_out_1, main_Gradient_2_out_1, main_Map_1_in_3, main_Map_1_in_4 ) [instance: 1, cache: 1]; // // node AutoColor[1]: x = 14, y = 598, inputs = 10, label = AutoColor // input[2]: defaulting = 0, visible = 0, type = 5, value = 1.000000 // input[3]: defaulting = 0, visible = 0, type = 5, value = 1.900000 // input[4]: defaulting = 0, visible = 0, type = 5, value = 0.666000 // input[7]: visible = 0 // output[2]: visible = 0 // main_AutoColor_1_out_1, main_AutoColor_1_out_2 = AutoColor( main_Map_1_out_1, main_AutoColor_1_in_2, main_AutoColor_1_in_3, main_AutoColor_1_in_4, main_AutoColor_1_in_5, main_AutoColor_1_in_6, main_AutoColor_1_in_7, main_AutoColor_1_in_8, main_AutoColor_1_in_9, main_AutoColor_1_in_10 ) [instance: 1, cache: 1]; // // node Slab[4]: x = 847, y = 97, inputs = 4, label = Slab // input[2]: defaulting = 0, visible = 0, type = 32, value = "z" // input[3]: defaulting = 0, visible = 0, type = 1, value = 10 // input[4]: defaulting = 0, visible = 0, type = 1, value = 0 // main_Slab_4_out_1 = Slab( main_Import_1_out_1, main_Slab_4_in_2, main_Slab_4_in_3, main_Slab_4_in_4 ) [instance: 4, cache: 1]; // // node Isosurface[7]: x = 823, y = 217, inputs = 6, label = Isosurface // input[3]: visible = 0 // main_Isosurface_7_out_1 = Isosurface( main_Slab_4_out_1, main_ScalarList_1_out_1, main_Isosurface_7_in_3, main_Isosurface_7_in_4, main_Isosurface_7_in_5, main_Isosurface_7_in_6 ) [instance: 7, cache: 1]; // // node Tube[2]: x = 892, y = 511, inputs = 4, label = Tube // input[2]: defaulting = 0, visible = 0, type = 5, value = 0.025000 // input[3]: defaulting = 0, visible = 0, type = 1, value = 15 // main_Tube_2_out_1 = Tube( main_Isosurface_7_out_1, main_Tube_2_in_2, main_Tube_2_in_3, main_Tube_2_in_4 ) [instance: 2, cache: 1]; // // node Color[3]: x = 759, y = 686, inputs = 5, label = Color // input[2]: defaulting = 0, visible = 0, type = 32, value = "black" // input[3]: visible = 0 // main_Color_3_out_1 = Color( main_Tube_2_out_1, main_Color_3_in_2, main_Color_3_in_3, main_Color_3_in_4, main_Color_3_in_5 ) [instance: 3, cache: 1]; // // node Remove[1]: x = 623, y = 686, inputs = 2, label = Remove // input[2]: defaulting = 0, visible = 0, type = 32, value = "normals" // main_Remove_1_out_1 = Remove( main_Color_3_out_1, main_Remove_1_in_2 ) [instance: 1, cache: 1]; // // node Collect[1]: x = 316, y = 686, inputs = 5, label = Collect // main_Collect_1_out_1 = Collect( main_AutoGlyph_1_out_1, main_Glyph_1_out_1, main_ClipPlane_1_out_1, main_AutoColor_1_out_1, main_Remove_1_out_1 ) [instance: 1, cache: 1]; // // node Image[2]: x = 354, y = 834, inputs = 42, label = Image // input[1]: defaulting = 0, visible = 0, type = 32, value = "Image_2" // input[4]: defaulting = 0, visible = 0, type = 1, value = 1 // input[5]: defaulting = 0, visible = 0, type = 8, value = [0.908527 -0.31845 -1.04852] // input[6]: defaulting = 0, visible = 0, type = 8, value = [3.16998 -1.40819 4.00951] // input[7]: defaulting = 1, visible = 0, type = 5, value = 7.265 // input[8]: defaulting = 0, visible = 0, type = 1, value = 797 // input[9]: defaulting = 0, visible = 0, type = 5, value = 0.629 // input[10]: defaulting = 0, visible = 0, type = 8, value = [0.910514 -0.0258768 -0.412667] // input[11]: defaulting = 0, visible = 0, type = 5, value = 65.5059 // input[12]: defaulting = 0, visible = 0, type = 1, value = 1 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1 // input[15]: defaulting = 0, visible = 0, type = 32, value = "none" // input[16]: defaulting = 0, visible = 0, type = 32, value = "none" // input[17]: defaulting = 1, visible = 0, type = 1, value = 1 // input[18]: defaulting = 1, visible = 0, type = 1, value = 1 // input[19]: defaulting = 0, visible = 0, type = 1, value = 0 // input[25]: defaulting = 0, visible = 0, type = 32, value = "/u/rsefeck/images/water3" // input[26]: defaulting = 0, visible = 0, type = 32, value = "rgb" // input[29]: defaulting = 1, visible = 0, type = 3, value = 0 // output[1]: visible = 0 // output[2]: visible = 0 // depth: value = 8 // window: position = (0.0336,0.2285), size = 0.6336x0.5322 // interaction mode = NONE // internal caching: 1 // main_Image_2_out_1, main_Image_2_out_2 = Image( main_Image_2_in_1, main_Collect_1_out_1, main_Image_2_in_3, main_Image_2_in_4, main_Image_2_in_5, main_Image_2_in_6, main_Image_2_in_7, main_Image_2_in_8, main_Image_2_in_9, main_Image_2_in_10, main_Image_2_in_11, main_Image_2_in_12, main_Image_2_in_13, main_Image_2_in_14, main_Image_2_in_15, main_Image_2_in_16, main_Image_2_in_17, main_Image_2_in_18, main_Image_2_in_19, main_Image_2_in_20, main_Image_2_in_21, main_Image_2_in_22, main_Image_2_in_23, main_Image_2_in_24, main_Image_2_in_25, main_Image_2_in_26, main_Image_2_in_27, main_Image_2_in_28, main_Image_2_in_29, main_Image_2_in_30, main_Image_2_in_31, main_Image_2_in_32, main_Image_2_in_33, main_Image_2_in_34, main_Image_2_in_35, main_Image_2_in_36, main_Image_2_in_37, main_Image_2_in_38, main_Image_2_in_39, main_Image_2_in_40, main_Image_2_in_41, main_Image_2_in_42 ) [instance: 2, cache: 1]; // network: end of macro body CacheScene("Image_2", main_Image_2_out_1, main_Image_2_out_2); } main_ProbeList_1_out_1 = {[1.96182, -0.980296, -0.74915], [1.49245, -1.16365, -0.10142], [0.905953, -1.0688, -0.448715], [-0.309135, -0.810823, -0.474446], [0.0127342, -0.21203, -0.289927], [-0.316259, 0.0954111, -0.28871], [0.346225, 1.03828, -1.49088], [-0.621211, 1.20681, -0.947634], [1.55018, 0.587511, -0.142052], [2.12483, -0.325069, -1.77178], [2.43479, 1.15271, -1.68814], [2.41664, 0.723625, -1.80189], [1.91784, 0.0710673, -1.82305], [1.70038, -0.840041, -1.31017]}; main_Construct_1_in_2 = NULL; main_Construct_1_in_3 = [14, 1, 1]; main_Construct_1_in_4 = NULL; main_Construct_1_out_1 = NULL; main_Import_1_in_1 = "surface"; main_Import_1_in_2 = NULL; main_Import_1_in_3 = NULL; main_Import_1_in_4 = NULL; main_Import_1_in_5 = NULL; main_Import_1_in_6 = NULL; main_Import_1_out_1 = NULL; main_Reduce_2_in_2 = { 3.0 }; main_Reduce_2_out_1 = NULL; main_Gradient_2_in_2 = "manhattan"; main_Gradient_2_out_1 = NULL; main_Map_4_in_3 = NULL; main_Map_4_in_4 = NULL; main_Map_4_out_1 = NULL; main_Color_1_in_2 = "red"; main_Color_1_in_3 = 1.000000; main_Color_1_in_4 = NULL; main_Color_1_in_5 = NULL; main_Color_1_out_1 = NULL; main_AutoGlyph_1_in_2 = "rocket"; main_AutoGlyph_1_in_3 = NULL; main_AutoGlyph_1_in_4 = 0.600000; main_AutoGlyph_1_in_5 = NULL; main_AutoGlyph_1_in_6 = NULL; main_AutoGlyph_1_in_7 = NULL; main_AutoGlyph_1_out_1 = NULL; main_Sequencer_2_in_1 = "Sequencer_2"; main_Sequencer_2_in_2 = NULL; main_Sequencer_2_in_3 = NULL; main_Sequencer_2_in_4 = NULL; main_Sequencer_2_in_5 = NULL; main_Sequencer_2_in_6 = NULL; main_Sequencer_2_in_7 = { 0 12 1 3 10 0 }; main_Sequencer_2_out_1 = NULL; @startframe = 3; @nextframe = @startframe; @endframe = 10; @deltaframe = 1; main_Slab_1_in_2 = "x"; main_Slab_1_in_4 = 0; main_Slab_1_out_1 = NULL; main_AutoColor_3_in_2 = 1.000000; main_AutoColor_3_in_3 = 1.500000; main_AutoColor_3_in_4 = 0.490000; main_AutoColor_3_in_5 = 0.900000; main_AutoColor_3_in_6 = NULL; main_AutoColor_3_in_7 = NULL; main_AutoColor_3_in_8 = NULL; main_AutoColor_3_in_9 = NULL; main_AutoColor_3_in_10 = NULL; main_AutoColor_3_out_1 = NULL; main_Compute_3_in_1 = "norm($0)"; main_Compute_3_out_1 = NULL; main_Glyph_1_in_2 = "rocket"; main_Glyph_1_in_3 = 1.000000; main_Glyph_1_in_4 = 0.700000; main_Glyph_1_in_5 = NULL; main_Glyph_1_in_6 = NULL; main_Glyph_1_in_7 = NULL; main_Glyph_1_out_1 = NULL; main_ScalarList_1_in_1 = "ScalarList_1"; main_ScalarList_1_in_2 = NULL; main_ScalarList_1_in_3 = { 0.14 0.08 0.03 0.01 0.3 }; main_ScalarList_1_in_4 = 1; main_ScalarList_1_in_5 = NULL; main_ScalarList_1_in_6 = NULL; main_ScalarList_1_in_7 = NULL; main_ScalarList_1_in_8 = NULL; main_ScalarList_1_in_9 = NULL; main_ScalarList_1_in_10 = NULL; main_ScalarList_1_in_11 = NULL; main_ScalarList_1_out_1 = { 0.14 0.08 0.03 0.01 0.3 }; main_Isosurface_4_in_3 = NULL; main_Isosurface_4_in_4 = NULL; main_Isosurface_4_in_5 = NULL; main_Isosurface_4_in_6 = -1; main_Isosurface_4_out_1 = NULL; main_Map_2_in_3 = NULL; main_Map_2_in_4 = NULL; main_Map_2_out_1 = NULL; main_AutoColor_2_in_2 = NULL; main_AutoColor_2_in_3 = 1.000000; main_AutoColor_2_in_4 = 0.600000; main_AutoColor_2_in_5 = NULL; main_AutoColor_2_in_6 = NULL; main_AutoColor_2_in_7 = NULL; main_AutoColor_2_in_8 = NULL; main_AutoColor_2_in_9 = NULL; main_AutoColor_2_in_10 = NULL; main_AutoColor_2_out_1 = NULL; main_ClipPlane_1_in_2 = NULL; main_ClipPlane_1_in_3 = [0, 0, 1]; main_ClipPlane_1_out_1 = NULL; main_Streamline_1_in_3 = NULL; main_Streamline_1_in_4 = NULL; main_Streamline_1_in_5 = NULL; main_Streamline_1_in_6 = NULL; main_Streamline_1_in_7 = NULL; main_Streamline_1_out_1 = NULL; main_Ribbon_1_in_2 = NULL; main_Ribbon_1_out_1 = NULL; main_Map_1_in_3 = NULL; main_Map_1_in_4 = NULL; main_Map_1_out_1 = NULL; main_AutoColor_1_in_2 = 1.000000; main_AutoColor_1_in_3 = 1.900000; main_AutoColor_1_in_4 = 0.666000; main_AutoColor_1_in_5 = NULL; main_AutoColor_1_in_6 = NULL; main_AutoColor_1_in_7 = NULL; main_AutoColor_1_in_8 = NULL; main_AutoColor_1_in_9 = NULL; main_AutoColor_1_in_10 = NULL; main_AutoColor_1_out_1 = NULL; main_Slab_4_in_2 = "z"; main_Slab_4_in_3 = 10; main_Slab_4_in_4 = 0; main_Slab_4_out_1 = NULL; main_Isosurface_7_in_3 = NULL; main_Isosurface_7_in_4 = NULL; main_Isosurface_7_in_5 = NULL; main_Isosurface_7_in_6 = NULL; main_Isosurface_7_out_1 = NULL; main_Tube_2_in_2 = 0.025000; main_Tube_2_in_3 = 15; main_Tube_2_in_4 = NULL; main_Tube_2_out_1 = NULL; main_Color_3_in_2 = "black"; main_Color_3_in_3 = NULL; main_Color_3_in_4 = NULL; main_Color_3_in_5 = NULL; main_Color_3_out_1 = NULL; main_Remove_1_in_2 = "normals"; main_Remove_1_out_1 = NULL; main_Collect_1_out_1 = NULL; macro Image( id, object, where, useVector, to, from, width, resolution, aspect, up, viewAngle, perspective, options, buttonState = 1, buttonUpApprox = "none", buttonDownApprox = "none", buttonUpDensity = 1, buttonDownDensity = 1, renderMode = 0, defaultCamera, reset, backgroundColor, throttle, RECenable = 0, RECfile, RECformat, RECresolution, RECaspect, AAenable = 0, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, interactionMode, title) -> ( object, camera) { ImageMessage( id, backgroundColor, throttle, RECenable, RECfile, RECformat, RECresolution, RECaspect, AAenable, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont, interactionMode, title, renderMode, buttonUpApprox, buttonDownApprox, buttonUpDensity, buttonDownDensity) [instance: 1, cache: 1]; autoCamera = AutoCamera( object, "front", object, resolution, aspect, [0,1,0], perspective, viewAngle, backgroundColor) [instance: 1, cache: 1]; realCamera = Camera( to, from, width, resolution, aspect, up, perspective, viewAngle, backgroundColor) [instance: 1, cache: 1]; coloredDefaultCamera = UpdateCamera(defaultCamera, background=backgroundColor) [instance: 1, cache: 1]; nullDefaultCamera = Inquire(defaultCamera, "is null + 1") [instance: 1, cache: 1]; resetCamera = Switch( nullDefaultCamera, coloredDefaultCamera, autoCamera) [instance: 1, cache: 1]; resetNull = Inquire( reset, "is null + 1") [instance: 2, cache: 1]; reset = Switch( resetNull, reset, 0) [instance: 2, cache: 1]; whichCamera = Compute( "($0 != 0 || $1 == 0) ? 1 : 2", reset, useVector) [instance: 1, cache: 1]; camera = Switch( whichCamera, resetCamera, realCamera) [instance: 3, cache: 1]; AAobject = AutoAxes( object, camera, AAlabels, AAticks, AAcorners, AAframe, AAadjust, AAcursor, AAgrid, AAcolors, AAannotation, AAlabelscale, AAfont) [instance: 1, cache: 1]; switchAAenable = Compute("$0+1", AAenable) [instance: 2, cache: 1]; object = Switch( switchAAenable, object, AAobject) [instance:4, cache: 1]; SWapproximation_options = Switch( buttonState, buttonUpApprox, buttonDownApprox) [instance: 5, cache: 1]; SWdensity_options = Switch( buttonState, buttonUpDensity, buttonDownDensity) [instance: 6, cache: 1]; HWapproximation_options = Format( "%s,%s", buttonDownApprox, buttonUpApprox) [instance: 1, cache: 1]; HWdensity_options = Format( "%d,%d", buttonDownDensity, buttonUpDensity) [instance: 2, cache: 1]; switchRenderMode = Compute( "$0+1", renderMode) [instance: 3, cache: 1]; approximation_options = Switch( switchRenderMode, SWapproximation_options, HWapproximation_options) [instance: 7, cache: 1]; density_options = Switch( switchRenderMode, SWdensity_options, HWdensity_options) [instance: 8, cache: 1]; renderModeString = Switch( switchRenderMode, "software", "hardware")[instance: 9, cache: 1]; object_tag = Inquire( object, "object tag")[instance: 3, cache: 1]; annoted_object = Options( object, "send boxes", 0, "cache", 1, "object tag", object_tag, "ddcamera", whichCamera, "rendering approximation", approximation_options, "render every", density_options, "button state", buttonState, "rendering mode", renderModeString) [instance: 1, cache: 1]; RECresNull = Inquire( RECresolution, "is null + 1") [instance: 4, cache: 1]; ImageResolution = Inquire( camera, "camera resolution") [instance: 5, cache: 1]; RECresolution = Switch( RECresNull, RECresolution, ImageResolution) [instance: 10, cache: 1]; RECaspectNull = Inquire( RECaspect, "is null + 1") [instance: 6, cache: 1]; ImageAspect = Inquire( camera, "camera aspect") [instance: 7, cache: 1]; RECaspect = Switch( RECaspectNull, RECaspect, ImageAspect) [instance: 11, cache: 1]; switchRECenable = Compute( "$0 == 0 ? 1 : (($1 == $2) && ($3 == $4)) ? 2 : 3", RECenable, RECresolution, ImageResolution, RECaspect, ImageAspect) [instance: 4, cache: 1]; NoRECobject, RECNoRerenderObject, RECRerenderObject = Route(switchRECenable, annoted_object); Display( NoRECobject, camera, where, throttle) [instance: 1, cache: 1]; image = Render( RECNoRerenderObject, camera) [instance: 1, cache: 1]; Display( image, NULL, where, throttle) [instance: 2, cache: 1]; WriteImage( image, RECfile, RECformat) [instance: 1, cache: 1]; RECupdateCamera = UpdateCamera( camera, resolution=RECresolution, aspect=RECaspect) [instance: 2, cache: 1]; Display( RECRerenderObject, camera, where, throttle) [instance: 3, cache: 1]; image = Render( RECRerenderObject, RECupdateCamera) [instance: 2, cache: 1]; WriteImage( image, RECfile, RECformat) [instance: 2, cache: 1]; } main_Image_2_in_1 = "Image_2"; main_Image_2_in_3 = "X8,,"; main_Image_2_in_4 = 1; main_Image_2_in_5 = [0.908527 -0.31845 -1.04852]; main_Image_2_in_6 = [3.16998 -1.40819 4.00951]; main_Image_2_in_7 = NULL; main_Image_2_in_8 = 797; main_Image_2_in_9 = 0.629; main_Image_2_in_10 = [0.910514 -0.0258768 -0.412667]; main_Image_2_in_11 = 65.5059; main_Image_2_in_12 = 1; main_Image_2_in_13 = NULL; main_Image_2_in_14 = 1; main_Image_2_in_15 = "none"; main_Image_2_in_16 = "none"; main_Image_2_in_17 = NULL; main_Image_2_in_18 = NULL; main_Image_2_in_19 = 0; main_Image_2_in_20 = NULL; main_Image_2_in_21 = NULL; main_Image_2_in_22 = NULL; main_Image_2_in_23 = NULL; main_Image_2_in_25 = "/u/rsefeck/images/water3"; main_Image_2_in_26 = "rgb"; main_Image_2_in_27 = NULL; main_Image_2_in_28 = NULL; main_Image_2_in_29 = NULL; main_Image_2_in_30 = NULL; main_Image_2_in_31 = NULL; main_Image_2_in_32 = NULL; main_Image_2_in_33 = NULL; main_Image_2_in_34 = NULL; main_Image_2_in_35 = NULL; main_Image_2_in_36 = NULL; main_Image_2_in_37 = NULL; main_Image_2_in_38 = NULL; main_Image_2_in_39 = NULL; main_Image_2_in_40 = NULL; main_Image_2_in_41 = NULL; main_Image_2_in_42 = NULL; Executive("product version 3 1 2"); $sync sequence main(); play;