A non-transitory computer readable medium storing a control program of a three-dimensional laminating and shaping apparatus for shaping a three-dimensional laminated and shaped object by irradiating a powder with a high-energy beam, the program for causing a computer to execute a method, comprising:
- acquiring laminating and shaping data to be used for laminating and shaping of the three-dimensional laminated and shaped object;
- acquiring attribute information of the powder to be used for laminating and shaping of the three-dimensional laminated and shaped object;
- generating, based on the laminating and shaping data and the attribute information, a model of a circuit pattern, wherein the circuit pattern removes electrons from the powder to be electrically charged by irradiation with the high-energy beam, wherein the circuit pattern is formed as electrical lead wires around the three-dimensional laminated and shaped object;
- and
- shaping the three-dimensional laminated and shaped object based on the laminating and shaping data with the circuit pattern based on the generated model and the three-dimensional laminated and shaped object based on laminating and shaping data.