Function normaliseHatchPattern