JP3034750B2 - Pattern generation processing apparatus and pattern generation processing method - Google Patents

Pattern generation processing apparatus and pattern generation processing method

Info

Publication number
JP3034750B2
JP3034750B2 JP6013909A JP1390994A JP3034750B2 JP 3034750 B2 JP3034750 B2 JP 3034750B2 JP 6013909 A JP6013909 A JP 6013909A JP 1390994 A JP1390994 A JP 1390994A JP 3034750 B2 JP3034750 B2 JP 3034750B2
Authority
JP
Japan
Prior art keywords
rectangle
coordinate value
value
remainder
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP6013909A
Other languages
Japanese (ja)
Other versions
JPH07220096A (en
Inventor
秋彦 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP6013909A priority Critical patent/JP3034750B2/en
Publication of JPH07220096A publication Critical patent/JPH07220096A/en
Application granted granted Critical
Publication of JP3034750B2 publication Critical patent/JP3034750B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は,例えばタイルを並べる
ように,規則的に連続して並べることを目的とした長方
形内の模様を生成する模様生成処理装置および模様生成
処理方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern generation processing apparatus and a pattern generation processing method for generating a pattern in a rectangle for the purpose of arranging tiles in a regular and continuous manner. .

【0002】例えばタイルのように規則的に並べる長方
形の模様は,並べたときに隣接する部分で模様が連続的
につながっていることが望ましく,その模様を簡単に自
動的に生成する技術が必要とされる。
For example, in the case of a rectangular pattern such as a tile which is regularly arranged, it is desirable that the pattern is continuously connected at adjacent portions when arranged, and a technique for automatically generating the pattern automatically is required. It is said.

【0003】[0003]

【従来の技術】タイルなどの工業製品においては模様を
つけることが製品の価値を高める上で重要である。とこ
ろで,タイルを並べたときに,隣接する部分において模
様が連続につながれていれば,見る人にタイル1個1個
を意識させないので,全体に渡って滑らかな模様と見る
ことができ美観を増すことになる。例えば,図7に示す
ような模様の長方形をそのまま複数個並べた場合,図8
に示すように各長方形の境界部で模様の断点が生じ,隣
合う長方形間で連続性が保てないため,タイル1個1個
が目立つことになり,美観が損なわれる。
2. Description of the Related Art In industrial products such as tiles, it is important to provide a pattern in order to enhance the value of the product. By the way, when tiles are arranged, if the patterns are connected continuously in adjacent parts, the viewer will not be aware of each tile, so it can be seen as a smooth pattern over the whole and the aesthetic appearance will increase. Will be. For example, when a plurality of rectangles having the pattern shown in FIG.
As shown in (1), a break in the pattern occurs at the boundary of each rectangle, and continuity cannot be maintained between adjacent rectangles, so that each tile becomes conspicuous and the aesthetic appearance is impaired.

【0004】模様の連続性を実現する従来の方法とし
て,単純な形状(円や直線)の組合せを用いて隣合う部
分で連続になる条件を幾何学的に求める方法や,目視で
連続に見えるように人間が手書きで模様を修正していく
方法が用いられていた。
[0004] As a conventional method for realizing pattern continuity, a method of geometrically obtaining a condition of continuity between adjacent parts using a combination of simple shapes (circles and straight lines), or a method of visually observing continuity. In this way, a method in which humans modify patterns by handwriting has been used.

【0005】[0005]

【発明が解決しようとする課題】しかし,単純な形状
(円や直線)の組合せを用いて隣合う部分で連続になる
条件を幾何学的に求める方法では,単純な数式では処理
できない複雑で不規則な形状の模様を作成するのが容易
ではなかった。また,目視で連続に見えるように人間が
手書きで模様を修正していく方法では,近似的に連続で
あるだけで正確に連続してつながる模様を生成するのが
容易ではなく,作成できたとしてもたいへんな労力と時
間を要するという問題があった。
However, in a method of geometrically determining a condition of continuity between adjacent parts by using a combination of simple shapes (circles and straight lines), a complicated and inexpensive method cannot be processed by a simple mathematical expression. It was not easy to create a pattern with a regular shape. In addition, in the method in which humans manually modify a pattern so that it looks visually continuous, it is not easy to generate a pattern that is continuously continuous and accurate only if it is approximately continuous. There was a problem that it required a lot of labor and time.

【0006】しかも,これら従来の手法は,図9(A)
に示すような長方形を格子状に並べる配列にしか対応し
ておらず,図9(B)に示すような長方形を左右(横方
向)にずらして並べる配列または図9(C)に示すよう
な長方形を上下(縦方向)にずらして並べる配列におけ
る模様の連続性は考慮されていなかった。
[0006] Moreover, these conventional techniques are described in FIG.
9B corresponds only to an arrangement in which rectangles are arranged in a grid pattern as shown in FIG. 9B. An arrangement in which rectangles as shown in FIG. 9B are shifted left and right (horizontally) or as shown in FIG. The continuity of the pattern in the arrangement in which the rectangles are shifted vertically (vertically) is not considered.

【0007】本発明は上記の問題点の解決を図り,長方
形内に模様を生成する方式において,長方形を格子状に
あるいは左右または上下にずらして並べたときに,上下
左右の隣合う長方形の境界において模様が連続してつな
がるように長方形内に任意の複雑な模様を生成できるよ
うにすることを目的とする。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned problems, and in a method of generating a pattern in a rectangle, when the rectangles are arranged in a grid pattern or shifted left and right or up and down, boundaries between adjacent rectangles at the top, bottom, left and right are arranged. It is an object of the present invention to be able to generate an arbitrarily complicated pattern in a rectangle so that the pattern is continuously connected.

【0008】[0008]

【課題を解決するための手段】本発明は,上記の課題を
解決するため,図1の本発明の構成例に示すように,模
様発生手段1などから与えられた模様における出力しよ
うとする点のx座標値またはy座標値が予め設定された
長方形の横幅または縦幅に含まれるか否かの判定を行う
座標の内外判定手段2と,出力しようとする点のx座標
値またはy座標値が予め設定された長方形の横幅または
縦幅に含まれない場合に,出力しようとする点のy座標
値またはx座標値に予め設定された定数を加減算する定
数加減算手段3と,出力しようとする点のx座標値を長
方形のx方向の幅で除算した剰余値を算出する第1の剰
余算出手段4aと,出力しようとする点のy座標値を長
方形のy方向の幅で除算した剰余値を算出する第2の剰
余算出手段4bと,これら第1の剰余算出手段および第
2の剰余算出手段による算出値を新たな座標値として,
出力しようとする点の模様の値を長方形内に出力する書
き込み手段5とを備えることにより,長方形内に任意の
複雑な模様を自動生成する。
According to the present invention, in order to solve the above-mentioned problems, as shown in the configuration example of the present invention in FIG. Means 2 for judging whether or not the x-coordinate value or y-coordinate value is included in the width or height of a preset rectangle, and the x-coordinate value or y-coordinate value of a point to be output Is not included in the preset horizontal or vertical width of the rectangle, a constant adding / subtracting unit 3 for adding / subtracting a preset constant to / from the y-coordinate value or the x-coordinate value of the point to be output, and to output First remainder calculating means 4a for calculating a residue value obtained by dividing the x coordinate value of the point by the width of the rectangle in the x direction, and a residue value obtained by dividing the y coordinate value of the point to be output by the width of the rectangle in the y direction Second remainder calculating means 4b for calculating The calculated value of these first remainder calculating means and the second remainder calculating means as a new coordinate values,
By providing the writing means 5 for outputting the value of the pattern of the point to be output in the rectangle, an arbitrary complicated pattern is automatically generated in the rectangle.

【0009】[0009]

【作用】本発明では,適当に発生または入力した模様で
あって対象となる長方形に依存しない模様から得られる
点のx座標値,y座標値のうち,一方についてまず長方
形が並べられるときの横列または縦列のずれを考慮し
て,所定値の加減算を行い,次にそれぞれ正の符号をと
る座標値の剰余を算出することにより,長方形外の点に
より構成される模様部分の点列を長方形内の点に変換し
て,模様を生成する長方形内の領域に書き込む。これに
より,長方形を格子状にもしくは左右または上下にずら
して並べたときに,四辺の境界で連続してつながるよう
な任意の模様を生成することが可能となる。
According to the present invention, a row when a rectangle is first arranged with respect to one of the x-coordinate value and the y-coordinate value of a point which is an appropriately generated or inputted pattern and which is obtained from a pattern independent of a target rectangle. Alternatively, by adding and subtracting a predetermined value in consideration of column displacement, and calculating the remainder of coordinate values each having a positive sign, the point sequence of the pattern portion composed of points outside the rectangle is set in the rectangle. And writes it in the area within the rectangle where the pattern is generated. As a result, when the rectangles are arranged in a grid or shifted left and right or up and down, it is possible to generate an arbitrary pattern that is continuously connected at the boundaries of the four sides.

【0010】[0010]

【実施例】図2は本発明の実施例の構成を示す図であ
る。図2において,21は模様発生器,22,25は内
外判定器,23,26は定数加減算器,24,27は剰
余算出器,28は書き込み器を表す。
FIG. 2 is a diagram showing the configuration of an embodiment of the present invention. In FIG. 2, reference numeral 21 denotes a pattern generator, reference numerals 22 and 25 denote inside / outside determination units, reference numerals 23 and 26 denote constant addition / subtraction units, reference numerals 24 and 27 denote remainder calculators, and reference numeral 28 denotes a writing unit.

【0011】模様発生器21は,対象とする長方形に依
存しない任意の模様を発生し,書き込む値vと書き込み
位置のx座標値,y座標値を逐次出力する。内外判定器
22は,模様発生器21から出力されたx座標値が,そ
の値が予め設定された長方形の横幅(x方向の幅)内に
あるかどうかの内外判定を行い,定数加減算器23へ加
算,減算,無動作の指示情報を送出する。
The pattern generator 21 generates an arbitrary pattern independent of a target rectangle, and sequentially outputs a write value v and x and y coordinate values of a write position. The inside / outside determiner 22 determines whether the x-coordinate value output from the pattern generator 21 is within a predetermined rectangular width (width in the x-direction) or not, and a constant adder / subtracter 23. To send instruction information for addition, subtraction, and no operation.

【0012】定数加減算器23は,内外判定器22から
の指示情報に従い,y座標値に予め設定した定数ky
加減算し,その値を剰余算出器24へ送出する。剰余算
出器24は,定数加減算器23からの値を長方形の縦幅
(y方向の幅)で除算し正の符号を取るように剰余を求
め,その値を出力する。なお,ここで剰余が正の符号を
取るとは,被除数が−14,除数が10の時,商が−
2,剰余が6となるような動作を指す。
[0012] constant subtracter 23 in accordance with instruction information from the outside judgment unit 22, by adding or subtracting the constant k y set in advance in the y-coordinate values, and sends the value to the remainder calculator 24. The remainder calculator 24 divides the value from the constant adder / subtractor 23 by the height of the rectangle (width in the y direction) to obtain a remainder so as to take a positive sign, and outputs the value. Note that the remainder has a positive sign when the dividend is −14 and the divisor is 10, and the quotient is −
2 indicates an operation in which the remainder is 6.

【0013】内外判定器25は,模様発生器21から出
力されたy座標値が,その値が予め設定された長方形の
縦幅(y方向の幅)内にあるかどうかの内外判定を行
い,定数加減算器26へ加算,減算,無動作の指示情報
を送出する。
An inside / outside determiner 25 determines whether the y-coordinate value output from the pattern generator 21 is within a preset vertical width (width in the y-direction) of the rectangle. The addition / subtraction / non-operation instruction information is sent to the constant adder / subtractor 26.

【0014】定数加減算器26は,内外判定器25から
の指示情報に従い,x座標値に予め設定した定数kx
加減算し,その値を剰余算出器27へ送出する。剰余算
出器27は,定数加減算器26からの値を長方形の横幅
(x方向の幅)で除算し正の符号を取る様に剰余を求
め,その値を出力する。
The constant adder / subtractor 26 adds / subtracts a preset constant k x to / from the x-coordinate value in accordance with the instruction information from the inside / outside determiner 25, and sends the value to the remainder calculator 27. The remainder calculator 27 divides the value from the constant adder / subtracter 26 by the width of the rectangle (the width in the x direction) to obtain a remainder so as to take a positive sign, and outputs the value.

【0015】書き込み器28は,2組の剰余算出器2
4,27の出力した値をそれぞれx’,y’とし,その
x’座標値とy’座標値とで定まる長方形内の領域に書
き込みデータを格納する。この書き込み器28は計算機
内のメモリ,表示用の画像メモリばかりでなく,プロッ
タやNCマシン等の工作機械であってもよい。
The writer 28 comprises two sets of remainder calculators 2
The output values of 4, 27 are x 'and y', respectively, and the write data is stored in an area within a rectangle defined by the x 'and y' coordinate values. The writer 28 may be not only a memory in a computer and an image memory for display but also a machine tool such as a plotter or an NC machine.

【0016】図3は,本発明の実施例による処理フロー
チャートである。まず,初期設定のステップS0では,
定数加減算器23および定数加減算器26に,定数ky
および定数kx を設定する。長方形の列が縦方向にずれ
るか横方向にずれるかによって,定数ky または定数k
x のいずれかは0である。
FIG. 3 is a processing flowchart according to the embodiment of the present invention. First, in step S0 of the initial setting,
A constant k y is supplied to the constant adder / subtractor 23 and the constant adder / subtractor 26.
And a constant k x are set. Depending rectangular column is shifted to either lateral shift in the vertical direction, the constant k y or constant k
Any of x is 0.

【0017】ステップS1では,模様発生器21により
任意に定められた模様の点列における書き込む値vと,
その書き込み位置のx座標値,y座標値を逐次出力す
る。ステップS2では,内外判定器22により,x座標
値が予め設定された長方形の横幅(x方向の幅)に含ま
れるかどうかを判定し,判定結果により,定数減算,無
動作,または定数加算の指示情報を定数加減算器23へ
送出する。そして,定数加減算器23により,内外判定
器22の指示情報に基づいてy座標値に予め設定した定
数ky の加減算を行い,その値を剰余算出器24へ出力
する。
In step S1, a value v to be written in a pattern point sequence arbitrarily determined by the pattern generator 21 is defined as:
The x-coordinate value and the y-coordinate value of the writing position are sequentially output. In step S2, the inside / outside determination unit 22 determines whether or not the x coordinate value is included in a predetermined width of the rectangle (width in the x direction), and based on the determination result, determines whether constant subtraction, no operation, or constant addition is performed. The instruction information is sent to the constant adder / subtractor 23. Then, the constant subtracter 23 performs subtraction of the constant k y set in advance in the y-coordinate value based on the instruction information outside judgment unit 22, and outputs the value to the remainder calculator 24.

【0018】ステップS3では,剰余算出器24によ
り,定数加減算器23から入力された値を長方形の縦幅
で除算し,剰余が正の値を取るような剰余値y’を求め
て出力する。
In step S3, the remainder calculator 24 divides the value input from the constant adder / subtractor 23 by the vertical width of the rectangle to obtain and output a remainder value y 'such that the remainder takes a positive value.

【0019】ステップS4では,内外判定器25によ
り,y座標値が予め設定された長方形の縦幅(y方向の
幅)に含まれるかどうかを判定し,判定結果により,定
数減算,無動作,または定数加算の指示情報を定数加減
算器26へ送出する。そして,定数加減算器26によ
り,内外判定器25の指示情報に基づいてx座標値に予
め設定した定数kx の加減算を行い,その値を剰余算出
器27へ出力する。
In step S4, the inside / outside determination unit 25 determines whether or not the y coordinate value is included in a preset vertical width (width in the y direction). Based on the determination result, constant subtraction, no operation, Alternatively, the instruction information of the constant addition is sent to the constant adder / subtractor 26. Then, the constant subtracter 26 performs subtraction of the constant k x which is previously set in the x-coordinate value based on the instruction information outside judgment unit 25, and outputs the value to the remainder calculator 27.

【0020】ステップS5では,剰余算出器27によ
り,定数加減算器26から入力された値を長方形の横幅
で除算し,剰余が正の値を取るような剰余値x’を求め
て出力する。
In step S5, the remainder calculator 27 divides the value input from the constant adder / subtractor 26 by the width of the rectangle, and calculates and outputs a remainder value x 'such that the remainder takes a positive value.

【0021】なお,ステップS2〜S3の処理と,ステ
ップS4〜S5の処理とは,任意の順序でシリアルに実
行しても,また同時に並列に実行してもよい。ステップ
S6では,書き込み器28により,2組の定数加減算器
24,27からの値x’,y’を新たなx’座標,y’
座標とし,長方形におけるx’座標,y’座標の書き込
み位置に,模様発生器21から与えられた値vを書き込
む。
The processing of steps S2 to S3 and the processing of steps S4 to S5 may be executed serially in an arbitrary order or may be executed in parallel at the same time. In step S6, the values x 'and y' from the two pairs of constant adders / subtractors 24 and 27 are converted into new x 'coordinates and y' by the writer 28.
As a coordinate, a value v given from the pattern generator 21 is written at a writing position of the x 'coordinate and the y' coordinate in the rectangle.

【0022】以上のステップS1〜S6を,模様発生器
21が全点列を出力し終えるまで繰り返し,出力し終え
たならば処理を終了する。以上の処理は,汎用のコンピ
ュータまたは専用のハードウェアのいずれによっても実
現可能であることは言うまでもない。
The above steps S1 to S6 are repeated until the pattern generator 21 finishes outputting the entire sequence of points, and when the output is completed, the process is terminated. Needless to say, the above processing can be realized by either a general-purpose computer or dedicated hardware.

【0023】次に,本発明の実施例の具体的な作用を,
図9(B)に示すように長方形を左右(横方向)にずら
して並べた配列で,円の模様が連続となるように模様を
生成する場合を例にして説明する。
Next, the specific operation of the embodiment of the present invention will be described.
As shown in FIG. 9B, an example will be described in which a rectangular pattern is generated so as to be continuous in a circular pattern in an array in which rectangles are shifted left and right (horizontally).

【0024】図4は模様発生器21が発生する円の模様
の例を示す。図中の41は模様発生器21が発生する円
の軌跡,42はx座標がx1からx2,y座標がy1か
らy2の領域である書き込み対象の長方形を表す。
FIG. 4 shows an example of a circle pattern generated by the pattern generator 21. In the drawing, reference numeral 41 denotes a locus of a circle generated by the pattern generator 21, and reference numeral 42 denotes a rectangle to be written in which the x coordinate is an area from x1 to x2 and the y coordinate is from y1 to y2.

【0025】ここでは,上下の列の長方形の並びが横幅
の2分の1だけずれているので,定数加減算器26には
設定した長方形42の横幅の半分の長さ,すなわち(x
2−x1)/2を定数kx として設定し,定数加減算器
23には定数ky として0を設定する。
In this case, since the arrangement of the rectangles in the upper and lower rows is shifted by a half of the width, the constant adder / subtracter 26 has half the width of the set rectangle 42, that is, (x
The 2-x1) / 2 is set as a constant k x, is constant subtracter 23 sets 0 as the constant k y.

【0026】模様発生器21は,模様を構成する円の軌
跡41の円周上にある点列のx,y座標値を順序生成す
る。明らかにこの円の軌跡41は書き込み先の長方形4
2の領域からはみだしている。内外判定器22は模様発
生器21の発生する点のx座標値が長方形の横幅内に含
まれるかどうかを判定し,x座標値がx1より小さけれ
ば定数加減算器23に減算を指令し,x1より大きくx
2より小さければ無動作(加減算動作の停止)を指令
し,x2より大きければ加算を指令する。ここで図4に
示した円周上の点P1〜P4のうち,P2のx座標値は
長方形42の横幅外にあるので定数加減算器23に加算
指令が送られ,残り3点P1,P3,P4には無動作指
令が送られる。
The pattern generator 21 sequentially generates x, y coordinate values of a sequence of points on the circumference of a locus 41 of a circle constituting the pattern. Clearly, the locus 41 of this circle is
It protrudes from the second area. The inside / outside determiner 22 determines whether or not the x coordinate value of the point generated by the pattern generator 21 is included in the width of the rectangle. If the x coordinate value is smaller than x1, it instructs the constant adder / subtractor 23 to subtract. Greater than x
If smaller than 2, no operation (stop of addition / subtraction operation) is commanded, and if larger than x2, addition is commanded. Here, among the points P1 to P4 on the circumference shown in FIG. 4, since the x coordinate value of P2 is outside the width of the rectangle 42, an addition command is sent to the constant adder / subtractor 23, and the remaining three points P1, P3, A non-operation command is sent to P4.

【0027】定数加減算器23は内外判定器22の指令
に基づいてy座標値に定数ky の加減算を行い剰余算出
器24に出力する。従って,P2のy座標値には定数k
y の加算が行われるが,設定された定数ky は0である
ので値は変化しない。
The constant subtracter 23 outputs the remainder calculator 24 performs the subtraction of the constant k y in the y-coordinate value based on a command outside judgment unit 22. Therefore, the constant k is used for the y coordinate value of P2.
Although the addition of y is performed, the value does not change the setting constants k y is 0.

【0028】剰余算出器24は入力された値を長方形4
2の縦幅,すなわちy2−y1の値で除算し,剰余値が
正の値を取るような剰余値y’を求めて出力する。ここ
でP3とP4のy座標値は長方形42の縦幅外にあるの
で剰余をとられると長方形42内に位置する新たなy’
座標値に変換される。P2とP1のy座標値は長方形4
2の縦幅内にあるので剰余をとられても変化せずに,y
座標値がそのままy’座標値となる。
The remainder calculator 24 converts the input value into a rectangle 4
The result is divided by the vertical width of 2, ie, the value of y2−y1, to obtain and output a remainder value y ′ such that the remainder value takes a positive value. Here, since the y-coordinate values of P3 and P4 are outside the vertical width of the rectangle 42, if the remainder is taken, a new y 'located in the rectangle 42 is obtained.
Converted to coordinate values. The y coordinate value of P2 and P1 is rectangle 4.
Since it is within the vertical width of 2, even if the remainder is taken, it does not change and y
The coordinate value becomes the y 'coordinate value as it is.

【0029】内外判定器25は模様発生器21の発生す
る点のy座標値が長方形42の縦幅内に含まれるかどう
かを判定し,y座標値がy1より小さければ定数加減算
器26に減算を指令し,y1より大きくy2より小さけ
れば無動作(加減算動作の停止)を指令し,y2より大
きければ加算を指令する。ここで点P3とP4のy座標
値は長方形42の縦幅外にあるので定数加減算器26に
は加算指令が送られ,領域内にあるP1とP2には無動
作指令が送られる。
The inside / outside determiner 25 determines whether or not the y-coordinate value of the point generated by the pattern generator 21 is included in the vertical width of the rectangle 42, and if the y-coordinate value is smaller than y1, subtracts it into the constant adder / subtractor 26. Is commanded, and if less than y2, no operation (stop of addition / subtraction operation) is commanded, and if it is larger than y2, addition is commanded. Here, since the y-coordinate values of the points P3 and P4 are outside the vertical width of the rectangle 42, an addition command is sent to the constant adder / subtractor 26, and a non-operation command is sent to P1 and P2 in the area.

【0030】定数加減算器26は内外判定器25の指令
に基づいてx座標値に定数kx の加減算を行い剰余算出
器27に出力する。従って,P3とP4のx座標値には
定数加減算器26は長方形42の横幅の半分の長さを加
算する。
The constant adder / subtractor 26 adds or subtracts a constant k x to or from the x-coordinate value based on a command from the inside / outside determiner 25, and outputs the result to the remainder calculator 27. Therefore, the constant adder / subtractor 26 adds half the width of the rectangle 42 to the x coordinate values of P3 and P4.

【0031】剰余算出器27は入力された値を長方形4
2の横幅,すなわちx2−x1の値で除算し,剰余値が
正の値を取るような剰余を求めて出力する。x座標値が
長方形42の横幅外にあるP2および定数加算後のx座
標値が長方形42の横幅外となったP3のx座標値は,
剰余をとられると長方形42の横幅内に位置する新たな
x’座標値に変換される。P1と定数加算後のP4のx
座標値は長方形42の横幅内にあるので剰余をとられて
も変化せずに,x座標値がそのままx’座標値となる。
The remainder calculator 27 converts the input value into a rectangle 4
2 is divided by the width of x2, that is, the value of x2-x1, and a remainder is obtained and output such that the remainder takes a positive value. The x-coordinate value of P2 whose x-coordinate value is outside the width of the rectangle 42 and the x-coordinate value of P3 whose x-coordinate value after addition of the constant is outside the width of the rectangle 42 are:
When the remainder is taken, it is converted to a new x 'coordinate value located within the width of the rectangle 42. X of P4 after adding P1 and constant
Since the coordinate value is within the width of the rectangle 42, the x coordinate value does not change even if the remainder is taken, and the x coordinate value becomes the x 'coordinate value as it is.

【0032】以上の処理によって得られるx’座標,
y’座標からなる点の位置は,すべて長方形42の領域
内に変換されるので,書き込み器28により出力された
P1,P2,P3,P4の点は,それぞれ図5に示すP
1′,P2’,P3′,P4′の位置となる。この他の
円周上の全点についても同様の書き込みにより,図5に
示すような軌跡に変換される。
The x 'coordinate obtained by the above processing,
Since the positions of the points composed of the y 'coordinates are all converted into the area of the rectangle 42, the points P1, P2, P3, and P4 output by the writer 28 are respectively represented by the points P shown in FIG.
1 ', P2', P3 ', P4'. All other points on the circumference are converted into trajectories as shown in FIG. 5 by similar writing.

【0033】この図5に示す模様が描かれた長方形42
を横方向にずらした配列に並べた結果を図6に示す。こ
のように長方形42の上下左右全ての隣合う境界におい
て模様発生器21の発生した模様は途切れることなく連
続的につながっていることがわかる。
A rectangle 42 on which the pattern shown in FIG. 5 is drawn
Are arranged in an array shifted in the horizontal direction, as shown in FIG. As described above, it can be seen that the patterns generated by the pattern generator 21 are continuously connected without interruption at all the upper, lower, left, and right adjacent boundaries of the rectangle 42.

【0034】以上のように,本発明の模様生成処理装置
で処理されたx’座標,y’座標は,各々長方形42の
縦または横の長さの剰余であるので,模様発生器21の
生成する座標値によらず,剰余算出器24,27からの
出力座標x’,y’は長方形42内にある。また,長方
形の左右両端および上下両端は,剰余をとる前には連続
した部分であるので必ず連続してつながる。したがっ
て,この長方形を並べると図6に示すように模様発生器
21の生成した円は欠けることなく,しかも,長方形の
上下左右の境界で連続的につながる模様を形成する。
As described above, the x 'coordinate and the y' coordinate processed by the pattern generation processing device of the present invention are the remainders of the vertical or horizontal length of the rectangle 42, respectively. Regardless of the coordinate value, the output coordinates x ′, y ′ from the remainder calculators 24 and 27 are within the rectangle 42. Also, the left and right ends and the upper and lower ends of the rectangle are continuous parts before taking the remainder, so they are always connected. Therefore, when the rectangles are arranged, the circles generated by the pattern generator 21 are not chipped as shown in FIG. 6, and a pattern is formed that is continuously connected at the upper, lower, left, and right boundaries of the rectangle.

【0035】一方,本発明の方式を使わないで,模様発
生器の出力するデータを直接書き込み器に入力したとす
ると,長方形外に指定した座標の点を書き込み器は取り
扱えないので,図7に示す模様が長方形71内に生成さ
れる。この長方形71を横方向にずらして並べたとする
と,図8に示すように円の模様は途切れてしまい,しか
も模様の途切れる部分が必ず長方形の境界にあるので,
隣合う長方形間で模様の連続性が保てず,見る人に長方
形の境界を意識させてしまうことになる。
On the other hand, if the data output from the pattern generator is directly input to the writer without using the method of the present invention, the writer cannot handle the point of the coordinates specified outside the rectangle. The pattern shown is generated within the rectangle 71. If the rectangles 71 are shifted in the horizontal direction, the circular pattern is interrupted as shown in FIG. 8, and the interrupted portion of the pattern is always located at the boundary of the rectangle.
The continuity of the pattern between the adjacent rectangles cannot be maintained, and the viewer is conscious of the boundaries of the rectangles.

【0036】実施例として,長方形を左右(横方向)に
ずらして並べる配列の場合に,円周上の点列による連続
する模様を生成する例を説明したが,定数加減算器23
に定数ky として長方形の縦幅の半分の長さ,すなわち
(y2−y1)/2を設定し,定数加減算器26に定数
x として0を設定することにより,図9(C)に示す
ような上下(縦方向)にずらして並べる配列に対して連
続する模様を発生することも可能である。また,定数加
減算器23,26に任意の長さを定数として設定するこ
とにより,半分の長さに限らず,設定した長さだけずら
して長方形を並べた配列に対して連続する模様を発生す
ることも可能である。
As an embodiment, an example has been described in which a continuous pattern is generated by a sequence of points on the circumference in the case of an array in which rectangles are shifted left and right (horizontally).
Half the length of the vertical width of the rectangle as a constant k y, i.e. to set the (y2-y1) / 2, by setting 0 as a constant k x the constant subtracter 26, shown in FIG. 9 (C) It is also possible to generate a continuous pattern for such an arrangement that is shifted vertically (vertically). In addition, by setting an arbitrary length as a constant in the constant adders / subtractors 23 and 26, a continuous pattern is generated not only in half the length but also in an array in which rectangles are shifted by the set length. It is also possible.

【0037】さらに,定数加減算器23,26の定数を
各々0と設定することにより,図9(A)に示すような
格子状の配列のときに連続する模様を生成することも可
能である。
Further, by setting the constants of the constant adder / subtracters 23 and 26 to 0, it is possible to generate a continuous pattern in a lattice arrangement as shown in FIG. 9A.

【0038】本発明の装置において,座標を変換する手
段が模様発生器と独立しているので,模様発生器21と
して,ある図形の軌跡の点列を出力する模様発生器だけ
でなく,任意の複雑な模様の発生器,手書きの模様入力
装置,例えばイメージデータとして与えられる模様の領
域を背景部分を含めて走査して発生させる模様発生器で
もよい。
In the apparatus according to the present invention, since the means for converting coordinates is independent of the pattern generator, the pattern generator 21 is not limited to a pattern generator for outputting a point sequence of a trajectory of a certain figure, but may be any arbitrary pattern generator. A complex pattern generator or a handwritten pattern input device, for example, a pattern generator that generates a pattern area given as image data by scanning it including a background portion may be used.

【0039】[0039]

【発明の効果】以上説明したように,本発明によれば,
長方形を格子状にまたは左右もしくは上下にずらして並
べたときに,隣合う長方形の上下左右の境界で模様が連
続してつながる任意の複雑な模様を長方形内に生成する
ことができる。特に,本装置の動作は模様発生器が発生
する模様に依存しないので,単純な数式では表現できな
い複雑な模様,または人間の手書き入力による模様であ
っても動作可能な点で従来技術に勝る。
As described above, according to the present invention,
When the rectangles are arranged in a grid or shifted left and right or up and down, an arbitrary complicated pattern in which the patterns are continuously connected at the upper, lower, left and right boundaries of adjacent rectangles can be generated in the rectangle. In particular, since the operation of the present apparatus does not depend on the pattern generated by the pattern generator, it is superior to the prior art in that it can operate even a complicated pattern that cannot be expressed by a simple mathematical expression or a pattern that is input by human handwriting.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の構成例を示す図である。FIG. 1 is a diagram showing a configuration example of the present invention.

【図2】本発明の実施例の構成を示す図である。FIG. 2 is a diagram showing a configuration of an example of the present invention.

【図3】本発明の実施例による処理フローチャートであ
る。
FIG. 3 is a processing flowchart according to an embodiment of the present invention.

【図4】実施例において模様発生器の生成する模様の例
を示す図である。
FIG. 4 is a diagram showing an example of a pattern generated by a pattern generator in the embodiment.

【図5】実施例において書き込み器に格納された模様の
例を示す図である。
FIG. 5 is a diagram showing an example of a pattern stored in a writer in the embodiment.

【図6】図5の模様を表した長方形を並べた例を示す図
である。
FIG. 6 is a diagram showing an example in which rectangles representing the pattern of FIG. 5 are arranged.

【図7】書き込み器に格納された従来の方法による模様
の例を示す図である。
FIG. 7 is a diagram illustrating an example of a pattern stored in a writer according to a conventional method.

【図8】図7の模様を表した長方形を並べた例を示す図
である。
FIG. 8 is a diagram showing an example in which rectangles representing the pattern of FIG. 7 are arranged.

【図9】長方形の配列方法の例を示す図である。FIG. 9 is a diagram showing an example of a rectangular arrangement method.

【符号の簡単な説明】[Brief description of reference numerals]

1 模様発生手段 2 内外判定手段 3 定数加減算手段 4a,4b 剰余算出手段 5 書き込み手段 DESCRIPTION OF SYMBOLS 1 Pattern generation means 2 Inside / outside determination means 3 Constant addition / subtraction means 4a, 4b Surplus calculation means 5 Writing means

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 11/00 - 11/80 G06F 17/50 G03F 1/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int. Cl. 7 , DB name) G06T 11/00-11/80 G06F 17/50 G03F 1/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 与えられた基本となる模様をもとに,連
続的に並べて配置される長方形であって,長方形の列が
隣合う列同士で一定量ずれて配置される長方形に付与す
る模様を生成する模様生成処理装置であって,与えられ
た模様における出力しようとする点のx座標値またはy
座標値が予め設定された長方形の横幅または縦幅に含ま
れるか否かの判定を行う座標の内外判定手段と,前記出
力しようとする点のx座標値またはy座標値が予め設定
された長方形の横幅または縦幅に含まれない場合に,出
力しようとする点のy座標値またはx座標値に予め設定
された定数を加減算する定数加減算手段と,出力しよう
とする点のx座標値を長方形のx方向の幅で除算した剰
余値を算出する第1の剰余算出手段と,出力しようとす
る点のy座標値を長方形のy方向の幅で除算した剰余値
を算出する第2の剰余算出手段と,前記第1の剰余算出
手段および前記第2の剰余算出手段による算出値を新た
な座標値として,出力しようとする点の模様の値を長方
形内に出力する書き込み手段とを備えたことを特徴とす
る模様生成処理装置。
1. A pattern to be applied to a rectangle that is continuously arranged and arranged based on a given basic pattern, wherein the rectangles are arranged with a certain amount of displacement between adjacent columns. A x-coordinate value or y of a point to be output in a given pattern
A coordinate inside / outside determination means for determining whether or not the coordinate value is included in a predetermined width or height of the rectangle, and a rectangle in which the x-coordinate value or y-coordinate value of the point to be output is set in advance Constant adding / subtracting means for adding / subtracting a preset constant to / from the y-coordinate value or x-coordinate value of the point to be output when the width is not included in the horizontal or vertical width of the rectangle; First residue calculating means for calculating a residue value divided by the width in the x direction, and second residue calculation for calculating a residue value obtained by dividing the y coordinate value of the point to be output by the width in the y direction of the rectangle. Means, and writing means for outputting, as a new coordinate value, the value of the pattern of the point to be output in a rectangle, using the values calculated by the first remainder calculating means and the second remainder calculating means. Pattern generation processing device characterized by the following: .
【請求項2】 与えられた基本となる模様をもとに,連
続的に並べて配置される長方形であって,長方形の列が
隣合う列同士で一定量ずれて配置される長方形に付与す
る模様を生成する模様生成処理方法であって,指定した
点のx座標値またはy座標値が予め設定した長方形の横
幅または縦幅に含まれるか否かの判定を行う座標の内外
判定手段と,予め設定された定数の加減算を行う定数加
減算手段と,剰余が正の符号をとる第1および第2の剰
余算出手段を用い,前記長方形の隣合う列がx方向にず
れて並べられる場合には,出力しようとする点のy座標
値を前記内外判定手段に入力してy座標値が長方形の縦
幅内に含まれるか否かを判定し,前記定数加減算手段は
前記内外判定手段の指令に基づいてx座標値に予め設定
された定数を加減算して前記第1の剰余算出手段に出力
し,その第1の剰余算出手段は入力値を長方形のx方向
の幅で除算した剰余値を算出してこれを新たなx座標値
とし,前記第2の剰余算出手段は,出力しようとする点
のy座標値を入力しその入力値を長方形のy方向の幅で
除算した剰余値を算出してこれを新たなy座標値とし,
前記第1および第2の剰余算出手段が算出した座標値を
用いて模様の値を長方形内に出力する,または,前記長
方形の隣合う列がy方向にずれて並べられる場合には,
出力しようとする点のx座標値を前記内外判定手段に入
力してx座標値が長方形の横幅内に含まれるか否かを判
定し,前記定数加減算手段は内外判定手段の指令に基づ
いてy座標値に予め設定された定数を加減算して前記第
2の剰余算出手段に出力し,その第2の剰余算出手段は
入力値を長方形のy方向の幅で除算した剰余値を算出し
てこれを新たなy座標値とし,前記第1の剰余算出手段
は,出力しようとする点のx座標値を入力しその入力値
を長方形のx方向の幅で除算した剰余値を算出してこれ
を新たなx座標値とし,前記第1および第2の剰余算出
手段が算出した座標値を用いて模様の値を長方形内に出
力する,ことを特徴とする模様生成処理方法。
2. A pattern to be applied to a rectangle which is continuously arranged and arranged on the basis of a given basic pattern, wherein the rectangles are arranged with a certain amount of displacement between adjacent columns. And a coordinate inside / outside determining means for determining whether an x-coordinate value or a y-coordinate value of a designated point is included in a preset horizontal or vertical width of the rectangle, When using constant addition / subtraction means for performing addition / subtraction of a set constant and first and second remainder calculation means whose remainder has a positive sign, when the adjacent columns of the rectangles are arranged shifted in the x direction, The y-coordinate value of the point to be output is input to the inside / outside determination means to determine whether or not the y-coordinate value is included in the vertical width of the rectangle, and the constant addition / subtraction means based on a command from the inside / outside determination means. Adds or subtracts a preset constant to the x coordinate value And outputs the result to the first remainder calculation means. The first remainder calculation means calculates a remainder value obtained by dividing the input value by the width of the rectangle in the x direction, and sets this as a new x coordinate value. The remainder calculating means 2 inputs a y-coordinate value of a point to be output, calculates a remainder value obtained by dividing the input value by a width of the rectangle in the y-direction, and sets this as a new y-coordinate value.
When the value of the pattern is output into a rectangle using the coordinate values calculated by the first and second remainder calculation means, or when the adjacent columns of the rectangle are shifted in the y direction,
The x-coordinate value of the point to be output is input to the inside / outside judgment means to judge whether or not the x-coordinate value is included in the width of the rectangle. A predetermined constant is added to or subtracted from the coordinate value and output to the second remainder calculating means. The second remainder calculating means calculates a remainder value obtained by dividing the input value by the width of the rectangle in the y direction. As a new y-coordinate value, the first remainder calculating means inputs the x-coordinate value of the point to be output, calculates a remainder value obtained by dividing the input value by the width of the rectangle in the x direction, and calculates this remainder value. A pattern generation processing method, comprising: outputting a pattern value in a rectangle using a coordinate value calculated by the first and second remainder calculating means as a new x coordinate value.
JP6013909A 1994-02-08 1994-02-08 Pattern generation processing apparatus and pattern generation processing method Expired - Lifetime JP3034750B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6013909A JP3034750B2 (en) 1994-02-08 1994-02-08 Pattern generation processing apparatus and pattern generation processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6013909A JP3034750B2 (en) 1994-02-08 1994-02-08 Pattern generation processing apparatus and pattern generation processing method

