What is the primary function of a layer extruder in manufacturing or 3D printing?
A) To heat and melt materials for casting into molds
B) To apply layers of material in a precise manner to build up a three-dimensional object
C) To cut and shape materials into specific forms
D) To mix different materials to create composite substances