JP2938915B2 - Pattern processing method - Google Patents

Pattern processing method

Info

Publication number
JP2938915B2
JP2938915B2 JP272490A JP272490A JP2938915B2 JP 2938915 B2 JP2938915 B2 JP 2938915B2 JP 272490 A JP272490 A JP 272490A JP 272490 A JP272490 A JP 272490A JP 2938915 B2 JP2938915 B2 JP 2938915B2
Authority
JP
Japan
Prior art keywords
divided
coordinate
graphic
area
line
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
JP272490A
Other languages
Japanese (ja)
Other versions
JPH03208180A (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.)
Fujitsu VLSI Ltd
Fujitsu Ltd
Original Assignee
Fujitsu VLSI Ltd
Fujitsu Ltd
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 Fujitsu VLSI Ltd, Fujitsu Ltd filed Critical Fujitsu VLSI Ltd
Priority to JP272490A priority Critical patent/JP2938915B2/en
Publication of JPH03208180A publication Critical patent/JPH03208180A/en
Application granted granted Critical
Publication of JP2938915B2 publication Critical patent/JP2938915B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Preparing Plates And Mask In Photomechanical Process (AREA)
  • Processing Or Creating Images (AREA)

Description

【発明の詳細な説明】 [概要] 図形処理方法に係り、詳しくは半導体製造においてマ
スクデータ,直接描画図形データ等の描画データ作成に
先立って、図形を領域に登録する方法に関し、 図形に着目することにより図形が領域に含まれるか否
かを調べる処理を簡略化でき、よって無駄な処理をなく
して図形登録を高速化することができる図形処理方法を
提供することを目的とし、 ΧY二次元座標で表わされる領域を所定間隔で網目状
に区画して多数の分割領域を形成し、その座標系に配置
される図形がいずれの分割領域に含まれるかについてそ
の含まれる分割領域に図形を登録するようにした図形処
理方法において、ΧY二次元座標軸の一方の座標軸に平
行な走査線を他方の座標軸に沿って平行移動させ、図形
の各外形線分の各端点及び各分割領域の境界において前
記走査線と交わる外形線分群をそれぞれ求め、その求め
た各外形線分群において前記他方の座標軸に最も近い外
形線分から、又は最も遠い外形線分から順に重複を許さ
ずに外形線分対を求め、各外形線分対についてその一方
の外形線分を含む分割領域から、他方の外形線分を含む
分割領域までの各分割領域に前記図形を登録するように
した。
DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention relates to a figure processing method, and more particularly to a method of registering a figure in an area prior to creation of drawing data such as mask data and directly drawn figure data in semiconductor manufacturing. Accordingly, the object of the present invention is to provide a graphic processing method capable of simplifying a process of checking whether a graphic is included in an area or not, and thus speeding up graphic registration without wasteful processing. Is divided into meshes at predetermined intervals to form a large number of divided areas, and a figure arranged in the coordinate system is registered in the included divided areas as to which of the divided areas is included. In the graphic processing method described above, the scanning line parallel to one coordinate axis of the ΧY two-dimensional coordinate axis is translated along the other coordinate axis, and each end point and A contour line group intersecting with the scanning line at the boundary of the divided area is determined, and in each of the determined contour line groups, the contour line is not allowed in order from the contour line closest to the other coordinate axis or from the furthest contour line. A pair pair is obtained, and the figure is registered in each divided region from the divided region including one outer line segment to the divided region including the other outer line segment for each outer line segment pair.

[産業上の利用分野] 本発明は図形処理方法に係り、詳しくは半導体製造に
おいてマスクデータ,直接描画図形データ等の描画デー
タ作成に先立って、図形を領域に登録する方法に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing method, and more particularly to a method of registering a graphic in an area prior to creation of drawing data such as mask data and directly drawn graphic data in semiconductor manufacturing.

LSIを構成する図形集合の各図形をある領域に登録す
る場合、LSIのチップ全体について登録を行うよりも、
チップ全体の領域を網目状に分割して多数の分割領域を
形成し、いずれの分割領域に図形が形成されるかについ
てその分割領域で登録を行ったほうが有効である。即
ち、チップ全体の領域について一つの図形の登録処理を
行うと、チップ上にある他の多数の図形も同時に処理の
対象となってしまうが、細かい分割領域について一つの
図形の登録処理を行えば処理対象となるその他の図形数
を大幅に減少させることができる。その結果、図形登録
に要する時間を大幅に短縮することができる。
When registering each figure of a set of figures constituting an LSI in a certain area, rather than registering the entire LSI chip,
It is more effective to divide the entire chip area into a mesh shape to form a large number of divided areas, and to register in which divided area a figure is formed in the divided area. That is, if the registration processing of one figure is performed on the entire chip area, many other figures on the chip are also processed at the same time, but if the registration processing of one figure is performed on the fine divided area, The number of other graphics to be processed can be greatly reduced. As a result, the time required for registering a figure can be significantly reduced.

