-- test of hfSpaceMapCubic -- bounding box x:-4,4; y:-4,4; z:-1,1 -- polygonization grid 80^3 my_model(x[3],a[1]){ array xt [3]; array center[3]; ------------------------ array extmap_pts_0[294]; array extmap_delta_0[294]; extmap_pts_0 = [ 1.34772,1.29532,0.383412, 1.35458,1.28847,0.383411, 1.35455,1.28159,0.384121, 1.36823,1.25414,0.385271, 1.38185,1.21294,0.387763, 1.39552,1.18549,0.388912, 1.3955,1.17862,0.389583, 1.42292,1.14435,0.389868, 1.4298,1.14437,0.389101, 1.45728,1.12384,0.388042, 1.48485,1.12395,0.384586, 1.49174,1.12398,0.383722, 1.57468,1.17243,0.368643, 1.62324,1.23454,0.356535, 1.63017,1.24145,0.354974, 1.63749,1.33098,0.344624, 1.5965,1.42035,0.339942, 1.52091,1.48891,0.341332, 1.39709,1.55727,0.347431, 1.31447,1.57757,0.354074, 1.2731,1.57048,0.35938, 1.19703,1.48748,0.377152, 1.1347,1.37022,0.396661, 1.10682,1.25324,0.411815, 1.10678,1.2395,0.413154, 1.10637,1.09528,0.426946, 1.12672,0.965047,0.433477, 1.17457,0.834935,0.436605, 1.243,0.691189,0.438081, 1.33207,0.533804,0.437096, 1.41437,0.424341,0.434, 1.51733,0.273808,0.428604, 1.52421,0.266968,0.427951, 1.61365,0.116399,0.418998, 1.69638,-0.0547919,0.408142, 1.75859,-0.26034,0.397032, 1.78657,-0.500282,0.385484, 1.78015,-0.706052,0.376329, 1.68431,-0.966647,0.372122, 1.54726,-1.21358,0.368069, 1.38259,-1.39871,0.368051, 1.14223,-1.54927,0.374756, 1.11476,-1.56294,0.375718, 0.942978,-1.58989,0.386671, 0.922368,-1.58983,0.388111, 0.7231,-1.53417,0.408235, 0.606237,-1.41009,0.429247, 0.599375,-1.40321,0.430004, 0.517044,-1.30705,0.439414, 0.510186,-1.30019,0.440113, 0.503321,-1.28646,0.441321, -1.28573,1.2882,0.391091, -1.2649,1.23314,0.398504, -1.29205,1.12329,0.406457, -1.37436,1.03429,0.404853, -1.47753,1.00028,0.395939, -1.57418,1.04183,0.380396, -1.63687,1.19332,0.358723, -1.63092,1.39985,0.337885, -1.50739,1.54402,0.336133, -1.50052,1.55088,0.336134, -1.32161,1.63278,0.34632, -1.1014,1.66632,0.363391, -0.977583,1.65895,0.374732, -0.860348,1.52077,0.401051, -0.825588,1.35557,0.422704, -0.811502,1.13595,0.440193, -0.811256,0.937216,0.451393, -0.845356,0.779753,0.457105, -0.852194,0.766067,0.457372, -0.92743,0.608711,0.459717, -1.02328,0.458255,0.458795, -1.02327,0.451413,0.458985, -1.10545,0.294114,0.457544, -1.10545,0.287273,0.457671, -1.19455,0.0957671,0.45403, -1.19455,0.0889264,0.454094, -1.29749,-0.164205,0.446615, -1.40747,-0.376417,0.435399, -1.44885,-0.540779,0.428091, -1.45618,-0.760079,0.415916, -1.44998,-1.00019,0.399292, -1.41606,-1.1512,0.389965, -1.35472,-1.32288,0.379573, -1.34783,-1.32285,0.380341, -1.26574,-1.46019,0.373883, -1.25889,-1.46705,0.373691, -1.11489,-1.5974,0.371398, -0.922617,-1.66566,0.3781, -0.723486,-1.68575,0.388472, -0.716621,-1.68573,0.388856, -0.497019,-1.67834,0.400652, -0.318624,-1.58852,0.418477, -0.31177,-1.58851,0.418668, -0.21577,-1.49901,0.430823, -0.106141,-1.36855,0.441889, -0.0513467,-1.25194,0.450404, -0.0444983,-1.22451,0.452181]; extmap_delta_0 = [ 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2, 0,0,-0.2,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