// // time: Wed Apr 24 07:55:11 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE ShowBackSides // CATEGORY Macros // DESCRIPTION Shows a selected three faces of the bounding box of the data // INPUT data; value list or string list or object; (none); 3D Regular Data Set // INPUT corner; value list or field; 7; corner to remove // OUTPUT output_1; object; // End MDF // // comment: This macro, given a 3D data set with regular connections, returns just three sides of the boundary of the data set. This is sometimes useful as a "backdrop" for other realizations in a data set, such // comment: (C) COPYRIGHT International Business Machines Corp. 1996. // comment: All Rights Reserved. // comment: Licensed Materials - Property of IBM // comment: // comment: Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of IBM not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. // comment: // comment: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IBM DOES NOT WARRANT AGAINST THE INFRINGMENT OF PATENTS, COPYRIGHT OR ANY OTHER INTELLECTUAL PROPERTY RIGHTS OF OTHERS. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, IS WITH YOU. as isosurfaces. The user can choose which of the 8 corners of the bounding box should be removed. // workspace: width = 1303, height = 943 // layout: snap = 0, width = 50, height = 50, align = NN // macro ShowBackSides( data ,corner = 7 ) -> ( output_1 ) { // // node Input[5]: x = 83, y = 0, inputs = 0, label = Input // parameter: position = 1, name = 'data', value = ' ', descriptive = 0, description = '3D Regular Data Set', required = 1, visible = 1 // ShowBackSides_Input_5_out_1 = data; // // node Inquire[2]: x = 206, y = 51, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is 3D grid connections + 1" // ShowBackSides_Inquire_2_out_1 = Inquire( ShowBackSides_Input_5_out_1, "is 3D grid connections + 1", NULL ) [instance: 2, cache: 1]; // // node Route[2]: x = 176, y = 144, inputs = 2, outputs = 2, label = Route // input[2]: defaulting = 0, visible = 1, type = 16777248, value = {"Data must have 3D regular connections"} // ShowBackSides_Route_2_out_1, ShowBackSides_Route_2_out_2 = Route( ShowBackSides_Inquire_2_out_1, {"Data must have 3D regular connections"} ) [instance: 2, cache: 1]; // // node Message[1]: x = 131, y = 241, inputs = 3, label = Message // input[2]: defaulting = 0, visible = 1, type = 32, value = "error" // input[3]: defaulting = 0, visible = 1, type = 3, value = 1 // Message( ShowBackSides_Route_2_out_1, "error", 1 ) [instance: 1, cache: 1]; // // node Input[6]: x = 127, y = 782, inputs = 0, label = Input // parameter: position = 2, name = 'corner', value = '7', descriptive = 0, description = 'corner to remove', required = 0, visible = 1 // ShowBackSides_Input_6_out_1 = corner; // // node Compute[8]: x = 198, y = 833, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+1" // expression: value = a+1 // name[2]: value = a // ShowBackSides_Compute_8_out_1 = Compute( "$0+1", ShowBackSides_Input_6_out_1 ) [instance: 8, cache: 1]; // // node Route[3]: x = 337, y = 99, inputs = 2, outputs = 2, label = Route // ShowBackSides_Route_3_out_1, ShowBackSides_Route_3_out_2 = Route( ShowBackSides_Inquire_2_out_1, ShowBackSides_Input_5_out_1 ) [instance: 3, cache: 1]; // // node ShowBoundary[2]: x = 549, y = 38, inputs = 2, label = ShowBoundary // ShowBackSides_ShowBoundary_2_out_1 = ShowBoundary( ShowBackSides_Route_3_out_2, NULL ) [instance: 2, cache: 1]; // // node Select[11]: x = 723, y = 135, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 3 // ShowBackSides_Select_11_out_1 = Select( ShowBackSides_ShowBoundary_2_out_1, 3, NULL ) [instance: 11, cache: 1]; // // node Transmitter[5]: x = 726, y = 253, inputs = 1, label = zero_last // zero_last = ShowBackSides_Select_11_out_1; // // node Receiver[5]: x = 626, y = 543, inputs = 1, label = zero_last // ShowBackSides_Receiver_5_out_1 = zero_last; // // node Select[12]: x = 774, y = 136, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 4 // ShowBackSides_Select_12_out_1 = Select( ShowBackSides_ShowBoundary_2_out_1, 4, NULL ) [instance: 12, cache: 1]; // // node Transmitter[7]: x = 812, y = 256, inputs = 1, label = one_last // one_last = ShowBackSides_Select_12_out_1; // // node Receiver[9]: x = 762, y = 535, inputs = 1, label = one_last // ShowBackSides_Receiver_9_out_1 = one_last; // // node Select[13]: x = 906, y = 133, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 5 // ShowBackSides_Select_13_out_1 = Select( ShowBackSides_ShowBoundary_2_out_1, 5, NULL ) [instance: 13, cache: 1]; // // node Transmitter[9]: x = 899, y = 257, inputs = 1, label = two_last // two_last = ShowBackSides_Select_13_out_1; // // node Receiver[8]: x = 928, y = 542, inputs = 1, label = two_last // ShowBackSides_Receiver_8_out_1 = two_last; // // node CollectMultiGrid[2]: x = 80, y = 662, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_2_out_1 = CollectMultiGrid( ShowBackSides_Receiver_5_out_1, NULL, ShowBackSides_Receiver_9_out_1, NULL, ShowBackSides_Receiver_8_out_1, NULL ) [instance: 2, cache: 1]; // // node Select[10]: x = 652, y = 140, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 2 // ShowBackSides_Select_10_out_1 = Select( ShowBackSides_ShowBoundary_2_out_1, 2, NULL ) [instance: 10, cache: 1]; // // node Transmitter[8]: x = 651, y = 248, inputs = 1, label = two_first // two_first = ShowBackSides_Select_10_out_1; // // node Receiver[7]: x = 852, y = 538, inputs = 1, label = two_first // ShowBackSides_Receiver_7_out_1 = two_first; // // node CollectMultiGrid[3]: x = 230, y = 663, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_3_out_1 = CollectMultiGrid( ShowBackSides_Receiver_5_out_1, NULL, ShowBackSides_Receiver_9_out_1, NULL, ShowBackSides_Receiver_7_out_1, NULL ) [instance: 3, cache: 1]; // // node Select[9]: x = 571, y = 131, inputs = 3, label = Select // input[2]: defaulting = 0, visible = 1, type = 1, value = 1 // ShowBackSides_Select_9_out_1 = Select( ShowBackSides_ShowBoundary_2_out_1, 1, NULL ) [instance: 9, cache: 1]; // // node Transmitter[6]: x = 554, y = 250, inputs = 1, label = one_first // one_first = ShowBackSides_Select_9_out_1; // // node Receiver[6]: x = 699, y = 539, inputs = 1, label = one_first // ShowBackSides_Receiver_6_out_1 = one_first; // // node CollectMultiGrid[4]: x = 378, y = 663, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_4_out_1 = CollectMultiGrid( ShowBackSides_Receiver_5_out_1, NULL, ShowBackSides_Receiver_6_out_1, NULL, ShowBackSides_Receiver_8_out_1, NULL ) [instance: 4, cache: 1]; // // node CollectMultiGrid[5]: x = 529, y = 664, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_5_out_1 = CollectMultiGrid( ShowBackSides_Receiver_5_out_1, NULL, ShowBackSides_Receiver_6_out_1, NULL, ShowBackSides_Receiver_7_out_1, NULL ) [instance: 5, cache: 1]; // // node Select[8]: x = 493, y = 127, inputs = 3, label = Select // ShowBackSides_Select_8_out_1 = Select( ShowBackSides_ShowBoundary_2_out_1, NULL, NULL ) [instance: 8, cache: 1]; // // node Transmitter[4]: x = 465, y = 244, inputs = 1, label = zero_first // zero_first = ShowBackSides_Select_8_out_1; // // node Receiver[4]: x = 543, y = 544, inputs = 1, label = zero_first // ShowBackSides_Receiver_4_out_1 = zero_first; // // node CollectMultiGrid[6]: x = 679, y = 664, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_6_out_1 = CollectMultiGrid( ShowBackSides_Receiver_4_out_1, NULL, ShowBackSides_Receiver_9_out_1, NULL, ShowBackSides_Receiver_8_out_1, NULL ) [instance: 6, cache: 1]; // // node CollectMultiGrid[7]: x = 830, y = 659, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_7_out_1 = CollectMultiGrid( ShowBackSides_Receiver_4_out_1, NULL, ShowBackSides_Receiver_9_out_1, NULL, ShowBackSides_Receiver_7_out_1, NULL ) [instance: 7, cache: 1]; // // node CollectMultiGrid[8]: x = 994, y = 657, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_8_out_1 = CollectMultiGrid( ShowBackSides_Receiver_4_out_1, NULL, ShowBackSides_Receiver_6_out_1, NULL, ShowBackSides_Receiver_8_out_1, NULL ) [instance: 8, cache: 1]; // // node CollectMultiGrid[9]: x = 1158, y = 657, inputs = 6, label = CollectMultiGrid // ShowBackSides_CollectMultiGrid_9_out_1 = CollectMultiGrid( ShowBackSides_Receiver_4_out_1, NULL, ShowBackSides_Receiver_6_out_1, NULL, ShowBackSides_Receiver_7_out_1, NULL ) [instance: 9, cache: 1]; // // node Switch[5]: x = 404, y = 807, inputs = 9, label = Switch // ShowBackSides_Switch_5_out_1 = Switch( ShowBackSides_Compute_8_out_1, ShowBackSides_CollectMultiGrid_2_out_1, ShowBackSides_CollectMultiGrid_3_out_1, ShowBackSides_CollectMultiGrid_4_out_1, ShowBackSides_CollectMultiGrid_5_out_1, ShowBackSides_CollectMultiGrid_6_out_1, ShowBackSides_CollectMultiGrid_7_out_1, ShowBackSides_CollectMultiGrid_8_out_1, ShowBackSides_CollectMultiGrid_9_out_1 ) [instance: 5, cache: 1]; // // node Output[2]: x = 471, y = 880, inputs = 1, label = Output // parameter: position = 1, name = 'output_1', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1 // output_1 = ShowBackSides_Switch_5_out_1; // network: end of macro body } ShowBackSides_Input_5_out_1 = NULL; ShowBackSides_Inquire_2_out_1 = NULL; ShowBackSides_Route_2_out_1 = NULL; ShowBackSides_Input_6_out_1 = NULL; ShowBackSides_Compute_8_out_1 = NULL; ShowBackSides_Route_3_out_2 = NULL; ShowBackSides_ShowBoundary_2_out_1 = NULL; ShowBackSides_Select_11_out_1 = NULL; ShowBackSides_Transmitter_5_out_1 = NULL; ShowBackSides_Receiver_5_out_1 = NULL; ShowBackSides_Select_12_out_1 = NULL; ShowBackSides_Transmitter_7_out_1 = NULL; ShowBackSides_Receiver_9_out_1 = NULL; ShowBackSides_Select_13_out_1 = NULL; ShowBackSides_Transmitter_9_out_1 = NULL; ShowBackSides_Receiver_8_out_1 = NULL; ShowBackSides_CollectMultiGrid_2_out_1 = NULL; ShowBackSides_Select_10_out_1 = NULL; ShowBackSides_Transmitter_8_out_1 = NULL; ShowBackSides_Receiver_7_out_1 = NULL; ShowBackSides_CollectMultiGrid_3_out_1 = NULL; ShowBackSides_Select_9_out_1 = NULL; ShowBackSides_Transmitter_6_out_1 = NULL; ShowBackSides_Receiver_6_out_1 = NULL; ShowBackSides_CollectMultiGrid_4_out_1 = NULL; ShowBackSides_CollectMultiGrid_5_out_1 = NULL; ShowBackSides_Select_8_out_1 = NULL; ShowBackSides_Transmitter_4_out_1 = NULL; ShowBackSides_Receiver_4_out_1 = NULL; ShowBackSides_CollectMultiGrid_6_out_1 = NULL; ShowBackSides_CollectMultiGrid_7_out_1 = NULL; ShowBackSides_CollectMultiGrid_8_out_1 = NULL; ShowBackSides_CollectMultiGrid_9_out_1 = NULL; ShowBackSides_Switch_5_out_1 = NULL;