Flattening is a process of reducing the height of an object by removing any irregularities or protrusions. This is done to make the object more uniform and easier to work with, and it can also reduce weight.