[従来の技術] 従来、LSIを構成する図形集合の各図形を領域に登録
する場合には、第8図に示すようにチップ全体の領域を
所定間隔で網目状に区画して多数の分割領域Tbを形成
し、例えば図形Fを分割領域に登録する場合には、一点
鎖線で示すように図形Fを内包する最小の領域Tを複数
の分割領域Tb1〜Tb15にて設定する。この後、分割領域T
b1を取り出し同領域Tb1について、まず、図形Fの頂点F
1が同領域Tb1に含まれているか否かを調べ、頂点F1が含
まれていれば図形Fが形成される領域としてその分割領
域Tb1に図形を登録する。頂点F1が分割領域Tb1に含まれ
ていなければ、頂点F2,F3,・・・,F12が分割領域Tb1に
含まれているか否かを順次調べ、いずれかの頂点が分割
領域Tb1に含まれていれば分割領域Tb1に図形を登録す
る。又、これら頂点F1〜F12が分割領域Tb1に含まれない
場合には、図形Fの水平線分L1〜L6及び垂直線分(二点
鎖線で示す)が同分割領域Tb1の境界と交わるか否かを
それぞれの線分について調べ、いずれかの線分が分割領
域Tb1の境界と交われば分割領域Tb1に図形を登録する。
これらの線分が分割領域Tb1の境界と交わらない時に
は、さらに図形Fに同分割領域Tb1が内包されるか否か
を調べる。この一連の処理を、前記外形Fを内包する最
小の領域T内の全ての分割領域Tb1〜Tb15について行う
ことによって図形Fが含まれる分割領域Tbに図形Fを登
録するようになっている。
2. Description of the Related Art Conventionally, when each figure of a set of figures constituting an LSI is registered in an area, as shown in FIG. 8, the entire chip area is divided into meshes at predetermined intervals to form a large number of divided areas. When Tb is formed and, for example, the figure F is registered in a divided area, a minimum area T including the figure F is set by a plurality of divided areas Tb1 to Tb15 as indicated by a dashed line. After this, the divided area T
b1 is extracted and the same region Tb1
It is checked whether or not 1 is included in the same area Tb1, and if the vertex F1 is included, the figure is registered in the divided area Tb1 as an area where the figure F is formed. If the vertex F1 is not included in the divided area Tb1, it is sequentially checked whether the vertices F2, F3,..., F12 are included in the divided area Tb1, and any of the vertices is included in the divided area Tb1. If so, the figure is registered in the divided area Tb1. If these vertices F1 to F12 are not included in the divided region Tb1, it is determined whether the horizontal line segments L1 to L6 and the vertical line segment (indicated by a two-dot chain line) of the figure F intersect with the boundary of the same divided region Tb1. Is checked for each line segment, and if any line segment crosses the boundary of the divided region Tb1, a figure is registered in the divided region Tb1.
When these line segments do not intersect the boundary of the divided area Tb1, it is further checked whether or not the figure F includes the same divided area Tb1. This series of processing is performed on all the divided areas Tb1 to Tb15 in the smallest area T including the outer shape F, so that the figure F is registered in the divided area Tb including the figure F.

[発明が解決しようとする課題] しかしながら、上記従来の登録方法では領域T内の分
割領域Tbに着目してその分割領域Tbに図形Fが含まれる
か否かを調べるようにしているためその処理が複雑であ
るばかりでなく、第8図に示されるように図形Fを含ま
ない分割領域Tb8,Tb9,Tb13,Tb15に対しても上記一連の
処理を行うため、無駄な処理をしていることとなり、そ
の結果膨大な時間を要し、図形登録を高速で行うことが
できないという問題点がある。
[Problems to be Solved by the Invention] However, in the above-described conventional registration method, attention is paid to the divided area Tb in the area T, and it is checked whether or not the figure F is included in the divided area Tb. Is not only complicated, but also a wasteful process for performing the above series of processes on the divided regions Tb8, Tb9, Tb13, and Tb15 not including the figure F as shown in FIG. As a result, there is a problem that it takes an enormous amount of time and cannot register a figure at high speed.

本発明は上記問題点を解決するためになされたもので
あって、その目的は図形に着目することにより図形が領
域に含まれるか否かを調べる処理を簡略化でき、よって
無駄な処理をなくして図形登録を高速化することができ
る図形処理方法を提供することにある。
The present invention has been made to solve the above-described problem, and an object of the present invention is to focus on a graphic, thereby simplifying a process of checking whether or not a graphic is included in an area, thereby eliminating unnecessary processing. To provide a graphic processing method capable of speeding up graphic registration.

