Part decomposition for die pattern machining