JPS61158394A - Fast circle circular arc generation system - Google Patents

Fast circle circular arc generation system

Info

Publication number
JPS61158394A
JPS61158394A JP59279077A JP27907784A JPS61158394A JP S61158394 A JPS61158394 A JP S61158394A JP 59279077 A JP59279077 A JP 59279077A JP 27907784 A JP27907784 A JP 27907784A JP S61158394 A JPS61158394 A JP S61158394A
Authority
JP
Japan
Prior art keywords
arc
circle
circular
radius
circular table
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.)
Granted
Application number
JP59279077A
Other languages
Japanese (ja)
Other versions
JPH041354B2 (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 Ltd
Original Assignee
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 Ltd filed Critical Fujitsu Ltd
Priority to JP59279077A priority Critical patent/JPS61158394A/en
Publication of JPS61158394A publication Critical patent/JPS61158394A/en
Publication of JPH041354B2 publication Critical patent/JPH041354B2/ja
Granted legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は円または円弧の発生方式に係シ、と、(にドツ
ト構成による小円を正多角形近似方式で作画すると変形
が大きいから、円テーブルに格納し几パターンを用いて
補正した円または円弧を発生するようにした高速円1円
弧発生方式に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method of generating a circle or an arc. This invention relates to a high-speed single-circle-arc generation method that generates a circle or arc that is stored in a circular table and corrected using a circular pattern.

〔従来の技術〕[Conventional technology]

従来9円または円弧発生の1方式として正2多角形近似
方式があるが、これは半径に応じて舊の値を決定し、円
を正舊多角形に近似して各頂点に最も近いドツトを選択
してベクトルを発生させるものである。他の方式として
は、半径に応じ現座標点と次の座標点の差分を演算し順
次ハードウェアによシ作画してゆく方法等がある。
Conventionally, one method for generating 9 circles or circular arcs is the regular polygon approximation method, which determines the value of the radius according to the radius, approximates the circle to a regular polygon, and finds the dot closest to each vertex. It selects and generates a vector. Another method is to calculate the difference between the current coordinate point and the next coordinate point according to the radius and sequentially draw the drawing using hardware.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

この種の円9円弧の発生方式とし【、第6図(祇(6)
、 (a)は、それぞれ半径が25ドツト、五5ドツト
This type of generation method for 9 arcs of circles [, Figure 6 (Gi (6)
, (a) have radii of 25 dots and 55 dots, respectively.

5ドツトの小円の場合を例示したものである。すなわち
、上記正答多角形方式を用い、16等分線と円周1との
交点を演算して四捨五入による近似値を求め、その到達
した領域のドツトが選択される。
This is an example of a small circle of 5 dots. That is, using the above-mentioned correct answer polygon method, the intersection of the 16th equisector and the circumference 1 is calculated to obtain an approximate value by rounding off, and the dot in the area reached is selected.

その結果、同図(α)、(6)では、ドツト2′が外方
にとび出し、形が正方形およびひし形になってしまうと
いう欠点がある。同図(C)は正n多角形近似で16等
分した白ドツト2では間隔が広すぎるので、その間を埋
めるため、ハードウェアによる差分演算方式で斜線ドツ
ト3を求め補完したものである。
As a result, in (α) and (6) of the same figure, there is a drawback that the dots 2' protrude outward and the shapes become squares and rhombuses. In the figure (C), since the white dots 2 divided into 16 equal parts by regular n-polygon approximation are too wide, in order to fill in the gaps, diagonal dots 3 are obtained and complemented using a difference calculation method using hardware.

この場合斜線ドツト3は図示のように左右、上下が対称
になっていないという欠点が生じる。
In this case, there arises a drawback that the diagonal dots 3 are not symmetrical horizontally and vertically as shown.

本発明の目的は、たとえば半径16ドツト未満の小円の
等分割交点近似で生じる変形を除去するため、円テーブ
ルに格納し次パターンを用いて円弧発生を行なうように
し次高速円2円弧発生方式を提供することにある。
The purpose of the present invention is to eliminate deformation caused by equal division intersection approximation of a small circle with a radius of less than 16 dots, for example, by storing it in a circular table and generating arcs using the next pattern. Our goal is to provide the following.

〔問題点を解決するための手段〕[Means for solving problems]

前記目的を達成するため、本発明の高速円2円弧発生方
式は少なくとも円または円弧データを含む図形データを
格納した図形データメモリを有し、該図形データをベク
トル発生器に送り所要の作画を行なう図形処理装置にお
いて、前記図形データメモリに所定の半径以下の円また
は円弧に対し円周上の座標点で示すパターンデータを各
半径値に対応し格納した円テーブルを設け、小半径の円
または円弧を検出したときは該円テーブルを用いること
を特徴とするものである。
In order to achieve the above object, the high-speed two-circle-arc generation method of the present invention has a graphic data memory storing graphic data including at least circle or arc data, and sends the graphic data to a vector generator to perform the required drawing. In the graphic processing device, a circular table is provided in the graphic data memory in which pattern data indicating coordinate points on the circumference of circles or arcs with a predetermined radius or less is stored corresponding to each radius value, and The present invention is characterized in that when the circular table is detected, the circular table is used.

〔作  用〕[For production]

すように、人間の目で観察すると真円らしさが非常に損
なわれる。そこで最も真円らしいドツトを座標とするパ
ターンデータを図形データメモリ内の円テーブルに格納
しておき、小円が検出され次場合にはこれを読出して作
画するように構成したものである。とれKよシ小円に対
しても常に真円らしい近似円を作画できることになる。
As shown, when observed with the human eye, the roundness is greatly impaired. Therefore, pattern data having the coordinates of the dot that is most likely to be a perfect circle is stored in a circular table in the graphic data memory, and the next time a small circle is detected, this data is read out and drawn. Even for small circles, it is possible to always draw an approximate circle that looks like a perfect circle.

この場合、通常使用の小円は種類が余シ多くないから、
円テーブルの記憶量も大きな負担とはならない。
In this case, there are not many types of small circles that are normally used, so
The storage capacity of the round table is also not a big burden.

〔実 施 例〕〔Example〕

第1図(G) 、 (6)は本発明の実施例の原理説明
図である。
FIGS. 1(G) and 1(6) are diagrams explaining the principle of an embodiment of the present invention.

同図は、半径55ドツトの小円を例示し九もので、第6
図(6)の従来例に対応する。各点す0〜す25は中心
からの変位ΔX、ΔYを後述の円テーブル上にそれぞれ
もたせる。各点は当然ドツト上にあシ、これを順次ベク
トルで結んでゆき最も真円に近似するように選定される
。ただし、ベクトルの始点と終点との中間は最大1ドツ
トとし、同図(6)に示すようにハードウェアによシベ
クトルをすs、A、す5+1の3点間に亘シ発生させる
場合、A点は不要です5とすs+1のみを円テーブルに
もたせれば十分である。このようにして最小限の座標数
で近似円を実現することができる。
The figure shows nine small circles with a radius of 55 dots, and the sixth
This corresponds to the conventional example shown in Figure (6). Each of the points 0 to 25 has a displacement ΔX and ΔY from the center on a circular table, which will be described later. Naturally, each point is placed on a dot, and these points are successively connected by vectors and selected so as to most closely approximate a perfect circle. However, the maximum point between the starting point and the ending point of the vector is one dot, and when the vector is generated by hardware between the three points S, A, and S5+1 as shown in (6) of the same figure, A There is no need for points; it is sufficient to place only 5 and s+1 on the round table. In this way, an approximate circle can be realized with a minimum number of coordinates.

第2図は本発明を適用する図形処理装置の実施例説明図
である。
FIG. 2 is an explanatory diagram of an embodiment of a graphic processing apparatus to which the present invention is applied.

同図において、プロセッサ10によ)コントセールパス
221とデータバス22工を介して、図形データメモリ
12.制御メモリ13および図形処理部が制御される。
In the same figure, the graphic data memory 12. The control memory 13 and the graphic processing section are controlled.

さらにインタフェイス回路11を介しホスト(上位装置
)に接続される。
Furthermore, it is connected to a host (upper-level device) via an interface circuit 11.

f’lわち、プロセッサ10は制御メモリ130プpグ
2ムに基づき通常の場合11図形データメそす12から
円または円弧の中心と半径と等分割数データから交点を
演算によシ算出し、得られた値よシ選択されたドツト座
標を図形発生回路20内の図形制御回路14に送り、ベ
クトル発生回路15においてドツト座標間のベクトルを
発生し、このベクトルデータをアドレスポインタ16で
指定するアドレスとともに、メモリ制御回路17に送)
、この制御によシ画像メ七す18上に画像を展開する。
That is, the processor 10 calculates the intersection point from the center and radius of the circle or arc and the equal division number data from the figure data 11 and 12 in the normal case based on the control memory 130 program. , the obtained values and the selected dot coordinates are sent to the graphic control circuit 14 in the graphic generating circuit 20, a vector between the dot coordinates is generated in the vector generating circuit 15, and this vector data is designated by the address pointer 16. (Sent to memory control circuit 17 along with the address)
, The image is developed on the image screen 18 under this control.

この画像メ七り18上の画像信号を並直列(P/8 )
変換回路19を介して0RT21に送り画面表示する。
The image signals on this image grid 18 are connected in parallel (P/8).
It is sent to the 0RT 21 via the conversion circuit 19 and displayed on the screen.

以上は従来の通常の円2円弧等を含む図形の場合である
が、本発明では円1円弧の半径が友とえば16ドツト以
下の場合には、プロセッサ10でこれを検出し、図形デ
ータメモリ12に設は交円テープUら第1図(ロ)で説
明したΔX、ΔYで示されるドツトの座標データパター
ンを胱出し、これを前述の経路に従ってベクトル発生し
て小円または小円弧の画像発生を行なうものである。
The above is a case of a conventional figure that includes two circles, two arcs, etc., but in the present invention, if the radius of one circle is 16 dots or less, the processor 10 detects this and stores the figure data in the figure data memory. In step 12, the coordinate data pattern of the dots indicated by ΔX and ΔY explained in FIG. It is something that generates.

第5図は第2図の実施例における本発明の要部である円
テーブル12.の詳細説明図である。
FIG. 5 shows a circular table 12 which is the main part of the present invention in the embodiment shown in FIG. FIG.

同図において、最初の5区域は目次領域(ワード)であ
シ、第1の区域は円テーブルの長さがスタート■から■
まであシ、最終ポインタ+1で他の領域へのジャンプが
可能である。また第2〜第4区域は0象限〜3象限の先
頭ポインタによ〕以下に格納される座標データの該当す
る象限の先頭にジャンプすることができる。座標データ
は第1因−)に°対応しすOlすL#2.・・・、す外
に対し、ΔX、ΔYがビットコードで格納されている。
In the same figure, the first five areas are the table of contents area (word), and the first area is the length of the circular table starting from ■■
However, it is possible to jump to another area with the final pointer +1. Further, in the second to fourth areas, it is possible to jump to the beginning of the corresponding quadrant of the coordinate data stored below by using the beginning pointer of the 0th quadrant to the 3rd quadrant. The coordinate data corresponds to the first factor -) OlsuL#2. . . , ΔX and ΔY are stored as bit codes.

この座標データを読出しベクトル発生器15に送り、O
−1,1−2,2−5゜・・・等のベクトルを発生させ
る。
This coordinate data is read out and sent to the vector generator 15.
Vectors such as -1, 1-2, 2-5 degrees, etc. are generated.

以上は真円を発生させる場合であるが、次に扇形の円弧
を発生させる場合について説明する。
The above is a case in which a perfect circle is generated. Next, a case in which a fan-shaped arc is generated will be explained.

この場合、円弧始点、終点は一般に円テーブル1210
m標と必ずしも一致しないから、まず、円弧の始点、終
点の中心からの座標ΔX、ΔYt−8ijl、□□□テ
ーブルによシ抽出する。
In this case, the starting point and ending point of the arc are generally set on the circular table 1210.
Since it does not necessarily match the m mark, first, the coordinates ΔX, ΔYt-8ijl from the center of the starting point and ending point of the arc are extracted using the □□□ table.

この円弧の始点、終点の象限を求め、円テーブル121
の該当象限のテーブルサーチをΔX、ΔYにつき行ない
、始点が座標すS−1とすSの間に、終点が座標すEl
とすEの間にあることを検出する。
Find the quadrants of the starting point and ending point of this arc, and
A table search for the corresponding quadrant of
and E is detected.

なお円テーブルのΔX、ΔYの大小関係は象限によシ次
のようになる。
The magnitude relationship of ΔX and ΔY of the circular table is as follows depending on the quadrant.

第0象限 ΔXs≧ΔXs+t  第1象限Δん≧ΔX
ll1+1ΔY%≦ΔYs+t           
ΔY協≧ΔYs十を第2象限 ΔX%≦ΔX3+1  
第3象限ΔX≦ΔXs+1ΔY、≧ΔY、十寡    
      ΔY−≦−hY%+1そこで円弧の場合は
、円弧始点と終点の間に介在する円テーブルの座標点の
パターンデータの両端を円弧の始点、終点と接続するベ
クトルが付加されるものである。
0th quadrant ΔXs≧ΔXs+t 1st quadrant Δn≧ΔX
ll1+1ΔY%≦ΔYs+t
ΔY co≧ΔYs ten in the second quadrant ΔX%≦ΔX3+1
3rd quadrant ΔX≦ΔXs+1ΔY, ≧ΔY, ten or so
ΔY-≦-hY%+1 Therefore, in the case of a circular arc, a vector is added that connects both ends of the pattern data of the coordinate points of the circular table interposed between the circular arc starting point and the ending point with the circular arc starting point and ending point.

第4図は円弧の場合の手順を示すもので、円弧の始点か
らテーブル始点(すS)までのベクトルを作画した後、
ナSからすEまで円テーブルを用いて円弧を発生させる
Figure 4 shows the procedure for a circular arc. After drawing the vector from the starting point of the circular arc to the table starting point (S),
Generate an arc from Na S to E using a circular table.

ナI!まで終了したならばすEから円弧の終点までベク
トルを発生させることによシ1形の円弧が実現できる。
Nai! When the arc is completed, a circular arc of type 1 can be realized by generating a vector from E to the end point of the arc.

第5図は本発明の実施例の動作を示す流れ図である。FIG. 5 is a flowchart showing the operation of the embodiment of the present invention.

同図において、プロセッサによシ円の半径が友とえは1
6ピツト以下の場合に下記の手順がスタートする。
In the same figure, if the radius of the circle is close to the processor, the radius is 1.
If there are 6 pits or less, the following procedure starts.

まず、円が真円かどうかを調べ、真円ならば円テーブル
t21のO象限のす0から3象限の2ストのす愕までベ
クトルを引き、このす舊とす0までさらにベクトルを引
き、終了する。
First, check whether the circle is a perfect circle, and if it is a perfect circle, draw a vector from 0 in the O quadrant of the circular table t21 to the 2nd stroke in the 3rd quadrant, and further draw a vector from this gap to 0. finish.

真円でない場合は円弧であるから、円弧始点の象限を抽
出し、円弧始点の中心からのΔX、Δy’ts出する。
If it is not a perfect circle, it is an arc, so extract the quadrant of the starting point of the arc and calculate ΔX and Δy'ts from the center of the starting point of the arc.

そして該当の象限の円テーブルをサーチし、テーブル始
点(#S)を抽出し、円弧始点よシテーブル始点(すS
)までベクトルを引く。
Then, search the circular table in the corresponding quadrant, extract the table starting point (#S), and change the arc starting point to the table starting point (#S).
).

次に、円弧終点の中心からのΔX、ΔYを算出し、該当
の象限の円テーブルをサーチし、テーブル終点(すE)
を抽出する。そして、テーブル始点(すS)からテーブ
ル終点(すE)まで順次ベクトルを引き、さらにテーブ
ル終点(#Fi)から円弧終点までベクトルを引き終了
する。
Next, calculate ΔX and ΔY from the center of the arc end point, search the circular table in the corresponding quadrant, and find the table end point (suE).
Extract. Then, vectors are drawn sequentially from the table start point (S) to the table end point (SE), and further vectors are drawn from the table end point (#Fi) to the arc end point.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、小円における等
分割点を演算し四捨五入する方法を用いず、最も真円ら
しいドツトを座標とするパターンデータを円テーブルに
格納しておき、これを読出して作画することによシ、高
速でかつ形の整った小半径の円9円弧を容易に得ること
ができる。
As explained above, according to the present invention, pattern data whose coordinates are the dots that are most likely to be a perfect circle are stored in a circular table, without using the method of calculating and rounding off equal division points in a small circle. By reading and plotting, it is possible to easily obtain nine arcs of circles with a small radius and a well-shaped shape at high speed.

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

第1図Ca) 、 (6)は本発明の原理説明図、第2
図は本発明を適用する実施例の構成説明図、第3図。 第4図は実施例要部の詳細説明図、第5図は実施例の動
作を示す流れ図、第6図−)〜(a)は従来技術の説明
図であ)、図中10はプロセッサ、12は図形データメ
モリ、121は円テーブル、13は制御メモリ、14は
図形制御回路、15はベクトル発生回路、16はアドレ
スポインタ、17はメモリ制御回路、18は画像メモリ
、19は並直列変換回路、20は図形発生回路、21は
CRTを示す。
Figure 1 Ca), (6) is a diagram explaining the principle of the present invention, Figure 2
FIG. 3 is a configuration explanatory diagram of an embodiment to which the present invention is applied. FIG. 4 is a detailed explanatory diagram of the main parts of the embodiment, FIG. 5 is a flowchart showing the operation of the embodiment, and FIGS. 6-) to (a) are explanatory diagrams of the prior art). 12 is a graphic data memory, 121 is a circular table, 13 is a control memory, 14 is a graphic control circuit, 15 is a vector generation circuit, 16 is an address pointer, 17 is a memory control circuit, 18 is an image memory, and 19 is a parallel-to-serial conversion circuit. , 20 is a graphic generation circuit, and 21 is a CRT.