[課題を解決するための手段] 上記目的を達成するため、本発明は、ΧY二次元座標
で表わされる領域を所定間隔で網目状に区画して多数の
分割領域を形成し、その座標系に配置されている図形が
いずれの分割領域に含まれるかについてその含まれる分
割領域に図形を登録するようにした図形処理方法におい
て、ΧY二次元座標軸の一方の座標軸に平行な走査線を
他方の座標軸に沿って平行移動させる。図形の各外形線
分の各端点及び各分割領域の境界において前記走査線と
交わる外形線分群をそれぞれ求める。そして、その求め
た各外形分線群において前記他方の座標軸に最も近い外
形線分から、又は最も遠い外形線分から順に重複を許さ
ずに外形線分対を求め、各外形線分対についてその一方
の外形線分を含む分割領域から、他方の外形線分を含む
分割領域までの各分割領域に前記図形を登録する。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides a method in which an area represented by ΧY two-dimensional coordinates is divided into meshes at predetermined intervals to form a large number of divided areas, and the coordinate system is In a graphic processing method in which a figure to be arranged is included in any of the divided areas, a figure is registered in the included divided area, and a scanning line parallel to one of the two Y-dimensional coordinate axes is changed to the other coordinate axis. Translate along. An outline segment group that intersects the scanning line at each end point of each outline of the figure and at the boundary of each divided region is obtained. Then, in each of the determined outline segment groups, an outline segment pair is determined from the outline segment closest to the other coordinate axis, or from the furthest outline segment without sequentially allowing overlap, and one of the outline segment pairs is determined. The figure is registered in each of the divided areas from the divided area including the outline to the divided area including the other outline.

[作用] 図形の各外形線分の各端点及び各分割領域の境界にお
いて走査線と交わる外形線分群をそれぞれ求めるととも
に、その求めた各外形線分群において他方の座標軸に最
も近い外形線分から、又は最も遠い外形線分から順に重
複を許さずに外形線分対を求め、各外形線分対について
その一方の外形線分を含む分割領域から、他方の外形線
分を含む分割領域までの各分割領域に図形を登録するよ
うにしたので、図形を含まない分割領域に対して当該図
形が含まれるか否かを調べる処理が省略されるととも
に、無駄な処理がなくなって図形登録が高速化される。
[Operation] A group of external line segments that intersect the scanning line at each end point of each external line segment of the figure and at the boundary of each divided region is obtained, and in each of the obtained external line group groups, from the external line segment closest to the other coordinate axis, or From the furthest outline, a pair of outlines is determined in order without allowing overlap, and each of the divided regions from the divided region including one outline to the divided region including the other outline for each pair of outlines. Since the figure is registered in the subroutine, the process of checking whether or not the figure is included in a divided area that does not include the figure is omitted, and unnecessary processing is eliminated, and the figure registration is speeded up.

[実施例] 以下、本発明を具体化した一実施例を第1〜6図に従
って説明する。
Embodiment An embodiment of the present invention will be described below with reference to FIGS.

第1図は本発明の一実施例における図形登録プログラ
ムを示すフローチャート、第2図は図形処理装置の電気
的構成を示す概略図、第3図は図形線分データを示す
図、第4図はワーク・リストの初期設定後の構造を示す
図、第5図はワーク・リストの線分登録後の構造を示す
図、第6図は一実施例の図形処理方法における作用説明
図である。
FIG. 1 is a flowchart showing a graphic registration program according to one embodiment of the present invention, FIG. 2 is a schematic diagram showing an electrical configuration of a graphic processing apparatus, FIG. 3 is a diagram showing graphic line segment data, and FIG. FIG. 5 is a diagram showing the structure of the work list after the initial setting, FIG. 5 is a diagram showing the structure of the work list after the registration of a line segment, and FIG.

第2図に示すように、本実施例における図形処理装置
のCPU1はシステム制御部2、被処理図形データ入力部
3、図形処理部4、データ出力処理部5からなり、図形
集合の各図形を領域に対して登録処理を行う。即ち、シ
ステム制御部2は図形登録処理を指示する制御コマンド
6が入力されると、所定の図形登録プログラムを起動さ
せ、図形データ7を被処理図形データ入力部3に読み込
む。そして、システム制御部2は作業用直接アクセス装
置8を用いて図形処理部4で図形登録を実行し、処理経
路を処理リスト9に出力させるとともに、図形登録の出
力データ10を磁気テープ等に出力させる。
As shown in FIG. 2, the CPU 1 of the graphic processing apparatus in this embodiment comprises a system control unit 2, a processed graphic data input unit 3, a graphic processing unit 4, and a data output processing unit 5. Perform registration processing for the area. That is, when the control command 6 instructing the graphic registration processing is input, the system control unit 2 starts a predetermined graphic registration program and reads the graphic data 7 into the graphic data input unit 3 to be processed. Then, the system control unit 2 executes the graphic registration in the graphic processing unit 4 by using the work direct access device 8, outputs the processing path to the processing list 9, and outputs the output data 10 of the graphic registration to a magnetic tape or the like. .

次に、上記図形処理部4が実行する図形登録処理を第
1図に示すフローチャートに従って説明する。
Next, the graphic registration processing executed by the graphic processing unit 4 will be described with reference to the flowchart shown in FIG.

