A computer-implemented method for generating a jacquard pattern to manufacture a 3D woven preform by an electronic jacquard system, comprising the following steps: acquiring structure information of a unit structure of the 3D woven preform to be prepared, wherein the structure information comprises a warp yarn column number, a warp yarn layer number, a weft yarn column number and a weft yarn layer number, as well as a positional relationship between the warp yarns and the weft yarns of the unit structure of the 3D woven preform to be prepared, wherein, a structure matrix is used to represent the positional relationship between the warp yarns and weft yarns, wherein a row number of the structure matrix represents a total number of warp yarns, a column number of the structure matrix represents a column number of weft yarns, and elements in the structure matrix represent the number of weft yarns located between corresponding warp yarns and a previous layer of warp yarns of the corresponding warp yarns in corresponding weft yarn columns; obtaining a row number and a column number of the jacquard pattern to be generated, and correspondence between each pixel in the jacquard pattern to be generated and the warp yarns and weft yarns of the unit structure of the 3D woven preform to be prepared, according to the structure information; obtaining a pixel value of each pixel according to the correspondence and the positional relationship between the warp yarns and the weft yarns, and generating the jacquard pattern to be generated; wherein, the pixel value, comprising a first pixel value and a second pixel value, is equal to the first pixel value when the warp yarns corresponding to the pixel are located above corresponding weft yarns, and is equal to the second pixel value when the warp yarns corresponding to the pixel are located below corresponding weft yarns; and outputting the generated jacquard pattern to the electronic jacquard system so as to manufacture the 3D woven preform. acquiring structure information of a unit structure of the 3D woven preform to be prepared, wherein the structure information comprises a warp yarn column number, a warp yarn layer number, a weft yarn column number and a weft yarn layer number, as well as a positional relationship between the warp yarns and the weft yarns of the unit structure of the 3D woven preform to be prepared, wherein, a structure matrix is used to represent the positional relationship between the warp yarns and weft yarns, wherein a row number of the structure matrix represents a total number of warp yarns, a column number of the structure matrix represents a column number of weft yarns, and elements in the structure matrix represent the number of weft yarns located between corresponding warp yarns and a previous layer of warp yarns of the corresponding warp yarns in corresponding weft yarn columns; obtaining a row number and a column number of the jacquard pattern to be generated, and correspondence between each pixel in the jacquard pattern to be generated and the warp yarns and weft yarns of the unit structure of the 3D woven preform to be prepared, according to the structure information; obtaining a pixel value of each pixel according to the correspondence and the positional relationship between the warp yarns and the weft yarns, and generating the jacquard pattern to be generated; wherein, the pixel value, comprising a first pixel value and a second pixel value, is equal to the first pixel value when the warp yarns corresponding to the pixel are located above corresponding weft yarns, and is equal to the second pixel value when the warp yarns corresponding to the pixel are located below corresponding weft yarns; and outputting the generated jacquard pattern to the electronic jacquard system so as to manufacture the 3D woven preform. <EOS>