Compensating volume or shape change during moulding, in general