Mechanistic modelling of 5-axis milling using an adaptive depth buffer