def square_mesh(minX, maxX, minY, maxY, spacingX, spacingY, random_scale=
    0.0, refinement_levels=0):
    """
    Generate a square mesh using stripy
    """
    from stripy import cartesian_meshes
    extent_xy = [minX, maxX, minY, maxY]
    tri = cartesian_meshes.square_mesh(extent_xy, spacingX, spacingY,
        random_scale, refinement_levels)
    return tri.x, tri.y, tri.simplices
