JPH01233674A - Circular arc and ellipse arc generator - Google Patents

Circular arc and ellipse arc generator

Info

Publication number
JPH01233674A
JPH01233674A JP6098088A JP6098088A JPH01233674A JP H01233674 A JPH01233674 A JP H01233674A JP 6098088 A JP6098088 A JP 6098088A JP 6098088 A JP6098088 A JP 6098088A JP H01233674 A JPH01233674 A JP H01233674A
Authority
JP
Japan
Prior art keywords
point
arc
ellipse
specified
circular
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
JP6098088A
Other languages
Japanese (ja)
Other versions
JP2722487B2 (en
Inventor
Koichi Horiuchi
浩一 堀内
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63060980A priority Critical patent/JP2722487B2/en
Publication of JPH01233674A publication Critical patent/JPH01233674A/en
Application granted granted Critical
Publication of JP2722487B2 publication Critical patent/JP2722487B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To generate a circular arc and ellipse arc of which endpoint is a specified point by correcting into the point to be generated by a circular and ellipse circuit when the endpoint of the specified circular arc and ellipse arc exists in an area except the point generation proceeding direction of the circular and ellipse generation circuit. CONSTITUTION:When an endpoint detection circuit 102 compares the coordinate of a point to be generated by a circular and ellipse generation circuit 101 and the coordinate of the endpoint of the specified circular arc and ellipse arc and the endpoint of the specified circular arc end ellipse arc exists in the area except the point generation proceeding direction of the circular and ellipse generation circuit 101, it is corrected into the point to be generated by the circular and ellipse generation circuit 101. Consequently, the endpoint of the circular arc and ellipse arc specified on the point to be generated by the circular and ellipse generation circuit 101 is not detected as the endpoint of the circular arc and ellipse arc until the specified point is generated by the circular and ellipse generation circuit 101. Thus, when the point to be generated by the circular arc and ellipse arc generator is specified as the endpoint, the circular arc and ellipse arc of which endpoint is the specified point without fail can be generated.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、グラフィックス描画システムにおいて、高品
質の円弧・楕円弧を発生する円弧・楕円弧発生装置に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a circular arc/elliptical arc generating device for generating high quality circular arcs/elliptical arcs in a graphics drawing system.

従来の技術 従来の円弧・楕円弧発生装置の一例(例えば、日経工、
レクトロニクス、1987年2月23日、P141)を
第3図に示す。
Prior art An example of a conventional arc/elliptical arc generator (for example, Nikkeiko,
Lectronics, February 23, 1987, P141) is shown in Figure 3.

第3図は、円弧・楕円弧が第一象限に存在し、反時計回
りに点を発生する時の例を示す説明図である。第3図に
おいて、301は発生する円弧・楕円弧、302は円弧
・楕円弧301の発生開始点、303は円弧・楕円弧3
01の発生終了点、304は接線の傾きが135度の円
弧・楕円弧301上の点、305は円弧・楕円弧301
の開始点として指定された指定開始点、306は円弧・
楕円弧301の終了点として指定された指定終了点、3
07は指定された指定点である。
FIG. 3 is an explanatory diagram showing an example when a circular arc/elliptical arc exists in the first quadrant and points are generated counterclockwise. In Fig. 3, 301 is the generated circular arc/elliptical arc, 302 is the starting point of the circular arc/elliptical arc 301, and 303 is the circular/elliptical arc 3.
01 occurrence end point, 304 is a point on the circular arc/elliptic arc 301 with a tangent slope of 135 degrees, 305 is the circular arc/elliptic arc 301
The specified starting point, 306, is a circular arc.
Specified end point designated as the end point of the elliptical arc 301, 3
07 is the specified designated point.

以上のように構成された従来の円弧・楕円弧発生装置に
おいては、発生する円弧・楕円弧を含む円・楕円を1点
毎に順次発生し、発生した点が開始点または終了点であ
るか順次判定し検出することにより、開始点と終了点と
の間で円弧・楕円弧を発生する。この時、開始点または
終了点をどの位置に指定しても円弧・楕円弧発生装置の
発生する点に補正する。つまり、接線の傾きが135度
より小さい時には、Y座標だけが一致していれば、指定
開始点305が発生開始点302に補正されるように補
正する。接線の傾きが135度より大きい時には、X座
標だけが一致していれば、指定終了点306が発生終了
点303に補正されるように補正する。接線の傾きが1
35度の時には、X座標とY座標が共に発生点の座標以
上であれば、指定点307が点304に補正されるよう
に補正する。
In the conventional arc/elliptical arc generating device configured as described above, a circle/ellipse including the generated circular arc/elliptical arc is sequentially generated point by point, and it is sequentially determined whether the generated point is the starting point or the ending point. By detecting this, a circular arc or an elliptical arc is generated between the start point and the end point. At this time, no matter which position the start point or end point is specified, it is corrected to the point generated by the circular arc/elliptic arc generator. That is, when the slope of the tangent line is smaller than 135 degrees, the specified starting point 305 is corrected to the occurrence starting point 302 if only the Y coordinates match. When the slope of the tangent is greater than 135 degrees, the specified end point 306 is corrected to the occurrence end point 303 if only the X coordinates match. The slope of the tangent is 1
When the angle is 35 degrees, if both the X and Y coordinates are greater than or equal to the coordinates of the generation point, the specified point 307 is corrected to the point 304.

発明が解決しようとする課題 しかしながら、上記のような構成では次のような問題点
がある。
Problems to be Solved by the Invention However, the above configuration has the following problems.

第4図は、中心点の座標が(0,O)で長軸半径が10
で短軸半径が1の楕円として発生される第−象限上の点
を示す説明図である。例えば、第4図において、点A 
(10,0)を楕円の開始点として反時計回りに点B 
(9,0)を端点(開始点または終了点)として指定さ
れる楕円弧を発生する場合を考える。点Aは接線の傾き
が135度より小さいので、Y座標がOである指定され
た端点Bは点Aに補正され、点Aが端点として検出され
る。従って、点Bは実際に発生される楕円弧上の点であ
るのにもかかわらず、点Bを端点とする楕円弧を発生す
ることができない。
In Figure 4, the coordinates of the center point are (0, O) and the major axis radius is 10.
FIG. 2 is an explanatory diagram showing points on the -th quadrant generated as an ellipse with a minor axis radius of 1. For example, in Figure 4, point A
Point B counterclockwise with (10,0) as the starting point of the ellipse
Consider the case of generating an elliptical arc with (9,0) specified as the end point (starting point or ending point). Since the slope of the tangent at point A is smaller than 135 degrees, the specified end point B whose Y coordinate is O is corrected to point A, and point A is detected as the end point. Therefore, even though point B is a point on an elliptical arc that is actually generated, it is not possible to generate an elliptical arc with point B as the end point.

また、第4図において、点A(10,0)を楕円の開始
点として反時計回りに点C(10,1)を開始点とし点
D(9,1)を終了点として指定される楕円弧を発生す
る場合を考える。点Bは接線の傾きが135度の点とみ
なされるので、指定された開始点Cは点Bに補正され、
点Bが開始点として検出される。次に、指定された終了
点りを検出しようとするが、点りは点Bにのみ補正され
ることができるので、E点以降の点では検出されずに一
周回るまで暴走してしまう。
In addition, in Fig. 4, an elliptical arc specified counterclockwise with point A (10, 0) as the starting point of the ellipse and point C (10, 1) as the starting point and point D (9, 1) as the ending point. Consider the case where this occurs. Point B is considered to be a point where the slope of the tangent line is 135 degrees, so the specified starting point C is corrected to point B,
Point B is detected as the starting point. Next, an attempt is made to detect the specified end point, but since the point can only be corrected to point B, the point after point E is not detected and runs out of control until it completes one round.

上記のように、第3図の構成を持つような円弧・楕円弧
発生装置では、円弧・楕円弧発生装置の発生する点を端
点として指定しても、実際に発生する端点とすることの
できない点があるという問題点と、円弧・楕円弧発生装
置の発生する点以外の点を端点として指定すると、暴走
することがあるという問題点を有していた。
As mentioned above, with the arc/elliptic arc generator having the configuration shown in Figure 3, even if you specify the point where the arc/elliptic arc generator generates as an end point, there are points that cannot actually be set as the end points. The problem is that if a point other than the point where the arc/elliptic arc generator generates is specified as an end point, it may run out of control.

本発明はかかる点に鑑み、円弧・楕円弧発生装置の発生
する点を端点として指定する場合、必ず指定された点を
端点とする円弧・楕円弧を発生し、また円弧・楕円弧発
生装置の発生する点以外の点を端点として指定する場合
でも、暴走することなく円弧・楕円弧を発生することの
できる円弧・楕円弧発生装置を提供することを目的とす
る。
In view of this point, the present invention, when specifying a point generated by a circular arc/elliptic arc generator as an end point, always generates a circular arc/elliptic arc having the specified point as an end point, and also generates a point generated by the circular arc/elliptic arc generator. To provide a circular arc/elliptical arc generator capable of generating circular arcs/elliptical arcs without running out of control even when points other than those specified as end points are specified.

課題を解決するための手段 本発明は、上記問題点を解決するために、円・楕円を発
生する円・楕円発生回路と、上記円・楕円発生回路の発
生する点の座標と指定された円弧・楕円弧の端点の座標
を比較し、指定された円弧・楕円弧の端点が上記円・楕
円発生回路の点発生進行方向以外の領域内に存在する時
上記円・楕円発生回路の発生する点に補正する端点検出
回路を備えた円弧・楕円弧発生装置である。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a circle/ellipse generating circuit that generates circles/ellipses, and a circular arc specified as the coordinates of the point where the circle/ellipse is generated.・Compare the coordinates of the end points of the elliptical arcs, and if the end point of the specified circular/elliptical arc exists in a region other than the point generation direction of the above circle/ellipse generation circuit, correct it to the point generated by the above circle/ellipse generation circuit. This is a circular arc/elliptical arc generator equipped with an end point detection circuit.

作   用 本発明は上記した構成により、端点検出回路が円・楕円
発生回路の発生する点の座標と指定された円弧・楕円弧
の端点の座標を比較し、指定された円弧・楕円弧の端点
が円・楕円発生回路の点発生進行方向以外の領域内に存
在する持回・楕円発生回路の発生する点に補正するので
、円・楕円発生回路の発生する点上に指定された円弧・
楕円弧の端点は、指定された点が円・楕円発生回路によ
り発生されるまで円弧・楕円弧の端点として検出される
ことはない。従って、円弧・楕円弧発生装置の発生する
点を端点として指定する場合、必ず指定された点を端点
とする円弧・楕円弧を発生することができる。また、ど
の指定された端点も円・楕円発生回路の発生する複数の
点に補正されることができるので、円弧・楕円弧発生装
置の発生する点以外の点を端点として指定しても、暴走
することがない。
According to the above-described configuration, the end point detection circuit compares the coordinates of the point generated by the circle/ellipse generating circuit with the coordinates of the end point of the specified circular arc/elliptical arc, and determines whether the end point of the specified circular arc/elliptical arc is a circle.・Correction is made to points where the ellipse generation circuit generates points that exist in a region other than the point generation direction of the ellipse generation circuit.
The end point of the elliptical arc is not detected as the end point of the circular arc/elliptic arc until the specified point is generated by the circle/ellipse generating circuit. Therefore, when specifying a point generated by the circular arc/elliptic arc generator as an end point, it is possible to always generate a circular arc/elliptic arc having the specified point as the end point. In addition, any specified end point can be corrected to multiple points generated by the circle/ellipse generator, so even if you specify a point other than the point generated by the arc/ellipse generator as an end point, it will not run out of control. Never.

実施例 第1図は本発明の円弧・楕円弧発生装置の一実施例を示
すブロック図である。第1図において、101は円・楕
円を発生する円・楕円発生回路、102は端点検出回路
、103は円・楕円発生回路101が発生する点のX座
標(DX)を保持するレジスタ、104は円・楕円発生
回路101が発生する点のX座標(DY)を保持するレ
ジスタ、105は指定された円弧・楕円弧の開始点のX
座標(SX)を保持するレジスタ、106は指定された
円弧・楕円弧の開始点のX座標(SY)を保持するレジ
スタ、107は指定された円弧・楕円弧の終了点のX座
標(EX)を保持するレジスタ、108は指定された円
弧・楕円弧の終了点のX座標(EY)を保持するレジス
タ、109はレジスタ105とレジスタ107の内容を
選択し、指定された円弧・楕円弧の端点のX座標(TX
)として出力するセレクタ。110はレジスタ106と
レジスタ108の内容を選択し、指定された円弧・楕円
弧の端点のX座標(TY)として出力するセレクタ。1
11はセレクタ109の出力とレジスタ103の内容を
比較する比較器、112はセレクタ110の出力とレジ
スタ104の内容を比較する比較器、113は円・楕円
発生回路101が出力する点発生進行方向に従い、比較
器111と比較器112の出力より、セレクタ109と
セレクタ110の出力により示される指定された円弧・
楕円弧の端点がレジスタ103とレジスタ104の内容
により示される円・楕円発生回路101の発生する点を
基準として点発生進行方向以外の領域内に存在するか判
定する判定回路、114は判定回路113の出力に従い
、レジスタ103とレジスタ104の内容を円弧・楕円
弧の座標として出力する出力制御回路である。
Embodiment FIG. 1 is a block diagram showing an embodiment of the circular arc/elliptic arc generating device of the present invention. In FIG. 1, 101 is a circle/ellipse generation circuit that generates a circle/ellipse, 102 is an end point detection circuit, 103 is a register that holds the X coordinate (DX) of a point generated by the circle/ellipse generation circuit 101, and 104 is a register that holds the X coordinate (DX) of a point generated by the circle/ellipse generation circuit 101. A register that holds the X coordinate (DY) of the point generated by the circle/ellipse generation circuit 101, 105 is the X of the starting point of the specified arc/ellipse arc
A register that holds the coordinates (SX), 106 is a register that holds the X coordinate (SY) of the starting point of the specified circular arc/elliptical arc, and 107 holds the X coordinate (EX) of the end point of the specified circular arc/elliptical arc. 108 is a register that holds the X coordinate (EY) of the end point of the specified circular arc/elliptical arc, 109 selects the contents of register 105 and register 107, and stores the X coordinate (EY) of the end point of the specified circular arc/elliptic arc. TX
) as a selector. A selector 110 selects the contents of the register 106 and the register 108 and outputs it as the X coordinate (TY) of the end point of the specified circular arc/elliptic arc. 1
11 is a comparator that compares the output of the selector 109 and the contents of the register 103; 112 is a comparator that compares the output of the selector 110 and the contents of the register 104; 113 is a comparator that compares the output of the selector 110 and the contents of the register 104; , from the outputs of the comparators 111 and 112, the specified circular arc indicated by the outputs of the selectors 109 and 110.
A determination circuit 114 determines whether the end point of the elliptical arc exists in a region other than the direction of point generation progress based on the point generated by the circle/ellipse generation circuit 101 indicated by the contents of the registers 103 and 104; This is an output control circuit that outputs the contents of registers 103 and 104 as coordinates of circular arcs and elliptical arcs according to the output.

