Warpage is one of the most challenging defects occurring in plastic injection moulded parts. Various approaches to overcome this issue have been proposed in the literature, but they all provide only partial solutions to the problem. This paper proposes a new method for the compensation and minimisation of warpage. The method is based on Mould Cavity (MC) correction. In contrast to other similar methods, here the MC correction is accomplished through a direct comparison of the local deviations of the warped part's geometry to the desired geometry of the part. Modifying the MC shape accordingly yields parts with a lower shape discrepancy from the desired geometry compared to the nonadjusted shape. The key novelty of the paper is the development of software that iteratively adjusts the MC shape to minimise local deviations. In every iteration, the warped part is compared to the desired geometry and the MC geometry is adjusted accordingly. A curved thin-walled plate part case study demonstrates the method's capabilities. We show that the maximum warpage value of 0.005 mm (0.7% of the initial maximum warpage) was reached after three iterations of MC geometry correction and remained stable afterwards.