Texture mapping is a common method to add surface detail by mapping texture patterns onto object surfaces. The texture can be defined as a rectangular array or a procedure modifying surface intensity values. This approach, called texture mapping or pattern mapping, was illustrated by mapping a unit square pattern to a cylindrical surface through a series of linear transformations. Pixel positions were mapped to texture space and averaged to obtain each pixel intensity from the texture pattern.