[go: up one dir, main page]

JPH05128272A - Intersection calculation method in straight line drawing processing - Google Patents

Intersection calculation method in straight line drawing processing

Info

Publication number
JPH05128272A
JPH05128272A JP31170991A JP31170991A JPH05128272A JP H05128272 A JPH05128272 A JP H05128272A JP 31170991 A JP31170991 A JP 31170991A JP 31170991 A JP31170991 A JP 31170991A JP H05128272 A JPH05128272 A JP H05128272A
Authority
JP
Japan
Prior art keywords
dot
straight line
value
intersection
operator
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
JP31170991A
Other languages
Japanese (ja)
Other versions
JP2937587B2 (en
Inventor
Hideki Fujita
秀樹 藤田
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.)
Hitachi Ltd
Original Assignee
Hitachi Telecom Technologies 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 Hitachi Telecom Technologies Ltd filed Critical Hitachi Telecom Technologies Ltd
Priority to JP3311709A priority Critical patent/JP2937587B2/en
Publication of JPH05128272A publication Critical patent/JPH05128272A/en
Application granted granted Critical
Publication of JP2937587B2 publication Critical patent/JP2937587B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Image Analysis (AREA)

Abstract

(57)【要約】 【目的】 直線描画処理時間の高速化および描画品質の
向上を可能とする。 【構成】 描画する直線の始点および終点の差分を算出
し、描画する直線の描画開始ドットを算出する演算子の
値を設定すると共に境界線の近傍でかつ描画領域外の暫
定交点の座標を設定し、演算子の現在値が基準値を超え
たか否かを判定し、基準値を超えるまで暫定交点の座標
を変更してダミードットを形成すると共に演算子の現在
値を更新して新たな値を現在値とする行程を繰り返し、
演算子の現在値が所定値を超えたとき1の方向に直交す
る方向の座標を終点の方向に1ドット変更して描画開始
ドットとする構成となっている。
(57) [Abstract] [Purpose] It is possible to speed up the line drawing processing time and improve drawing quality. [Structure] Calculate the difference between the start and end points of the line to be drawn, set the value of the operator that calculates the drawing start dot of the line to be drawn, and set the coordinates of the temporary intersection near the boundary and outside the drawing area. Then, it is determined whether the current value of the operator exceeds the reference value, the coordinates of the temporary intersection are changed to form dummy dots until the current value of the operator is exceeded, and the current value of the operator is updated to a new value. Repeat the process with the current value of
When the current value of the operator exceeds a predetermined value, the coordinate in the direction orthogonal to the direction of 1 is changed by 1 dot in the direction of the end point to be the drawing start dot.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、レーザプリンタやワー
プロ等の描画処理装置における直線描画処理の交点算出
方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for calculating an intersection of straight line drawing processing in a drawing processing apparatus such as a laser printer or a word processor.

【0002】[0002]

【従来の技術】図5は一般的な描画処理装置におけるX
座標およびY座標でドットの位置を表す描画可能領域を
示すものである。図5において、A、B、CおよびDの
範囲で示される領域は、ユーザにより任意に設定される
描画領域であり、X軸方向の境界線clipx0および
clipx1、Y軸方向の境界線clipy0およびc
lipy1によって囲まれた領域である。この描画領域
に直線を描画する際に、直線の描画点すなわちドットの
座標を始点から終点までダミードットを発生させて、交
点の座標を算出しつつ描画を行うと、直線と境界線との
交点を正確に算出できる反面、直線が長い場合には交点
を算出するのに処理ステップ数すなわち処理時間が必要
以上に要していた。そこで、従来の直線描画処理の交点
算出方法では、数1に示すような数式により、交点の座
標(xp,yp)を算出して、これを描画開始ドットと
して描画を行っていた。
2. Description of the Related Art FIG. 5 shows an X in a general drawing processing apparatus.
It shows a drawable area that represents the position of a dot with coordinates and a Y coordinate. In FIG. 5, areas indicated by ranges A, B, C, and D are drawing areas arbitrarily set by the user, and include boundary lines clipx0 and clipx1 in the X-axis direction and boundary lines clip0 and c in the Y-axis direction.
It is a region surrounded by lipy1. When a straight line is drawn in this drawing area, dummy dots are generated from the start point to the end point of the line drawing point, that is, dot coordinates, and when drawing is performed while calculating the coordinates of the intersection, the intersection of the straight line and the boundary line However, when the straight line is long, the number of processing steps, that is, the processing time, is longer than necessary to calculate the intersection. Therefore, in the conventional intersection calculation method of the straight line drawing processing, the coordinates (xp, yp) of the intersection are calculated by the mathematical formula as shown in Formula 1, and the drawing is performed by using this as the drawing start dot.

