Feature based path planning for CMMs