Add 6d facedir rotation prediction routine
Merge branch '6d' into local_patches
foo