Claims (2)

【特許請求の範囲】[Claims] (1)少なくとも円または円弧データを含む図形データ
を格納した図形データメモリを有し、該図形データをベ
クトル発生器に送り所望の作画を行なう図形処理装置に
おいて、前記図形データメモリに所定の半径以下の円ま
たは円弧に対し円周上の座標点で示すパターンデータを
各半径値に対応し格納した円テーブルを設け、小半径の
円または円弧を検出したときは該円テーブルを用いるこ
とを特徴とする高速円、円弧発生方式。
(1) In a graphic processing device that has a graphic data memory storing graphic data including at least circle or arc data, and sends the graphic data to a vector generator to create a desired drawing, the graphic data memory stores a predetermined radius or less. A circular table is provided in which pattern data indicated by coordinate points on the circumference of a circle or arc is stored corresponding to each radius value, and the circular table is used when a circle or arc with a small radius is detected. High-speed circle and arc generation method.
(2)前記小半径の円弧に対し、円弧の始点、終点間に
介在する前記円テーブルのパターンデータの両端を、前
記始点、終点に接続するように作画することを特徴とす
る特許請求の範囲第1項記載の高速円、円弧発生方式。
(2) The scope of the present invention is characterized in that, for the circular arc of the small radius, both ends of the pattern data of the circular table interposed between the starting point and the ending point of the circular arc are connected to the starting point and the ending point. High-speed circle and arc generation method described in Section 1.
JP59279077A 1984-12-29 1984-12-29 Fast circle circular arc generation system Granted JPS61158394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59279077A JPS61158394A (en) 1984-12-29 1984-12-29 Fast circle circular arc generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59279077A JPS61158394A (en) 1984-12-29 1984-12-29 Fast circle circular arc generation system

