dimFromFaceIndex param struct should be passed by reference.