Store actual surface in memory before machining, compare with reference surface