【数1】[Equation 1]

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記従来
の直線描画処理の交点算出方法では、描画領域内にあり
ながら描画されないドットが生じていた。例えば図6に
示すように、描画する直線と描画領域A点の境界線cl
ipy0との真の交点は、数1で算出した交点(xp,
yp)の1つ前のドットであるにも拘らず、真の交点が
描画されず描画品質が劣化するという問題があった。
However, in the above-described conventional intersection calculation method of the straight line drawing processing, there are dots which are in the drawing area but are not drawn. For example, as shown in FIG. 6, a boundary line cl between the line to be drawn and the drawing area A point cl
The true intersection with ipy0 is the intersection (xp,
However, there is a problem that the true intersection is not drawn and the drawing quality is deteriorated even though the dot is one before yp).

【0004】本発明は上記従来の問題を解決するもので
あり、数式による交点算出でありながら、真の交点を描
画できる描画品質の高い優れた直線描画処理の交点算出
方法を提供することを目的とする。
The present invention solves the above-mentioned conventional problems, and an object of the present invention is to provide an intersection point calculation method of an excellent straight line drawing process with high drawing quality capable of drawing a true intersection point even though the intersection point is calculated by a mathematical expression. And

【0005】[0005]

【課題を解決するための手段】本発明は、上記目的を達
成するために、描画する直線の始点および終点の差分を
算出し、描画する直線の描画開始ドットを算出する演算
子の値を設定し、X軸方向又はY軸方向の内1の方向の
境界線の近傍でかつ描画領域外の暫定交点の座標を設定
し、演算子の現在値が基準値を超えたか否かを判定し、
基準値を超えるまで暫定交点の1の方向の座標を終点の
方向に1ドット分変更してダミードットを形成すると共
に演算子の現在値を更新して新たな値を現在値とする行
程を繰り返し、演算子の現在値が所定値を超えたとき1
の方向に直交する方向の座標を終点の方向に1ドット変
更して描画開始ドットとする構成となっている。
In order to achieve the above object, the present invention sets a value of an operator for calculating a difference between a starting point and an ending point of a straight line to be drawn and calculating a drawing start dot of the straight line to be drawn. Then, the coordinates of the tentative intersection near the boundary line in one direction in the X-axis direction or the Y-axis direction and outside the drawing area are set, and it is determined whether or not the current value of the operator exceeds the reference value,
Until the standard value is exceeded, the coordinate in the 1 direction of the temporary intersection is changed by 1 dot in the direction of the end point to form a dummy dot, and the current value of the operator is updated and the process of setting the new value as the current value is repeated. , When the current value of the operator exceeds the specified value 1
The coordinate in the direction orthogonal to the direction is changed by 1 dot in the direction of the end point to be the drawing start dot.

【0006】[0006]

【作用】したがって本発明は、描画する直線と交差する
描画領域外の境界線の近傍で暫定交点を算出し、この暫
定交点から後にダミードットを形成して描画始ドットを
算出するので、処理ステップ数の低減と、メモリアクセ
ス数の低減を図ることができ、処理の高速化が得られる
と共に、ダミードットの形成により正確な描画開始ドッ
トを算出できるので、高い描画品質が得られるという効
果がある。
Therefore, according to the present invention, the provisional intersection is calculated in the vicinity of the boundary line outside the drawing area which intersects the straight line to be drawn, and the dummy dot is formed after this provisional intersection to calculate the drawing start dot. The number of memory cells and the number of memory accesses can be reduced, the processing speed can be increased, and an accurate drawing start dot can be calculated by forming a dummy dot, so that high drawing quality can be obtained. ..

【0007】[0007]

【実施例】以下、本発明の直線描画処理における交点算
出方法の一実施例を図面を参照して詳細に説明する。図
1は,描画する直線が図6の場合と同様に、X軸方向の
境界線clipy0と交差する場合に、描画処理装置内
におけるコントローラ(図示せず)によって実行される
交点算出ルーチンのフローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a method for calculating an intersection in a straight line drawing process of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a flowchart of an intersection point calculation routine executed by a controller (not shown) in the drawing processing device when the drawn line intersects the boundary line clip0 in the X-axis direction, as in the case of FIG. is there.

【0008】まず、図1のステップS1で、描画領域外
でかつ境界線clipy0の近傍の暫定交点(xp,y
p)を数2によって算出する。また、描画する直線の描
画開始ドットを算出する変数である演算子Eの初期値
(E=−|dx|)を設定する。したがって初期値は基
準値である0より小さくE<0となる。
First, in step S1 of FIG. 1, a temporary intersection (xp, y) outside the drawing area and near the boundary line clip0.
p) is calculated by the equation 2. Further, the initial value (E = − | dx |) of the operator E, which is a variable for calculating the drawing start dot of the drawing line, is set. Therefore, the initial value is smaller than the reference value 0 and E <0.

【数2】[Equation 2]

【0009】次に、ステップS2において、暫定交点
(xp,yp)のX座標xpを1ドット分X軸方向の終
点側に更新した座標(xp+1,yp)にダミードット
を形成すると共に、演算子Eの現在値を数3により更新
した新たな値を現在値とする。
Next, in step S2, a dummy dot is formed at the coordinate (xp + 1, yp) where the X coordinate xp of the temporary intersection (xp, yp) is updated to the end point side in the X-axis direction by one dot, and the operator is formed. A new value obtained by updating the current value of E by Equation 3 is used as the current value.

【数3】この演算子Eの現在値は、ステップS3で基準
値である「0」と比較され、演算子EがE≦0の場合に
は、ステップS2に移行して、ダミードットを形成する
と共に演算子Eの値を更新する。そして、ステップS3
において演算子EがE>0となるまで、ステップS2お
よびステップS3の行程を繰り返し、E>0となったと
きはステップS4に移行して、直前のダミードットのY
座標をY軸方向の終点側に1ドット分更新したダミード
ットを形成して、ステップS5でこの最新のダミードッ
トがclipy0内か、すなわち描画領域内か否かを判
定し、描画領域内でなければ、ステップS6において演
算子Eの現在値を数4により更新して、ステップS2に
移行してステップS5までの各ステップを実行する。そ
して、最新のダミードットが描画領域内であれば、交点
算出ルーチンを終了する。そして、この最新のダミード
ットを描画開始ドットとして直線の描画を開始する。
## EQU00003 ## The current value of the operator E is compared with the reference value "0" in step S3. If the operator E is E≤0, the process proceeds to step S2 to form a dummy dot. And the value of the operator E is updated. And step S3
In step S3, the steps S2 and S3 are repeated until the operator E becomes E> 0. When E> 0, the process proceeds to step S4, and the dummy dot Y immediately before is processed.
A dummy dot with one dot updated on the end point side in the Y-axis direction is formed, and it is determined in step S5 whether or not the latest dummy dot is in clip0, that is, in the drawing area. For example, in step S6, the current value of the operator E is updated by the equation 4, the process proceeds to step S2, and each step up to step S5 is executed. Then, if the latest dummy dot is within the drawing area, the intersection point calculation routine ends. Then, the drawing of a straight line is started using the latest dummy dot as a drawing start dot.

【数4】[Equation 4]

【0010】上記の例は、描画する直線がclipy0
と交差する場合の交点算出ルーチンであるが、clip
y1又はclipx0若しくはx1と交差する場合に
は、数2は数5ないし数7となる。すなわち、数1ない
し数4における更新の方向等が異なるだけで、上記の例
と同様の交点算出方法で描画開始ドットを設定すること
が可能である。
In the above example, the straight line to be drawn is clipy0.
This is the intersection calculation routine when intersecting with
When intersecting with y1 or clipx0 or x1, Formula 2 becomes Formula 5 to Formula 7. That is, it is possible to set the drawing start dot by the same intersection point calculation method as in the above example, except that the update direction and the like in Formulas 1 to 4 are different.

【数5】[Equation 5]

【数6】[Equation 6]

【数7】[Equation 7]

【0011】次に、描画する直線の角度を算出して、こ
のような更新の方向を決定する一方法について図2およ
び図3を参照して説明する。図2は、描画する直線の始
点と終点のX軸方向の差分の絶対値|dx|が、Y軸方
向の差分の絶対値|dy|よりも大きい場合、すなわち
直線とX軸とのなす角度の絶対値|θ|が45度よりも
小さい場合を判定するものである。この場合には、描画
する直線はclipy0およびclipy1と交差する
ものとする。また、この場合には、始点から終点までX
座標の絶対ドット数は、Y座標の絶対ドット数以上でな
ければならない。
Next, a method for calculating the angle of a straight line to be drawn and determining such an updating direction will be described with reference to FIGS. 2 and 3. FIG. 2 shows a case where the absolute value | dx | of the difference between the start point and the end point of the drawn straight line in the X-axis direction is larger than the absolute value | dy | of the difference in the Y-axis direction, that is, the angle between the straight line and the X-axis. The absolute value | θ | of is smaller than 45 degrees. In this case, the straight line to be drawn intersects clip0 and clip1. In this case, X from the start point to the end point
The absolute number of dots in the coordinates must be greater than or equal to the number of absolute dots in the Y coordinate.

【0012】また、図3は、描画する直線の始点と終点
のX軸方向の差分の絶対値|dx|が、Y軸方向の差分
の絶対値|dy|以下の場合、すなわち直線とX軸との
なす角度の絶対値|θ|が45度以上の場合を判定する
ものである。この場合には、描画する直線はclipx
0およびclipx1と交差するものとする。また、こ
の場合には、始点から終点までY座標の絶対ドット数
は、X座標の絶対ドット数以上でなければならない。
Further, FIG. 3 shows that the absolute value | dx | of the difference in the X-axis direction between the start point and the end point of the drawn straight line is less than or equal to the absolute value | dy | of the difference in the Y-axis direction, that is, the straight line and the X-axis. The absolute value | θ | of the angle formed by and is determined to be 45 degrees or more. In this case, the line to draw is clipx
Shall intersect 0 and clipx1. Further, in this case, the absolute dot number of the Y coordinate from the start point to the end point must be equal to or more than the absolute dot number of the X coordinate.

【0013】図4に、図1の交点算出ルーチンにより得
られた交点算出方法による直線の描画状態を示す。この
場合には、dx=34、dy=6であるので、描画する
直線のX軸方向の絶対ドット数は、Y軸方向の絶対ドッ
ト数よりも多く5倍のドット数となる。このドット数の
比は、dxおよびdyのそれぞれの絶対値の比に基づい
て決定される。上記数2により算出された暫定交点の座
標(xp,yp)は、(x0+17,clipy0−
1)となり、演算子Eの初期値は−34となる。
FIG. 4 shows a straight line drawn by the intersection calculation method obtained by the intersection calculation routine of FIG. In this case, since dx = 34 and dy = 6, the absolute dot number in the X-axis direction of the drawn straight line is five times as many as the absolute dot number in the Y-axis direction. The ratio of the number of dots is determined based on the ratio of absolute values of dx and dy. The coordinates (xp, yp) of the provisional intersection calculated by the above equation 2 are (x0 + 17, clipy0-
1), and the initial value of the operator E is -34.

【0014】次に、図1のステップS2で暫定交点の座
標からX軸方向に1ドット分更新した座標(x0+1
8,clipy0−1)にダミードットを形成し、数3
により演算子Eを更新してE=−22とする。E<0で
あるから、ステップS2に戻って再び座標(x0+1
9,clipy0−1)にダミードットを形成し、更新
した演算子E=−10を算出する。ここではまだ演算子
Eが負であるので、座標(x0+20,clipy0−
1)にダミードットを形成して、演算子Eを更新してE
=2とする。ここで初めて演算子Eが正となるので、ス
テップS4に移行してY軸方向に1ドット分更新した座
標(xp´,yp´)の点を求める。この点の座標(x
0+20,clipy0)は、clipy0内すなわち
描画領域内にあるので、この点を真の交点すなわち描画
開ドットとする。
Next, in step S2 of FIG. 1, the coordinates (x0 + 1) updated by one dot in the X-axis direction from the coordinates of the temporary intersection.
8, a dummy dot is formed in the clip 0-1), and
Then, the operator E is updated to E = -22. Since E <0, the process returns to step S2 and the coordinates (x0 + 1
9. Dummy dots are formed in 9, clip 0-1) and the updated operator E = -10 is calculated. Since the operator E is still negative here, the coordinates (x0 + 20, clip0-
Dummy dots are formed in 1) and the operator E is updated to E
= 2. Here, since the operator E becomes positive for the first time, the process proceeds to step S4, and the point of the coordinates (xp ', yp') updated by one dot in the Y-axis direction is obtained. The coordinates of this point (x
0 + 20, clipy0) is in clipy0, that is, in the drawing area, so this point is a true intersection, that is, a drawing open dot.

【0015】このように、直線を描画する際に、暫定交
点を算出することにより、処理ステップ数およびメモリ
アクセス数を低減することができ、この暫定交点からダ
ミードットを形成することにより、描画領域の境界線と
直線との真の交点を算出して描画開始ドットとするの
で、描画品質を向上することができる。
As described above, when the straight line is drawn, the number of processing steps and the number of memory accesses can be reduced by calculating the provisional intersection, and by forming dummy dots from the provisional intersection, the drawing area is formed. Since the true intersection of the boundary line and the straight line is calculated and used as the drawing start dot, the drawing quality can be improved.

【0016】[0016]

【発明の効果】本発明によれば、上記実施例より明らか
なように、描画領域に直線を描画する際に、描画する直
線と交差する描画領域外の境界線の近傍で暫定交点を算
出し、この暫定交点から後にダミードットを生成して描
画開始ドットを算出するので、処理ステップ数の低減
と、メモリアクセス数の低減を図ることができ、処理の
高速化が得られると共に、ダミードットの生成により正
確な描画開始ドットを算出できるので、高い描画品質が
得られるという効果がある。
As is apparent from the above embodiment, according to the present invention, when a straight line is drawn in the drawing area, a temporary intersection is calculated in the vicinity of the boundary line outside the drawing area that intersects the drawn straight line. , The dummy dot is generated after this tentative intersection and the drawing start dot is calculated, so that the number of processing steps and the number of memory accesses can be reduced, the processing speed can be increased, and the dummy dot Since accurate drawing start dots can be calculated by generation, there is an effect that high drawing quality can be obtained.

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

【図1】本発明の直線描画処理における交点算出方法の
一実施例の処理手順を示すフローチャートである。
FIG. 1 is a flowchart showing a processing procedure of an embodiment of an intersection point calculation method in a straight line drawing processing of the present invention.

【図2】本実施例の直線と描画領域の境界付近のX軸方
向の境界線との交差の特定条件の説明図である。
FIG. 2 is an explanatory diagram of a specific condition for intersecting a straight line and a boundary line in the X-axis direction near a boundary of a drawing area according to the present embodiment.

【図3】本実施例の直線と描画領域の境界付近のY軸方
向の境界線との交差の特定条件の説明図である。
FIG. 3 is an explanatory diagram of a specific condition for intersecting a straight line and a boundary line in the Y-axis direction near a boundary of a drawing area according to the present embodiment.

【図4】 本実施例の描画領域のX軸方向の境界線と直
線が45度以下の交点算出処理の説明図である。
FIG. 4 is an explanatory diagram of an intersection point calculation process in which a boundary line and a straight line in the X-axis direction of the drawing area of the present embodiment are 45 degrees or less.

【図5】描画処理装置におけるX座標およびY座標でド
ットの位置を表す描画可能領域を示す図である。
FIG. 5 is a diagram showing a drawable area in which a dot position is represented by X and Y coordinates in the drawing processing apparatus.

【図6】従来の描画領域のX軸方向の境界線と直線が4
5度以下の交点算出処理の説明図である。
FIG. 6 shows that the boundary line and the straight line in the X-axis direction of the conventional drawing area are 4
It is explanatory drawing of the intersection calculation process of 5 degrees or less.

【数1】 xp=x0+dx/dy*(clipy0−y0) yp=clipy0## EQU1 ## xp = x0 + dx / dy * (clipy0-y0) yp = clipy0

【数2】xp=x0+dx/dy*{(clipy0−
y0)−1} yp=clipy0−1
## EQU00002 ## xp = x0 + dx / dy * {(clipy0-
y0) -1} yp = clipy0-1

【数3】E=E+|2*dy|[Equation 3] E = E + | 2 * dy |

【数4】E=E+|2*dx|[Equation 4] E = E + | 2 * dx |

【数5】xp=x0+dx/dy*{(clipy1−
y0)−1} yp=clipy1−1
## EQU00005 ## xp = x0 + dx / dy * {(clipy1-
y0) -1} yp = clipy1-1

【数6】xp=clipx0−1 yp=x0+dy/dx*{(clipx0−x0)−
1}
Xp = clipx0-1 yp = x0 + dy / dx * {(clipx0-x0)-
1}

【数7】xp=clipx1−1 yp=x0+dy/dx*{(clipx1−x0)−
1}
## EQU00007 ## xp = clipx1-1 yp = x0 + dy / dx * {(clipx1-x0)-
1}

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 X座標およびY座標でドットの位置を表
す描画可能領域において、X軸およびY軸方向の境界線
によって囲まれた描画領域に直線を描画する際に、前記
境界線と描画する直線との交点を算出する方法であっ
て、 描画する直線の始点および終点の差分を算出し、描画す
る前記直線の描画開始ドットを算出する演算子の値を設
定し、前記X軸方向又はY軸方向の内1の方向の境界線
の近傍でかつ前記描画領域外の暫定交点の座標を設定
し、前記演算子の現在値が基準値を超えたか否かを判定
し、前記基準値を超えるまで前記暫定交点の前記1の方
向の座標を前記終点の方向に1ドット分変更したダミー
ドットを形成すると共に前記現在値を更新して新たな値
を現在値とする行程を繰り返し、前記現在値が前記基準
値を超えたとき前記1の方向に直交する方向の座標を前
記終点の方向に1ドット変更して前記描画開始ドットと
することを特徴とする直線描画処理における交点算出方
法。
1. When drawing a straight line in a drawing area surrounded by a boundary line in the X-axis and Y-axis directions in a drawable area that represents the position of a dot by the X coordinate and the Y coordinate, it is drawn with the boundary line. A method of calculating an intersection with a straight line, comprising: calculating a difference between a start point and an end point of a straight line to be drawn, setting a value of an operator for calculating a drawing start dot of the straight line to be drawn, Coordinates of a temporary intersection near the boundary line in one of the axial directions and outside the drawing area are set, and it is determined whether the current value of the operator exceeds a reference value, and the reference value is exceeded. Until the dummy dot is formed by changing the coordinate in the direction 1 of the tentative intersection to the direction of the end point, the process of updating the current value and setting the new value as the current value is repeated until the current value is reached. When exceeds the reference value How intersection calculation in the linear drawing process, characterized in that by changing one dot in the direction of the coordinate perpendicular to the first direction in the direction of the end point and the drawing start dot.
【請求項2】 前記1の方向は、前記差分の前記X軸方
向の絶対値が前記Y軸方向の絶対値より大のときは前記
X軸方向とし、前記X軸方向の絶対値が前記Y軸方向の
絶対値以下のときは前記Y軸方向とすることを特徴とす
る請求項1記載の直線描画処理における交点算出方法。
2. The direction 1 is the X-axis direction when the absolute value of the difference in the X-axis direction is larger than the absolute value in the Y-axis direction, and the absolute value in the X-axis direction is the Y-direction. The intersection point calculation method in the straight line drawing process according to claim 1, wherein when the absolute value in the axial direction is less than or equal to the absolute value, the Y-axis direction is set.
JP3311709A 1991-10-30 1991-10-30 Intersection calculation method in line drawing processing Expired - Fee Related JP2937587B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3311709A JP2937587B2 (en) 1991-10-30 1991-10-30 Intersection calculation method in line drawing processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3311709A JP2937587B2 (en) 1991-10-30 1991-10-30 Intersection calculation method in line drawing processing

Publications (2)

Publication Number Publication Date
JPH05128272A true JPH05128272A (en) 1993-05-25
JP2937587B2 JP2937587B2 (en) 1999-08-23

Family

ID=18020526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3311709A Expired - Fee Related JP2937587B2 (en) 1991-10-30 1991-10-30 Intersection calculation method in line drawing processing

Country Status (1)

Country Link
JP (1) JP2937587B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657328A (en) * 2018-12-12 2019-04-19 中国航空工业集团公司西安航空计算技术研究所 A kind of TLM micro-structure towards GPU hardware linear light gated Boundary algorithm
CN109685875A (en) * 2018-12-12 2019-04-26 中国航空工业集团公司西安航空计算技术研究所 A kind of GPU linear light gated feature modeling optimization method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01116889A (en) * 1987-10-30 1989-05-09 Hitachi Ltd Straight line drawing system in clipping area

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01116889A (en) * 1987-10-30 1989-05-09 Hitachi Ltd Straight line drawing system in clipping area

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657328A (en) * 2018-12-12 2019-04-19 中国航空工业集团公司西安航空计算技术研究所 A kind of TLM micro-structure towards GPU hardware linear light gated Boundary algorithm
CN109685875A (en) * 2018-12-12 2019-04-26 中国航空工业集团公司西安航空计算技术研究所 A kind of GPU linear light gated feature modeling optimization method
CN109657328B (en) * 2018-12-12 2023-03-14 中国航空工业集团公司西安航空计算技术研究所 TLM microstructure for GPU hardware line rasterization boundary algorithm
CN109685875B (en) * 2018-12-12 2023-03-24 中国航空工业集团公司西安航空计算技术研究所 GPU line rasterization boundary calculation optimization method

Also Published As

Publication number Publication date
JP2937587B2 (en) 1999-08-23

Similar Documents

Publication Publication Date Title
CN109035363B (en) Line-circle optimal fitting method for rapid iteration
CN113787518A (en) Robot tail end attitude control method, device, equipment and storage medium
JPH05128272A (en) Intersection calculation method in straight line drawing processing
US6914602B2 (en) Approximating gradients with offset midpoints
JPH07262243A (en) Shape data check method
JP2878614B2 (en) Image synthesis method and apparatus
JPH0769968B2 (en) Straight line drawing method in the clip area
JPH06274308A (en) Uniform modeling generation processing method for bezier curve
CN112386908B (en) Method and device for generating river section pattern in 3D game map
JPH06274613A (en) Curve approximation device
JPH10116347A (en) Circular arc plotting method
JP3505970B2 (en) Input position coordinate correction method
JPH11202920A (en) Track interpolating method of automatic machine
JP3774489B2 (en) Graphic processing method and apparatus
JP3035141B2 (en) Character creation device and character creation method
JP2639148B2 (en) How to specify the polishing range in the polishing device
JPH0554145A (en) Straight line generating method
JPH10124691A (en) Method for plotting circle
CN118330983A (en) OPC method and device for improving metal line end point photoetching process window
CN117911467A (en) Point cloud registration method and device, terminal equipment and storage medium
JPH10275240A (en) Circular arc interpolation processing method
JP2613653B2 (en) Image processing device
JPS607128A (en) Formation of resist pattern
JP2783143B2 (en) Computer-aided design equipment
JPH05242258A (en) Graphic plotting method

Legal Events

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