Method for creating self-generating embroidery pattern

Information

  • Patent Grant
  • 5430658
  • Patent Number
    5,430,658
  • Date Filed
    Monday, October 4, 1993
    31 years ago
  • Date Issued
    Tuesday, July 4, 1995
    29 years ago
Abstract
A method for creating a self-generating embroidery design pattern, which may be provided alone or merged with an existing pattern comprising the steps of defining a predetermined fractal shape having an associated axiom and production rules; parsing the axiom and production rules associated with the defined fractal shape and performing the production rules a selectable predetermined number of times for providing a plurality of stitch or outline points in accordance with a desired finished embroidery design pattern size, the stitch points being in either an outline data format or a stitch data format; converting the outline data format into a stitch data format; and translating the stitch data format into a predetermined embroidery language machine code for controlling an associated embroidery machine responsive to the predetermined embroidery language machine code.
Description

FIELD OF THE INVENTION
The present invention relates to the creation of embroidery patterns for controlling embroidery machines and more particularly for creating self-generating embroidery design patterns which can be translated into embroidery machine language code for controlling such embroidery machines.
BACKGROUND OF THE INVENTION
Embroidery machines are generally controlled by programs. Generally, a separate program is required for each embroidery design. There are very few methods available which provide the ability to modify existing embroidery design programs, with such prior art systems, by way of example, consisting of systems which vary the parameters associated with a stitch pattern design in order to control stitching machinery, such as disclosed in U.S. Pat. Nos. 4,326,473; 4,821,662; 4,720,795; 4,352,334; 5,191,536; 4,807,143; 4,849,902. Some of these prior art systems are capable of scaling pattern sizes or making other modifications to existing pattern designs either input by the user or stored in memory. However, none of the prior art systems known to applicants is capable of creating a self-generating embroidery design pattern based on fractal geometry in which the user need only select the desired basic fractal shape, such as the von Koch snowflake, by way of example, and the desired number of repeats, nor such a system in which the self-generated pattern can be readily merged with an existing embroidery design pattern in an outline data format to provide the resultant embroidery machine pattern control codes for the embroidery machine. This is so despite the fact that fractal geometry per se is well known, such as described in Computer Graphics: Principles and Practice, 2nd Ed., at page 1020, and in an article entitled "A Unified Approach to Fractal Curves and Plants", by Dietmar Saupe, at pages 273-286 of The Science of Fractal Images, Springer-Verlage, New York 1988. Moreover, although our prior U.S. Pat. No. 5,270,939, entitled "Method for Modifying Embroidery Design Programs", issued Dec. 14, 1993, naming Brian Jeffrey Goldberg and Anastasios Tsonis as joint inventors thereof, the contents of which are specifically incorporated by reference herein in its entirety, discloses an efficient method for converting stitch data for embroidery design programs into condensed outline data which may be edited, modified and then converted back to stitch data, it does not provide the ability to create self-generating patterns based on fractal geometry which further enhances the flexability and utility of the embroidery machines which are being controlled.





BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is diagrammatic illustration of a flow diagram of the presently preferred method of the present invention;
FIG. 2 and 4-5 are diagrammatic illustrations of an example of a typical fractal shape, such as the von Koch snowflake, usable in accordance with the presently preferred method of the present invention; and
FIG. 3 is a diagrammatic illustration of a typical merged embroidery pattern producible in accordance with the presently preferred method of the present invention.





