meshing routine(part of pdetools.jl)