JPS61267096A - Smear drawing display unit for polygonal graphic - Google Patents

Smear drawing display unit for polygonal graphic

Info

Publication number
JPS61267096A
JPS61267096A JP60108810A JP10881085A JPS61267096A JP S61267096 A JPS61267096 A JP S61267096A JP 60108810 A JP60108810 A JP 60108810A JP 10881085 A JP10881085 A JP 10881085A JP S61267096 A JPS61267096 A JP S61267096A
Authority
JP
Japan
Prior art keywords
coordinates
straight line
polygon
vertices
dividing
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.)
Pending
Application number
JP60108810A
Other languages
Japanese (ja)
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.)
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 JP60108810A priority Critical patent/JPS61267096A/en
Publication of JPS61267096A publication Critical patent/JPS61267096A/en
Pending legal-status Critical Current

Links

Abstract

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

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、図形描画表示装置の中でグラフィック表示機
能を有するラスタスキャン型ディスプレイ装置のグラフ
ィック描画表示機能に関し、頂点を指定された多角形図
形の内部をぬりつぶし描画する表示装置に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a graphic drawing display function of a raster scan type display device having a graphic display function among graphic drawing display devices. The present invention relates to a display device that performs color filling.

従来の技術 従来の多角形図形のぬりつぶし方式には、先ず頂点を結
ぶ輪郭線をリフレッシュメモリと同じドット数を持つワ
ークメモリに書込み、ワークメモリ上に描かれた多角形
内に頂点を設定してワークメモリ上に描かれた多角形の
輪郭を参照して一定の処理手順によって順次リフレッシ
ュメモリ上に指定された線種で書込み、処理中に生じた
分岐点のアドレスは内蔵するスタックヘセーブしておい
て、スタックにセーブされた各分岐点を基点として再び
一定の処理手順によって順次リフレッシュメモリ上の指
定領域をぬりつぶす方式がある。この方式は、リフレッ
シュメモリと同じ大きさのワークメモリを必要とし、さ
らに分岐点の検出のだめの処理時間が長くなるという欠
点がある。
Conventional technology The conventional method for filling in polygonal figures involves first writing the contour line connecting the vertices into a work memory with the same number of dots as the refresh memory, and then setting the vertices within the polygon drawn on the work memory. The outline of the polygon drawn on the work memory is referenced and the specified line type is sequentially written on the refresh memory using a certain processing procedure, and the addresses of branch points that occur during processing are saved in the built-in stack. There is a method in which a specified area on the refresh memory is sequentially filled in again by a certain processing procedure using each branch point saved in the stack as a base point. This method requires a work memory of the same size as the refresh memory, and has the disadvantage that the processing time required to detect a branch point is longer.

他の方式として、多角形の輪郭2辺と分割を行う頂点を
通る横軸方向の直線との交点を求め、多角形図形を三角
形または台形の部分に分割したのち、それぞれの三角形
または台形の部分をぬりつぶすことによって多角形内部
をぬりつぶす方式がある。この方式では、図4(a)に
示すような多角形図形をぬシつぶす場合、図4(a)に
示す第1の分割において輪郭E1と分割を行う頂点T2
を通る横軸方向の直線との交点C1と、輪郭E2と直線
との交点C2それぞれの座標を求めるときに計算誤差の
ために交点が輪郭上に一致しないで、たとえば図4(ロ
)に示すように、頂点T1と交点01′。
Another method is to find the intersection between two sides of the polygon's outline and a straight line in the horizontal axis direction passing through the dividing vertex, divide the polygon into triangular or trapezoidal parts, and then divide the polygon into triangular or trapezoidal parts. There is a method to fill in the interior of a polygon by filling in the . In this method, when cutting out a polygonal figure as shown in FIG. 4(a), in the first division shown in FIG. 4(a), the outline E1 and the vertex T2 to be divided are
When calculating the coordinates of the intersection point C1 with a straight line in the horizontal axis direction passing through the line and the intersection point C2 between the contour E2 and the straight line, the intersection points do not coincide with the contour due to a calculation error, as shown in FIG. 4 (b), for example. , the vertex T1 and the intersection 01'.

C2’で囲まれる三角形が分割されることがある。The triangle enclosed by C2' may be split.

