Tagged foam-machining