Shaping or machining of piezo-electric or electrostrictive bodies