第2図は第1図における判定回路113の動作を説明す
る説明図である。第2図は、円弧・楕円弧が第一象限に
存在し、反時計回りに点を発生する時の例を示す。第2
図において、201は発生する円弧・楕円弧、202は
円弧・楕円弧201の発生開始点、203は円弧・楕円
弧201の発生終了点、204は円弧・楕円弧201の
開始点として指定された指定開始点、205は円弧・楕
円弧201の終了点として指定された指定終了点である
FIG. 2 is an explanatory diagram illustrating the operation of the determination circuit 113 in FIG. 1. FIG. 2 shows an example when a circular arc/elliptical arc exists in the first quadrant and points are generated counterclockwise. Second
In the figure, 201 is a generated circular arc/elliptical arc, 202 is a generation start point of the circular arc/elliptical arc 201, 203 is a generation end point of the circular arc/elliptical arc 201, 204 is a designated starting point designated as the starting point of the circular arc/elliptical arc 201, 205 is a designated end point designated as the end point of the circular arc/elliptical arc 201.

以上のように構成された本実施例の円・楕円発生装置に
ついて、以下にその動作を説明する。
The operation of the circle/ellipse generator of this embodiment configured as described above will be explained below.

第2図に示す円弧を発生する場合、次のような動作が行
われる。初めに、レジスタ105とレジスタ106に格
納されている指定開始点204の座標(SX、S、Y)
が、セレクタ109とセレクタ110により指定端点の
座標(TX、TY)として選択される。円・楕円発生器
101は第2図の点Pを開始点とする円の座標(DX、
DY)を1点ずつ発生し、レジスタ103と104に格
納する。(DX、DY)と(TX、TY)は、比較器1
11と比較器112により各々比較され、判定回路11
3により(DX、DY)が(TX、TY)と等しいかど
うか判定され、結果が円・楕円発生回路101とセレク
タ109とセレクタ110と出力制御回路114に出力
される。等しくないと判定された場合、円・楕円発生器
101は次の点を発生する。等しいと判定された場合、
出力制御回路114は(DX、DY)を円弧201上の
点として出力し、円・楕円発生器101は次の点を発生
する。このようにして指定開始点204が検出されると
、レジスタ107とレジスタ108に格納されている指
定終了点205の座標(EX、EY)が、セレクタ10
9とセレクタ110により指定端点の座標(TX、TY
)として新たに選択される。(DX、DY)と(TX、
TY)は、比較器111と比較器112により各々比較
され、判定回路113により(DX、DY)が(TX、
TY)と等しいかどうか判定される。等しくないと判定
された場合、出力制御回路114は(DX、DY)を円
弧201上の点として出力し、円・楕円発生器101は
次の点を発生する。
When generating the arc shown in FIG. 2, the following operations are performed. First, the coordinates (SX, S, Y) of the specified starting point 204 stored in register 105 and register 106
is selected by the selector 109 and the selector 110 as the coordinates (TX, TY) of the specified end point. The circle/ellipse generator 101 generates the coordinates (DX,
DY) is generated one point at a time and stored in registers 103 and 104. (DX, DY) and (TX, TY) are comparator 1
11 and a comparator 112, and the determination circuit 11
3, it is determined whether (DX, DY) is equal to (TX, TY), and the result is output to the circle/ellipse generation circuit 101, the selector 109, the selector 110, and the output control circuit 114. If it is determined that they are not equal, the circle/ellipse generator 101 generates the next point. If it is determined that they are equal,
The output control circuit 114 outputs (DX, DY) as a point on the arc 201, and the circle/ellipse generator 101 generates the next point. When the specified start point 204 is detected in this way, the coordinates (EX, EY) of the specified end point 205 stored in the register 107 and register 108 are
9 and selector 110 to select the coordinates (TX, TY) of the specified end point.
) will be newly selected. (DX, DY) and (TX,
TY) are compared by the comparators 111 and 112, and the determination circuit 113 determines that (DX, DY) is (TX,
TY). If it is determined that they are not equal, the output control circuit 114 outputs (DX, DY) as a point on the arc 201, and the circle/ellipse generator 101 generates the next point.

