Use of laser scanners in machine tools to implement freeform parts machining and quality control