Shaping elastic or deformable material