等しいと判定された場合、出力制御回路114は(DX
、DY)を円弧201上の点として出力し、円・楕円発
生器101は次の点の発生を停止する。
If it is determined that they are equal, the output control circuit 114 (DX
, DY) as a point on the arc 201, and the circle/ellipse generator 101 stops generating the next point.

この時、判定回路113は円・楕円発生回路101の点
発生進行方向に従い、次に示す方法により(TX、TY
)の動的な補正を行う。(DX。
At this time, the determination circuit 113 follows the point generation direction of the circle/ellipse generation circuit 101 and uses the following method (TX, TY
) is dynamically corrected. (DX.

DY)の接線の傾きが135度より小さい時には、円・
楕円発生回路101の点発生進行方向は(DX、DY+
1)、  (DX−1,DY−1−1)。
When the slope of the tangent to DY) is less than 135 degrees, the circle
The point generation direction of the ellipse generation circuit 101 is (DX, DY+
1), (DX-1, DY-1-1).

(I)X、−1,DY)で、主に(DX、DY+1)に
進行する。従って、これらの点発生方向の領域内の点は
、今後、円・楕円発生回路101 +:より発生される
可能イ1があるので、これ以外の点発生進行方向以外の
領域について考える。例えば、指定開始点204が発生
開始点202に補正されるように、(TX、TY)が次
の式を満たす領域内にあれば(DX、DY)と等しいと
みなす。
(I) X, -1, DY) and mainly progresses to (DX, DY+1). Therefore, since there is a possibility that points within the area in these point generation directions will be generated by the circle/ellipse generation circuit 101 +: in the future, we will consider other areas other than the point generation direction. For example, so that the designated starting point 204 is corrected to the occurrence starting point 202, if (TX, TY) is within a region that satisfies the following equation, it is considered to be equal to (DX, DY).