まず、ステップ11で内部記憶領域M1に入力された図形
データ7を線分化する。即ち、ΧY直行座標系に配置さ
れた図形Fの水平又は斜めの外形線分を取り出し、第3
図に示すようにその線分方向コード,左端点Χ座標,左
端点Y座標,右端点Χ座標及び右端点Y座標よりなる線
分データを図形線分フォーマットとして内部記憶領域M2
に記憶させる。従って、例えば第6図に示す図形Fでは
内部記憶領域M2にはΧ軸に平行な線分L1〜L6の線分デー
タのみが入力される。
First, in step 11, the graphic data 7 input to the internal storage area M1 is divided into lines. That is, the horizontal or diagonal outline of the figure F arranged in the ΧY orthogonal coordinate system is extracted and
As shown in the figure, the line segment data including the line segment direction code, the left end point Χ coordinate, the left end point Y coordinate, the right end point 及 び coordinate, and the right end point Y coordinate are stored in the internal storage area M2 as a graphic line segment format.
To memorize. Therefore, for example, in the graphic F shown in FIG. 6, only the line data of the line segments L1 to L6 parallel to the Χ axis is input to the internal storage area M2.

次にステップ12で左端点Χ座標をメイン・キーとする
とともに、左端点Y座標をサブ・キーとして前記ステッ
プ11で内部記憶領域M2に記憶した各線分データを、左端
点Χ座標及び左端点Y座標について小さいものから順、
即ち、昇順に分類する。従って、図形Fでは線分L1〜L6
の順に分類されることになる。
Next, in step 12, the line segment data stored in the internal storage area M2 in step 11 is stored as the left end point Χ coordinate and the left end point Y coordinate while using the left end point サ ブ coordinate as a main key and the left end point Y coordinate as a sub key. Coordinates in ascending order,
That is, they are classified in ascending order. Therefore, in the figure F, the line segments L1 to L6
Will be classified in this order.

次いで、ステップ13で図形処理部4の内部記憶領域M3
を第4図に示すように前記第3図に示す図形線分フォー
マットの記憶部20aとポインター20bとを備えたノード20
で区切り、ポインター20bによって各ノード20をすべて
連結する。そして、連結された最後のノード20のポイン
ター20bと連結の最初を示すルートポインター21とを連
結の終わりを認識するための値であるセンチネル(Sent
inel)に設定し、内部記憶領域M3をそのすべての領域を
空き領域とした作業連結領域(ワーク・リスト)として
定義する。
Next, at step 13, the internal storage area M3 of the graphic processing unit 4
As shown in FIG. 4, a node 20 having a storage unit 20a and a pointer 20b in the graphic line segment format shown in FIG.
And all the nodes 20 are connected by the pointer 20b. The pointer 20b of the last connected node 20 and the root pointer 21 indicating the start of the connection are connected to the sentinel (Sentel) which is a value for recognizing the end of the connection.
inel), and defines the internal storage area M3 as a work connection area (work list) with all of the areas as empty areas.

次いで、ステップ14で第6図に示すようにY軸に平行
に設けられる走査線(スキャン・ライン)に対して前記
内部記憶領域M2で最小のΧ座標値、即ち、線分L1の左端
点Χ座標値をセットすることによりスキャン・ラインの
初期設定を行う。尚、本実施例においてスキャン・ライ
ンはY座標値が大きくなる方向に走査されるとともに、
Χ座標値が大きくなる方向に平行移動される。続くステ
ップ15でワーク・リストM3内の線分データの右端点Χ座
標値のうち最も小さい値と分割領域Tbの右端境界Bの座
標値との小さい方をスキャン・ライン値としてスキャン
ラインを設定する。尚、この時にはワーク・リストM3に
はまだ線分データがないので、前記線分L1の左端点Χ座
標値がスキャン・ライン値となる。
Next, in step 14, as shown in FIG. 6, the smallest {coordinate value in the internal storage area M2, that is, the left end point of the line segment L1} with respect to the scanning line (scan line) provided in parallel to the Y axis, as shown in FIG. Initial setting of a scan line is performed by setting coordinate values. In the present embodiment, the scan line is scanned in a direction in which the Y coordinate value increases, and
平行 Translated in the direction in which the coordinate value increases. In the following step 15, a scan line is set as a scan line value, which is the smaller of the smallest value of the right end point Χ coordinate value of the line segment data in the work list M3 and the coordinate value of the right end boundary B of the divided area Tb. . At this time, since there is no line segment data yet in the work list M3, the left end point Χ coordinate value of the line segment L1 becomes a scan line value.

次に、ステップ16でスキャン・ラインと交わる線分の
うち、スキャン・ラインよりもΧ座標値が大きい部分を
持つ線分を、ワーク・リストM3によるY座標値の小さい
線分から順に取り込むことによって外形線分群を求め
る。尚、本実施例で交わる線分とは接するか又は交差す
る線分をいい、重なる線分を含まない。第5図は第6図
のS1の位置にスキャン・ラインがきた時のワーク・リス
トM3の状態を示しており、線分L1,L2の線分データが順
次取り込まれる。ステップ17ではワーク・リストM3内の
線分とスキャン・ラインとの交点のY座標値について小
さい方から順にたどり、線分の向きが右向きであるか左
向きであるかを判別する。
Next, in step 16, line segments having a portion having a larger Χ coordinate value than the scan line among the line segments intersecting with the scan line are taken in order from the line segment having the smaller Y coordinate value according to the work list M3. Find a group of line segments. In this embodiment, the intersecting line segments refer to the contacting or intersecting line segments, and do not include overlapping line segments. FIG. 5 shows the state of the work list M3 when a scan line comes to the position of S1 in FIG. 6, and the line segment data of the line segments L1 and L2 are sequentially taken in. In step 17, the Y coordinate value of the intersection of the line segment in the work list M3 and the scan line is traced in ascending order, and it is determined whether the direction of the line segment is rightward or leftward.

