Meshing fixed

-Meshing works as intended
-Costs partially reduced