Added ability to swap u- and v-directions for surfaces.