Mesh generation tools from KCL