そして、ステップ17で線分の向きが右向きであると判
別すると、ステップ18に進んでその右向きの線分と、そ
の右向きの線分の次にY座標値が大きい左向きの線分と
を外形線分対とし、その右向きの線分を含む分割領域か
ら左向きの線分を含む分割領域までの分割領域Tbを図形
Fを形成する領域として決定し、内部記憶領域M4にそれ
らの分割領域Tbを記憶させることにより、図形Fを登録
する。従って、第6図に示すように線分L1を含む分割領
域から線分L2を含む分割領域までの3つの分割領域Tb1
〜Tb3を図形Fを形成する領域として決定し、それらを
内部記憶領域M4に記憶させる。
If it is determined in step 17 that the direction of the line segment is rightward, the process proceeds to step 18 in which the rightward line segment and the leftward line segment having the next largest Y coordinate value next to the rightward line segment are formed into an outline. As a pair, the divided region Tb from the divided region including the rightward line segment to the divided region including the leftward line segment is determined as a region for forming the figure F, and the divided region Tb is stored in the internal storage region M4. By doing so, the figure F is registered. Accordingly, as shown in FIG. 6, three divided regions Tb1 from the divided region including the line segment L1 to the divided region including the line segment L2
.About.Tb3 are determined as areas for forming the figure F, and are stored in the internal storage area M4.

なお、前記ステップ16で取り込まれた2つの外形線分
のY座標値が等しく、かつ、両外形線分の全体がスキャ
ン・ラインよりも右側にある場合には、その両外形線分
が外形線分対となり、この場合にはその一致した端点を
含む分割領域のみが図形を含む分割領域として決定され
る。
If the Y coordinate values of the two outlines captured in the step 16 are equal and the entire outlines are on the right side of the scan line, the two outlines are regarded as outline lines. In this case, only the divided area including the coincident end point is determined as the divided area including the graphic.

次に、ステップ19に進んで内部記憶領域M2あるいはワ
ーク・リストM3中に線分データが残っているか否かを判
別し、残っていれば前記ステップ15に戻って内部記憶領
域M2内の線分データとワーク・リストM3内の線分データ
がなくなるまで上記ステップ15〜18を繰り返す。一方、
線分が残っていなければそのまま処理を終える。
Next, proceeding to step 19, it is determined whether or not line segment data remains in the internal storage area M2 or the work list M3. If so, the flow returns to step 15 to return to the line storage in the internal storage area M2. Steps 15 to 18 are repeated until there is no more data and no line data in the work list M3. on the other hand,
If no line segment remains, the process is terminated.

従って、第6図ではスキャン・ラインがS2〜S9の位置
に順次設定される。そして、第6図のS2の位置にスキャ
ン・ラインがきた時には線分L1を含む分割領域から線分
L2を含む分割領域までの分割領域Tb4〜Tb6が図形Fを形
成する領域として決定され、それらが内部記憶領域M4に
記憶される。S3の位置にスキャン・ラインがきた時には
線分L1及びL3を含む分割領域Tb4が図形Fを形成する領
域として決定されるが、既に分割領域Tb4は内部記憶領
域M4に記憶されているので、新たに記憶されることはな
い。
Accordingly, in FIG. 6, the scan lines are sequentially set at the positions of S2 to S9. When the scan line comes to the position of S2 in FIG. 6, the line segment is divided from the segment including the line segment L1.
The divided areas Tb4 to Tb6 up to the divided area including L2 are determined as the areas forming the figure F, and are stored in the internal storage area M4. When the scan line comes to the position of S3, the divided area Tb4 including the line segments L1 and L3 is determined as the area forming the figure F, but since the divided area Tb4 is already stored in the internal storage area M4, Will not be stored.

又、S4の位置にスキャン・ラインがきた時には線分L1
及びL3を含む分割領域Tb7が図形Fを形成する領域とし
て決定されて内部記憶領域M4に記憶され、S5の位置にス
キャン・ラインがきた時には線分L1及びL3を含む分割領
域Tb10が図形Fを形成する領域として決定されて内部記
憶領域M4に記憶される。S6の位置にスキャン・ラインが
きた時には線分L1を含む分割領域から線分L4を含む分割
領域までの3つの分割領域Tb10〜Tb12が図形Fを形成す
る領域として決定されるが、既に分割領域Tb10は内部記
憶領域M4に記憶されているので、分割領域Tb11,Tb12の
みが新たに内部記憶領域M4に記憶される。
When the scan line comes to the position of S4, the line segment L1
And a divided area Tb7 including L3 is determined as an area forming the figure F and stored in the internal storage area M4. When a scan line comes to the position of S5, the divided area Tb10 including the line segments L1 and L3 The area to be formed is determined and stored in the internal storage area M4. When the scan line comes to the position of S6, three divided regions Tb10 to Tb12 from the divided region including the line segment L1 to the divided region including the line segment L4 are determined as the regions for forming the figure F. Since Tb10 is stored in the internal storage area M4, only the divided areas Tb11 and Tb12 are newly stored in the internal storage area M4.

