Compression pattern expanding method based on pattern module, flat knitting machine and device
阅读说明:本技术 基于花型模块的压缩花样展开方法、针织横机及装置 (Compression pattern expanding method based on pattern module, flat knitting machine and device ) 是由 陈春尧 庄阿为 朱欢 于 2019-09-29 设计创作,主要内容包括:本申请公开基于花型模块的压缩花样展开方法、针织横机及装置。其中方法包括:接收绘制花型模块的绘制指令;响应于绘制指令,得到花型模块;其中,花型模块包括第一色码、第一色码的第一连接扩展码、第一色码对应的第一编织码、第一连接扩展码对应的第一扩展编织码及第一重叠扩展码,第二色码、第二色码对应的第二编织码及第二重叠扩展码;接收展开压缩花样的展开指令,压缩花样包括连接的第一色码花样和第二色码花样;响应于展开指令,将花型模块带入压缩花样进行展开,得到展开花样。通过本方法,可以快捷有效地实现花型模块的扩展。(The application discloses a compression pattern expanding method based on a pattern module, a flat knitting machine and a device. The method comprises the following steps: receiving a drawing instruction of a pattern drawing module; responding to a drawing instruction to obtain a pattern module; the pattern module comprises a first color code, a first connection spreading code of the first color code, a first weaving code corresponding to the first color code, a first spread weaving code and a first overlapping spreading code corresponding to the first connection spreading code, and a second color code, a second weaving code corresponding to the second color code and a second overlapping spreading code; receiving an expansion instruction for expanding compression patterns, wherein the compression patterns comprise a first color code pattern and a second color code pattern which are connected; and in response to the expansion instruction, bringing the pattern module into the compressed pattern for expansion to obtain an expanded pattern. By the method, the expansion of the pattern module can be quickly and effectively realized.)
1. A compression pattern expanding method based on pattern modules is characterized by comprising the following steps:
receiving a drawing instruction for drawing the pattern module;
responding to the drawing instruction to obtain the pattern module; wherein the pattern module comprises a first representative color code, a first connection spreading code of the first representative color code, a first weaving code corresponding to the first representative color code, a first spread weaving code and a first overlapping spreading code corresponding to the first connection spreading code, and a second representative color code, a second weaving code corresponding to the second representative color code and a second overlapping spreading code;
receiving an expansion instruction for expanding the compressed patterns, wherein the compressed patterns comprise a first representative color code pattern and a second representative color code pattern which are connected;
in response to the unfolding instruction, unfolding the first representative color code pattern into a corresponding plurality of first weaving codes based on the pattern module; spreading out the first connection spread code at a junction of the first representative color code pattern and the second representative color code pattern, and spreading out the first connection spread code into a corresponding first spread weave code and first overlap spread code; spreading said second color code pattern into a corresponding plurality of second weave codes and second overlap spread codes; the first superposition spread code is covered with the second woven code, and the second superposition spread code is covered with the first spread woven code, resulting in a spread pattern.
2. The method of claim 1, wherein the first connection spreading code, the first overlap spreading code, and the second overlap spreading code are equal in number.
3. A method according to claim 1, characterised in that the first code pattern and the second code pattern are in the same row, and the position of the first connection spreading code with respect to the first code pattern is the same as the position of the second code pattern with respect to the first code pattern.
4. The method of claim 3 wherein in the pattern module the first weave code is in row n directly above the first color code, the first spread weave code is in row n directly above the first connection spreading code, and the first overlap spreading code is in row n-1 directly above the first connection spreading code; the second weave code is on line n-1 directly above the second color code, the second overlap spreading code is on line n directly above the second color code;
in the unfolding patterns, the first weaving codes are unfolded in the mth row from bottom to top, and the second weaving codes are unfolded in the (m-1) th row from bottom to top.
5. The method of claim 3 wherein in the pattern module the first weave code is located directly above the first color code on row n-1, the first spread weave code is located directly above the first connection spreading code on row n-1, and the first overlap spreading code is located directly above the first connection spreading code on row n; the second weave code is located on line n directly above the second color code, the second overlap spreading code is located on line n-1 directly above the second color code;
in the unfolding pattern, the first woven codes are unfolded in the (m-1) th row from bottom to top, and the second woven codes are unfolded in the (m) th row from bottom to top.
6. The method of claim 3 or 4, wherein the first number of color codes is the same as the first number of weave codes, wherein the first connection spreading codes is the same as the first number of spread weave codes, wherein the second number of color codes is the same as the second number of weave codes, and wherein the second number of overlapping spreading codes is less than or equal to the second number of weave codes.
7. The method of claim 3 or 4, wherein the second superposition code is located at an end adjacent to the first extended weave code;
when the second representative color code pattern is unfolded, the second overlapped code is unfolded at one end of the second representative color code pattern connected with the first representative color code pattern.
8. The method of claim 1, wherein the pattern module further comprises a first cyclic color code of the first weave code and a second cyclic color code of the second weave code, the number of cyclic color codes directly above the first weave code being the same as the number of first weave codes, the number of cyclic color codes directly above the second weave code being the same as the number of second weave codes; the cyclic color code is used for representing a cyclic mode of the first weaving code and the second weaving code.
9. A flat knitting machine comprising a processor, a memory, and a human-machine circuit, the processor being coupled to the memory and the human-machine circuit, the human-machine circuit being configured to obtain human-machine instructions, the memory having stored therein program instructions, the processor executing the program instructions, and the method according to any one of claims 1 to 8 being implemented by the program instructions.
10. An apparatus having a storage function, wherein the apparatus stores program data executable to implement the method of any one of claims 1-8.
Technical Field
The application belongs to the technical field of spinning, and particularly relates to a compression pattern expanding method based on a pattern module, a flat knitting machine and a device with a storage function.
Background
In order to enhance the aesthetic property of the clothes and improve the brand value of the products, decorative patterns are usually designed on the clothes, and designers give visual impact to consumers through the shape and color of the patterns, so as to trigger the shopping impulse of the consumers.
At present, the application of the flat knitting machine in clothing design and knitting is more and more popular. When the flat knitting machine is used for drawing the knitting pattern, the representative color codes are used for representing the drawn modules, then the representative color codes are used for drawing the corresponding pattern, and the pattern expansion is to expand the representative color codes into the representative pattern modules. In the related technology, the module for drawing the patterns and designs has the problems of complex arrangement of module needles and easy error in needle arrangement.
Disclosure of Invention
The application provides a compression pattern expanding method based on a pattern module, a flat knitting machine and a device with a storage function, and aims to solve the technical problems that the arrangement of the number of module needles is complicated and the needle arrangement is easy to make mistakes in the pattern drawing process.
In order to solve the technical problem, the application adopts a technical scheme that: provides a compression pattern expanding method based on a pattern module. The method comprises the following steps: receiving a drawing instruction of a pattern drawing module; responding to a drawing instruction to obtain a pattern module; the pattern module comprises a first representative color code, a first connection spreading code of the first representative color code, a first weaving code corresponding to the first representative color code, a first spread weaving code and a first overlapping spreading code corresponding to the first connection spreading code, a second representative color code, a second weaving code corresponding to the second representative color code and a second overlapping spreading code; receiving an expansion instruction for expanding compressed patterns, wherein the compressed patterns comprise a first representative color code pattern and a second representative color code pattern which are connected; in response to an expansion instruction, expanding the first representative color code patterns into a corresponding plurality of first weaving codes based on the pattern module; spreading a first connection spread code at a junction of the first representative color code pattern and the second representative color code pattern, and spreading the first connection spread code into a corresponding first spread weave code and first superposition spread code; spreading a second color code pattern to correspond to the plurality of second weave codes and second overlap spread codes; the first superposition spread code is covered by the second weave code, and the second superposition spread code is covered by the first spread weave code, to obtain a spread pattern.
In order to solve the above technical problem, another technical solution adopted by the present application is: a flat knitting machine is provided. The flat knitting machine comprises a processor, a memory and a man-machine circuit, wherein the processor is coupled with the memory and the man-machine circuit, the man-machine circuit is used for acquiring artificial instructions, program instructions are stored in the memory, the processor executes the program instructions, and the method is realized through the program instructions.
In order to solve the above technical problem, the present application adopts another technical solution: an apparatus having a storage function is provided. The device stores program data that can be executed to implement the method described above.
The beneficial effect of this application is: the present application enables to intuitively display the direction and the number of spreading of a pattern module by drawing the pattern module including a first connection spread code connected to a first representative color code, a first spread weave code and a first overlap spread code corresponding to the first connection spread code, and a second overlap spread code corresponding to a second representative color code. When the compressed pattern is expanded, the expanded first expanded knitting code and the second knitting code overlapped with the first expanded knitting code can be expanded at the relative position of the first connection expansion code, so that the expansion on the pattern module is realized, the corresponding knitting codes can be expanded in the expanded pattern, the compressed pattern does not need to be changed and the stitches do not need to be arranged, the complexity of drawing the compressed pattern is reduced, and the edition change of a user is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a pattern module-based compressed pattern expansion method according to the present application;
FIG. 2 is a schematic structural view of an embodiment of the module of the present application;
FIG. 3 is a schematic structural view of another pattern module of the present application;
FIG. 4 is a schematic structural diagram of an embodiment of a compression pattern of the present application corresponding to FIG. 2;
FIG. 5 is a schematic structural diagram of an embodiment of a compression pattern of the present application corresponding to FIG. 3;
FIG. 6 is a schematic structural diagram of an expanded pattern of the compressed pattern of FIG. 4 expanded based on the pattern block of FIG. 2;
FIG. 7 is a schematic structural diagram of an expanded pattern of the compressed pattern of FIG. 5 expanded based on the pattern block of FIG. 3;
FIG. 8 is a schematic structural view of an embodiment of the flat knitting machine of the present application;
fig. 9 is a schematic structural diagram of an embodiment of a device with a storage function according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a compressed pattern expanding method based on a pattern module according to the present application. The embodiment comprises the following steps:
s101: and receiving a drawing instruction of a drawing pattern module.
And the flat knitting machine receives an input drawing instruction of the drawing pattern module.
Generally, a flat knitting machine is provided with a pattern preparation system, the pattern preparation system is an important component of a computerized flat knitting machine, patterns are designed by utilizing a visual interface and a machine-loading file is generated, and the computerized flat knitting machine reads the machine-loading file and then converts the machine-loading file into a control file to realize the control of the computerized flat knitting machine.
A user can input an instruction for drawing the pattern module through a visual interface of the pattern preparation system, so that the design of the pattern is realized.
S102: and responding to the drawing instruction to obtain a pattern module. The pattern module comprises a first representative color code, a connection extended code of the first representative color code, a first weaving code corresponding to the first representative color code, an expanded weaving code and a first overlapping extended code corresponding to the connection extended code, and a second representative color code, a second weaving code corresponding to the second representative color code and a second overlapping extended code.
And the flat knitting machine responds to the drawing instruction and automatically generates or generates a corresponding pattern module according to the user operation. Of course, the stored pattern module may be called from the database.
Please refer to fig. 2, fig. 2 is a schematic structural diagram of an integrated module according to the present application. It should be noted that the drawings related to the present application only schematically show the structure of the pattern module, the compression pattern and the expansion pattern, and the representative color codes, the woven codes, the connection spreading codes, the overlap spreading codes and the cyclic codes included in the pattern module, the compression pattern and the expansion pattern are only examples, and it can be understood that the specific color codes used by the representative color codes, the woven codes, the connection spreading codes, the overlap spreading codes and the cyclic codes included in the pattern module, and the number, direction, position and the like thereof can be adjusted according to the actual requirements.
In this embodiment, the
In this embodiment, the representative color code is used to define a knitting code, and the knitting code indicates a specific knitting operation. The knitting code may be combined from at least one knitting action.
In particular, the
The first
According to the direction and the number of spreading of the
The first
The first
The first
In this embodiment, the first
In this embodiment, the representative color code is associated with the position correspondence relationship of the knitting code. In this embodiment, the knitting code is located right above the representative color code. In other embodiments, the relative positions of the knitting codes and the representative color codes may also be other situations, for example, the knitting codes are located below the representative color codes, and the knitting codes are located on the left or right, and the like, and corresponding changes may be made according to actual requirements, which is not limited herein.
In some embodiments, the
In other embodiments, the
In still other embodiments, the
The
In some embodiments, the
Please refer to fig. 3, fig. 3 is a schematic structural diagram of another pattern module according to the present application. In some embodiments, the
S103: receiving an expansion instruction for expanding compression patterns, wherein the compression patterns comprise a first representative color code pattern and a second representative color code pattern which are connected.
The flat knitting machine receives an expansion command for expanding the
The
Referring to fig. 4, fig. 4 is a schematic structural diagram of an embodiment of a compression pattern corresponding to fig. 2 according to the present application. In this embodiment, the
In the present application, the
For example, referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a compression pattern corresponding to fig. 3 in the present application. The
S104: in response to the unfolding instruction, unfolding the first representative color code pattern into a corresponding plurality of first weave codes based on the pattern module. A connection spread code is spread at the junction of the first representative color code pattern and the second representative color code pattern, and the connection spread code is spread into a corresponding spread weave code and a first superposition spread code. The second color code pattern is spread to correspond to the plurality of second weave codes and the second overlap spread codes. The first superposition spread code is covered by a second weave code, and the second superposition spread code is covered by an expanded weave code, to obtain a spread pattern.
The flat knitting machine responds to an expansion instruction for expanding the
Referring to fig. 6, fig. 6 is a schematic structural diagram of an expansion pattern of the compression pattern of the present application based on the pattern module of fig. 2. Specifically, the
When the
It should be noted that, since there is no cyclic color code above the first expanded
In some embodiments, in the pattern module, if the
In other embodiments, in the
Referring to FIG. 7, FIG. 7 is a schematic structural diagram of an expanded pattern of the compressed pattern of FIG. 5 according to the present application based on the pattern module of FIG. 3. The rule for expanding the
In the present embodiment, by drawing the
Referring to fig. 8, fig. 8 is a schematic structural diagram of a flat knitting machine according to the present application. In another embodiment of the present application, a flat knitting machine 80 includes a processor 81, a memory 82, and a human-machine circuit 83, the processor 81 is coupled to the memory 82 and the human-machine circuit 83, the human-machine circuit 83 is used for obtaining human instructions, the memory 82 stores program instructions, and the processor 81 executes the program instructions to implement the method of any of the above embodiments.
Specifically, the human-machine circuit 83 receives a drawing instruction of the drawing pattern module and receives an unfolding instruction for unfolding the pattern. The memory 82 stores drawing instructions and unfolding instructions, and the processor 81 executes the drawing instructions to obtain a pattern module. The pattern module comprises a first representative color code, a connection extended code of the first representative color code, a first weaving code corresponding to the first representative color code, an expanded weaving code and a first overlapping extended code corresponding to the connection extended code, and a second representative color code, a second weaving code corresponding to the second representative color code and a second overlapping extended code. The processor 81 may further execute an unfolding instruction to unfold the first representative color code pattern into a corresponding plurality of first weave codes based on the pattern module. Specifically, a connection spread code is spread at the connection of the first representative color code pattern and the second representative color code pattern, and the connection spread code is spread into a corresponding spread weave code and a first superposition spread code; spreading a second color code pattern to correspond to the plurality of second weave codes and second overlap spread codes; the first superposition spread code is covered by a second weave code, and the second superposition spread code is covered by an expanded weave code, to obtain a spread pattern.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a device with a storage function according to the present application.
Yet another embodiment of the present application provides an apparatus with a storage function, the apparatus with a storage function 90 stores program data 91, and the program data 91 can be executed to implement the method according to any one of the above embodiments. The device 90 with storage function may be a usb-disk, an optical disk, a server, etc.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种特殊孔眼针织物的编织方法