Publications (2)

Publication Number Publication Date
JPH07220096A JPH07220096A (en) 1995-08-18
JP3034750B2 true JP3034750B2 (en) 2000-04-17

Family

ID=11846305

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6013909A Expired - Lifetime JP3034750B2 (en) 1994-02-08 1994-02-08 Pattern generation processing apparatus and pattern generation processing method

Country Status (1)

Country Link
JP (1) JP3034750B2 (en)

Also Published As

Publication number Publication date
JPH07220096A (en) 1995-08-18

Similar Documents

Publication Publication Date Title
JP3164617B2 (en) Apparatus and method for deforming character / graphics
US6295072B1 (en) Method and apparatus for rendering cubic curves
JP2612260B2 (en) Texture mapping equipment
JP3034750B2 (en) Pattern generation processing apparatus and pattern generation processing method
JPH0636013A (en) Method and device for generating topographic data
KR20190023846A (en) Method and apparatus for content-based image resizing
JP3034748B2 (en) Pattern generation processing device
JP3161372B2 (en) Polygon drawing method and apparatus
JP2810051B2 (en) Automatic element dividing device
JP3731221B2 (en) Thick line drawing apparatus and thick line drawing method
JPS62251980A (en) Grid display system
JP2802646B2 (en) A scaling method for character patterns using vector fonts
JP2614111B2 (en) A method for detecting the correlation between a straight line display element and a rectangular window
JPS63155260A (en) Editing method for table by computer
JPH07129149A (en) Character plotting device
JP3170249B2 (en) Apparatus and method for deforming character / graphics
JP2994376B1 (en) Method and apparatus for calculating area of triangular polygon in image generation and information recording medium
JPS6136235B2 (en)
JPH05205070A (en) Graphic plotting method
JPH1131232A (en) Method and device for plotting polygon
JP2571178B2 (en) 3D graphics processor
JP2977226B2 (en) Nonlinear normalization method for characters
JPH07282297A (en) Image input device
JPH0689346A (en) Image generating device
JPH11213178A (en) Three-dimensional data display and recording medium recorded with three-dimensional data transformation program

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090218

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090218

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100218

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110218

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110218

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120218

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130218

Year of fee payment: 13

EXPY Cancellation because of completion of term