// // time: Wed Apr 24 07:51:07 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE ExtractBoundingBox // CATEGORY Structuring // DESCRIPTION Extract the coordinates of the bounding box // INPUT data; field; (none); field from which the bounding box is to be extracted // OUTPUT x_min; scalar; lower bound in x // OUTPUT x_max; scalar; upper bound in x // OUTPUT y_min; scalar; lower bound in y // OUTPUT y_max; scalar; upper bound in y // OUTPUT z_min; scalar; lower bound in z // OUTPUT z_max; scalar; upper bound in z // End MDF // // comment: Extracts and separates the coordinates of the bounding box of an object. // comment: // 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. // workspace: width = 570, height = 752 // layout: snap = 0, width = 50, height = 50, align = CC // macro ExtractBoundingBox( data ) -> ( x_min ,x_max ,y_min ,y_max ,z_min ,z_max ) { // // node Input[1]: x = 249, y = 6, inputs = 0, label = Input // parameter: position = 1, name = 'data', value = ' ', descriptive = 0, description = 'field from which the bounding box is to be extracted', required = 1, visible = 1 // ExtractBoundingBox_Input_1_out_1 = data; // // node ShowBox[1]: x = 237, y = 92, inputs = 1, label = ShowBox // output[2]: visible = 0 // ExtractBoundingBox_ShowBox_1_out_1, ExtractBoundingBox_ShowBox_1_out_2 = ShowBox( ExtractBoundingBox_Input_1_out_1 ) [instance: 1, cache: 1]; // // node Mark[1]: x = 238, y = 223, inputs = 2, label = Mark (positions of input field) // input[2]: defaulting = 0, visible = 1, type = 32, value = "positions" // ExtractBoundingBox_Mark_1_out_1 = Mark( ExtractBoundingBox_ShowBox_1_out_1, "positions" ) [instance: 1, cache: 1]; // // node Inquire[1]: x = 416, y = 226, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is 3dpositions" // input[3]: visible = 0 // ExtractBoundingBox_Inquire_1_out_1 = Inquire( ExtractBoundingBox_ShowBox_1_out_1, "is 3dpositions", NULL ) [instance: 1, cache: 1]; // // node Compute[19]: x = 350, y = 456, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$1 ? $0.z : 0" // expression: value = d3 ? point.z : 0 // name[2]: value = point // name[3]: value = d3 // ExtractBoundingBox_Compute_19_out_1 = Compute( "$1 ? $0.z : 0", ExtractBoundingBox_Mark_1_out_1, ExtractBoundingBox_Inquire_1_out_1 ) [instance: 19, cache: 1]; // // node Statistics[3]: x = 430, y = 552, inputs = 1, label = Statistics // output[1]: visible = 0 // output[2]: visible = 0 // output[3]: visible = 0 // ExtractBoundingBox_Statistics_3_out_1, ExtractBoundingBox_Statistics_3_out_2, ExtractBoundingBox_Statistics_3_out_3, ExtractBoundingBox_Statistics_3_out_4, ExtractBoundingBox_Statistics_3_out_5 = Statistics( ExtractBoundingBox_Compute_19_out_1 ) [instance: 3, cache: 1]; // // node Output[6]: x = 514, y = 689, inputs = 1, label = Output // parameter: position = 6, name = 'z_max', value = ' ', descriptive = 0, description = 'upper bound in z', required = 0, visible = 1 // z_max = ExtractBoundingBox_Statistics_3_out_5; // // node Output[5]: x = 435, y = 686, inputs = 1, label = Output // parameter: position = 5, name = 'z_min', value = ' ', descriptive = 0, description = 'lower bound in z', required = 0, visible = 1 // z_min = ExtractBoundingBox_Statistics_3_out_4; // // node Inquire[3]: x = 326, y = 229, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is 2dpositions" // input[3]: visible = 0 // ExtractBoundingBox_Inquire_3_out_1 = Inquire( ExtractBoundingBox_ShowBox_1_out_1, "is 2dpositions", NULL ) [instance: 3, cache: 1]; // // node Compute[1]: x = 266, y = 459, inputs = 4, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$1 || $2 ? $0.y : 0" // expression: value = d2 || d3 ? point.y : 0 // name[2]: value = point // name[3]: value = d2 // name[4]: value = d3 // ExtractBoundingBox_Compute_1_out_1 = Compute( "$1 || $2 ? $0.y : 0", ExtractBoundingBox_Mark_1_out_1, ExtractBoundingBox_Inquire_3_out_1, ExtractBoundingBox_Inquire_1_out_1 ) [instance: 1, cache: 1]; // // node Statistics[2]: x = 268, y = 549, inputs = 1, label = Statistics // output[1]: visible = 0 // output[2]: visible = 0 // output[3]: visible = 0 // ExtractBoundingBox_Statistics_2_out_1, ExtractBoundingBox_Statistics_2_out_2, ExtractBoundingBox_Statistics_2_out_3, ExtractBoundingBox_Statistics_2_out_4, ExtractBoundingBox_Statistics_2_out_5 = Statistics( ExtractBoundingBox_Compute_1_out_1 ) [instance: 2, cache: 1]; // // node Output[4]: x = 347, y = 689, inputs = 1, label = Output // parameter: position = 4, name = 'y_max', value = ' ', descriptive = 0, description = 'upper bound in y', required = 0, visible = 1 // y_max = ExtractBoundingBox_Statistics_2_out_5; // // node Output[3]: x = 265, y = 678, inputs = 1, label = Output // parameter: position = 3, name = 'y_min', value = ' ', descriptive = 0, description = 'lower bound in y', required = 0, visible = 1 // y_min = ExtractBoundingBox_Statistics_2_out_4; // // node Inquire[2]: x = 121, y = 240, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is 1dpositions" // input[3]: visible = 0 // ExtractBoundingBox_Inquire_2_out_1 = Inquire( ExtractBoundingBox_ShowBox_1_out_1, "is 1dpositions", NULL ) [instance: 2, cache: 1]; // // node Compute[18]: x = 137, y = 457, inputs = 5, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$1 || $2 || $3 ? $0.x : 0" // expression: value = d1 || d2 || d3 ? point.x : 0 // name[2]: value = point // name[3]: value = d1 // name[4]: value = d2 // name[5]: value = d3 // ExtractBoundingBox_Compute_18_out_1 = Compute( "$1 || $2 || $3 ? $0.x : 0", ExtractBoundingBox_Mark_1_out_1, ExtractBoundingBox_Inquire_2_out_1, ExtractBoundingBox_Inquire_3_out_1, ExtractBoundingBox_Inquire_1_out_1 ) [instance: 18, cache: 1]; // // node Statistics[1]: x = 128, y = 544, inputs = 1, label = Statistics // output[1]: visible = 0 // output[2]: visible = 0 // output[3]: visible = 0 // ExtractBoundingBox_Statistics_1_out_1, ExtractBoundingBox_Statistics_1_out_2, ExtractBoundingBox_Statistics_1_out_3, ExtractBoundingBox_Statistics_1_out_4, ExtractBoundingBox_Statistics_1_out_5 = Statistics( ExtractBoundingBox_Compute_18_out_1 ) [instance: 1, cache: 1]; // // node Output[1]: x = 72, y = 669, inputs = 1, label = Output // parameter: position = 1, name = 'x_min', value = ' ', descriptive = 0, description = 'lower bound in x', required = 0, visible = 1 // x_min = ExtractBoundingBox_Statistics_1_out_4; // // node Output[2]: x = 166, y = 671, inputs = 1, label = Output // parameter: position = 2, name = 'x_max', value = ' ', descriptive = 0, description = 'upper bound in x', required = 0, visible = 1 // x_max = ExtractBoundingBox_Statistics_1_out_5; // network: end of macro body } ExtractBoundingBox_Input_1_out_1 = NULL; ExtractBoundingBox_ShowBox_1_out_1 = NULL; ExtractBoundingBox_Mark_1_out_1 = NULL; ExtractBoundingBox_Inquire_1_out_1 = NULL; ExtractBoundingBox_Compute_19_out_1 = NULL; ExtractBoundingBox_Statistics_3_out_4 = NULL; ExtractBoundingBox_Statistics_3_out_5 = NULL; ExtractBoundingBox_Inquire_3_out_1 = NULL; ExtractBoundingBox_Compute_1_out_1 = NULL; ExtractBoundingBox_Statistics_2_out_4 = NULL; ExtractBoundingBox_Statistics_2_out_5 = NULL; ExtractBoundingBox_Inquire_2_out_1 = NULL; ExtractBoundingBox_Compute_18_out_1 = NULL; ExtractBoundingBox_Statistics_1_out_4 = NULL; ExtractBoundingBox_Statistics_1_out_5 = NULL;