Texture Mapping and Refactoring