(TX≧FIX)・(TV≦DY)+(TX<DX)−
(TV<DY)  。
(TX≧FIX)・(TV≦DY)+(TX<DX)−
(TV<DY).

TX≧O、TV≧O=−(1) (DX、DY)の接線の傾きが135度以上−の時には
、円・楕円発生回路101の点発生進行方向は(DX、
DY+1)、(DX−1,DY+1)、(DX−1,D
Y)で、主に(D>I−1,DY)に進行する。従って
、指定終了点205が発生終了点203に補正されるよ
うに、(TX、TY〉が次の式を満たす領域内にあれば
(DX、DY)と等しいとみなす。
TX≧O, TV≧O=-(1) When the slope of the tangent line of (DX, DY) is 135 degrees or more, the point generation direction of the circle/ellipse generation circuit 101 is (DX, DY).
DY+1), (DX-1, DY+1), (DX-1, D
Y) and mainly progresses to (D>I-1, DY). Therefore, so that the designated end point 205 is corrected to the generated end point 203, if (TX, TY> is within a region that satisfies the following equation), it is considered to be equal to (DX, DY).

(TX≧IIX)−(TV≦I)Y)+(TX>DX)
−(TV>DY)  。
(TX≧IIX)-(TV≦I)Y)+(TX>DX)
-(TV>DY).