さらに、S7の位置にスキャン・ラインがきた時には線
分L5及びL6を含む分割領域Tb11が図形Fを形成する領域
として決定されるが、既に分割領域Tb11は内部記憶領域
M4に記憶されているので、新たに内部記憶領域M4に記憶
されることはない。S8の位置にスキャン・ラインがきた
時には線分L5及びL6を含む分割領域Tb14が図形Fを形成
する領域として決定されて内部記憶領域M4に記憶され
る。上記した処理の結果、内部記憶領域M4には分割領域
Tb1〜Tb7,Tb10〜Tb12,Tb14の計11の分割領域が記憶され
る。
Further, when the scan line comes to the position of S7, the divided area Tb11 including the line segments L5 and L6 is determined as the area for forming the graphic F, but the divided area Tb11 has already been set in the internal storage area.
Since it is stored in M4, it is not newly stored in the internal storage area M4. When the scan line comes to the position of S8, the divided area Tb14 including the line segments L5 and L6 is determined as an area for forming the figure F, and is stored in the internal storage area M4. As a result of the above processing, the divided area is stored in the internal storage area M4.
A total of 11 divided regions of Tb1 to Tb7, Tb10 to Tb12, and Tb14 are stored.

このように、本実施例では図形Fの水平(又は斜め)
線分に着目し、スキャン・ラインをΧ軸に沿ってその座
標値が大きくなる方向に移動させ、同じラインの各移動
位置において同ラインと交点を持つ線分について、右向
きの線分を含む分割領域Tbから左向きの線分を含む分割
領域Tbまでの分割領域Tbを図形Fを形成する領域として
決定し、それらの分割領域Tbを内部記憶領域M4に記憶さ
せることにより図形Fを登録するようにしたので、図形
Fが形成される分割領域Tbを調べる処理を簡略化できる
とともに、第8図に示すように図形Fを含まない分割領
域Tb8,Tb9,Tb13,Tb15については図形Fが形成されるか
否かを調べる必要がなくなり、無駄な処理をなくして図
形登録を高速化することができる。
As described above, in the present embodiment, the horizontal (or oblique)
Focusing on the line segment, move the scan line along the Χ axis in the direction in which the coordinate value increases, and divide the line segment that has the intersection with the same line at each moving position of the same line, including the line segment to the right The divided region Tb from the region Tb to the divided region Tb including the line segment to the left is determined as a region for forming the figure F, and the divided region Tb is stored in the internal storage area M4 to register the figure F. Therefore, the process of examining the divided area Tb where the figure F is formed can be simplified, and the figure F is formed for the divided areas Tb8, Tb9, Tb13 and Tb15 not including the figure F as shown in FIG. It is not necessary to check whether or not this is the case, and unnecessary processing can be eliminated to speed up graphic registration.

尚、本実施例ではスキャン・ラインをY座標値が大き
くなる方向に走査されるように設定するとともに、Χ座
標値が大きくなる方向に平行移動させるようにしたが、
第7図に示すように設定してもよい。即ち、第7図
(a)はスキャン・ラインをY座標値が小さくなる方向
に走査されるように設定するとともに、Χ座標値が大き
くなる方向に平行移動させるようにした例を示し、この
場合には左端点Χ座標をメイン・キーに、左端点Y座標
をサブ・キーにし、図形の各線分データを、左端点Χ座
標については昇順(小さいものから順)に、左端点Y座
標については降順(大きいものから順)に分類すればよ
い。
In this embodiment, the scan line is set so as to be scanned in the direction in which the Y coordinate value increases, and the scan line is translated in the direction in which the Χ coordinate value increases.
The setting may be made as shown in FIG. That is, FIG. 7A shows an example in which the scan line is set so as to be scanned in the direction in which the Y coordinate value decreases, and is translated in the direction in which the Χ coordinate value increases. The left end point Χ coordinate is used as the main key, the left end point Y coordinate is used as the sub key, and each line segment data of the figure is displayed in ascending order (from the smallest one) for the left end point Χ coordinate, and What is necessary is just to classify in descending order (from the largest one).

第7図(b)はスキャン・ラインをY座標値が大きく
なる方向に走査されるように設定するとともに、Χ座標
値が小さくなる方向に平行移動させるようにした例を示
し、この場合には右端点Χ座標をメイン・キーに、右端
点Y座標をサブ・キーにし、図形の各線分データを、右
端点Χ座標については降順に、右端点Y座標については
昇順に分類すればよい。
FIG. 7 (b) shows an example in which the scan line is set so as to be scanned in a direction in which the Y coordinate value increases, and is translated in a direction in which the Χ coordinate value decreases. In this case, Using the right end point Χ coordinate as the main key and the right end point Y coordinate as the sub key, the line segment data of the figure may be sorted in descending order for the right end point Χ coordinate and in ascending order for the right end point Y coordinate.

