Enable specification of perpendicular axis for plane.

Modified the createPlaneWithMaterial method to accept an axis
parameter so it can be perpendicular to any of the 3 axes.
Assumes Y as before if not specified.