def meep_vertices(points, z):
    """ Converts a list of 2D points into a meep vertices array.
    """
    points_str = [
        'mp.Vector3({}, {}, {})'.format(x, y, z)
        for x, y in points
    ]
    return "[" + ",".join(points_str) + "]"