through a complex combination of mechanical engineering and magical properties , the machines utilized floating probes to take body measurements , and then cut and sewed clothing to the desired specifications .