Machining of material by lathe