DETAILED DESCRIPTION OF THE INVENTION
The present invention relates to a method for creating self-generating embroidery design patterns, such as preferably geometric patterns, with a conventional embroidery CAD system, such as PG1, based on the mathematical principle of fractal geometry. Fractal geometry involves sets of points that are generated by relatively simple calculations repeated over and over, feeding the results of each step back into the next. There are many categories of fractals each of which can be manipulated in a virtually infinite number of ways. A good example of a fractal is represented by the von Koch snowflake illustrated in FIG. 2. As noted in Computer Graphics: Principles and Practice, 2nd Ed., at page 1020, in describing a fractal such as shown in FIG. 2, starting with a line segment with a bump on it as shown in FIG. 2, each segment of the line is replaced by a figure exactly like the original line, and the process is repeated. If it is repeated infinitely many times, the result is said to be self-similar. The entire object is similar, i.e., can be translated, rotated, and scaled, to a subportion of itself. In this regard, as illustrated in FIG. 2, 4 and 5 in constructing the von Koch snowflake, each segment in FIG. 2 is replaced by an exact copy of the entire figure, shrunk by a factor of 3, with the same process being applied to generate the figures shown in FIGS. 4 and 5.
In accordance with the presently preferred method, once the coordinates of the fractal shape have been determined, these points are converted to embroidery outline and stitch data. These stitch points may, if desired, be merged with an existing embroidery design to produce a composite pattern, such as illustrated in FIG. 3. All of the resulting stitch points, whether merged or not, are preferably converted to stitch data, with the stitch points preferably being scaled up or down to fit a user defined finished embroidery size, with a user defined stitch length, such as for example 2 mm, preferably being utilized as the maximum stitch length and any line segment longer than that length preferably being broken up into smaller stitches. Preferably, actual conventional embroidery machine language codes are generated for each stitch for use in conventionally controlling the embroidery machine. The design is preferably stored in outline data form for ease of editing, such as described in our aforementioned copending patent application incorporated by reference herein.
FIG. 1 illustrates a presently preferred flow diagram of the method of the present invention. As illustrated in FIG. 1, the user specifies a desired fractal shape, such as by selecting one from memory or by defining a new one. The axiom, which is a first string consisting of only a few characters, and the associated production rules for the defined fractal shape, is then parsed, the rules performed and repeated n user specified times. Thereafter, the stitch points are preferably created in running stitch outline data format, which is one of the outline data formats described in the aforementioned copending patent application. If this is to be merged with an existing embroidery pattern design, such as illustrated in FIG. 3, then these stitch points in outline data format are merged with the stitch points associated with the existing pattern also in outline data format. The resultant pattern, in either instance, is then preferably scaled to a user defined size, and then the running stitch outline data is converted to stitch data. The resultant stitch data is then preferably translated into machine language code depending on the associated embroidery machine to be controlled.
In order to further explain the process of converting the running stitch outline data into stitch data, the following explanation is provided. By way of example, the associated program is written in C and compiled with Borland C++ version 3.1 for MS-DOS systems and may be run on any PC compatible 386 or better machine, such as an 80486DX2 machine running at 66 Mhz. Outline data consists of "segments" or groups of points (cartesian coordinates). Each segment has certain characteristics, including, among others: (a) the type of stitch to be created (eg. Run, Satin, Fill, etc.); and (b) in the case of a Run stitch-type segment, the maximum stitch length. As an example, let's suppose the maximum stitch length has been specified to be 2 millimeters. Each segment is examined in turn ("looped"). The points in the segment are scaled up or down in order to have the entire design (ie. all the segments together) fill a user-defined finished embroidery size. For example, if all the segments together fill a space that is 100 units wide, by 200 units high, but the user has requested that the design be 20 millimeters wide by 40 mm. high, then all the points are scaled accordingly (in this case, divided by 5 in the x and y components). Each outline point in the segment being examined is then looped through. The system then creates stitch data: going from one point in the segment to the next is performed by creating a number of actual stitches, none of which is longer than the maximum specified for the segment (in our example, 2 mm.). If the scaled distance from the first point to the next is, for example, 20 mm, then 10 stitches, each 2 mm long will be created, spaced evenly along the line joining the two outline points. If the distance between the points is not an even multiple of the maximum length, then the system either spaces the stitches evenly throughout the line, with none of the stitches exceeding the defined maximum length, or it creates stitches of the defined length, and then one "leftover" stitch. For example, if the length of the line is 5 mm, and the maximum stitch length is 2 mm, then either 3 stitches of approximately 1.67 mm each are created, or 3 stitches of length 2, 2 and 1 respectively are created. The choice of these two methods is a user-specified option. The resulting stitch data is stored in stitch data format. For it to be used on an embroidery machine, the stitch data is then converted to actual embroidery machine language codes, with the language code used depending on the user's selection. Below, in the following Table, is a typical preferred program listing in C-language which corresponds on the flow chart of FIG. 1 to the functions associated with the steps of creating the running or Run stitch outline data, parsing, and performing the rules. The first function called is lsysmain(). This is called with the user-specified fractal shape ("filename"). This is at the end of this listing. The parsing of the axiom and rules is performed in that function. The "loop" of performing the Rules "n" times is done in makeString(). The creation of a Running Stitch Outline Point is performed by calling doAddPoint(), with the specification of the cartesian coordinates to be created. ##SPC1##
By utilizing the method of the present invention, self-generating embroidery patterns based on fractal geometry designs, may readily be provided either alone or integrated with existing designs, for enhancing the flexability and utility of the embroidery machines which are being controlled. Thus, additional other embodiments of the presently preferred method of the present invention may occur to those of ordinary skill in the art.
Claims
  • 1. A method for creating a self-generating embroidery design pattern comprising the steps of:
  • defining a predetermined fractal shape having an associated axiom and production rules;
  • parsing said axiom and production rules associated with said defined fractal shape and performing said production rules a selectable predetermined number of times for providing a plurality of stitch or outline points in accordance with a desired finished embroidery design pattern size, said stitch points being in either an outline data format or a stitch data format;
  • converting said outline data format into a stitch data format; and translating said stitch data format into a predetermined embroidery language machine code for controlling an associated embroidery machine responsive to said predetermined embroidery language machine code whereby said associated embroidery machine may provide said desired finished embroidery design pattern as a self-generating pattern based on fractal geometry.
  • 2. A method in accordance with claim 1 further comprising the step of scaling said plurality of stitch points from said defined fractal shape in accordance with a finished embroidery size.
  • 3. A method in accordance with claim 2 further comprising the step of storing said outline data format for facilitating editing of said stitch data.
  • 4. A method in accordance with claim 2 further comprising the step of defining a predetermined maximum stitch length, and breaking any line segment in said self-generating embroidery design pattern longer than said maximum stitch length into smaller stitches having a stitch length less than said maximum stitch length.
  • 5. A method in accordance with claim 1 further comprising the step of defining a predetermined maximum stitch length, and breaking any line segment in said self-generating embroidery design pattern longer than said maximum stitch length into smaller stitches having a stitch length less than said maximum stitch length.
  • 6. A method in accordance with claim 1 further comprising the steps of providing an existing embroidery design comprising a plurality of stitch points in an outline data format and merging said stitch points associated with said defined fractal shape in said outline data format with said stitch points associated with said existing embroidery design in said outline data format for creating a composite embroidery design pattern in an outline data format comprising merged stitch points.
  • 7. A method in accordance with claim 6 wherein said converting step further comprises the step of converting said merged stitch points in said outline data format into a composite stitch data format.
  • 8. A method in accordance with claim 1 wherein said parsing step for providing a plurality of stitch points comprises the step of creating said stitch points in a running stitch outline data format.
  • 9. A method in accordance with claim 8 further comprising the step of scaling said plurality of stitch points from said defined fractal shape in accordance with a desired finished embroidery size.
  • 10. A method in accordance with claim 8 further comprising the steps of providing an existing embroidery design comprising a plurality of stitch points in an outline data format and merging said stitch points associated with said defined fractal shape in said outline data format with said stitch points associated with said existing embroidery design in said outline data format for creating a composite embroidery design pattern in an outline data format comprising merged stitch points.
  • 11. A method in accordance with claim 10 wherein said converting step further comprises the step of converting said merged stitch points in said outline data format into a composite stitch data format.
US Referenced Citations (11)
Number Name Date Kind
4149246 Goldman Apr 1979
4227472 Bergvall Oct 1980
4326473 Kigawa Apr 1982
4352334 Childs et al. Oct 1982
4720795 Kinoshita et al. Jan 1988
4807143 Matsuura Feb 1989
4821662 Pongrass et al. Apr 1989
4849902 Yokoe et al. Jul 1989
4919062 Yokoe et al. Apr 1990
5056444 Lowry et al. Oct 1991
5191536 Komuro et al. Mar 1993
Foreign Referenced Citations (6)
Number Date Country
4017177A1 Dec 1990 DEX
4101123A1 Jul 1991 DEX
4104320A1 Aug 1991 DEX
4105089A1 Aug 1991 DEX
4139203A1 Jul 1992 DEX
3-221090 Sep 1991 JPX
Non-Patent Literature Citations (2)
Entry
Computer Graphics: Principles and Practice, 2nd Ed., p. 1020.
The Science of Fractal Images, Springer-Verlage, NY 1988 "A Unified Approach to Fractal Curves and Plants", by Saupe, pp. 273-298.