// // time: Wed Apr 24 07:54:30 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE ReduceTriangles // CATEGORY Import and Export // DESCRIPTION Reduces the resolution of a data set // INPUT input; field; (none); field to reduce // INPUT factor[visible:0]; value list or field; 2; reduction factor // OUTPUT reduced; field; // End MDF // // comment: Does a crude simplification of a triangular mesh to provide the "equivalent" of Reduce for unstructured meshes. // 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 = 224, height = 564 // layout: snap = 0, width = 50, height = 50, align = NN // macro ReduceTriangles( input ,factor = 2 ) -> ( reduced ) { // // node Input[17]: x = 0, y = 0, inputs = 0, label = Input // parameter: position = 1, name = 'input', value = ' ', descriptive = 0, description = 'field to reduce', required = 1, visible = 1 // ReduceTriangles_Input_17_out_1 = input; // // node Input[18]: x = 31, y = 132, inputs = 0, label = Input // parameter: position = 2, name = 'factor', value = '2', descriptive = 0, description = 'reduction factor', required = 0, visible = 0 // ReduceTriangles_Input_18_out_1 = factor; // // node Inquire[20]: x = 91, y = 105, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "position counts" // input[3]: visible = 0 // ReduceTriangles_Inquire_20_out_1 = Inquire( ReduceTriangles_Input_17_out_1, "position counts", NULL ) [instance: 20, cache: 1]; // // node Inquire[7]: x = 168, y = 114, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is 2dconnections" // input[3]: visible = 0 // ReduceTriangles_Inquire_7_out_1 = Inquire( ReduceTriangles_Input_17_out_1, "is 2dconnections", NULL ) [instance: 7, cache: 1]; // // node Compute[27]: x = 65, y = 225, inputs = 4, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$2 ? max(6, $0/($1*$1)) : max(6, $0/($1*$1*$1))" // expression: value = d2 ? max(6, n/(r*r)) : max(6, n/(r*r*r)) // name[2]: value = n // name[3]: value = r // name[4]: value = d2 // ReduceTriangles_Compute_27_out_1 = Compute( "$2 ? max(6, $0/($1*$1)) : max(6, $0/($1*$1*$1))", ReduceTriangles_Input_18_out_1, ReduceTriangles_Inquire_20_out_1, ReduceTriangles_Inquire_7_out_1 ) [instance: 27, cache: 1]; // // node Sample[1]: x = 9, y = 317, inputs = 2, label = Sample // ReduceTriangles_Sample_1_out_1 = Sample( ReduceTriangles_Input_17_out_1, ReduceTriangles_Compute_27_out_1 ) [instance: 1, cache: 1]; // // node Connect[1]: x = 22, y = 396, inputs = 3, label = Connect // input[2]: visible = 0 // input[3]: visible = 0 // ReduceTriangles_Connect_1_out_1 = Connect( ReduceTriangles_Sample_1_out_1, NULL, NULL ) [instance: 1, cache: 1]; // // node Output[14]: x = 20, y = 501, inputs = 1, label = Output // parameter: position = 1, name = 'reduced', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1 // reduced = ReduceTriangles_Connect_1_out_1; // network: end of macro body } ReduceTriangles_Input_17_out_1 = NULL; ReduceTriangles_Input_18_out_1 = NULL; ReduceTriangles_Inquire_20_out_1 = NULL; ReduceTriangles_Inquire_7_out_1 = NULL; ReduceTriangles_Compute_27_out_1 = NULL; ReduceTriangles_Sample_1_out_1 = NULL; ReduceTriangles_Connect_1_out_1 = NULL;