A device for producing a three dimensional shaped consolidated product. The device includes a rotary drum, defined as a rotary conveyor with a peripheral surface extending in circumferential direction with at least one product shaping area in the form of a cavity on said peripheral surface, the peripheral surface is pervious to air at least in the product shaping area, at least one material feed device to feed a base material into the at least one cavity, a vacuum device designed to generate a negative pressure at least in the at least one cavity, whereby the generated suction is directed towards the interior of the rotary conveyor, and whereby downstream of the material feed device at least one consolidating device is located such that at least a part of the filled cavity is subjected to a consolidating treatment whereby the base material at least partly will adhere to neighboring material.