Preparing the wood for shaping