TX;? O、TV:’< O−(2)例えば、第4図
において、点A (10,O)を楕円の開始点として反
時計回りに点B (9,O)を端点Jニジて指定される
楕円弧を発生ずる場合を考える。点Aは接線の傾きが1
.35度より小さいので、端点検出のために式(1)が
用いられる。
TX;? O, TV:'< O-(2) For example, in Figure 4, point A (10, O) is the starting point of the ellipse, and point B (9, O) is specified as the end point J in a counterclockwise direction. Consider the case of generating an elliptical arc. At point A, the slope of the tangent is 1
.. Since it is smaller than 35 degrees, equation (1) is used to detect the end point.

(TX、 TY) = (9,O)と(DX、DY)=
(10,0)は式(1)を満たさないので、点Aは端点
と1ノC検出されない。次に、点Bは接線の傾きが13
5度以コニなので式(2)が用いられる。(TX、TY
)= (9,O)と(DX、DY)= (9,O)は式
(2)を満たすので、点13は端点として検出される。
(TX, TY) = (9, O) and (DX, DY) =
Since (10,0) does not satisfy equation (1), point A is not detected as an end point. Next, at point B, the slope of the tangent line is 13
Since the angle is 5 degrees or more, equation (2) is used. (TX, TY
)=(9,O) and (DX,DY)=(9,O) satisfy equation (2), so point 13 is detected as an endpoint.