このような場合、三角形または台形の部分に分割し、そ
れぞれの部分をぬりつぶすと、図6に示すような多角形
図形のぬりつぶしが行われる。(例えば、「PIXEL
J 、/I61 B 、 129〜133ページ。) 発明が解決しようとする問題点 このような従来の方法では、多角形図形を三角形または
台形の部分に分割した位置で多角形の輪郭が不連続にな
り、ぬりつぶし描画を終えた多角形の輪郭が損われると
いう問題点を有して埴た。
In such a case, if the image is divided into triangular or trapezoidal parts and each part is filled in, a polygonal figure as shown in FIG. 6 is filled in. (For example, “PIXEL
J, /I61 B, pages 129-133. ) Problems to be Solved by the Invention In such conventional methods, the outline of the polygon becomes discontinuous at the positions where the polygonal figure is divided into triangular or trapezoidal parts, and the outline of the polygon that has been filled in is However, there was a problem in that it was damaged.

本発明は、上記問題点に鑑み、頂点を指定された多角形
図形をぬりつぶす際に、新しい処理方式を用いて分割し
た位置での多角形の輪郭が不連続にならない多角形図形
のぬりつぶし方式を提供するものである。
In view of the above-mentioned problems, the present invention provides a polygonal figure filling method that uses a new processing method to prevent the outline of the polygon at the divided positions from becoming discontinuous when filling in a polygonal figure whose vertices are specified. This is what we provide.

問題点を解決するだめの手段 上記問題点を解決するため、頂点を指定された多角形図
形を、多角形図形の輪郭2辺と、分割を行う頂点を通る
横軸方向の直線とに囲まれる三角形または台形の部分に
分割し、三角形または台形の部分をぬりつぶす際に、多
角形図形の輪郭のうち第1及び第2の輪郭の両端の頂点
座標を横軸座標と縦軸座標で指定し、分割を行う直線と
平行な直線の座標を縦軸座標で指定したとき、第1の輪
郭の両端の頂点座標から直線の近似式によって分割を行
う直線と平行な直線の縦軸座標に対応する横軸座標を求
める第1の手段と、第2の輪郭の両端の頂点座標から直
線の近似式によって前記分割を行う直線と平行な直線の
縦軸座標に対する横軸座標を求める第2の手段と、前記
第1及び第2の手段の出力の演算結果を直線の始点、終
点として用いて、分割を行う直線と平行に直線を描く描
画手段を有して、それぞれの三角形または台形の部分を
ぬりつぶすことによって多角形図形の内部をぬりつぶす
機能を備えたものである。
Means to solve the problem In order to solve the above problem, a polygon figure with specified vertices is surrounded by two sides of the outline of the polygon figure and a straight line in the horizontal axis direction passing through the vertices to be divided. When dividing the polygon into triangular or trapezoidal parts and filling in the triangular or trapezoidal part, specify the vertex coordinates of both ends of the first and second outlines of the outline of the polygonal figure using the horizontal axis coordinate and the vertical axis coordinate, When the coordinates of a straight line parallel to the dividing line are specified as vertical axis coordinates, the horizontal coordinates corresponding to the vertical axis coordinates of the straight line parallel to the dividing line are calculated from the coordinates of the vertices at both ends of the first contour using a straight line approximation formula. a first means for determining the axis coordinates; a second means for determining the horizontal axis coordinates relative to the vertical axis coordinates of a straight line parallel to the dividing line using a straight line approximation formula from the vertex coordinates at both ends of the second contour; The method includes drawing means for drawing a straight line parallel to the dividing straight line, using the calculation results of the outputs of the first and second means as the starting point and end point of the straight line, and filling each triangular or trapezoidal part. It has a function to fill in the inside of a polygon shape.

作  用 本発明は上記した構成によって、分割された三角形また
は台形を、多角形の輪郭2辺から限定される横軸方向の
線分でぬりつぶすことによって多角形図形をぬりつぶす
ため、従来のようにぬりつぶしを終えた多角形の輪郭が
分割された点で不連続になることを排除し、多角形の輪
郭を損わないぬりつぶし描画を可能とする。
Effect of the Invention The present invention uses the above-described configuration to fill in a polygonal figure by filling in a divided triangle or trapezoid with line segments in the horizontal axis direction defined from two sides of the polygon's outline. To eliminate discontinuities in the contour of a polygon that has been completed at divided points, and to enable filling drawing without damaging the contour of the polygon.

実施例 以下、本発明の多角形図形のぬりつぶし描画方式の一実
施例について、図面を参照しながら説明する。
Embodiment Hereinafter, an embodiment of the method for filling in polygonal figures according to the present invention will be described with reference to the drawings.

第1図は本発明の実施例を示すブロック図である。第1
図において、10はCPUで各ブロックのパラメータの
設定を行う。11はぬりつぶし制御部で、CPU1oか
らパラメータを受けとシぬりつぶし処理を行う。12は
リフレッシュメモリ、13はビデオ回路、14はラスタ
スキャン型表示器であり、前記ぬりつぶし制御部11で
演算されたぬりつぶし描画データはリフレッシュメモリ
12に書込まれ、リフレッシュメモリ12の内容はビデ
オ回路13においてビデオ信号に変換され、表示器14
に表示される。
FIG. 1 is a block diagram showing an embodiment of the present invention. 1st
In the figure, a CPU 10 sets parameters for each block. Reference numeral 11 denotes a coloring control unit which receives parameters from the CPU 1o and performs coloring processing. 12 is a refresh memory, 13 is a video circuit, and 14 is a raster scan type display device, the filling drawing data calculated by the filling control section 11 is written to the refresh memory 12, and the contents of the refresh memory 12 are stored in the video circuit 13. is converted into a video signal at the display 14
will be displayed.

前記ぬりつぶし制御部11の処理順序を、図2に示す多
角形図形をぬりつぶす場合を例にとって説明する。ここ
で横軸座標はX座標、縦軸座標はY座標とする。
The processing order of the filling control section 11 will be explained by taking as an example the case where a polygonal figure shown in FIG. 2 is filled. Here, the horizontal axis coordinate is the X coordinate, and the vertical axis coordinate is the Y coordinate.

(1)指定された頂点数と頂点座標から、頂点〔T1〜
To)を結ぶ線分すなわち輪郭となる辺〔E1〜Ecs
〕の作成を行い、辺の両端の頂点座標をメモリの所定の
アドレスに書込む。また頂点のY座標のうちの最大値(
Y To)  と最小値〔YT1〕 も求めてメモリの
所定のアドレスに書込む。
(1) From the specified number of vertices and vertex coordinates, select the vertices [T1~
To), the line segment connecting them, that is, the edge [E1 to Ecs
) and write the coordinates of the vertices at both ends of the side to a predetermined address in memory. Also, the maximum value of the Y coordinate of the vertex (
YTo) and the minimum value [YT1] are also determined and written to a predetermined address in the memory.

(2)作成した辺〔E1〜Ee〕の座標をメモリから続
出し、辺の始点(辺の両端の頂点のうちY座標の小さい
点)のY座標に関して昇順にパケットソートを行い、辺
の両端の頂点座標をノート順(El 、E2;E3.E
4;E5.E6〕にメモリの所定のアドレスに書込む。
(2) The coordinates of the created edges [E1 to Ee] are successively retrieved from memory, packet sorted in ascending order with respect to the Y coordinate of the starting point of the edge (the point with the smallest Y coordinate among the vertices at both ends of the edge), and The vertex coordinates of are arranged in note order (El, E2; E3.E
4;E5. E6] to a predetermined address in the memory.

(3)パラメータPを前記Y座標の最小値〔YT1〕と
する。
(3) Set the parameter P to the minimum value of the Y coordinate [YT1].

(4)始点のY座標がパラメータPに等しい辺の両端の
頂点座標をメモリのあるワーク領域に格納し、ワーク領
域内の辺をX座標に関して昇順にソートを行う。(この
例では、先ず〔El;E2〕の順にソートされる。) (5)前記ワーク領域からソートされた順に2辺を読出
し、頂点〔T2〕を通るX軸に平行な直線との交点〔C
1〕、〔C2〕のX座標を計算し、メモリの所定のアド
レスに書込む。この交点座標は、次の分割処理時に(4
)でのX座標に関する昇順ソート時に用いる。
(4) The vertex coordinates of both ends of the side whose starting point's Y coordinate is equal to the parameter P are stored in a work area with memory, and the sides in the work area are sorted in ascending order with respect to the X coordinate. (In this example, it is first sorted in the order of [El; E2].) (5) Read the two sides from the work area in the sorted order, and find the intersection point with the straight line parallel to the X axis passing through the vertex [T2]. C
1], [C2] is calculated and written to a predetermined address in the memory. The coordinates of this intersection point will be determined at the time of the next division process (4
) is used when sorting in ascending order regarding the X coordinate.

この座標計算は、交点〔C1〕の場合には、辺(E 1
 ] O両端(D座標(X T1. Y T1)(X 
Ts、Y Ts)  カら〔xTl、YT1〕ヲ始点と
してデジタル微分解析手法(DDA)により頂点〔T2
〕を通るX軸に平行な直線のY座標(Y T2:l に
対応するX座標を計算することによって求める。交点〔
C2〕の場合には、辺〔E2〕の両端の座標(X T1
.Y T1)(X T3.Y T3:I と (Y T
2)  からDDAKよって求める。
In this coordinate calculation, in the case of the intersection [C1], the side (E 1
] O both ends (D coordinate (X T1. Y T1) (X
Ts, Y Ts) From [xTl, YT1] as the starting point, the vertex [T2
] is obtained by calculating the X coordinate corresponding to the Y coordinate (Y T2:l ) of a straight line parallel to the X axis passing through the intersection point [
C2], the coordinates of both ends of the side [E2] (X T1
.. Y T1) (X T3.Y T3:I and (Y T
2) Obtain from DDAK.

(6)頂点〔T2〕を通るX軸に平行な直線により分割
された部分〔三角形A〕をぬりつぶす。
(6) Fill in the part [triangle A] divided by a straight line parallel to the X-axis passing through the vertex [T2].

このぬりつぶす方法については後述する。This coloring method will be described later.

(7′)前記ワーク領域内に他の辺(El、E2以外の
辺〕があれば(5)に戻り同様の処理を順次繰り返す。
(7') If there are other sides (other than El and E2) in the work area, return to (5) and repeat the same process sequentially.

(8)他の辺がない場合、分割したY座標(Y T2)
  と終点のY座標が等しい辺を前記ワーク領域から取
り除く。
(8) If there are no other sides, the divided Y coordinate (Y T2)
The side whose Y coordinate of the end point is equal to is removed from the work area.

(9)パラメータPが頂点のY座標の最大値(Y Te
3 と等しくなれば処理を終了し、その他の場合にはパ
ラメータPを次に大きいY座標をもつ頂点のY座標(Y
 T2:l  として(4)に戻り、同様の処理を順次
繰り返す。
(9) The parameter P is the maximum value of the Y coordinate of the vertex (Y Te
3, the process ends, and in other cases, the parameter P is set to the Y coordinate (Y
Set T2:l, return to (4), and repeat the same process sequentially.

この例では、以後パラメータPが(Y T2)のときに
は、(4)でワーク領域内に辺(E3.E4)が追加さ
れ、前記(cl:1 、[:C2:lの座標等から(E
l;x2;E3;Ii:4)の順にソートされる。さら
に(句で辺〔E1〕と、頂点〔T3〕を通るX軸に平行
な直線との交点〔C3〕の座標を計算し、分割部分を〔
台形B〕として、(6)で〔台形B〕の部分をぬりつぶ
す。(7)で条件判断後(6)に戻り、辺〔E4〕と、
頂点〔T3〕を通るX軸に平行な直線との交点〔C4〕
を計算し、分割部分を〔三角形C〕として、(6)で〔
三角形C〕の部分をぬりつぶす。さらに(8)で辺1:
E2.E3:lがワーク領域から取シ除かれ(9)の条
件判断でパラメータPを(Y T3)  として(4)
へ戻り、同様の処理を順次繰り返す。
In this example, when the parameter P is (Y T2), the edge (E3.E4) is added to the work area in (4), and (E
1;x2;E3;Ii:4). Furthermore, calculate the coordinates of the intersection point [C3] between the side [E1] and the straight line parallel to the X-axis passing through the vertex [T3], and divide the divided part into [
As trapezoid B], fill in the part of [trapezoid B] in step (6). After determining the condition in (7), return to (6) and select edge [E4],
Intersection with a straight line parallel to the X-axis passing through vertex [T3] [C4]
Calculate the dividing part as [triangle C], and in (6)
Fill in part of triangle C. Furthermore, in (8) side 1:
E2. E3: l is removed from the work area and the parameter P is set to (Y T3) according to the condition judgment of (9) (4)
Go back and repeat the same process.

前記のぬりつぶし方式は、〔三角形A〕をぬりつぶす場
合には、図3(a)のように頂点〔T1〕の座標(X 
T1.Y T1)  t−始点トL、、頂点t:T5)
O座標(X Ts、Y Ts〕 及び頂点〔T3〕の座
標(X Ts、Y T3)  をそれぞれ終点とする2
種のDDA計算によりぬりつぶし範囲内のX軸に平行な
直線〔YT1≦Y≦Y T2)の始点、終点を求め、こ
の線分の位置に対応するリフレッシュメモリのアドレス
に、描画データを書込む。〔台形B〕の部分をぬりつぶ
す場合には、図3申)のように、頂点〔T1〕を始点と
し、頂点(T5)。
In the above-mentioned filling method, when filling in [triangle A], the coordinates (X
T1. Y T1) t-Start point L,, Vertex t: T5)
2 whose end points are the O coordinates (X Ts, Y Ts) and the coordinates of the vertex [T3] (X Ts, Y T3), respectively.
The start and end points of a straight line (YT1≦Y≦YT2) parallel to the X axis within the filling range are determined by the seed DDA calculation, and drawing data is written to the address of the refresh memory corresponding to the position of this line segment. When filling in the part of [Trapezoid B], start from the vertex [T1] and move to the vertex (T5), as shown in Figure 3).

〔T3〕をそれぞれ終点とする2種のDDA計算を行い
、〔YT1≦Y≦Y T2〕間では描画データの書込み
は行わず、(Y T2≦Y≦Y T3:lのときにぬり
つぶし範囲内のX軸に平行な直線の始点、終点を求めデ
ータの書込みをおこなう。
Two types of DDA calculations are performed with [T3] as the end point, and no drawing data is written between [YT1≦Y≦Y T2], and within the filling range when (Y T2≦Y≦Y T3:l) Find the starting and ending points of a straight line parallel to the X-axis and write the data.

以上のように本実施例によれば、多角形図形を分割した
三角形または台形に対して、2種のDDA計算によりぬ
りつぶす直線の始点、終点を求める際に、多角形の同一
の辺の一部を有する三角形または台形に対しては同一の
DDA計算を行うことにより、分割位置での多角形の輪
郭の連続性を損うことなくぬりつぶし描画が可能となる
As described above, according to this embodiment, when determining the starting point and end point of a straight line to be filled in by two types of DDA calculations for a triangle or trapezoid obtained by dividing a polygon, a part of the same side of the polygon is By performing the same DDA calculation for a triangle or trapezoid having , it becomes possible to fill in the polygon without destroying the continuity of the outline of the polygon at the dividing position.

前記の例では、多角形の頂点のうちY座標の最小の頂点
からスタートしたが、Y座標の最大の頂点またはX座標
の最大、最小点からスタートすることも可能であり、ま
たぬりつぶしの直線はX軸に平行でなくY軸に平行な直
線であっても同様に処理できる。
In the above example, we started from the smallest Y-coordinate of the vertices of the polygon, but it is also possible to start from the largest Y-coordinate, or the largest and smallest points of X-coordinate. A straight line that is not parallel to the X-axis but parallel to the Y-axis can be processed in the same way.

発明の効果 以上のように本発明は、頂点を指定された多角形図形を
、多角形図形の輪郭2辺と、分割を行う頂点を通る横軸
方向の直線とに囲まれる三角形または台形の部分に分割
し、三角形または台形の部分をぬりつぶす際に、多角形
図形の輪郭のうち第1及び第2の輪郭の両端の頂点座標
を横軸座標と縦軸座標で指定し、分割を行う直線と平行
な直線の座標を縦軸座標で指定したとき、第1の輪郭の
両端の頂点座標から直線の近似式によって分割を行う直
線と平行な直線の縦軸座標に対応する横軸座標を求める
第1の手段と、第2の輪郭の両端の頂点座標から直線の
近似式によって前記分割を行う直線と平行な直線の縦軸
座標に対する横軸座標を求める第2の手段と、前記第1
及び第2の手段の出力の演算結果を線分の始点、終点と
して用いて分割を行う直線と平行に直線を描く描画手段
を有して、それぞれの三角形または台形の部分をぬりつ
ぶすことによって多角形図形の内部をぬりつぶす機能を
持つことにより、図形描画表示装置の中でグラフィック
表示機能を有するラスタスキャン型ディスプレイ装置の
グラフィック描画表示機能に関し、頂点を指定された多
角形図形の内部を、簡単な構成で、多角形の輪郭の連続
性を損わずにぬりつぶすことができる。
Effects of the Invention As described above, the present invention provides a triangular or trapezoidal portion in which a polygonal figure with designated vertices is surrounded by two sides of the outline of the polygonal figure and a straight line in the horizontal axis direction passing through the dividing vertex. When dividing the polygon into a triangular or trapezoidal part, specify the coordinates of the vertices at both ends of the first and second contours of the polygonal shape using the horizontal axis coordinates and vertical axis coordinates, and then specify the straight line and the dividing line. When the coordinates of parallel straight lines are specified by the vertical axis coordinates, the horizontal axis coordinates corresponding to the vertical axis coordinates of the straight line parallel to the dividing line are calculated from the coordinates of the vertices at both ends of the first contour using a straight line approximation formula. a second means for determining the horizontal axis coordinates relative to the vertical axis coordinates of a straight line parallel to the dividing line using a straight line approximation formula from the vertex coordinates of both ends of the second contour;
and drawing means for drawing a straight line parallel to the dividing line using the calculation result of the output of the second means as the starting point and end point of the line segment, and by filling in each triangular or trapezoidal part, a polygon is formed. By having a function to fill in the inside of a figure, it is possible to easily configure the inside of a polygonal figure whose vertices are specified in relation to the graphic drawing display function of a raster scan type display device that has a graphic display function among figure drawing display devices. You can fill in the polygon without losing its continuity.

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

第1図は、本発明の一実施例を示すブロック図、第2図
は上記実施例におけるぬりつぶし処理順序の一例を示す
図、第3図は多角形の分割部分のぬりつぶしの一例を示
す図、第4図は従来のぬりつぶし方式における処理の一
例を示す図、第6図は従来のぬりつぶし方式におけるぬ
りつぶし例を示す図である。 1o・・・・・・CPU、11・・・・・・ぬりつぶし
制御部、12・・・・・・リフレッシュメモリ、13・
・・・・・ビデオ回、路、14・・・・・・ラスタスキ
ャン型表示器。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 第2図 ル 第3図 丁1 第4図 I 第5図 丁l
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of the filling process order in the above embodiment, FIG. 3 is a diagram showing an example of filling in divided parts of a polygon, FIG. 4 is a diagram showing an example of processing in the conventional coloring method, and FIG. 6 is a diagram showing an example of coloring in the conventional coloring method. 1o...CPU, 11...Coloring control unit, 12...Refresh memory, 13.
...Video circuit, circuit, 14...Raster scan type display. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 2 Figure 3 Figure 1 Figure 4 I Figure 5 Figure 1

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置と、描画データを画素に対応するアドレス
位置に格納し、読出しデータによって図形表示を行うメ
モリを持つラスタスキャン型表示部を備え、前記中央処
理装置から指定された多角形の頂点数、頂点座標に基づ
いて、対応するメモリ上に描画すべき図形の書込みを制
御し、指定された多角形図形を、多角形図形の輪郭2辺
と、分割を行う頂点を通る横軸方向の直線とに囲まれる
三角形または台形の部分に分割し、三角形または台形の
部分をぬりつぶす際に、多角形図形の輪郭のうち第1及
び第2の輪郭の両端の頂点座標を横軸座標と縦軸座標で
指定し、分割を行う直線と平行な直線の座標を縦軸座標
で指定したとき、第1の輪郭の両端の頂点座標から直線
の近似式によって分割を行う直線と平行な直線の縦軸座
標に対応する横軸座標を求める第1の手段と、第2の輪
郭の両端の頂点座標から直線近似によって前記分割を行
う直線と平行な直線の縦軸座標に対する横軸座標を求め
る第2の手段と、前記第1及び第2の手段の出力の演算
結果を直線の始点、終点として用いて、分割を行う直線
と平行に直線を描く描画手段を有して、それぞれの三角
形または台形の部分をぬりつぶすことによって多角形図
形の内部をぬりつぶす機能を備えたぬりつぶし制御部を
備えることを特徴とする多角形図形のぬりつぶし描画表
示装置。
The number of vertices of a polygon specified by the central processing unit includes a central processing unit and a raster scan type display unit having a memory that stores drawing data at address positions corresponding to pixels and displays graphics based on the read data; Based on the vertex coordinates, the writing of the figure to be drawn in the corresponding memory is controlled, and the specified polygon figure is drawn between two sides of the polygon figure's outline and a straight line in the horizontal axis direction passing through the vertex to be divided. When dividing the polygon into triangular or trapezoidal parts surrounded by , and filling in the triangular or trapezoidal parts, the coordinates of the vertices at both ends of the first and second outlines of the outline of the polygon are determined by the horizontal axis coordinates and the vertical axis coordinates. When the coordinates of a straight line parallel to the dividing line are specified as vertical coordinates, the coordinates of the vertices at both ends of the first contour are converted to the vertical coordinates of the straight line parallel to the dividing line using a straight line approximation formula. a first means for determining the corresponding horizontal axis coordinate; and a second means for determining the horizontal axis coordinate with respect to the vertical axis coordinate of a straight line parallel to the dividing line by linear approximation from the coordinates of the vertices at both ends of the second contour. , a drawing means for drawing a straight line parallel to the dividing straight line using the calculation results of the outputs of the first and second means as the starting point and end point of the straight line, and filling each triangular or trapezoidal part. What is claimed is: 1. A display device for displaying a polygonal figure by coloring the inside of the polygonal figure.
JP60108810A 1985-05-21 1985-05-21 Smear drawing display unit for polygonal graphic Pending JPS61267096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60108810A JPS61267096A (en) 1985-05-21 1985-05-21 Smear drawing display unit for polygonal graphic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60108810A JPS61267096A (en) 1985-05-21 1985-05-21 Smear drawing display unit for polygonal graphic

Publications (1)

Publication Number Publication Date
JPS61267096A true JPS61267096A (en) 1986-11-26

Family

ID=14494064

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60108810A Pending JPS61267096A (en) 1985-05-21 1985-05-21 Smear drawing display unit for polygonal graphic

Country Status (1)

Country Link
JP (1) JPS61267096A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764234A (en) * 1993-03-19 1998-06-09 Fujitsu Limited Trapezoidal partitioning method and apparatus therefor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6074086A (en) * 1983-09-30 1985-04-26 Fujitsu Ltd Graphic processor
JPS6079474A (en) * 1983-10-07 1985-05-07 Fujitsu Ltd Painting-out/hatching processing system of graphic data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6074086A (en) * 1983-09-30 1985-04-26 Fujitsu Ltd Graphic processor
JPS6079474A (en) * 1983-10-07 1985-05-07 Fujitsu Ltd Painting-out/hatching processing system of graphic data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764234A (en) * 1993-03-19 1998-06-09 Fujitsu Limited Trapezoidal partitioning method and apparatus therefor

Similar Documents

Publication Publication Date Title
EP0592770B1 (en) Method for filling of interior pixels within a polygon
US6215501B1 (en) Method and filling a polygon and recording medium
JP2770582B2 (en) Figure filling device
JPS61267096A (en) Smear drawing display unit for polygonal graphic
JPH02270019A (en) Generation system for high quality character pattern
JPH07120427B2 (en) Graphic processing system
JP4320604B2 (en) Image processing method and image processing apparatus
US6226014B1 (en) Ellipse filling graphics method
EP0357076B1 (en) Inclined rectangular pattern generating system
US7667714B2 (en) Patterned polygon rendering apparatus
JPH0350686A (en) Graphic processing system
JP2835056B2 (en) High quality character pattern generation method
JP2903514B2 (en) High-speed drawing method
JP2782904B2 (en) Polygon fill method
JPS6315288A (en) 3-d graphic display unit
JP2714114B2 (en) Graphic processing method and graphic system
JP3154343B2 (en) How to fill in polygonal shapes
JP2605609B2 (en) Dot display processing device
JPH0330076A (en) Picture drawing system for repeated pattern
JP3567728B2 (en) Image processing method and apparatus
JPH0752466B2 (en) Raster operation device and method
JP2804651B2 (en) Outline filling method
JPS63240682A (en) Clipping processing system for graphic display
JPS6236690A (en) Smearing drawing display unit for polygonal graphic
JPS6283790A (en) Image processor