A three-dimensional shaping apparatus comprising a shaping material supply device, the shaping material supply device comprising: a shaping material production section configured to melt at least a part of a material to produce a shaping material, a first flow path through which the shaping material flows; a nozzle that communicates with the first flow path and discharges the shaping material; and a flow rate regulation mechanism that includes a butterfly valve provided in the first flow path and adjusts the discharge amount of the shaping material from the nozzle by rotating the butterfly valve; wherein the butterfly valve is rotated so as to be at any position among a first position where the flow direction (Fd) of the shaping material in the first flow path is substantially perpendicular to a surface direction of the butterfly valve, a second position where the flow direction (Fd) of the shaping material in the first flow path is substantially parallel to the surface direction of the butterfly valve, and a third position where the flow direction (Fd) of the shaping material in the first flow path and the surface direction of the butterfly valve form any angle among angles larger than 0 degree and smaller than 90 degrees, wherein in the first position the area of the opening formed in the first flow path is closed, and in the second position the area of the opening is maximized when viewed along the first flow path; wherein the shaping material production section includes a facing portion that has a communication hole communicating with the first flow path and has a heater, a flat screw, a surface of which faces a screw facing surface of the facing portion, the flat screw being configured to rotate so as to send the material to the communication hole, and including a plurality of groove portions formed in the surface of the flat screw and a plurality of material inlet ports corresponding to each groove portion formed on a side surface of the flat screw, the plurality of groove portions being arranged to supply the shaping material to the communication hole as the flat screw rotates. a shaping material production section configured to melt at least a part of a material to produce a shaping material, a first flow path through which the shaping material flows; a nozzle that communicates with the first flow path and discharges the shaping material; and a flow rate regulation mechanism that includes a butterfly valve provided in the first flow path and adjusts the discharge amount of the shaping material from the nozzle by rotating the butterfly valve; wherein the butterfly valve is rotated so as to be at any position among a first position where the flow direction (Fd) of the shaping material in the first flow path is substantially perpendicular to a surface direction of the butterfly valve, a second position where the flow direction (Fd) of the shaping material in the first flow path is substantially parallel to the surface direction of the butterfly valve, and a third position where the flow direction (Fd) of the shaping material in the first flow path and the surface direction of the butterfly valve form any angle among angles larger than 0 degree and smaller than 90 degrees, wherein in the first position the area of the opening formed in the first flow path is closed, and in the second position the area of the opening is maximized when viewed along the first flow path; wherein the shaping material production section includes a facing portion that has a communication hole communicating with the first flow path and has a heater, a flat screw, a surface of which faces a screw facing surface of the facing portion, the flat screw being configured to rotate so as to send the material to the communication hole, and including a plurality of groove portions formed in the surface of the flat screw and a plurality of material inlet ports corresponding to each groove portion formed on a side surface of the flat screw, the plurality of groove portions being arranged to supply the shaping material to the communication hole as the flat screw rotates.