このように、円弧・楕円弧発生装置の発生ずる点を端点
として指定する場合、必ず指定された点を端点とする円
弧・楕円弧を発生することができる。
In this way, when the point at which the arc/elliptic arc generator generates is specified as an end point, it is possible to always generate a circular arc/elliptic arc having the specified point as the end point.

また、第4−図において、点A (10,0)を楕円の
開始点として反時計回りに点C(10,1)を開始点と
し点D(9,1)を終了点として指定される楕円弧を発
生ずる場合を考える。前述の例と同様にして、点Aは開
始点として検出されない。指定された開始点Cは点Bに
補正され、点Bは開始点として検出される。次に、指定
された終了点りを検出しようとする。点Eは式(2)が
用いられる。(TX、TY)= (9,1)とくDX、
DY)= (8,1)は式(2)を満たすので、点Eは
終了点として検出される。このように、円弧・楕円弧発
生装置の発生する点以外の点を端点として指定する場合
でも、暴走することなく円弧・楕円弧を発生することが
できる。
In addition, in Figure 4, point A (10,0) is specified as the starting point of the ellipse, and point C (10,1) is specified as the starting point and point D (9,1) is specified as the ending point. Consider the case of generating an elliptical arc. Similar to the previous example, point A is not detected as a starting point. The specified starting point C is corrected to point B, and point B is detected as the starting point. Next, an attempt is made to find the specified end point. For point E, equation (2) is used. (TX, TY) = (9, 1) DX,
Since DY)=(8,1) satisfies equation (2), point E is detected as the end point. In this way, even when a point other than the point generated by the circular arc/elliptic arc generator is specified as an end point, the circular arc/elliptical arc can be generated without running out of control.

