2-5-D pocket machining