Generative approach to Computer-Aided Process Planning