第7図(c)ばスキャン・ラインをY座標値が小さく
なる方向に走査されるように設定するとともに、Χ座標
値が小さくなる方向に平行移動させるようにした例を示
し、この場合には右端点Χ座標をメイン・キーに、右端
点Y座標をサブ・キーにし、図形の各線分データを、右
端点Χ座標及び右端点Y座標について降順に分類すれば
よい。
FIG. 7 (c) shows an example in which the scan line is set so as to be scanned in the direction in which the Y coordinate value decreases, and is translated in the direction in which the Χ coordinate value decreases. In this case, Using the right end point Χ coordinate as the main key and the right end point Y coordinate as the sub key, the line segment data of the figure may be sorted in descending order with respect to the right end point Χ coordinate and the right end point Y coordinate.

第7図(d)はスキャン・ラインをΧ座標値が大きく
なる方向に走査されるように設定するとともに、Y座標
値が大きくなる方向に平行移動させるようにした例を示
し、この場合には下端点Y座標をメイン・キーに、下端
点Χ座標をサブ・キーにし、図形の各線分データを、下
端点Y座標及び下端点Χ座標について昇順に分類すれば
よい。
FIG. 7 (d) shows an example in which the scan line is set so as to be scanned in the direction in which the Χ coordinate value increases, and is translated in the direction in which the Y coordinate value increases. In this case, Using the lower end point Y coordinate as the main key and the lower end point Χ coordinate as the sub key, the line segment data of the figure may be sorted in ascending order with respect to the lower end point Y coordinate and the lower end point Χ coordinate.

第7図(e)はスキャン・ラインをΧ座標値が小さく
なる方向に走査されるように設定するとともに、Y座標
値が大きくなる方向に平行移動させるようにした例を示
し、この場合には下端点Y座標をメイン・キーに、下端
点Χ座標をサブ・キーにし、図形の各線分データを、下
端点Y座標については昇順に、下端点Χ座標については
降順に分類すればよい。
FIG. 7 (e) shows an example in which the scan line is set so as to be scanned in a direction in which the 小 さ く coordinate value decreases, and is translated in a direction in which the Y coordinate value increases. In this case, Using the lower end point Y coordinate as a main key and the lower end point Χ coordinate as a sub key, the line segment data of the figure may be sorted in ascending order for the lower end point Y coordinate and in descending order for the lower end point Χ coordinate.

又、第7図(f)はスキャン・ラインをΧ座標値が大
きくなる方向に走査されるように設定するとともに、Y
座標値が小さくなる方向に平行移動させるようにした例
を示し、この場合には上端点Y座標をメイン・キーに、
上端点Χ座標をサブ・キーにし、図形の各線分データ
を、上端点Y座標については降順に、上端点Χ座標につ
いては昇順に分類すればよい。
FIG. 7 (f) shows that the scan line is set so as to be scanned in the direction in which the Χ coordinate value increases, and
An example is shown in which the coordinate value is translated in a direction in which the coordinate value becomes smaller.
Using the upper end point Χ coordinate as a sub key, the line segment data of the figure may be classified in descending order for the upper end point Y coordinate and in ascending order for the upper end point Χ coordinate.

さらに、第7図(g)はスキャン・ラインをΧ座標が
小さくなる方向に走査されるように設定するとともに、
Y座標値が小さくなる方向に平行移動させるようにした
例を示し、この場合には上端点Y座標をメイン・キー
に、上端点Χ座標をサブ・キーにし、図形の各線分デー
タを、上端点Y座標及び上端点Χ座標について降順に分
類すればよい。
Further, FIG. 7 (g) sets the scan line so that it is scanned in the direction in which the Χ coordinate becomes smaller,
An example is shown in which the Y coordinate value is translated in a direction in which the Y coordinate value becomes smaller. In this case, the upper end point Y coordinate is used as the main key, the upper end point Χ coordinate is used as the sub key, and each line data of the figure is displayed as the upper key. The end point Y coordinate and the upper end point Χ coordinate may be classified in descending order.

[発明の効果] 以上詳述したように、本発明によれば、図形に着目す
ることにより図形が領域に含まれるか否かを調べる処理
を簡略化でき、よって無駄な処理をなくして図形登録を
高速化することができる優れた効果がある。
[Effects of the Invention] As described above in detail, according to the present invention, it is possible to simplify the process of checking whether or not a graphic is included in an area by focusing on the graphic, thereby eliminating the unnecessary processing and registering the graphic. There is an excellent effect that the speed can be increased.

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

