generalized face3 functions for any size cube