Apparatus in which the material is shaped at least partially in a mould, in the hollows of a surface, a drum, an endless band or by drop-by-drop casting or dispensing of the material on a surface