Why is this projection wrong?
My translation should have described a rotation around the center of the cube, but it was wrong. I changed it to:

rotate45 * (translation - center) + center


and I get the cube in the middle with the right angle.