def _mesh_to_surf_cards(mesh, divs):
    """Prepares the surface cards for mesh_to_geom."""
    surf_cards = ""
    count = 1
    for i, dim in enumerate("xyz"):
        for div in divs[i]:
            surf_cards += "{0} p{1} {2}\n".format(count, dim, div)
            count += 1

    return surf_cards