Repair(0) vs Repair(1) & creating color values

raman_kumar
Wed, 09 Jul 2025 16:03:37 +0000
Visualization

I want to get smooth(interpolated) color mapping for elements but it is not supported in GLMakie.jl. So i am converting cell body values(color) to vertices values. I am taking vertex value to be equal to average of surrounding cells body values.

But vertex color interpolation also don’t work for viz!() directly so i am converting 3D mesh to 2D as Júlio Hoffimann suggested by
m = mapreduce(boundary, merge, g) |> Repair(0)
but Repair(0) gives error for a single block coordinates.

using GLMakie, Meshes, CoordRefSystems

r = Float32[9.788173, 9.984624, 10.185018, 10.389433, 10.597952, 10.810656, 11.027628, 11.248955, 11.474725, 11.705025, 11.939948, 12.179585, 12.424032, 12.673386, 12.927744, 13.187207, 13.451878, 13.72186, 13.997261, 14.27819, 14.564756, 14.857075, 15.15526]
θ = Float32[0.0, 0.024543693, 0.049087387, 0.07363108, 0.09817477]
ϕ = Float32[3.1415927, 3.2397673, 3.3379421, 3.436117, 3.5342917, 3.6324666, 3.7306414, 3.828816, 3.9269907, 4.0251656, 4.12334, 4.221515, 4.3196898, 4.417865, 4.5160394, 4.6142144, 4.712389]

