Five-axis machining of small prismatic parts