第1図は本発明の一実施例における図形登録プログラム
を示すフローチャート、 第2図は図形処理装置の電気的構成を示す概略図、 第3図は図形線分データを示す図、 第4図はワーク・リストの初期設定後の構造を示す図、 第5図はワーク・リストの線分登録後の構造を示す図、 第6図は一実施例の図形処理方法における作用説明図、 第7図(a)〜(g)はそれぞれスキャン・ライン設定
の別例を示す説明図、 第8図は従来の図形処理方法における作用説明図であ
る。 図において、 1はCPU、 2はシステム制御部、 3は被処理図形データ入力部、 4は図形処理部、 5は描画データ出力処理部、 6は制御コマンド 7は図形データ、 8は作業用直接アクセス装置、 9は処理リスト、 10は出力データ、 L1〜L6は線分、 Tbは分割領域である。
FIG. 1 is a flowchart showing a graphic registration program in one embodiment of the present invention, FIG. 2 is a schematic diagram showing an electrical configuration of a graphic processing device, FIG. 3 is a diagram showing graphic line segment data, FIG. FIG. 5 is a diagram showing a structure of a work list after initial setting, FIG. 5 is a diagram showing a structure of a work list after registration of a line segment, FIG. 6 is an operation explanatory diagram in the graphic processing method of one embodiment, FIG. (A) to (g) are explanatory diagrams each showing another example of scan line setting, and FIG. 8 is an operation explanatory diagram in a conventional graphic processing method. In the figure, 1 is a CPU, 2 is a system control unit, 3 is a graphic data input unit to be processed, 4 is a graphic processing unit, 5 is a drawing data output processing unit, 6 is a control command, 7 is graphic data, and 8 is direct access for work. 9 is a processing list, 10 is output data, L1 to L6 are line segments, and Tb is a divided area.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ΧY二次元座標で表わされる領域を所定間
隔で網目状に区画して多数の分割領域を形成し、その座
標系に配置される図形がいずれの分割領域に含まれるか
についてその含まれる分割領域に図形を登録するように
した図形処理方法において、 ΧY二次元座標軸の一方の座標軸に平行な走査線を他方
の座標軸に沿って平行移動させ、図形の各外形線分の各
端点及び各分割領域の境界において前記走査線と交わる
外形線分群をそれぞれ求め、その求めた各外形線分群に
おいて前記他方の座標軸に最も近い外形線分から、又は
最も遠い外形線分から順に重複を許さずに外形線分対を
求め、各外形線分対についてその一方の外形線分を含む
分割領域から、他方の外形線分を含む分割領域までの各
分割領域に前記図形を登録するようにしたことを特徴と
する図形処理方法。
An area represented by ΧY two-dimensional coordinates is divided into meshes at predetermined intervals to form a large number of divided areas, and a figure arranged in the coordinate system is included in any of the divided areas. In the graphic processing method in which a graphic is registered in the included divided area, a scanning line parallel to one coordinate axis of the Y two-dimensional coordinate axis is translated along the other coordinate axis, and each end point of each outline of the graphic is And, at the boundary of each divided region, a contour line group that intersects with the scanning line is obtained, and in each of the obtained contour line groups, from the contour line closest to the other coordinate axis or from the furthest contour line, overlapping is not allowed in order. An outline segment pair is determined, and the figure is registered in each divided region from the divided region including one outline segment to the divided region including the other outline segment for each outline segment pair. Graphic processing method comprising.
JP272490A 1990-01-10 1990-01-10 Pattern processing method Expired - Lifetime JP2938915B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP272490A JP2938915B2 (en) 1990-01-10 1990-01-10 Pattern processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP272490A JP2938915B2 (en) 1990-01-10 1990-01-10 Pattern processing method

Publications (2)

Publication Number Publication Date
JPH03208180A JPH03208180A (en) 1991-09-11
JP2938915B2 true JP2938915B2 (en) 1999-08-25

Family

ID=11537261

Family Applications (1)

Application Number Title Priority Date Filing Date
JP272490A Expired - Lifetime JP2938915B2 (en) 1990-01-10 1990-01-10 Pattern processing method

Country Status (1)

Country Link
JP (1) JP2938915B2 (en)

Also Published As

Publication number Publication date
JPH03208180A (en) 1991-09-11

Similar Documents

Publication Publication Date Title
JPH0315793B2 (en)
US5179645A (en) Method of recognizing overlapped graphics in each degree of overlapping thereof
JPH0561927A (en) Automatic data arranging device
JP2938915B2 (en) Pattern processing method
JP2566061B2 (en) How to convert area data to path data
US6577991B1 (en) Recordable method of processing figure
JP3145724B2 (en) Graphic data converter
JP2580772B2 (en) Printed wiring board circuit design rule verification device
JP2002351451A (en) Method for character processing based upon outline font information and computer software program product making computer implement the method
JPS63181348A (en) Layout design equipment for lsi
JP2937433B2 (en) Figure processing method
JPS61245280A (en) Automatic wiring method for logic circuit diagram
JP3481294B2 (en) Automatic dimension line drawing system
JP3132554B2 (en) Automatic layout design method and apparatus for semiconductor device
JP2801246B2 (en) Character processing apparatus and method
JPS60201473A (en) Trihedral drawing input device
JPH07104876B2 (en) Design support method and design support apparatus
JPH0685399B2 (en) Wiring path search device
SU600562A1 (en) Digital machine for control of electron beam microprocessing
JPH03271871A (en) Segment data processing system
JPH0253823B2 (en)
JPH0660151A (en) Design assisting device
JPS6371777A (en) Extracting method for relation of graphic connection
JPH0612470A (en) Graphic logic processing method
JPS61114376A (en) Control system for picture processor