Publications (2)

Publication Number Publication Date
JPS61158394A true JPS61158394A (en) 1986-07-18
JPH041354B2 JPH041354B2 (en) 1992-01-10

Family

ID=17606090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59279077A Granted JPS61158394A (en) 1984-12-29 1984-12-29 Fast circle circular arc generation system

Country Status (1)

Country Link
JP (1) JPS61158394A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206796A (en) * 1987-02-23 1988-08-26 三菱電機株式会社 Vector lithography system
JPH039054U (en) * 1989-06-15 1991-01-29

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59211165A (en) * 1983-05-17 1984-11-29 Fujitsu Ltd Circular arc generating system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59211165A (en) * 1983-05-17 1984-11-29 Fujitsu Ltd Circular arc generating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206796A (en) * 1987-02-23 1988-08-26 三菱電機株式会社 Vector lithography system
JPH039054U (en) * 1989-06-15 1991-01-29

Also Published As

Publication number Publication date
JPH041354B2 (en) 1992-01-10

Similar Documents

Publication Publication Date Title
EP0112415B1 (en) A method and apparatus for continuously updating a display of the coordinates of a light pen
JP2761890B2 (en) Line generator and display device
KR970002799A (en) Map display device
EP0095536B1 (en) The representation of character images in a compact form for computer storage
JPS61158394A (en) Fast circle circular arc generation system
JPH0555915B2 (en)
JPS6365151B2 (en)
US5355448A (en) Method of generating dot signals corresponding to character pattern and the system therefor
JP2662035B2 (en) Character processor
JPH08194459A (en) Outline character plotting device
JPH0523439B2 (en)
JPH09325750A (en) Picture processor and its method
JP3039015B2 (en) Character processor
JP2806679B2 (en) Character generator
JP2910101B2 (en) Vector font data component point correction device
JPS615285A (en) Raster scan graphic display unit
JPS59148975A (en) Editing device of pattern
JPS61133985A (en) Writing protector for bit map memory
KR100272128B1 (en) Method for filling image area within continuous contour
JPH0315193B2 (en)
JP3443840B2 (en) Ruled line output method and ruled line output device
JPS6175428A (en) Graphic form drawing method
JP2776347B2 (en) Drawing device for printer
JPS63314591A (en) Smearing image generation system
JPH0687266B2 (en) Curve generator

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees