Process planning for the layer domain of layered manufacturing.