def _delta_mesh()

in run_nerf_helpers.py [0:0]


    def _delta_mesh(start_pts, end_pts):
        delta_string = ""
        start_pts = start_pts.reshape(-1, 3)
        end_pts = end_pts.reshape(-1, 3)
        for (start_x, start_y, start_z), (end_x, end_y, end_z) in zip(
            start_pts, end_pts
        ):
            eps = 0.00001
            delta_string += (
                "v "
                + str(start_x)
                + " "
                + str(start_y)
                + " "
                + str(start_z)
                + "\n"
                + "v "
                + str(start_x + eps)
                + " "
                + str(start_y + eps)
                + " "
                + str(start_z + eps)
                + "\n"
                + "v "
                + str(end_x)
                + " "
                + str(end_y)
                + " "
                + str(end_z)
                + "\n"
            )
        for i in range(len(start_pts)):
            # faces are 1-indexed
            first_vertex_index = i * 3 + 1
            delta_string += (
                "f "
                + str(first_vertex_index)
                + " "
                + str(first_vertex_index + 1)
                + " "
                + str(first_vertex_index + 2)
                + "\n"
            )
        return delta_string