Complete simulation of single piece machining and automatic collision detection before starting machining