def norm_vec(lst, idx):
    """Get the normal vector pointing to cube at idx (from previous cube)."""
    assert len(lst)>1 and 0 < idx < len(lst)
    return [a-a1 for (a,a1) in zip(lst[idx], lst[idx-1])]