なお、本実施例では円・楕円発生回路の点発生進行方向
以外の領域を式(1)または式く2)で表したが、これ
以外の点発生進行方向以外の領域でも同様の効果が得ら
れる。また、本実施例では第一象限に存在する円弧・楕
円弧を反時計回りに発生ずる場合について説明したが、
これ以外の場合についても円・楕円の対称性を利用すれ
ば同様の効果が得られる。
Note that in this embodiment, the area other than the point generation progressing direction of the circle/ellipse generating circuit is expressed by equation (1) or equation 2), but the same effect can be obtained in other areas other than the point generation progressing direction. It will be done. Furthermore, in this embodiment, the case where circular arcs and elliptical arcs existing in the first quadrant are generated counterclockwise has been explained.
Similar effects can be obtained in other cases by utilizing the symmetry of circles and ellipses.

発明の詳細 な説明したように、本発明によれば、円・楕円発生回路
の発生ずる点の座標と指定された円弧・楕円弧の端点の
座標を比較し、指定された円弧・楕円弧の端点が上記内
・楕円発生回路の点発生進行方向以外の領域内に存在す
る時−上記内・楕円発生回路の発生する点に補正する端
点検出回路により、円弧・楕円弧発生装置の発生する点
を端点として指定する場合、必ず指定された点を端点と
する円弧・楕円弧を発生し、また円弧・楕円弧発生装置
の発生する点以外の点を端点として指定する場合でも、
暴走することなく円弧・楕円弧を発生することができる
ので、その実用的効果は大きい。
DETAILED DESCRIPTION OF THE INVENTION As described in detail, according to the present invention, the coordinates of the generating point of the circle/ellipse generating circuit are compared with the coordinates of the end point of the designated circular arc/elliptical arc, and the end point of the designated circular arc/elliptical arc is determined. When existing in a region other than the point generation direction of the above inner/ellipse generating circuit - The end point detection circuit corrects to the point generated by the above inner/ellipse generating circuit, using the point generated by the arc/elliptic arc generator as an end point. When specified, a circular arc/elliptical arc with the specified point as the end point is always generated, and even if a point other than the point generated by the arc/elliptic arc generator is specified as the end point,
Since circular arcs and elliptical arcs can be generated without running out of control, the practical effect is great.

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