nrho = Float32[-2.1875288, -1.9132617, -1.9650526, -2.0041673, -2.0265086, -2.0333934, -2.0267808, -2.010718, -1.9896418, -1.9671822, -1.9468939, -1.9282669, -1.907779, -1.8958519, -1.8935388, -1.895887, -1.8991132, -1.8989675, -1.9080944, -1.9323422, -1.9622252, -1.9773525, -2.2786756, -1.9471912, -1.6671754, -1.7074353, -1.7387879, -1.7579032, -1.7664795, -1.7670528, -1.7608259, -1.7503868, -1.7381061, -1.7261676, -1.7139297, -1.7002429, -1.6939806, -1.6960249, -1.7022301, -1.708542, -1.7122238, -1.7227664, -1.7424823, -1.7634522, -1.7752926, -2.0784805, -2.0846937, -1.7923845, -1.8091806, -1.8243244, -1.8367826, -1.8485198, -1.8615154, -1.8737701, -1.8848072, -1.8938241, -1.9009949, -1.9059134, -1.9096607, -1.916501, -1.9268621, -1.9400648, -1.95345, -1.9664589, -1.9804994, -1.9924041, -2.0000522, -2.0089047, -2.3161285, -2.2176454, -1.9190373, -1.9236156, -1.9287382, -1.9361309, -1.9477187, -1.9641632, -1.9838592, -2.0054295, -2.0263186, -2.0460036, -2.0643997, -2.0807343, -2.095623, -2.1091254, -2.1235025, -2.1396024, -2.1566393, -2.1728299, -2.187017, -2.2004833, -2.2149618, -2.5238628, -2.5800898, -2.2816222, -2.2855413, -2.2889636, -2.294423, -2.303956, -2.3187125, -2.3377733, -2.3601258, -2.383627, -2.4067516, -2.428326, -2.4476986, -2.465357, -2.4812114, -2.4966993, -2.5130577, -2.5303593, -2.547524, -2.5635014, -2.5791485, -2.5951202, -2.904226, -1.8964719, -1.6213782, -1.6710554, -1.70715, -1.726089, -1.7302903, -1.7214133, -1.7036994, -1.6819081, -1.6588019, -1.6385223, -1.6202812, -1.6003913, -1.589984, -1.5892465, -1.5922357, -1.5960189, -1.5969534, -1.6064858, -1.6303625, -1.6590763, -1.6741686, -1.9764612, -1.6539383, -1.3730565, -1.411836, -1.4409178, -1.4572881, -1.4642445, -1.4631994, -1.4554734, -1.4442072, -1.4312763, -1.4192276, -1.4073746, -1.3943087, -1.3893334, -1.3926722, -1.3993484, -1.4060738, -1.4105608, -1.4213418, -1.440804, -1.461254, -1.4732497, -1.7770495, -1.7860905, -1.4932202, -1.5097358, -1.5242498, -1.5359106, -1.5479461, -1.560677, -1.5722374, -1.582476, -1.5909946, -1.598017, -1.6029235, -1.6069951, -1.6143551, -1.6253672, -1.6388763, -1.6523621, -1.6655147, -1.6795435, -1.6914892, -1.6994362, -1.7085742, -2.015876, -1.9153787, -1.6165305, -1.6210518, -1.6265017, -1.6346557, -1.6474094, -1.6645762, -1.6846536, -1.7060157, -1.7266673, -1.7461543, -1.7638583, -1.7798941, -1.7945433, -1.8081809, -1.8229487, -1.8390744, -1.8560315, -1.8721535, -1.8863198, -1.8997195, -1.9142199, -2.2231777, -2.2773921, -1.9785264, -1.9820817, -1.9858675, -1.9922215, -2.0029743, -2.0188427, -2.03873, -2.0614095, -2.084832, -2.1075163, -2.1283355, -2.1473973, -2.164762, -2.1805208, -2.1962914, -2.2127454, -2.2300618, -2.2469459, -2.2626033, -2.2783248, -2.2943423, -2.6033347, -1.9177632, -1.6400969, -1.684449, -1.7143942, -1.7269696, -1.7259313, -1.712451, -1.6919467, -1.6687118, -1.6447034, -1.624849, -1.6071359, -1.5887892, -1.5815003, -1.5836473, -1.5878949, -1.5928819, -1.5958962, -1.6062347, -1.6290425, -1.6540306, -1.6683015, -1.9725902, -1.6697505, -1.3871641, -1.4224466, -1.4464525, -1.4580163, -1.4617556, -1.4571356, -1.4468232, -1.4339967, -1.4200965, -1.40819, -1.3970113, -1.3854374, -1.3830551, -1.3887132, -1.3962986, -1.4039035, -1.4099123, -1.421163, -1.4399526, -1.4586433, -1.4705755, -1.7756025, -1.7902435, -1.4970584, -1.5130061, -1.5258301, -1.5366538, -1.5489826, -1.5607457, -1.5709395, -1.5798053, -1.5875857, -1.5941867, -1.5992669, -1.6041193, -1.6125106, -1.6246785, -1.6387142, -1.6524786, -1.6658117, -1.6796709, -1.6917003, -1.700781, -1.7108042, -2.0181053, -1.9126838, -1.6134747, -1.617918, -1.6243141, -1.6343442, -1.6491379, -1.6676316, -1.6882706, -1.7091799, -1.729411, -1.7480483, -1.7646775, -1.7801987, -1.7944521, -1.8085703, -1.8239582, -1.8402252, -1.8568786, -1.8726933, -1.8867843, -1.9003088, -1.915016, -2.224015, -2.273675, -1.9740748, -1.977194, -1.9819404, -1.9902626, -2.0035138, -2.0215492, -2.042995, -2.065963, -2.0889773, -2.1106684, -2.1303768, -2.1487975, -2.1655898, -2.181501, -2.1976156, -2.2141273, -2.2312415, -2.2476556, -2.2629364, -2.278577, -2.2945487, -2.6034946, -1.9396368, -1.6583866, -1.6960195, -1.719764, -1.7266381, -1.7205676, -1.7030516, -1.6806278, -1.6560391, -1.6318206, -1.6126646, -1.595524, -1.5795163, -1.5751507, -1.5797094, -1.5852689, -1.5917462, -1.5968344, -1.6080691, -1.629185, -1.6488044, -1.6606594, -1.9658839, -1.6859125, -1.4014157, -1.4317299, -1.4504743, -1.4582583, -1.4584639, -1.450493, -1.4381864, -1.4241066, -1.4098196, -1.3983756, -1.3879497, -1.3784391, -1.3785201, -1.3860202, -1.3944995, -1.4031776, -1.4106742, -1.4224031, -1.4401407, -1.4561983, -1.4672936, -1.7729969, -1.7943727, -1.5014873, -1.5161142, -1.5271952, -1.5380379, -1.5499104, -1.5604477, -1.5692023, -1.577201, -1.5844188, -1.5906048, -1.5960578, -1.6018317, -1.6114435, -1.6244049, -1.638715, -1.6528096, -1.6663239, -1.6798799, -1.6921049, -1.702943, -1.7143446, -2.0217192, -1.9094268, -1.6102942, -1.6151775, -1.6228573, -1.6349909, -1.6515632, -1.6710473, -1.6916808, -1.7122297, -1.7318473, -1.7492058, -1.765111, -1.7801907, -1.7945218, -1.8091295, -1.8247856, -1.8411896, -1.8575729, -1.8730365, -1.8871866, -1.9012052, -1.9160588, -2.2248619, -2.2690067, -1.9690802, -1.9724573, -1.9785892, -1.9892349, -2.005069, -2.0249186, -2.0471766, -2.0701253, -2.0924876, -2.1129396, -2.1320322, -2.1499372, -2.1664898, -2.1827145, -2.1988833, -2.215262, -2.2319999, -2.247984, -2.2630243, -2.2785096, -2.2941625, -2.6029751, -1.9596817, -1.6749778, -1.7056081, -1.723295, -1.724302, -1.7135689, -1.6935306, -1.6697106, -1.6440024, -1.6200466, -1.6018802, -1.5859264, -1.5727253, -1.5708071, -1.5772294, -1.5844011, -1.5926825, -1.5996577, -1.612095, -1.6313796, -1.6457725, -1.6545697, -1.9594947, -1.7021633, -1.41471, -1.4390575, -1.4534054, -1.4573516, -1.4537944, -1.4433908, -1.4297531, -1.414738, -1.4004405, -1.389753, -1.38051, -1.3734679, -1.3756343, -1.3844649, -1.3940026, -1.4039793, -1.4128525, -1.4251862, -1.4416941, -1.4550929, -1.4651229, -1.7709985, -1.800242, -1.5061753, -1.5185051, -1.5289633, -1.5397365, -1.5504601, -1.5596443, -1.5674, -1.5748385, -1.5813323, -1.5873761, -1.593359, -1.6002833, -1.611054, -1.6244501, -1.6389498, -1.6533171, -1.6669716, -1.6802084, -1.6927427, -1.7051984, -1.7182738, -2.0262427, -1.9061189, -1.6074011, -1.6130733, -1.6223937, -1.6366293, -1.654646, -1.6745825, -1.6949072, -1.7151096, -1.7335242, -1.7498125, -1.7651322, -1.779973, -1.7946905, -1.8095324, -1.8253713, -1.8417573, -1.8577302, -1.8730135, -1.8878329, -1.9024367, -1.917027, -2.2254388, -2.2633107, -1.9638901, -1.9681717, -1.9760284, -1.9893461, -2.0074983, -2.0285513, -2.0510106, -2.073807, -2.0951288, -2.1145475, -2.133136, -2.1508198, -2.1675534, -2.1837182, -2.1998155, -2.2160194, -2.2322433, -2.2477918, -2.2630768, -2.2785947, -2.2933736, -2.6015632, -1.9779941, -1.689824, -1.7134684, -1.7249849, -1.7202508, -1.7058598, -1.684302, -1.6588701, -1.6323655, -1.6094589, -1.592695, -1.578459, -1.5681745, -1.5685519, -1.5762342, -1.5852449, -1.5953288, -1.6041063, -1.618162, -1.6356096, -1.6459361, -1.6525158, -1.957103, -1.7165403, -1.425979, -1.4449329, -1.4551666, -1.4552308, -1.4484789, -1.4363445, -1.4215851, -1.4058702, -1.3921934, -1.3825613, -1.3749088, -1.3703709, -1.3743498, -1.384111, -1.3948522, -1.4060649, -1.4162267, -1.4294076, -1.444613, -1.4558629, -1.4651188, -1.7710675, -1.8053983, -1.5098437, -1.5206218, -1.5309994, -1.5413784, -1.5507216, -1.5585259, -1.5658002, -1.5725814, -1.5785922, -1.5847303, -1.591467, -1.5996495, -1.611169, -1.625007, -1.6397145, -1.6540422, -1.6676211, -1.680544, -1.6932034, -1.7068042, -1.7211982, -2.029677, -1.9034278, -1.6049191, -1.6115913, -1.6230463, -1.6391696, -1.6580329, -1.6778735, -1.6979202, -1.7173057, -1.7344092, -1.7500784, -1.7650138, -1.7799903, -1.7949351, -1.8100196, -1.8260236, -1.8420203, -1.8572978, -1.8725826, -1.8879534, -1.9027855, -1.9173173, -2.2256353, -2.2577167, -1.9587915, -1.9643544, -1.9746536, -1.9906958, -2.0105271, -2.0321124, -2.0546627, -2.076827, -2.0969212, -2.1158454, -2.1340914, -2.151816, -2.1686857, -2.1846502, -2.2005303, -2.216408, -2.2320158, -2.2474127, -2.2629051, -2.2778442, -2.2920434, -2.6001525, -1.9950442, -1.703196, -1.7197025, -1.7249259, -1.7152997, -1.6983145, -1.6752981, -1.6480788, -1.6217263, -1.6002939, -1.5849526, -1.5729573, -1.5656298, -1.5681484, -1.5767809, -1.5876575, -1.5992813, -1.6098331, -1.6255808, -1.6411334, -1.6486062, -1.6544567, -1.9592094, -1.7290428, -1.4359376, -1.4497759, -1.4555496, -1.4519539, -1.442896, -1.4295893, -1.4135156, -1.3978738, -1.3851848, -1.3766868, -1.370989, -1.3687856, -1.3743945, -1.3849149, -1.3968654, -1.409081, -1.420467, -1.4345715, -1.4485399, -1.4582986, -1.467323, -1.773408, -1.8088087, -1.5128374, -1.5229602, -1.5328537, -1.542277, -1.5503591, -1.5574254, -1.5641448, -1.5703986, -1.5762306, -1.5827223, -1.590461, -1.5996686, -1.6117274, -1.6259665, -1.6407121, -1.65475, -1.6682448, -1.6808772, -1.6935874, -1.708043, -1.7229978, -2.0314863, -1.900533, -1.6024336, -1.6109535, -1.6247712, -1.6423146, -1.6614482, -1.6810172, -1.700624, -1.7187043, -1.7349154, -1.7502592, -1.7651358, -1.7804196, -1.7954525, -1.8107278, -1.826737, -1.8421397, -1.8567996, -1.8718466, -1.8870059, -1.9020213, -1.9168886, -2.225254, -2.2525654, -1.9539154, -1.9613454, -1.9747536, -1.993212, -2.0141006, -2.0359137, -2.058107, -2.079156, -2.0985584, -2.1171558, -2.1351771, -2.1529427, -2.1697805, -2.1857069, -2.2015145, -2.217088, -2.2320065, -2.2468743, -2.2616897, -2.2761416, -2.2906587, -2.5990465, -2.0098357, -1.7142882, -1.723279, -1.7230133, -1.7096996, -1.690588, -1.6660881, -1.6381118, -1.6127424, -1.592519, -1.5789976, -1.5691874, -1.5646433, -1.5691572, -1.5787424, -1.5912743, -1.6040449, -1.6160321, -1.6333288, -1.6473072, -1.6527082, -1.6594108, -1.9652314, -1.7405175, -1.4446338, -1.4528531, -1.4545782, -1.447875, -1.4368843, -1.4225371, -1.4060566, -1.3910329, -1.3791959, -1.3723342, -1.3684307, -1.3684075, -1.375507, -1.3866796, -1.399676, -1.412662, -1.4250233, -1.440054, -1.4531459, -1.4618808, -1.4715419, -1.7782704, -1.812474, -1.5161493, -1.5253998, -1.5344894, -1.5426432, -1.549429, -1.5559456, -1.5623962, -1.5682719, -1.5740969, -1.5814472, -1.590201, -1.6002713, -1.6126823, -1.6269854, -1.6415911, -1.655434, -1.6688706, -1.6812568, -1.6941831, -1.7093774, -1.7245857, -2.0329773, -1.897619, -1.6006798, -1.6116676, -1.6274331, -1.6458669, -1.6648399, -1.6840397, -1.7028043, -1.7197291, -1.7353928, -1.750523, -1.765698, -1.7810969, -1.7960807, -1.8114336, -1.8273041, -1.842182, -1.8563691, -1.8707385, -1.8854426, -1.90082, -1.9158344, -2.2240446, -2.247372, -1.9497476, -1.960016, -1.9763739, -1.9965656, -2.018013, -2.0398471, -2.0612636, -2.0813136, -2.1003253, -2.1184983, -2.136318, -2.1539044, -2.1707292, -2.186868, -2.2027283, -2.2179658, -2.2322755, -2.2461023, -2.2599902, -2.2745056, -2.2889478, -2.5969546, -2.0215664, -1.7228271, -1.7248034, -1.719691, -1.703396, -1.6825435, -1.6570946, -1.6292862, -1.6052153, -1.586595, -1.5752012, -1.5669907, -1.5649301, -1.5713766, -1.5817325, -1.5955112, -1.6089426, -1.6219608, -1.6409444, -1.6540105, -1.6580634, -1.6663374, -1.9736573, -1.7498446, -1.4513605, -1.4540668, -1.4521713, -1.4432042, -1.4308084, -1.4159534, -1.399545, -1.3852243, -1.3747958, -1.3697536, -1.3671598, -1.3691288, -1.3775594, -1.3891745, -1.4029765, -1.4164263, -1.4294916, -1.4457184, -1.4584516, -1.4665809, -1.4772787, -1.7848408, -1.81625, -1.519402, -1.5273192, -1.5353379, -1.5425224, -1.548473, -1.5547047, -1.5607111, -1.5662773, -1.5727433, -1.5810597, -1.5906458, -1.6014595, -1.613966, -1.6281241, -1.6425763, -1.656321, -1.6696029, -1.6818628, -1.6951742, -1.7110441, -1.7264555, -2.034706, -1.8958596, -1.6002963, -1.6136528, -1.6307161, -1.6493349, -1.6679983, -1.6865696, -1.7042991, -1.7205528, -1.7358658, -1.7509955, -1.7665248, -1.781841, -1.7967345, -1.8121281, -1.8276397, -1.8419389, -1.8555431, -1.8691041, -1.8835471, -1.8991599, -1.9141513, -2.2223258, -2.2428627, -1.9469215, -1.960495, -1.9792947, -2.0003507, -2.0218759, -2.043375, -2.0639658, -2.083401, -2.1019118, -2.1197164, -2.1373649, -2.1546984, -2.1715784, -2.1880043, -2.2036011, -2.2180696, -2.2318194, -2.2450476, -2.2583857, -2.2725525, -2.2862792, -2.5937963, -2.030703, -1.7291878, -1.7250167, -1.7151618, -1.6964246, -1.674232, -1.6482986, -1.6212645, -1.5991974, -1.582733, -1.5733807, -1.5666839, -1.5665451, -1.5745976, -1.585465, -1.6001348, -1.6137403, -1.627543, -1.6481655, -1.661021, -1.664425, -1.673965, -1.9826528, -1.7568892, -1.4561633, -1.4541521, -1.4488136, -1.4379944, -1.424886, -1.4099362, -1.3935668, -1.3806251, -1.3721647, -1.3687582, -1.3674095, -1.3709124, -1.3804517, -1.3922979, -1.4067255, -1.4203236, -1.4339247, -1.4514275, -1.4642442, -1.4721129, -1.4836276, -1.7919251, -1.8195674, -1.5221326, -1.5286449, -1.5355679, -1.5419416, -1.5476062, -1.5537401, -1.5589538, -1.5647004, -1.5721925, -1.5813929, -1.5917618, -1.6031195, -1.6157174, -1.6296507, -1.6440482, -1.6577549, -1.6708162, -1.6830443, -1.6966727, -1.71303, -1.7285812, -2.0366344, -1.8954763, -1.6011242, -1.6162055, -1.6339618, -1.6525282, -1.670694, -1.688418, -1.7054111, -1.7211905, -1.7361622, -1.7515626, -1.7674494, -1.7827398, -1.7975696, -1.8128543, -1.8279407, -1.8418144, -1.8546994, -1.8673831, -1.881647, -1.8974223, -1.9124599, -2.2207108, -2.2398896, -1.9458476, -1.9624741, -1.9828166, -2.0041935, -2.0256176, -2.0464878, -2.0663574, -2.0852182, -2.1030939, -2.1206787, -2.1382217, -2.1554902, -2.1724033, -2.1887712, -2.2039013, -2.2177312, -2.2307804, -2.2435877, -2.2567382, -2.2703943, -2.2836833, -2.5911603, -2.0376332, -1.7335896, -1.7238959, -1.7097074, -1.6894925, -1.6661097, -1.6399741, -1.6142955, -1.5946711, -1.580812, -1.5736195, -1.5686253, -1.5697336, -1.5787708, -1.590071, -1.604984, -1.618443, -1.633233, -1.6547036, -1.6684057, -1.6724975, -1.6822551, -1.9915701, -1.7619102, -1.4590892, -1.4533346, -1.44504, -1.4329141, -1.4193565, -1.40417, -1.3885249, -1.3775259, -1.3710866, -1.3693539, -1.3693372, -1.3739041, -1.3841702, -1.3961868, -1.4108695, -1.4244251, -1.4386435, -1.4568386, -1.4703035, -1.4787184, -1.4905922, -1.7993857, -1.8221148, -1.523953, -1.5295718, -1.53574, -1.5413115, -1.5468017, -1.5525794, -1.5576097, -1.5639824, -1.5722635, -1.5823473, -1.5933467, -1.6051807, -1.618033, -1.631747, -1.6462039, -1.6599407, -1.6727462, -1.6848676, -1.6984677, -1.715077, -1.7310627, -2.0392303, -1.8963442, -1.6028453, -1.6190548, -1.637169, -1.6554714, -1.6727954, -1.6897972, -1.7062858, -1.7215704, -1.7364047, -1.7521892, -1.768395, -1.7837299, -1.7986068, -1.8136426, -1.828376, -1.842062, -1.8543837, -1.8663082, -1.8801824, -1.8959469, -1.9109637, -2.2191422, -2.239172, -1.9466207, -1.9655758, -1.986691, -2.0080042, -2.0290203, -2.0491374, -2.0684016, -2.08666, -2.1039894, -2.1213639, -2.1389976, -2.1563137, -2.1730201, -2.1889164, -2.2036197, -2.2172146, -2.2297647, -2.2421758, -2.2552087, -2.2684584, -2.2814507, -2.5889547, -2.0428085, -1.7357694, -1.7216029, -1.704135, -1.6826594, -1.6586244, -1.6328183, -1.6086032, -1.5913813, -1.5808128, -1.576121, -1.5729264, -1.5748098, -1.5841427, -1.5957944, -1.6104803, -1.6237094, -1.6392308, -1.6607689, -1.6766884, -1.6824926, -1.6914859, -2.0008216, -1.7652241, -1.4601346, -1.4514515, -1.4408792, -1.4280267, -1.4142189, -1.3989955, -1.3846259, -1.3755269, -1.3715138, -1.3716898, -1.3731141, -1.3783813, -1.3888057, -1.4010025, -1.415691, -1.4292005, -1.4438325, -1.462015, -1.4768893, -1.4865303, -1.4982537, -1.8072419, -1.823847, -1.5249913, -1.530104, -1.5354179, -1.5405129, -1.5459577, -1.551294, -1.5567688, -1.5638589, -1.5729989, -1.5838633, -1.5954893, -1.6078603, -1.6208159, -1.6343392, -1.6489657, -1.6628033, -1.6753055, -1.6870792, -1.7005128, -1.717312, -1.7338763, -2.0423262, -1.8982296, -1.6053098, -1.6224542, -1.6404859, -1.6579417, -1.6744925, -1.6909353, -1.70689, -1.721889, -1.736868, -1.7528877, -1.7692819, -1.7848665, -1.7997732, -1.8143846, -1.8289201, -1.8425004, -1.8544259, -1.865773, -1.8791546, -1.8947489, -1.9095762, -2.2175455, -2.240525, -1.9489636, -1.9695348, -1.9910731, -2.0117722, -2.0318155, -2.051307, -2.070086, -2.0878072, -2.104876, -2.1221204, -2.1397812, -2.1569965, -2.173204, -2.1884923, -2.2030513, -2.2166517, -2.2290263, -2.2410374, -2.253565, -2.2663991, -2.2788622, -2.5860138, -2.0459416, -1.7357615, -1.7179041, -1.6979729, -1.6755974, -1.651449, -1.6264863, -1.604424, -1.5897651, -1.5825901, -1.5806851, -1.5794206, -1.5817606, -1.5909338, -1.6027608, -1.6171882, -1.6299068, -1.6455457, -1.6671116, -1.685429, -1.6931332, -1.7014341, -2.0106926, -1.7670312, -1.4599582, -1.4488004, -1.4362936, -1.4231256, -1.409275, -1.3943514, -1.3818414, -1.3748612, -1.3733933, -1.3755596, -1.3784807, -1.3841791, -1.3945229, -1.4068875, -1.4215199, -1.4348501, -1.4493834, -1.4673834, -1.4837626, -1.4947994, -1.5063607, -1.815354, -1.8253255, -1.5260873, -1.5306646, -1.5347816, -1.5395939, -1.544983, -1.5500308, -1.5563219, -1.56434, -1.574454, -1.5858316, -1.598053, -1.6108893, -1.6239288, -1.6373812, -1.6520435, -1.6659544, -1.6780561, -1.6895245, -1.7029212, -1.7198769, -1.7368003, -2.0453286, -1.9010836, -1.6085652, -1.6261582, -1.6433933, -1.6598448, -1.6759032, -1.6919683, -1.7075467, -1.7223579, -1.737594, -1.7537361, -1.7703421, -1.7862649, -1.8010472, -1.8151836, -1.8294238, -1.8426872, -1.8542676, -1.8653474, -1.8784461, -1.8936982, -1.9082063, -2.2160215, -2.2434037, -1.9526985, -1.9740268, -1.9950576, -2.0150855, -2.03449, -2.05343, -2.071674, -2.0889342, -2.105848, -2.1230466, -2.140707, -2.157842, -2.1735573, -2.1883035, -2.2026925, -2.2161598, -2.2280955, -2.2394214, -2.251424, -2.2638927, -2.2758722, -2.5827355, -2.0458107, -1.7342561, -1.7133045, -1.6915041, -1.6683953, -1.6444314, -1.6212518, -1.6021079, -1.5903068, -1.5859666, -1.58693, -1.5876244, -1.5903729, -1.5991328, -1.6110133, -1.6251318, -1.6369063, -1.6527711, -1.6745536, -1.6942209, -1.7042226, -1.7124081, -2.021408, -1.7668622, -1.459122, -1.4456106, -1.4315728, -1.4183159, -1.4045801, -1.3907666, -1.3805504, -1.3758973, -1.3765316, -1.3806466, -1.3850365, -1.3911325, -1.4012041, -1.4136866, -1.4282477, -1.441107, -1.4555541, -1.4734772, -1.4907657, -1.5034484, -1.5150499, -1.823823, -1.826668, -1.527353, -1.530737, -1.5339543, -1.5387769, -1.5439259, -1.5493779, -1.5566064, -1.5655762, -1.5764418, -1.5881126, -1.6007272, -1.6138419, -1.6268352, -1.640381, -1.6551663, -1.6691513, -1.680898, -1.6922344, -1.7057426, -1.7227149, -1.7395693, -2.0479534, -1.9046258, -1.6121184, -1.6292431, -1.645717, -1.6613681, -1.6769192, -1.6930742, -1.7084416, -1.7230911, -1.7385027, -1.7546395, -1.7711804, -1.7870244, -1.8016016, -1.8156261, -1.8296225, -1.8424405, -1.8538902, -1.8651205, -1.8780358, -1.8926957, -1.9067715, -2.2144732, -2.2473707, -1.957042, -1.9783047, -1.9984, -2.017953, -2.0372574, -2.0557134, -2.0732927, -2.090157, -2.1068938, -2.123982, -2.1414115, -2.1580927, -2.1733892, -2.1880221, -2.202133, -2.2150352, -2.2265606, -2.2375462, -2.2491643, -2.2612174, -2.2729073, -2.5796967, -2.0427628, -1.7310507, -1.7079749, -1.6850766, -1.661521, -1.6383005, -1.6174599, -1.6015023, -1.5928018, -1.5910202, -1.5946115, -1.596973, -1.6003226, -1.6085715, -1.6205102, -1.6341234, -1.645209, -1.6615132, -1.6830983, -1.703268, -1.7154647, -1.7243325, -2.0331333, -1.764647, -1.4569818, -1.4417926, -1.4272362, -1.41377, -1.4002544, -1.3885318, -1.3807334, -1.3783506, -1.3808563, -1.386797, -1.39246, -1.3990165, -1.4086854, -1.4212332, -1.4355525, -1.4480947, -1.4626164, -1.4802861, -1.498156, -1.5121896, -1.5239768, -1.832536, -1.8272728, -1.5278921, -1.5300407, -1.5332706, -1.5380323, -1.5428888, -1.5494761, -1.5574387, -1.5672671, -1.5787336, -1.5906736, -1.6035113, -1.6166959, -1.6295347, -1.643182, -1.6581391, -1.6723821, -1.6837914, -1.6950524, -1.709043, -1.7256093, -1.7416549, -2.0497665, -1.9081616, -1.6152943, -1.6315356, -1.6477, -1.6628941, -1.6781185, -1.6940738, -1.7090411, -1.7238795, -1.739396, -1.7554314, -1.7715169, -1.7869014, -1.8013084, -1.8154349, -1.8293871, -1.842135, -1.8536063, -1.8650346, -1.8777971, -1.8917735, -1.9052559, -2.2127328, -2.2517042, -1.9612368, -1.9821783, -2.0019162, -2.0209908, -2.03984, -2.0577023, -2.0746453, -2.091151, -2.1076815, -2.1246617, -2.1414633, -2.1571746, -2.1720932, -2.186747, -2.200578, -2.2130618, -2.2246737, -2.2357957, -2.2469974, -2.2586262, -2.2701235, -2.57684, -2.0379028, -1.7260056, -1.7020457, -1.6784898, -1.6553392, -1.6335536, -1.6152214, -1.6025783, -1.5969034, -1.5978115, -1.6031485, -1.607015, -1.6114297, -1.6193154, -1.6309041, -1.6438967, -1.6549389, -1.6711602, -1.6919914, -1.7120582, -1.7266936, -1.7370635, -2.045079, -1.7614232, -1.4535234, -1.4376451, -1.4229599, -1.409572, -1.3971208, -1.3877012, -1.382268, -1.3820541, -1.3864497, -1.3937112, -1.4004114, -1.407567, -1.417071, -1.4294683, -1.4433465, -1.4557409, -1.4700941, -1.4874942, -1.5056585, -1.5209763, -1.5334013, -1.8415506, -1.8272263, -1.5276212, -1.5293747, -1.5326164, -1.5372438, -1.542636, -1.5502106, -1.5588021, -1.5695006, -1.5814669, -1.593636, -1.6064743, -1.6194441, -1.632391, -1.6461173, -1.6609938, -1.6752005, -1.6864223, -1.6980935, -1.7126911, -1.7285691, -1.743723, -2.0517943, -1.9111052, -1.6180278, -1.63379, -1.649307, -1.664308, -1.6794229, -1.6947113, -1.7095033, -1.7247142, -1.740424, -1.7561609, -1.7717327, -1.7867088, -1.8009977, -1.8149018, -1.8286557, -1.8416324, -1.8530943, -1.8646096, -1.8773805, -1.8908268, -1.9036806, -2.21085, -2.256297, -1.9655704, -1.985885, -2.0051074, -2.0237892, -2.0419517, -2.0591145, -2.0756154, -2.0918257, -2.1083555, -2.1251347, -2.1412055, -2.1562023, -2.1707594, -2.1849818, -2.1982956, -2.2106757, -2.2223332, -2.2335613, -2.2447743, -2.2561612, -2.2673864, -2.573987, -2.3361876, -2.0240846, -1.9999882, -1.9762077, -1.9534053, -1.9325354, -1.9156008, -1.9046192, -1.9003782, -1.9026816, -1.9085766, -1.9132293, -1.9183602, -1.926134, -1.9373261, -1.9500322, -1.9611598, -1.9771063, -1.9975098, -2.0173044, -2.0334532, -2.0447416, -2.3520236, -2.0607505, -1.7525905, -1.7365376, -1.7217216, -1.7086084, -1.6970556, -1.6887193, -1.6844082, -1.6852088, -1.6905842, -1.698375, -1.7055678, -1.7130756, -1.7225658, -1.7347924, -1.7484621, -1.7607207, -1.7749027, -1.792262, -1.8103936, -1.8265108, -1.8394071, -2.1472013, -2.128137, -1.8284675, -1.8302137, -1.8331648, -1.8379134, -1.8439099, -1.8517708, -1.8606946, -1.8717715, -1.8839612, -1.8962854, -1.9090726, -1.9218405, -1.9348724, -1.9486464, -1.9634622, -1.9774384, -1.9886993, -2.0007882, -2.0155861, -2.031124, -2.0459602, -2.3541112, -2.2134252, -1.9204147, -1.9361207, -1.9510297, -1.9659202, -1.9809953, -1.9959698, -2.0108647, -2.0262547, -2.0420692, -2.0575387, -2.072862, -2.0876913, -2.1018987, -2.1155558, -2.1291745, -2.142275, -2.1537647, -2.1653285, -2.1780918, -2.1913342, -2.2039177, -2.510935, -2.5597277, -2.2688699, -2.2887723, -2.3075037, -2.3259854, -2.3438792, -2.3607163, -2.3770554, -2.3931632, -2.4098217, -2.4264224, -2.4420843, -2.4568572, -2.4712029, -2.4850976, -2.498117, -2.510473, -2.5221198, -2.533366, -2.5446534, -2.5559418, -2.5670016, -2.8735263]

g = RectilinearGrid{𝔼,typeof(Spherical(0,0,0))}((r, θ, ϕ))
m = mapreduce(boundary, merge, g) |> Repair(0)
viz(m, color = nrho)

gives
ERROR: MethodError: Cannot convertan object of type Nothing to an object of type Int64 The functionconvert exists, but no method is defined for this combination of argument types.

while both

m = mapreduce(boundary, merge, g)
viz(m, color = 1:nvertices(m))

m = mapreduce(boundary, merge, g) |> Repair(1)
viz(m, color = 1:nvertices(m))

works fine but in both need more color values(11264 vertices).

I have color values for elements but Makie.jl don’t support color interpolation for elements. How to convert cell body(nelement) color values to nvertices color values? I think it would be better to have color values for Repair(1) meshes.

2 posts - 1 participant