第1図は本発明における一実施例の円弧・楕円弧発生装
置のブロック図、第2図は同実施例の動作を示す説明図
、第3図は従来の円弧・楕円弧発生装置の動作を示す説
明図、第4図は第1図と第3図の動作を示す説明図であ
る。 101・・・円・楕円発生回路、 102・・・端点検出回路、 103.104.105.106.107.108・・
・レジスタ、 109.110・・・セレクタ、 111.112・・・比較器、 113・・・・・・判定回路。
Fig. 1 is a block diagram of a circular arc/elliptical arc generating device according to an embodiment of the present invention, Fig. 2 is an explanatory diagram showing the operation of the same embodiment, and Fig. 3 is an explanation showing the operation of a conventional circular arc/elliptic arc generating device. 4 are explanatory diagrams showing the operations of FIGS. 1 and 3. 101... Circle/ellipse generation circuit, 102... End point detection circuit, 103.104.105.106.107.108...
- Register, 109.110... Selector, 111.112... Comparator, 113... Judgment circuit.

Claims (1)

【特許請求の範囲】[Claims] 円・楕円を発生する円・楕円発生回路と、上記円・楕円
発生回路の発生する点の座標と指定された円弧・楕円弧
の端点の座標を比較し、指定された円弧・楕円弧の端点
が上記円・楕円発生回路の点発生進行方向以外の領域内
に存在する時上記円・楕円発生回路の発生する点に補正
する端点検出回路を具備することを特徴とする円弧・楕
円弧発生装置
Compare the coordinates of the point generated by the circle/ellipse generation circuit that generates a circle/ellipse with the coordinates of the end point of the specified arc/ellipse arc, and then compare the end point of the specified arc/ellipse arc with the one above. A circular/elliptical arc generating device comprising an end point detection circuit that corrects the point generated by the circle/ellipse generating circuit when the point exists in a region other than the direction in which the point is generated in the circle/ellipse generating circuit.
JP63060980A 1988-03-15 1988-03-15 Arc / coast generator Expired - Fee Related JP2722487B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63060980A JP2722487B2 (en) 1988-03-15 1988-03-15 Arc / coast generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63060980A JP2722487B2 (en) 1988-03-15 1988-03-15 Arc / coast generator

Publications (2)

Publication Number Publication Date
JPH01233674A true JPH01233674A (en) 1989-09-19
JP2722487B2 JP2722487B2 (en) 1998-03-04

Family

ID=13158085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63060980A Expired - Fee Related JP2722487B2 (en) 1988-03-15 1988-03-15 Arc / coast generator

Country Status (1)

Country Link
JP (1) JP2722487B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61235894A (en) * 1985-04-11 1986-10-21 横河電機株式会社 Circular arc drawing
JPS63198172A (en) * 1987-02-13 1988-08-16 Nec Corp End point detecting circuit for arc

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61235894A (en) * 1985-04-11 1986-10-21 横河電機株式会社 Circular arc drawing
JPS63198172A (en) * 1987-02-13 1988-08-16 Nec Corp End point detecting circuit for arc

Also Published As

Publication number Publication date
JP2722487B2 (en) 1998-03-04

Similar Documents

Publication Publication Date Title
US4593372A (en) Line generating method
US4758690A (en) Coordinate detecting method
JPH01233674A (en) Circular arc and ellipse arc generator
JPH0523439B2 (en)
US5568601A (en) Sampling point generating apparatus
US20120176395A1 (en) System, method and computer program product for color processing of point-of-interest color
US5235678A (en) Circuit for detecting an end point of an arc
JPH01267785A (en) Circular arc and elliptic arc generating device
JPH07106216A (en) Deflecting signal transmitter
JPS6232519B2 (en)
JP2969650B2 (en) Beam center position detector
JPS6299824A (en) Error correcting method for coordinate reading device
JPH04329483A (en) Image processor
JP3178102B2 (en) Image inclination detecting method and apparatus
JPS63298387A (en) Oval arc lithography apparatus
JPH04294471A (en) Plotting system for circle, circular arc, ellipse, and elliptical arc
JPS63223690A (en) Oval acr lithography apparatus
JPS6272078A (en) Paint-out drawing device in circle
JP2513702B2 (en) Elliptical arc display system
JPS63276182A (en) Approximate processing system for graphic data
JP2872393B2 (en) Edge detection method
JP2894042B2 (en) Image operation method
JPH10190754A (en) Center error detection circuit for fsk receiver
JPH0914938A (en) Orientation flat detection device of wafer
JP2004070378A (en) Unit and method for controlling angle

Legal Events

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