JP2971765B2 - Polygon drawing method and polygon drawing device - Google Patents

Polygon drawing method and polygon drawing device

Info

Publication number
JP2971765B2
JP2971765B2 JP6322356A JP32235694A JP2971765B2 JP 2971765 B2 JP2971765 B2 JP 2971765B2 JP 6322356 A JP6322356 A JP 6322356A JP 32235694 A JP32235694 A JP 32235694A JP 2971765 B2 JP2971765 B2 JP 2971765B2
Authority
JP
Japan
Prior art keywords
polygon
vertex
interpolation
span
vertex data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP6322356A
Other languages
Japanese (ja)
Other versions
JPH07234946A (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.)
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=26570779&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP2971765(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6322356A priority Critical patent/JP2971765B2/en
Publication of JPH07234946A publication Critical patent/JPH07234946A/en
Application granted granted Critical
Publication of JP2971765B2 publication Critical patent/JP2971765B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータグラフィ
ック等に使用されるCRTディスプレイ等の表示装置
に、多角形を高速に描画するための多角形描画方法及び
多角形描画装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a polygon drawing method and a polygon drawing device for drawing a polygon at high speed on a display device such as a CRT display used for computer graphics and the like.

【0002】[0002]

【従来の技術】コンピュータグラフィック分野におい
て、高速に描画を行う描画装置が利用されるようになっ
た。描画装置の描画速度を向上させる技術として、描画
装置の機能を利用して多角形を描画する手法が開発され
ている。
2. Description of the Related Art In the field of computer graphics, drawing apparatuses for drawing at high speed have come to be used. As a technique for improving the drawing speed of the drawing apparatus, a technique of drawing a polygon using the function of the drawing apparatus has been developed.

【0003】以下に従来の描画装置により多角形を描画
する手法について説明する。図15は従来の描画装置の
構成を示すブロック図である。図において、801は三
角形分離装置、802は三角頂点レジスタ、803は三
角辺1補間装置、804は三角辺2補間装置、805は
三角辺3補間装置、806は補間データ選択装置、82
1はポリゴン頂点データ、822は三角形頂点データ、
823は三角辺端点データ、824は三角辺1直線補間
データ、825は三角辺2直線補間データ、826は三
角辺3直線補間データ、827はスパン端点2データ、
828は三角形データ確定信号、829は次スパン送出
し要求信号、106は輪郭生成装置、107は直線描画
装置、108は画像メモリ、109は表示装置、130
はメモリライトデータ信号、131は映像信号である。
A method for drawing a polygon by a conventional drawing apparatus will be described below. FIG. 15 is a block diagram showing a configuration of a conventional drawing apparatus. In the figure, reference numeral 801 denotes a triangle separation device, 802 denotes a triangle vertex register, 803 denotes a triangle 1 interpolation device, 804 denotes a triangle 2 interpolation device, 805 denotes a triangle 3 interpolation device, 806 denotes an interpolation data selection device, and 82
1 is polygon vertex data, 822 is triangle vertex data,
823 is triangle end point data, 824 is triangle side 1 linear interpolation data, 825 is triangle side 2 linear interpolation data, 826 is triangle side 3 linear interpolation data, 827 is span end point 2 data,
828 is a triangle data decision signal, 829 is a next span transmission request signal, 106 is a contour generation device, 107 is a straight line drawing device, 108 is an image memory, 109 is a display device, 130
Is a memory write data signal, and 131 is a video signal.

【0004】以上のように構成された描画装置の動作に
ついて、以下に図に従って説明する。図16は従来の描
画装置の三角形分離過程を示す図であり、201は描画
対象ポリゴン、901はポリゴン分離三角形1、902
はポリゴン分離三角形2、903はポリゴン分離三角形
3である。
[0004] The operation of the drawing apparatus configured as described above will be described below with reference to the drawings. FIG. 16 is a diagram showing a triangle separation process of a conventional drawing apparatus, where 201 is a drawing target polygon, 901 is a polygon separation triangle 1 and 902.
Is a polygon separation triangle 2, and 903 is a polygon separation triangle 3.

【0005】図17は従来の描画装置のスパンによる三
角形補間過程を示す図であり、1001は分割された三
角形の三角頂点1、1002は分割された三角形の三角
頂点2、1003は分割された三角形の三角頂点3、1
004は分割された三角形の三角辺1、1005は分割
された三角形の三角辺2、1006は分割された三角形
の三角辺3、1007は分割された三角形の三角形補間
水平スパンである。
FIG. 17 is a diagram showing a triangular interpolation process based on a span of a conventional drawing apparatus. In FIG. 17, reference numeral 1001 denotes a triangular vertex 1 of a divided triangle, 1002 denotes a triangular vertex 2 of a divided triangle, and 1003 denotes a divided triangle. Triangle vertex 3, 1
004 is the triangle side 1 of the divided triangle, 1005 is the triangle side 2 of the divided triangle, 1006 is the triangle side 3 of the divided triangle, and 1007 is the triangle interpolation horizontal span of the divided triangle.

【0006】図18は従来の描画装置の分割された三角
形によるポリゴン補間過程を示す図であり、1101は
水平スパンにより補間されたポリゴン分離三角形1、1
102は水平スパンにより補間されているポリゴン分離
三角形2、1103はポリゴン分離三角形2を補間して
いる水平スパンである。
FIG. 18 is a diagram showing a polygon interpolation process using a divided triangle of a conventional drawing apparatus. Reference numeral 1101 denotes a polygon separation triangle 1, 1 interpolated by a horizontal span.
Reference numeral 102 denotes a polygon separating triangle 2 interpolated by a horizontal span, and 1103 denotes a horizontal span interpolating the polygon separating triangle 2.

【0007】まず三角形分離装置801に描画対象ポリ
ゴン201のポリゴン頂点データ821を与えると三角
形分離装置801は描画対象ポリゴン201をポリゴン
分離三角形1(901)とポリゴン分離三角形2(90
2)とポリゴン分離三角形3(903)に分割して、各
々の三角形頂点データである三角形頂点データ822を
順に生成する。
First, when the polygon vertex data 821 of the polygon 201 to be drawn is given to the triangle separating device 801, the triangle separating device 801 converts the polygon 201 to be drawn into a polygon separating triangle 1 (901) and a polygon separating triangle 2 (90).
2) and polygon separation triangle 3 (903), and triangle vertex data 822 as each triangle vertex data is generated in order.

【0008】次に三角頂点レジスタ802は、三角形分
離装置801によって生成された三角形頂点データ82
2を受けて、一つの長辺と二つの短辺に分離して、描画
方向に従った三角辺端点データ823を生成する。従来
の描画装置は、三角形を表示装置109の上から下の方
向へ水平直線(以降、ポリゴン分離三角形を補間する
「水平スパン」1103と呼ぶ)で補間する。そのた
め、三角辺1補間装置803には、辺補間開始頂点とし
て分割された三角形の三角頂点1(1001)と辺補間
終了頂点として分割された三角形の三角頂点2(100
2)を設定し、三角辺2補間装置804には、辺補間開
始頂点として分割された三角形の三角頂点1(100
1)と辺補間終了頂点として分割された三角形の三角頂
点3(1003)を設定し、三角辺3補間装置805に
は、辺補間開始頂点として分割された三角形の三角頂点
2(1002)と辺補間終了頂点として分割された三角
形の三角頂点3(1003)をそれぞれ設定する。
Next, the triangle vertex register 802 stores the triangle vertex data 82 generated by the triangle separating device 801.
Receiving the data 2, the data is separated into one long side and two short sides, and triangular side end point data 823 according to the drawing direction is generated. The conventional drawing device interpolates triangles from above to below the display device 109 with a horizontal straight line (hereinafter, referred to as “horizontal span” 1103 for interpolating polygon separation triangles). Therefore, the triangular side 1 interpolator 803 includes a triangular vertex 1 (1001) of a triangle divided as a side interpolation start vertex and a triangular vertex 2 (1001) of a triangle divided as a side interpolation end vertex.
2) is set, and the triangular side 2 interpolation device 804 sets the triangular vertex 1 (100
1) and a triangle triangular vertex 3 (1003) divided as a side interpolation end vertex are set, and a triangle triangular vertex 2 (1002) and a side divided as a side interpolation start vertex are set in the triangle side 3 interpolator 805. Triangle vertices 3 (1003) of the divided triangles are set as the interpolation end vertices.

【0009】したがって、三角辺1補間装置803には
分割された三角形の三角辺1(1004)、三角辺2補
間装置804には分割された三角形の三角辺2(100
5)、三角辺3補間装置805には分割された三角形の
三角辺3(1006)が設定され、三角形の全ての辺が
補間されることとなる。
Accordingly, the triangular side 1 interpolator 803 has the triangular side 1 (1004) of the divided triangle, and the triangular side 2 interpolator 804 has the triangular side 2 (1004) of the divided triangle.
5), the triangle side 3 (1006) of the divided triangle is set in the triangle side 3 interpolation device 805, and all the sides of the triangle are interpolated.

【0010】次に輪郭生成装置106は三角形の分離が
完了したことを示す三角形データ確定信号828を受け
て、三角辺1補間装置803と三角辺2補間装置804
と三角辺3補間装置805に対して三角辺補間制御信号
である次スパン送出し要求信号829を出力する。
Next, the contour generator 106 receives the triangle data determination signal 828 indicating that the separation of the triangle is completed, and receives the triangle side 1 interpolator 803 and the triangle side 2 interpolator 804.
Then, a next span transmission request signal 829 which is a triangular side interpolation control signal is output to the triangular side 3 interpolating device 805.

【0011】次に三角辺1補間装置803と三角辺3補
間装置805は次スパン送出し要求信号829を受けて
三角辺の補間を1単位進め、三角辺1補間装置803
は、第2の三角辺補間座標である三角辺1直線補間デー
タ824を生成し、三角辺3補間装置805は、第1の
三角辺補間座標である三角辺3直線補間データ826を
生成する。
Next, the triangular side 1 interpolator 803 and the triangular side 3 interpolator 805 receive the next span transmission request signal 829 and advance the triangular side by one unit.
Generates triangular side 1 linear interpolation data 824 as second triangular side interpolation coordinates, and triangular side 3 interpolating device 805 generates triangular side 3 linear interpolation data 826 as first triangular side interpolation coordinates.

【0012】次に補間データ選択装置806は三角辺1
補間装置803の生成する三角辺1直線補間データ82
4を選択してスパン終点座標であるスパン端点2データ
827を生成する。
Next, the interpolation data selection device 806 determines the triangular side 1
Triangular side 1 linear interpolation data 82 generated by the interpolation device 803
4 is selected to generate span end point 2 data 827 which is the span end point coordinates.

【0013】次に直線描画装置107は三角形を構成す
るスパン座標情報であるスパン端点2データ827とス
パン端点1座標データである三角辺3直線補間データ8
26を基に水平スパン1103の補間を行い、画像メモ
リ108に書き込むためのメモリライトデータ信号13
0を生成する。
Next, the straight line drawing device 107 performs span end point 2 data 827 as span coordinate information constituting a triangle and triangle side 3 linear interpolation data 8 as span end point 1 coordinate data.
The memory write data signal 13 for performing interpolation of the horizontal span 1103 on the basis of the
Generate 0.

【0014】次に、画像メモリ108はメモリライトデ
ータ信号130を受けて、画像記憶領域に図形パターン
を書き込む。画像記憶領域に描画された図形パターンは
表示タイミングに合わせて、画像表示信号である映像信
号131を生成する。そして、表示装置109は画像メ
モリ108が生成する映像信号131を基に表示動作を
行う。
Next, the image memory 108 receives the memory write data signal 130 and writes a figure pattern in the image storage area. The graphic pattern drawn in the image storage area generates a video signal 131 as an image display signal in accordance with the display timing. Then, the display device 109 performs a display operation based on the video signal 131 generated by the image memory 108.

【0015】次に三角辺1補間装置803が分割された
三角形の三角辺1(1004)の三角辺補間終了する
と、補間データ選択装置806は三角辺2補間装置80
4の生成する三角辺2直線補間データ825を選択して
スパン終点座標であるスパン端点2データ827を生成
する。三角辺2補間装置804が分割された三角形の三
角辺2(1005)の三角辺補間終了すると、1つの三
角形を描画したことになり、同様に残りの三角形を描画
する。ポリゴンを構成する全ての三角形を描画すると、
ポリゴンの描画を終了する。
Next, when the triangular side 1 interpolation unit 803 completes the triangular side interpolation of the triangular side 1 (1004) of the divided triangle, the interpolation data selecting unit 806 sets the triangular side 2 interpolation unit 80
4 is selected to generate span end point 2 data 827 which is the span end point coordinates. When the triangular side 2 interpolation device 804 completes the triangular side interpolation of the triangular side 2 (1005) of the divided triangle, one triangle is drawn, and the remaining triangles are drawn similarly. When you draw all the triangles that make up a polygon,
Finish drawing the polygon.

【0016】[0016]

【発明が解決しようとする課題】以上に説明したように
従来の描画装置は、直線描画装置の機能により三角形分
離処理を必要とし、分離されたことによりそれぞれの三
角形描画処理が必要となり、さらに三角形描画処理過程
において、三角辺判断処理、三角辺補間装置への三角辺
設定処理を行っている。そのため、本来の多角形の表示
に不要な辺の処理に二重の処理を行うことが描画速度の
向上のための障害となっていた。
As described above, the conventional drawing apparatus requires a triangle separation processing by the function of the straight line drawing apparatus, and the separation requires the respective triangle drawing processing. In the drawing process, a triangle side determination process and a triangle side setting process for a triangle side interpolation device are performed. For this reason, performing double processing for processing unnecessary sides for displaying the original polygon has been an obstacle for improving the drawing speed.

【0017】本発明は上記課題を解決する為に成された
もので、多角形を三角形に分離することなく連続して多
角形を高速に描画できる多角形描画方法及び多角形描画
装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and provides a polygon drawing method and a polygon drawing apparatus capable of continuously drawing polygons at high speed without separating polygons into triangles. The purpose is to:

【0018】[0018]

【課題を解決するための手段】本発明の多角形描画方法
及び多角形描画装置は、描画対象のポリゴンに関するポ
リゴン頂点データを予め一時記憶するポリゴン頂点レジ
スタと、ポリゴン頂点レジスタにポリゴン頂点データを
所定の条件で記憶させる管理を行う頂点管理手段と、記
憶させるために入力されるポリゴン頂点データを逐次監
視すると共に、描画開始頂点となるべきあるポリゴン頂
点データを定めて一時記憶しておく開始点レジスタと、
ポリゴンの輪郭を生成する順序を逐次制御する輪郭生成
手段と、ポリゴンの輪郭に従って、描画開始頂点と関連
して定めた右回り方向に次のポリゴン頂点データが格納
されているアドレスをポリゴン頂点レジスタに対して出
力する頂点アドレスアップカウンタと、ポリゴンの輪郭
に従って、描画開始頂点と関連して定めた左回り方向に
次のポリゴン頂点データが格納されているアドレスをポ
リゴン頂点レジスタに対して出力する頂点アドレスダウ
ンカウンタと、頂点アドレス加算手段および頂点アドレ
ス減算手段により得られたアドレスの示すポリゴン頂点
データに基づき、ポリゴンの右回り輪郭直線および左回
り輪郭直線をそれぞれ補間する補間手段と、補間手段で
それぞれ得られるポリゴンの右回り輪郭直線および左回
り輪郭直線の端点を線分とするポリゴン補間スパンを描
画する直線描画手段とを有するものである。
According to the present invention, there is provided a polygon drawing method and a polygon drawing apparatus, wherein a polygon vertex register for temporarily storing polygon vertex data relating to a polygon to be drawn in advance, and a polygon vertex register for storing polygon vertex data in a polygon vertex register. A vertex management means for performing management for storing the polygon vertex data, and a start point register for sequentially monitoring polygon vertex data input for storage and determining and temporarily storing certain polygon vertex data to be a drawing start vertex When,
Contour generation means for sequentially controlling the order in which polygon outlines are generated, and a drawing start vertex associated with a polygon outline.
And vertex address up counter that the next polygon vertex data in the clockwise direction determined by the outputs the address stored against polygon vertex registers, according to the outline of the polygon, counterclockwise which defines in conjunction with the drawing start vertex Based on the vertex address down counter that outputs the address at which the next polygon vertex data is stored in the direction to the polygon vertex register, and the polygon vertex data indicated by the address obtained by the vertex address adding means and the vertex address subtracting means, Interpolating means for interpolating the clockwise contour line and counterclockwise contour straight line of the polygon, respectively, and a straight line for drawing a polygon interpolation span having the endpoints of the clockwise contour line and counterclockwise contour straight line of the polygon obtained respectively by the interpolation means as line segments Drawing means.

【0019】以上の構成によれば、補間手段により右回
りポリゴン輪郭直線の補間と左回りポリゴン輪郭直線の
補間とをそれぞれ同時に行い、直線描画手段によりその
都度ポリゴン補間スパンの描画を行うことにより、開始
点レジスタの示す頂点からポリゴンの輪郭に沿ってポリ
ゴン補間スパンを描画することができる。
According to the above configuration, each performed simultaneously and interpolation of the interpolation and counterclockwise polygon wheel KakuTadashi line clockwise polygon wheel KakuTadashi line by interpolation means, that the line drawing unit
By each time the polygon interpolation span line Ukoto drawing, it is possible to draw the polygonal interpolation span along the contour of the polygon from the vertex of the start point register.

【0020】従って、本発明によれば、多角形を三角形
に分離することなく多角形を連続して高速に描画するこ
とができる。
Therefore, according to the present invention, a polygon can be continuously drawn at high speed without separating the polygon into triangles.

【0021】[0021]

【0022】[0022]

【0023】[0023]

【実施例】【Example】

(実施例1)以下に本発明の一実施例について図面に基
づいて説明する。図1は本発明の一実施例における多角
形描画装置の構成を示すブロック図である。図1におい
て101は頂点管理装置、102は補間装置、103は
頂点アドレスアップカウンタ、104は頂点アドレスダ
ウンカウンタ、105はポリゴン頂点レジスタ、106
は輪郭生成装置、107は直線描画装置、108は画像
メモリ、109は表示装置、110は開始点レジスタで
ある。
(Embodiment 1) An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a polygon drawing apparatus according to one embodiment of the present invention. In FIG. 1, 101 is a vertex management device, 102 is an interpolation device, 103 is a vertex address up counter, 104 is a vertex address down counter, 105 is a polygon vertex register, 106
Is a contour generating device, 107 is a straight line drawing device, 108 is an image memory, 109 is a display device, and 110 is a start point register.

【0024】これらの各ブロック間で授受される信号に
ついて、121はポリゴンデータ制御信号、122はポ
リゴン頂点データ信号、123はポリゴンデータ確定信
号、124は頂点データ1アドレス信号、125は頂点
データ1データ信号、126は頂点データ2アドレス信
号、127は頂点データ2データ信号、128はスパン
端点1頂点信号、129はスパン端点2頂点信号、13
0はメモリライトデータ信号、131は映像信号、13
2は次頂点送出し要求信号、133はポリゴン頂点デー
タ書込み信号、134は開始点アドレス信号である。
Regarding signals transmitted and received between these blocks, 121 is a polygon data control signal, 122 is a polygon vertex data signal, 123 is a polygon data decision signal, 124 is vertex data 1 address signal, and 125 is vertex data 1 data Signal, vertex data 2 address signal, 127 is vertex data 2 data signal, 128 is span end point 1 vertex signal, 129 is span end point 2 vertex signal, 13
0 is a memory write data signal, 131 is a video signal, 13
2 is a next vertex sending request signal, 133 is a polygon vertex data write signal, and 134 is a start point address signal.

【0025】図2は図1の頂点管理装置101の構成を
示すブロック図である。図において、ラッチ素子で構成
され、制御バスラインに接続され、制御バスライン中の
制御信号をラッチすることにより、ポリゴンデータ制御
信号121からポリゴンデータ確定信号123とポリゴ
ン頂点データ書込み信号133とを得る。
FIG. 2 is a block diagram showing the configuration of the vertex management device 101 of FIG. In the figure, a polygon data decision signal 123 and a polygon vertex data write signal 133 are obtained from a polygon data control signal 121 by latching a control signal in the control bus line, which is constituted by a latch element and connected to a control bus line. .

【0026】図3は図1の補間装置102の構成を示す
ブロック図である。図において、状態遷移回路102.
1と直線補間座標演算素子Q1003と2個のDフリッ
プフロップにより構成される。即ち、2個のDフリップ
フロップに記憶された初期頂点と次頂点との座標データ
に基づき直線補間座標演算素子Q1003により直線補
間座標を演算する。状態遷移回路102.1は直線補間
座標演算素子Q1003に関する起動停止のシーケンス
等を制御する。
FIG. 3 is a block diagram showing the configuration of the interpolation device 102 shown in FIG. In the figure, state transition circuits 102.
1 and a linear interpolation coordinate operation element Q1003 and two D flip-flops. That is, linear interpolation coordinates are calculated by the linear interpolation coordinate calculation element Q1003 based on the coordinate data of the initial vertex and the next vertex stored in the two D flip-flops. The state transition circuit 102.1 controls a start / stop sequence and the like for the linear interpolation coordinate operation element Q1003.

【0027】図4は図1の頂点アドレスアップカウンタ
103及び頂点アドレスダウンカウンタ104の構成を
示すブロック図である。図において、状態遷移回路10
3.1によりシーケンス制御されたアップダウンカウン
タで構成される。
FIG. 4 is a block diagram showing the configuration of the vertex address up counter 103 and the vertex address down counter 104 of FIG. In the figure, a state transition circuit 10
It is composed of an up-down counter sequence-controlled by 3.1.

【0028】図5は図1のポリゴン頂点レジスタ105
の構成を示すブロック図である。図において、レジスタ
はマルチポートS−RAMで構成され、複数の頂点デー
タのアドレス信号とデータ信号を一時記憶読み出しする
ことができる。
FIG. 5 shows the polygon vertex register 105 of FIG.
FIG. 3 is a block diagram showing the configuration of FIG. In the figure, a register is composed of a multi-port S-RAM, and can temporarily store and read address signals and data signals of a plurality of vertex data.

【0029】図6は図1の輪郭生成装置106の構成を
示すブロック図である。図において、一致回路と状態遷
移回路106.1とから構成されている。状態遷移回路
106.1は輪郭を生成する過程を逐次制御するもの
で、ポリゴンデータ確定信号123または142と14
3とが入力されると次頂点送り出し要求信号132を出
力し、頂点データ1アドレス信号124と頂点データ2
アドレス信号126とが一致するとエンド信号によりア
イドル状態へ復帰する。
FIG. 6 is a block diagram showing the configuration of the contour generating device 106 shown in FIG. In the figure, a match circuit and a state transition circuit 106.1 are provided. The state transition circuit 106. 1 sequentially controls the process of generating the contour.
3, the next vertex sending request signal 132 is output, and the vertex data 1 address signal 124 and the vertex data 2
When the address signal 126 matches, the end signal returns to the idle state.

【0030】図7は図1の直線描画装置107の構成を
示すブロック図である。図において、図3の補間装置1
02からDフリップフロップ素子を取り除いた構成であ
る。即ち、二つの補間装置102から得られたスパン端
点1頂点信号128とスパン端点2頂点信号129とか
ら直線補間座標演算素子Q1003により直線補間座標
を演算する。状態遷移回路102.1は直線補間座標演
算素子Q1003の起動停止を制御する。
FIG. 7 is a block diagram showing the configuration of the straight line drawing device 107 of FIG. In the figure, the interpolation device 1 of FIG.
02 is a configuration in which the D flip-flop element is removed. That is, linear interpolation coordinates are calculated by the linear interpolation coordinate calculation element Q1003 from the span endpoint 1 vertex signal 128 and the span endpoint 2 vertex signal 129 obtained from the two interpolation devices 102. The state transition circuit 102.1 controls the start / stop of the linear interpolation coordinate operation element Q1003.

【0031】図8は図1の開始点レジスタ110の構造
を示すブロック図である。図において、2個のDフリッ
プフロップと、1個の大小比較器と、アンドゲートで構
成される。DフリップフロップのQ端子は、前回入力さ
れた最小値が記憶されている。大小比較器は、新たなポ
リゴン頂点データ信号122の入力により、前回のQの
値とを比較し、その真偽結果をアンドゲートの入力とす
る。従って、新たに最小値が入力されたときのみラッチ
信号が出力され、ポリゴン頂点データ書込み信号133
が更新される。
FIG. 8 is a block diagram showing the structure of the start point register 110 of FIG. In the figure, it is composed of two D flip-flops, one magnitude comparator and an AND gate. The Q terminal of the D flip-flop stores the previously input minimum value. The magnitude comparator compares the value of the previous Q with the input of the new polygon vertex data signal 122 and uses the result of the comparison as the input of the AND gate. Therefore, a latch signal is output only when a new minimum value is input, and the polygon vertex data write signal 133 is output.
Is updated.

【0032】図9は描画対象ポリゴンを示す図であり、
201は描画対象ポリゴン、202は描画対象ポリゴン
構成頂点データ1、203は描画対象ポリゴン構成頂点
データ2、204は描画対象ポリゴン構成頂点データ
3、205は描画対象ポリゴン構成頂点データ4、20
6は描画対象ポリゴン構成頂点データ5である。
FIG. 9 is a diagram showing polygons to be drawn.
201 is a drawing target polygon, 202 is a drawing target polygon constituent vertex data 1, 203 is a drawing target polygon constituent vertex data 2, 204 is a drawing target polygon constituent vertex data 3, 205 is a drawing target polygon constituent vertex data 4, 20
Reference numeral 6 denotes rendering target polygon constituent vertex data 5.

【0033】図10はポリゴン頂点レジスタ105の内
容を示す図であり、301はポリゴン頂点レジスタ10
5の内容、302はポリゴン構成頂点データ1、303
はポリゴン頂点データ2、304はポリゴン頂点データ
3、305はポリゴン頂点データ4、306はポリゴン
頂点データ5、307はポリゴン頂点データ6、308
ポリゴン頂点データ7、309はポリゴン頂点データ8
である。
FIG. 10 is a diagram showing the contents of the polygon vertex register 105.
5, 302 is polygon configuration vertex data 1, 303
Is polygon vertex data 2, 304 is polygon vertex data 3, 305 is polygon vertex data 4, 306 is polygon vertex data 5, 307 is polygon vertex data 6, 308
Polygon vertex data 7 and 309 are polygon vertex data 8
It is.

【0034】図11はスパン端点の生成を示す図であ
り、401はポリゴン輪郭補間開始頂点、402は左回
りポリゴン輪郭補間継続頂点、403は右回りポリゴン
輪郭補間継続頂点、404はポリゴン補間水平スパン、
405は左回りポリゴン輪郭補間直線、406は右回り
ポリゴン輪郭補間直線である。
FIG. 11 is a diagram showing the generation of the span end point, where 401 is the vertex at which the polygon contour interpolation is started, 402 is the vertex where the counterclockwise polygon contour interpolation is continued, 403 is the vertex where the clockwise polygon contour interpolation is continued, and 404 is the polygon interpolation horizontal span. ,
Reference numeral 405 denotes a counterclockwise polygon outline interpolation line, and reference numeral 406 denotes a clockwise polygon outline interpolation line.

【0035】即ち、直線描画装置107により、二つの
補間装置102から得られたスパン端点1頂点信号12
8とスパン端点2頂点信号129とから、ポリゴン補間
水平スパン404が描画される。
That is, the span end point / vertex signal 12 obtained from the two interpolation units 102 by the straight line drawing unit 107
8 and the span end point 2 vertex signal 129, a polygon interpolation horizontal span 404 is drawn.

【0036】なお、図に示す例において、ポリゴン輪郭
補間開始頂点401を画面の最上部に示したが、一般に
CRTディスプレイの場合は、左上端部を画面原点に定
める慣例に従って例示したものである。従って、他の表
示装置109を使用する場合はその表示装置109に適
した原点位置に従って表示されることは改めて言うまで
もない。
In the example shown in the figure, the polygon outline interpolation start vertex 401 is shown at the top of the screen. However, in general, in the case of a CRT display, it is exemplified according to a custom that the upper left end is set to the screen origin. Therefore, when another display device 109 is used, it is needless to say that the display is performed according to the origin position suitable for the display device 109.

【0037】図12はポリゴン補間水平スパンによるポ
リゴン補間を示す図である。図において、ポリゴン補間
水平スパン404(図11参照)を水平方向に積み重ね
てポリゴン描画を完成させる過程を表し、501はポリ
ゴン補間過程1領域、502はポリゴン補間過程2領
域、503はポリゴン補間過程3領域、504はポリゴ
ン補間過程4領域、505はポリゴン補間過程1の補間
終了輪郭端点、506はポリゴン補間過程2の補間終了
輪郭端点、507は第2の左回りポリゴン輪郭補間継続
頂点、508はポリゴン補間過程3の補間終了輪郭端
点、509はポリゴン輪郭補間終了頂点、510は第2
の左回りポリゴン輪郭補間直線、511は第2の右回り
ポリゴン輪郭補間直線、512は第3の左回りポリゴン
輪郭補間直線である。
FIG. 12 is a diagram showing polygon interpolation based on the polygon interpolation horizontal span. In the figure, polygon interpolation horizontal spans 404 (see FIG. 11) are stacked in the horizontal direction to complete polygon drawing, where 501 is a polygon interpolation process 1 region, 502 is a polygon interpolation process 2 region, and 503 is a polygon interpolation process 3 Area, 504 is a polygon interpolation process 4 area, 505 is an interpolation end contour end point of the polygon interpolation process 1, 506 is an interpolation end contour end point of the polygon interpolation process 2, 507 is a second counterclockwise polygon contour interpolation continuous vertex, and 508 is a polygon. The interpolation end contour end point of the interpolation step 3, 509 is the polygon contour interpolation end vertex, and 510 is the second
Is a second clockwise polygon contour interpolation straight line, and 511 is a third counterclockwise polygon contour interpolation straight line.

【0038】以上のように構成された本発明の一実施例
における多角形描画方法及び多角形描画装置について、
図に従って、描画過程とその動作とを説明する。まず、
描画対象ポリゴン201を表示装置109に描画させる
ため、ポリゴンデータ制御信号121に同期させて描画
対象ポリゴン構成頂点データ1(202)と描画対象ポ
リゴン構成頂点データ2(203)と描画対象ポリゴン
構成頂点データ3(204)と描画対象ポリゴン構成頂
点データ4(205)と描画対象ポリゴン構成頂点デー
タ5(206)を順にポリゴン頂点レジスタ105に転
送する。頂点管理装置101は、ポリゴンデータ制御信
号121を受けて、ポリゴン頂点データ書込み信号13
3をアサートして描画対象ポリゴン構成頂点データ1
(202)がポリゴン頂点データ1(302)に、描画
対象ポリゴン構成頂点データ2(203)がポリゴン頂
点データ2(303)に、描画対象ポリゴン構成頂点デ
ータ3(204)がポリゴン頂点データ3(304)
に、描画対象ポリゴン構成頂点データ4(205)がポ
リゴン頂点データ4(305)に、描画対象ポリゴン構
成頂点データ5(206)がポリゴン頂点データ5(3
06)にそれぞれ書き込まれる。また開始点レジスタ1
10は逐次ポリゴン構成頂点データのY座標成分を大小
比較して、補間開始点を決定する。本実施例ではポリゴ
ン頂点データ1(302)がY成分最小となるので、開
始点レジスタ110は開始点アドレス信号134として
0000を出力する。
The polygon drawing method and the polygon drawing apparatus according to the embodiment of the present invention configured as described above,
The drawing process and its operation will be described with reference to the drawings. First,
In order to render the rendering target polygon 201 on the display device 109, rendering target polygon configuration vertex data 1 (202), rendering target polygon configuration vertex data 2 (203), and rendering target polygon configuration vertex data are synchronized with the polygon data control signal 121. 3 (204), rendering target polygon configuration vertex data 4 (205), and rendering target polygon configuration vertex data 5 (206) are sequentially transferred to the polygon vertex register 105. The vertex management device 101 receives the polygon data control signal 121 and receives a polygon vertex data write signal 13.
Assert 3 and draw target polygon constituent vertex data 1
(202) is polygon vertex data 1 (302), rendering target polygon configuration vertex data 2 (203) is polygon vertex data 2 (303), and rendering target polygon configuration vertex data 3 (204) is polygon vertex data 3 (304). )
The rendering target polygon configuration vertex data 4 (205) is the polygon vertex data 4 (305), and the rendering target polygon configuration vertex data 5 (206) is the polygon vertex data 5 (3).
06). Start point register 1
Reference numeral 10 successively compares the Y coordinate components of the polygon-constituting vertex data to determine the interpolation start point. In this embodiment, since the polygon vertex data 1 (302) has the minimum Y component, the start point register 110 outputs 0000 as the start point address signal 134.

【0039】次に描画対象ポリゴン201の頂点データ
が全て転送されると、頂点管理装置101はポリゴン頂
点レジスタ105にポリゴンを構成する全ての頂点デー
タが入力されたことを示すポリゴンデータ確定信号12
3をアサートする。輪郭生成装置106はポリゴンデー
タ確定信号123を受けて、頂点アドレスアップカウン
タ103と頂点アドレスダウンカウンタ104に対し
て、始点および終点の頂点アドレスの決定を要求するた
めの次頂点送出し要求信号132をアサートする。
Next, when all of the vertex data of the polygon 201 to be drawn is transferred, the vertex management device 101 inputs a polygon data determination signal 12 indicating that all the vertex data constituting the polygon have been input to the polygon vertex register 105.
Assert 3. Receiving the polygon data determination signal 123, the contour generation device 106 sends a next vertex transmission request signal 132 for requesting the vertex address up counter 103 and the vertex address down counter 104 to determine the start and end vertex addresses. Assert.

【0040】頂点アドレスアップカウンタ103は、次
頂点送出し要求信号132を受けて、最初に開始点アド
レス信号134の示すアドレスとその次の頂点が格納さ
れている次のアドレスを示す頂点データ1アドレス信号
124とを出力する。同時に頂点アドレスダウンカウン
タ104は、次頂点送出し要求信号132を受けて、最
初に開始点アドレス信号134の示すアドレスとその次
の頂点が格納されている前のアドレスを示す頂点データ
2アドレス信号126とを出力する。
Upon receiving the next vertex sending request signal 132, the vertex address up counter 103 first receives the address indicated by the start point address signal 134 and the vertex data 1 address indicating the next address where the next vertex is stored. The signal 124 is output. At the same time, upon receiving the next vertex sending request signal 132, the vertex address down counter 104 first receives the address indicated by the start point address signal 134 and the vertex data 2 address signal 126 indicating the address before the next vertex is stored. Is output.

【0041】具体的には図10の例において、頂点アド
レスアップカウンタ103は輪郭補間第1ポリゴン頂点
レジスタアドレスとして0000を出力して、輪郭補間
第2ポリゴン頂点レジスタアドレスとして0001を出
力する。頂点アドレスダウンカウンタ104は輪郭補間
第1ポリゴン頂点レジスタアドレスとして0000を出
力して、輪郭補間第2ポリゴン頂点レジスタアドレスと
して0004を出力する。
More specifically, in the example of FIG. 10, the vertex address up counter 103 outputs 0000 as the contour interpolation first polygon vertex register address and outputs 0001 as the contour interpolation second polygon vertex register address. The vertex address down counter 104 outputs 0000 as the contour interpolation first polygon vertex register address, and outputs 0004 as the contour interpolation second polygon vertex register address.

【0042】ポリゴン頂点レジスタ105は、頂点アド
レスアップカウンタ103が出力する頂点データ1アド
レス信号124を基に、右回り開始ポリゴン構成頂点デ
ータと右回り終了ポリゴン構成頂点データとを頂点デー
タ1データ信号125として出力すると共に、頂点アド
レスダウンカウンタ104が出力する頂点データ2アド
レス信号126を基に、左回り開始ポリゴン構成頂点デ
ータと左回り終了ポリゴン構成頂点データとを頂点デー
タ2データ信号127として出力する。こうして頂点デ
ータ1データ信号125を受ける補間装置102は右回
りのポリゴン輪郭を補間する。頂点データ2データ信号
127を受ける補間装置102は左回りのポリゴン輪郭
を補間する。
The polygon vertex register 105 converts the clockwise start polygon constituent vertex data and the clockwise end polygon constituent vertex data into a vertex data 1 data signal 125 based on the vertex data 1 address signal 124 output from the vertex address up counter 103. And outputs counterclockwise start polygon configuration vertex data and counterclockwise end polygon configuration vertex data 127 as vertex data 2 data signal 127 based on vertex data 2 address signal 126 output from vertex address down counter 104. Thus, the interpolation device 102 receiving the vertex data 1 data signal 125 interpolates the clockwise polygon outline. The interpolation device 102 that receives the vertex data 2 data signal 127 interpolates the counterclockwise polygon outline.

【0043】こうして、二つの補間装置102は、Y座
標に同期して、右回りポリゴン輪郭補間直線406と左
回りポリゴン輪郭補間直線405との補間を同時に行い
(図11参照)、その中間結果である座標値を端点とす
るポリゴン補間水平スパン404を生成する。
In this way, the two interpolating devices 102 simultaneously perform the interpolation of the clockwise polygon outline interpolation line 406 and the counterclockwise polygon outline interpolation line 405 in synchronization with the Y coordinate (see FIG. 11). A polygon interpolation horizontal span 404 having a certain coordinate value as an end point is generated.

【0044】直線描画装置107は、ポリゴン補間水平
スパン404を受けて、水平直線の補間を行う。本実施
例では頂点データ2データ信号127を受ける補間装置
102が先に最終端点(図11参照、左回りポリゴン輪
郭補間継続頂点402)に到達することになり、この補
間装置102が最終頂点に到達すると頂点アドレスダウ
ンカウンタ104が1カウント進む。
Receiving the polygon interpolation horizontal span 404, the straight line drawing device 107 performs horizontal straight line interpolation. In this embodiment, the interpolating device 102 that receives the vertex data 2 data signal 127 first reaches the final end point (see FIG. 11, the counterclockwise polygon contour interpolation continuing vertex 402), and the interpolating device 102 reaches the final vertex. Then, the vertex address down counter 104 advances by one count.

【0045】頂点アドレスダウンカウンタ104が1カ
ウント進むと、頂点データ2アドレス信号126が更新
され、ポリゴン頂点レジスタ105は次の左回りポリゴ
ン輪郭を構成する2つの頂点座標データを頂点データ2
データ信号127として出力する。頂点データ2データ
信号127を受ける補間装置102は頂点データ2デー
タ信号127を基に補間を連続して行う。従って、左回
りポリゴン輪郭補間直線405は補間パラメータが更新
され第2の左回りポリゴン輪郭補間直線510(図12
参照)の方向に補間が進行する。
When the vertex address down counter 104 advances by one count, the vertex data 2 address signal 126 is updated, and the polygon vertex register 105 stores the two vertex coordinate data constituting the next counterclockwise polygon outline in the vertex data 2.
It is output as a data signal 127. The interpolation device 102 that receives the vertex data 2 data signal 127 continuously performs interpolation based on the vertex data 2 data signal 127. Accordingly, the interpolation parameters of the counterclockwise polygon contour interpolation straight line 405 are updated and the second counterclockwise polygon contour interpolation straight line 510 (FIG. 12)
The interpolation proceeds in the direction of (see).

【0046】なお頂点データ1データ信号125を受け
る補間装置102と頂点データ2データ信号127を受
ける補間装置102とは、Y座標に同期して進行してい
るため、ポリゴン補間過程1領域501から連続してポ
リゴン補間過程2領域502にポリゴンの補間が進行す
る。
Since the interpolating device 102 receiving the vertex data 1 data signal 125 and the interpolating device 102 receiving the vertex data 2 data signal 127 proceed in synchronization with the Y coordinate, the interpolating device 102 Then, polygon interpolation proceeds to the polygon interpolation process 2 area 502.

【0047】頂点データ1データ信号125を受ける補
間装置102が、右回りポリゴン輪郭補間直線406の
補間を終了すると、同様にして、頂点アドレスアップカ
ウンタ103を1カウント進める。そして、ポリゴン頂
点レジスタ105から、次のポリゴン輪郭構成直線であ
る第2の右回りポリゴン輪郭補間直線511の直線パラ
メータを読み出して、頂点データ1データ信号125を
受ける補間装置102にセットする。こうして連続して
ポリゴン補間過程3領域503のポリゴンの補間が進行
する。
When the interpolating device 102 receiving the vertex data 1 data signal 125 completes the interpolation of the clockwise polygon contour interpolation straight line 406, the vertex address up counter 103 is similarly advanced by one. Then, a straight line parameter of a second clockwise polygon contour interpolation straight line 511 which is the next polygon contour constituting straight line is read from the polygon vertex register 105 and set to the interpolation device 102 which receives the vertex data 1 data signal 125. In this way, polygon interpolation in the polygon interpolation process 3 area 503 proceeds continuously.

【0048】次に、頂点データ2データ信号127を受
ける補間装置102が、第2の左回りポリゴン輪郭補間
直線510の補間を終了すると、同様にして、頂点アド
レスダウンカウンタ104を1カウント進める。そし
て、ポリゴン頂点レジスタ105から、次のポリゴン輪
郭構成直線である第3の左回りポリゴン輪郭補間直線5
12の直線パラメータを読み出して、頂点データ2デー
タ信号127を受ける補間装置102にセットする。こ
うして連続してポリゴン補間過程4領域504のポリゴ
ンの補間が進行する。
Next, when the interpolating device 102 receiving the vertex data 2 data signal 127 completes the interpolation of the second counterclockwise polygon contour interpolation straight line 510, the vertex address down counter 104 is similarly advanced by one. Then, from the polygon vertex register 105, a third counterclockwise polygon contour interpolation straight line 5 which is the next polygon contour constituting straight line
Twelve straight line parameters are read out and set in the interpolating device 102 that receives the vertex data 2 data signal 127. Thus, the polygon interpolation in the polygon interpolation process 4 area 504 proceeds continuously.

【0049】このとき、頂点アドレスアップカウンタ1
03の最終頂点ポリゴン頂点レジスタアドレスと頂点ア
ドレスダウンカウンタ104の最終頂点ポリゴン頂点レ
ジスタアドレスが等しいことから、輪郭生成装置106
は現在の輪郭補間が最終輪郭であることを認識する。
At this time, the vertex address up counter 1
03, the final vertex polygon vertex register address of the vertex address down counter 104 is equal to the final vertex polygon vertex register address.
Recognizes that the current contour interpolation is the final contour.

【0050】次に頂点データ1データ信号125を受け
る補間装置102と頂点データ2データ信号127を受
ける補間装置102との最終到達端点は同一であるた
め、当然ながら、第2の右回りポリゴン輪郭補間直線5
11と第3の左回りポリゴン輪郭補間直線512の補間
は同時に終了し、描画対象ポリゴン201の描画を終了
する。
Next, since the final arrival end points of the interpolating device 102 receiving the vertex data 1 data signal 125 and the interpolating device 102 receiving the vertex data 2 data signal 127 are the same, the second clockwise polygon contour interpolation is naturally performed. Straight line 5
The interpolation of the eleventh and the third counterclockwise polygon contour interpolation straight line 512 ends at the same time, and the drawing of the drawing target polygon 201 ends.

【0051】以上のように本実施例によれば多角形を三
角形に分割することなく、連続して補間を行うため、高
速に多角形を描画することができる。
As described above, according to the present embodiment, polygons can be drawn at high speed because interpolation is performed continuously without dividing polygons into triangles.

【0052】また、同様にして、Y軸をX軸と入れ替る
ことによって、垂直スキャン型の表示デバイスに対応し
た描画装置として最適となる。図13はこのときのポリ
ゴン補間垂直スパンの生成を示す図である。
Similarly, by replacing the Y-axis with the X-axis, it becomes optimal as a drawing apparatus corresponding to a vertical scan type display device. FIG. 13 is a diagram showing generation of the polygon interpolation vertical span at this time.

【0053】(実施例2)次に、本発明の他の実施例に
おける多角形描画装置について説明する。本実施例の描
画装置のブロック構成は図1に示すものと同じである。
異なるところは、単に、開始点レジスタ110に次の記
憶機能を有する点にある。
Embodiment 2 Next, a polygon drawing apparatus according to another embodiment of the present invention will be described. The block configuration of the drawing apparatus of this embodiment is the same as that shown in FIG.
The only difference is that the start point register 110 has the following storage function.

【0054】即ち、ポリゴンデータ制御信号121に含
まれる多角形の座標情報から、逐次、ポリゴンのX軸方
向の大きさとY軸方向の大きさを比較して、何れか小さ
い軸方向成分の最も少ないポリゴン頂点レジスタ105
のアドレスを記憶する機能を有する。従って、図8に示
したブロック図は、X座標用とY座標用の二つの図8の
ブロックで構成されたものとなっている。その動作はX
座標用とY座標用のそれぞれの動作をすることは言うま
でもない。
That is, based on the coordinate information of the polygon included in the polygon data control signal 121, the size of the polygon in the X-axis direction and the size of the polygon in the Y-axis direction are sequentially compared, and any of the smaller axial components is the least. Polygon vertex register 105
Has the function of storing the address of the Therefore, the block diagram shown in FIG. 8 is composed of two blocks of FIG. 8 for the X coordinate and for the Y coordinate. Its operation is X
It goes without saying that the respective operations for the coordinate and the Y coordinate are performed.

【0055】したがって、補間装置102は開始点レジ
スタ110に記憶されたポリゴンのX軸方向の大きさと
Y軸方向のうちの何れか小さい軸方向を最適軸方向と
し、この最適軸方向に対して補間する。図14はこのよ
うすを示し、最適方向ポリゴン補間スパンの生成を示す
図であり、404はポリゴン補間水平スパン、601は
ポリゴン補間垂直スパン、701はポリゴン水平全長、
702はポリゴン垂直全長である。
Therefore, the interpolation device 102 sets the smaller one of the X-axis size and the Y-axis direction of the polygon stored in the start point register 110 as the optimum axis direction, and performs interpolation with respect to this optimum axis direction. I do. FIG. 14 is a diagram showing the above, and showing generation of the optimal direction polygon interpolation span. 404 is a polygon interpolation horizontal span, 601 is a polygon interpolation vertical span, 701 is a polygon horizontal total length,
Reference numeral 702 denotes the total vertical length of the polygon.

【0056】以上のように構成された本発明の他の実施
例における多角形描画装置について、図に基づいて、そ
の動作を説明する。
The operation of the polygon drawing apparatus according to another embodiment of the present invention configured as described above will be described with reference to the drawings.

【0057】まず、描画対象ポリゴン201を描画させ
るため、ポリゴンデータ制御信号121に同期させて、
描画対象ポリゴン構成頂点データ1(202)と描画対
象ポリゴン構成頂点データ2(203)と描画対象ポリ
ゴン構成頂点データ3(204)と描画対象ポリゴン構
成頂点データ4(205)と描画対象ポリゴン構成頂点
データ5(206)を順にポリゴン頂点レジスタ105
に転送する。頂点管理装置101はポリゴンデータ制御
信号121を受けて、ポリゴン頂点データ書込み信号1
33をアサートし、描画対象ポリゴン構成頂点データ1
(202)がポリゴン頂点データ1(302)に、描画
対象ポリゴン構成頂点データ2(203)がポリゴン頂
点データ2(303)に、描画対象ポリゴン構成頂点デ
ータ3(204)がポリゴン頂点データ3(304)
に、描画対象ポリゴン構成頂点データ4(205)がポ
リゴン頂点データ4(305)に、描画対象ポリゴン構
成頂点データ5(206)がポリゴン頂点データ5(3
06)にそれぞれ書き込まれる。
First, in order to draw the polygon 201 to be drawn, the polygon 201 is synchronized with the polygon data control signal 121 to be drawn.
Drawing target polygon constituent vertex data 1 (202), drawing target polygon constituent vertex data 2 (203), drawing target polygon constituent vertex data 3 (204), drawing target polygon constituent vertex data 4 (205), and drawing target polygon constituent vertex data 5 (206) to the polygon vertex register 105
Transfer to The vertex management device 101 receives the polygon data control signal 121 and receives a polygon vertex data write signal 1
33 is asserted, and the rendering target polygon configuration vertex data 1
(202) is polygon vertex data 1 (302), rendering target polygon configuration vertex data 2 (203) is polygon vertex data 2 (303), and rendering target polygon configuration vertex data 3 (204) is polygon vertex data 3 (304). )
The rendering target polygon configuration vertex data 4 (205) is the polygon vertex data 4 (305), and the rendering target polygon configuration vertex data 5 (206) is the polygon vertex data 5 (3).
06).

【0058】また、開始点レジスタ110は、逐次ポリ
ゴン構成頂点データのX座標成分とY座標成分を大小比
較して、X方向とY方向の補間開始点を決定する。同時
にポリゴン水平全長701とポリゴン垂直全長702を
求めてどちらか全長の長い方向にスパンを生成させ、且
つ、全長の短い方向にスパンを積み重ねる。このように
することで、スパンを生成する回数を少なくして全体の
処理時間を短縮する事ができる。
The start point register 110 sequentially compares the X coordinate component and the Y coordinate component of the vertex data constituting the polygon to determine the interpolation start point in the X direction and the Y direction. At the same time, the polygon horizontal overall length 701 and the polygon vertical overall length 702 are obtained, and a span is generated in the direction of the longer total length, and the spans are stacked in the direction of the shorter total length. By doing so, the number of times of generation of the span can be reduced and the overall processing time can be reduced.

【0059】本実施例では、ポリゴン垂直全長702が
短く(図14参照)、ポリゴン頂点データ1(302)
がY成分最小(図7参照)となるので、開始点レジスタ
110は開始点アドレス信号134として0000を出
力する。
In this embodiment, the polygon vertical total length 702 is short (see FIG. 14), and the polygon vertex data 1 (302)
Is the Y component minimum (see FIG. 7), the start point register 110 outputs 0000 as the start point address signal 134.

【0060】以上のようにして、補間開始点が決定さ
れ、かつ、スパンの生成方向が決定される。そして、以
後の多角形描画過程は、本発明の一実施例に説明したも
のと全く同様にして実現される。
As described above, the interpolation start point is determined, and the span generation direction is determined. The subsequent polygon drawing process is realized in exactly the same manner as described in the embodiment of the present invention.

【0061】即ち、描画対象ポリゴン201の頂点デー
タが全て転送された後、描画対象ポリゴン201の描画
を終了するまでの説明は、本発明の一実施例と全く同じ
であるから、説明の重複を省略する。
That is, the description from the transfer of all the vertex data of the polygon 201 to the completion of the rendering of the polygon 201 is exactly the same as that of the embodiment of the present invention. Omitted.

【0062】また、本発明の一実施例において表示装置
109の原点の表現の整合を図るため、図8に示す大小
比較器は最小値を算出するものとし、図9から図14の
表示例においては座標最小値を描画開始点として例示し
た。しかしながら、大小比較器は最大値を算出し、座標
最大値を描画開始点としても、本発明の内容から自明で
あることは改めて説明を繰り返すまでもない。
Also, in one embodiment of the present invention, in order to match the representation of the origin of the display device 109, the magnitude comparator shown in FIG. 8 calculates the minimum value. Has illustrated the minimum coordinate value as a drawing start point. However, even if the magnitude comparator calculates the maximum value and uses the coordinate maximum value as the drawing start point, it is obvious from the content of the present invention that the description is not repeated.

【0063】[0063]

【発明の効果】以上、詳細に説明したように、本発明に
よれば、輪郭生成装置と補間装置により多角形の輪郭に
沿って直接輪郭を算出し、その算出途上のスパン端点か
ら直線描画装置により補間スパンを描画するものであ
る。従って、多角形を三角形に分割することなく、本来
の多角形の表示に必要な辺の処理を直接に、且つ、連続
して補間を行う事ができる。しかも、X軸またはY軸を
問わず、座標の最小値または最大値のいずれからも、さ
らに、描画の積み重ねを最短全長方向に補間できるの
で、表示装置の特性(例えば走査線の方向)を問わず、
より高速に多角形を描画することができる。
As described above in detail, according to the present invention, a contour is directly calculated along a polygonal contour by a contour generating device and an interpolating device, and a straight line drawing device is calculated from a span end point during the calculation. Is used to draw the interpolation span. Therefore, without dividing the polygon into triangles, the direct processing of edges required to display the original polygon, and, can intends line interpolation continuously. Moreover, the X axis or Y axis
Regardless of the minimum or maximum value of the coordinates,
Furthermore, it is possible to interpolate the stack of drawings in the shortest overall length direction.
Therefore, regardless of the characteristics of the display device (for example, the direction of the scanning line),
Polygons can be drawn faster.

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

【図1】本発明の一実施例における多角形描画装置の構
成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a polygon drawing apparatus according to an embodiment of the present invention.

【図2】図1の頂点管理装置の構成を示すブロック図FIG. 2 is a block diagram showing a configuration of a vertex management device in FIG. 1;

【図3】図1の補間装置の構成を示すブロック図FIG. 3 is a block diagram showing a configuration of the interpolation device in FIG. 1;

【図4】図1の頂点アドレスアップカウンタ及び頂点ア
ドレスダウンカウンタの構成を示すブロック図
FIG. 4 is a block diagram showing a configuration of a vertex address up counter and a vertex address down counter of FIG. 1;

【図5】図1のポリゴン頂点レジスタの構成を示すブロ
ック図
FIG. 5 is a block diagram showing a configuration of a polygon vertex register of FIG. 1;

【図6】図1の輪郭生成装置の構成を示すブロック図FIG. 6 is a block diagram showing a configuration of the contour generation device of FIG. 1;

【図7】図1の直線描画装置の構成を示すブロック図FIG. 7 is a block diagram showing the configuration of the straight line drawing apparatus of FIG. 1;

【図8】図1の開始点レジスタの構成を示すブロック図FIG. 8 is a block diagram showing a configuration of a start point register in FIG. 1;

【図9】描画対象ポリゴンを示す図FIG. 9 is a view showing a polygon to be drawn;

【図10】ポリゴン頂点レジスタの内容を示す図FIG. 10 shows the contents of a polygon vertex register.

【図11】スパン端点の生成を示す図FIG. 11 is a diagram showing generation of a span endpoint;

【図12】ポリゴン補間水平スパンによるポリゴン補間
を示す図
FIG. 12 is a diagram showing polygon interpolation based on a polygon interpolation horizontal span.

【図13】ポリゴン補間垂直スパンの生成を示す図FIG. 13 is a diagram showing generation of a polygon interpolation vertical span.

【図14】最適方向ポリゴン補間スパンの生成を示す図FIG. 14 is a diagram showing generation of an optimal direction polygon interpolation span;

【図15】従来の描画装置の構成を示すブロック図FIG. 15 is a block diagram showing a configuration of a conventional drawing apparatus.

【図16】従来の描画装置の三角形分離過程を示す図FIG. 16 is a diagram showing a triangle separation process of a conventional drawing apparatus.

【図17】従来例の描画装置のスパンによる三角形補間
過程を示す図
FIG. 17 is a diagram showing a triangular interpolation process by a span in a conventional drawing apparatus.

【図18】従来例の描画装置の三角形によるポリゴン補
間過程を示す図
FIG. 18 is a diagram showing a polygon interpolation process using triangles in a conventional drawing apparatus.

【符号の説明】[Explanation of symbols]

101 頂点管理装置 102 補間装置 103 頂点アドレスアップカウンタ 104 頂点アドレスダウンカウンタ 105 ポリゴン頂点レジスタ 106 輪郭生成装置 107 直線描画装置 108 画像メモリ 109 表示装置 110 開始点レジスタ 121 ポリゴンデータ制御信号 122 ポリゴン頂点データ信号 123 ポリゴンデータ確定信号 124 頂点データ1アドレス信号 125 頂点データ1データ信号 126 頂点データ2アドレス信号 127 頂点データ2データ信号 128 スパン端点1頂点信号 129 スパン端点2頂点信号 130 メモリライトデータ信号 131 映像信号 132 次頂点送出し要求信号 133 ポリゴン頂点データ書込み信号 134 開始点アドレス信号 201 描画対象ポリゴン 202 描画対象ポリゴン構成頂点データ1 203 描画対象ポリゴン構成頂点データ2 204 描画対象ポリゴン構成頂点データ3 205 描画対象ポリゴン構成頂点データ4 206 描画対象ポリゴン構成頂点データ5 301 ポリゴン頂点レジスタ105の内容 302 ポリゴン頂点データ1 303 ポリゴン頂点データ2 304 ポリゴン頂点データ3 305 ポリゴン頂点データ4 306 ポリゴン頂点データ5 307 ポリゴン頂点データ6 308 ポリゴン頂点データ7 309 ポリゴン頂点データ8 401 ポリゴン輪郭補間開始頂点 402 左回りポリゴン輪郭補間継続頂点 403 右回りポリゴン輪郭補間継続頂点 404 ポリゴン補間水平スパン 405 左回りポリゴン輪郭補間直線 406 右回りポリゴン輪郭補間直線 501 ポリゴン補間過程1領域 502 ポリゴン補間過程2領域 503 ポリゴン補間過程3領域 504 ポリゴン補間過程4領域 505 ポリゴン補間過程1の補間終了輪郭端点 506 ポリゴン補間過程2の補間終了輪郭端点 507 第2の左回りポリゴン輪郭補間継続頂点 508 ポリゴン補間過程3の補間終了輪郭端点 509 ポリゴン輪郭補間終了頂点 510 第2の左回りポリゴン輪郭補間直線 511 第2の右回りポリゴン輪郭補間直線 512 第3の左回りポリゴン輪郭補間直線 601 ポリゴン補間垂直スパン 701 ポリゴン水平全長 702 ポリゴン垂直全長 Reference Signs List 101 Vertex management device 102 Interpolation device 103 Vertex address up counter 104 Vertex address down counter 105 Polygon vertex register 106 Contour generation device 107 Line drawing device 108 Image memory 109 Display device 110 Start point register 121 Polygon data control signal 122 Polygon vertex data signal 123 Polygon data determination signal 124 Vertex data 1 address signal 125 Vertex data 1 data signal 126 Vertex data 2 address signal 127 Vertex data 2 data signal 128 Span end point 1 vertex signal 129 Span end point 2 vertex signal 130 Memory write data signal 131 Video signal 132 Next Vertex sending request signal 133 Polygon vertex data write signal 134 Start point address signal 201 Drawing target polygon 202 Drawing target polygon structure Vertex data 1 203 Drawing target polygon configuration vertex data 2 204 Drawing target polygon configuration vertex data 3 205 Drawing target polygon configuration vertex data 4 206 Drawing target polygon configuration vertex data 5 301 Contents of polygon vertex register 105 302 Polygon vertex data 1 303 Polygon vertex Data 2 304 Polygon vertex data 3 305 Polygon vertex data 4 306 Polygon vertex data 5 307 Polygon vertex data 6 308 Polygon vertex data 7 309 Polygon vertex data 8 401 Polygon contour interpolation start vertex 402 Counterclockwise polygon contour interpolation continuous vertex 403 Clockwise polygon Continuation interpolation vertex 404 Polygon interpolation horizontal span 405 Counterclockwise polygon contour interpolation straight line 406 Clockwise polygon contour interpolation straight line 501 Polygon interpolation process 1 area 502 Polygon interpolation process 2 area 503 Polygon interpolation process 3 area 504 Polygon interpolation process 4 area 505 Interpolation end contour end point of polygon interpolation step 1 506 Interpolation end contour end point of polygon interpolation step 2 507 Second counterclockwise polygon contour interpolation continuous vertex 508 Polygon Interpolation end contour end point of interpolation step 3 509 Polygon outline interpolation end vertex 510 Second counterclockwise polygon outline interpolation straight line 511 Second clockwise polygon outline interpolation straight line 512 Third counterclockwise polygon outline interpolation straight line 601 Polygon interpolation vertical span 701 Polygon horizontal total length 702 Polygon vertical total length

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 15/72 G09G 5/36 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 15/72 G09G 5/36

Claims (12)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】描画対象のポリゴンに関するポリゴン頂点
データを、所定の頂点記憶管理手順に基づいて、予め一
時記憶するポリゴン頂点記憶過程と、 記憶させるために入力されるポリゴン頂点データを逐次
監視し、描画開始頂点となるべきあるポリゴン頂点デー
タを定めて記憶しておくと共に、ポリゴン頂点データを
比較し、Y軸方向成分が最も少ない値を有するポリゴン
頂点データを抽出するY軸成分最小値抽出過程を含む開
始点記憶過程と、 ポリゴンの輪郭を順次生成する輪郭生成過程と、 ポリゴンの輪郭に従って、前記描画開始頂点と関連して
定めた右回り方向の次のポリゴン頂点データが記憶され
ているアドレスを生成する頂点アドレス加算過程と、 ポリゴンの輪郭に従って、前記描画開始頂点と関連して
定めた左回り方向の次のポリゴン頂点データが記憶され
ているアドレスを生成する頂点アドレス減算過程と、 前記頂点アドレス加算過程および前記頂点アドレス減算
過程により得られたアドレスの示すポリゴン頂点データ
に基づき、ポリゴンの右回り輪郭直線および左回り輪郭
直線をそれぞれ補間する補間過程と、 前記補間過程でそれぞれ得られるポリゴンの右回り輪郭
直線および左回り輪郭直線の端点を線分の両端としてポ
リゴン補間スパンを描画するスパン描画過程とを有し、 右回りポリゴン輪郭直線の補間と左回りポリゴン輪郭直
線の補間とを行う前記補間過程をそれぞれ同時に行い、
その都度前記スパン描画過程を実行することにより、前
記描画開始頂点からポリゴンの輪郭に沿って前記ポリゴ
ン補間スパンを描画すると共に、前記Y軸成分最小値抽
出過程の示すY軸成分が最小値の頂点からポリゴンの輪
郭に沿ってX軸方向に前記スパン描画過程を実行してY
軸方向に前記スパン描画過程を積み重ねることを特徴と
する多角形描画方法。
1. A polygon vertex storage process for temporarily storing polygon vertex data relating to a polygon to be rendered in advance based on a predetermined vertex storage management procedure, and sequentially monitoring polygon vertex data input for storage . along with the stores you Ku defines a certain polygon vertex data to be a portrayal start vertex, the polygon vertex data
A polygon having the smallest value in the Y-axis direction component
A starting point storing step including a Y-axis component minimum value extracting step for extracting vertex data; a contour generating step for sequentially generating polygon outlines; and a drawing start vertex determined in accordance with the polygon outlines. A vertex address adding step of generating an address at which the next polygon vertex data in the clockwise direction is stored; and the next polygon vertex data in the counterclockwise direction defined in relation to the drawing start vertex according to the outline of the polygon. A vertex address subtraction step of generating a stored address; and a right-hand contour line and a left-hand contour line of the polygon based on polygon vertex data indicated by the address obtained by the vertex address addition step and the vertex address subtraction step. An interpolation process for interpolating each, and a clockwise contour straight line and a counterclockwise contour of the polygon obtained in the interpolation process, respectively. Having a span drawing step of drawing a polygon interpolation span with the end points of the straight line as both ends of the line segment, and simultaneously performing the interpolation steps of interpolating the clockwise polygon outline straight line and the counterclockwise polygon outline straight line, respectively.
By executing the span drawing process each time, the polygon interpolation span is drawn along the outline of the polygon from the drawing start vertex , and the Y-axis component minimum value extraction is performed.
From the vertex where the Y axis component shown in the output process is the minimum value,
Execute the span drawing process in the X-axis direction along the
A polygon drawing method , wherein the span drawing steps are stacked in an axial direction .
【請求項2】請求項1記載の多角形描画方法において、
開始点記憶過程に代えて、記憶させるために入力される
ポリゴン頂点データを逐次監視し、描画開始頂点となる
べきあるポリゴン頂点データを定めて記憶しておくと共
に、ポリゴン頂 点データを比較し、Y軸方向成分が最も
大きな値を有するポリゴン頂点データを抽出するY軸成
分最大値抽出過程を含む開始点記憶過程を有する多角形
描画方法であって、 右回りポリゴン輪郭直線の補間と左回りポリゴン輪郭直
線の補間とを行う前記補間過程をそれぞれ同時に行い、
その都度前記スパン描画過程を実行することにより、前
記描画開始頂点からポリゴンの輪郭に沿って前記ポリゴ
ン補間スパンを描画すると共に、前記Y軸成分最大値抽
出過程の示すY軸成分が最大値の頂点からポリゴンの輪
郭に沿ってX軸方向に前記スパン描画過程を実行してY
軸方向に前記スパン描画過程を積み重ねることを特徴と
する多 角形描画方法。
2. A polygon drawing method according to claim 1, wherein
Input for storing instead of starting point storing process
Monitors polygon vertex data sequentially and becomes the drawing start vertex
Determine and store the desired polygon vertex data and
To compare the polygon vertex data, Y-axis direction component is the most
Y-axis component for extracting polygon vertex data having a large value
Polygon with starting point storage process including min-max extraction process
It is a drawing method, where the clockwise polygon outline straight line interpolation and the counterclockwise polygon outline straight
Performing the interpolation process of performing line interpolation simultaneously,
By executing the span drawing process each time,
The polygon is drawn along the outline of the polygon from the drawing start vertex.
Draws the interpolation span, and extracts the maximum value of the Y-axis component.
From the vertex with the maximum value of the Y axis component shown in the output process,
Execute the span drawing process in the X-axis direction along the
Characterized by stacking the span drawing process in the axial direction
Polygon drawing how to.
【請求項3】請求項1記載の多角形描画方法において、
開始点記憶過程に代えて、記憶させるために入力される
ポリゴン頂点データを逐次監視し、描画開始頂点となる
べきあるポリゴン頂点データを定めて記憶しておくと共
に、ポリゴン頂点データを比較し、X軸方向成分が最も
少ない値を有するポリゴン頂点データを抽出するX軸成
分最小値抽出過程を含む開始点記憶過程を有する多角形
描画方法であって、 右回りポリゴン輪郭直線の補間と左回りポリゴン輪郭直
線の補間とを行う前記補間過程をそれぞれ同時に行い、
その都度前記スパン描画過程を実行することにより、前
記描画開始頂点からポリゴンの輪郭に沿って前記ポリゴ
ン補間スパンを描画すると共に、前記X軸成分最小値抽
出過程の示すX軸成分が最小値の頂点からポリゴンの輪
郭に沿ってY軸方向に前記スパン描画過程を実行してX
軸方向に前記スパン描画過程を積み重ねることを特徴と
する多 角形描画方法。
3. The polygon drawing method according to claim 1, wherein
Input for storing instead of starting point storing process
Monitors polygon vertex data sequentially and becomes the drawing start vertex
Determine and store the desired polygon vertex data and
Then, compare the polygon vertex data, and
X-axis component for extracting polygon vertex data with small value
Polygon with starting point storage process including min-min extraction process
It is a drawing method, where the clockwise polygon outline straight line interpolation and the counterclockwise polygon outline straight
Performing the interpolation process of performing line interpolation simultaneously,
By executing the span drawing process each time,
The polygon is drawn along the outline of the polygon from the drawing start vertex.
Draw the interpolation span and extract the X-axis component minimum value.
From the vertex whose X-axis component shows the minimum value,
Execute the span drawing process in the Y-axis direction along the
Characterized by stacking the span drawing process in the axial direction
Polygon drawing how to.
【請求項4】請求項1記載の多角形描画方法において、
開始点記憶過程に代えて、記憶させるために入力される
ポリゴン頂点データを逐次監視し、描画開始頂点となる
べきあるポリゴン頂点データを定めて記憶しておくと共
に、ポリゴン頂点データを比較し、X軸方向成分が最も
大きな値を有するポリゴン頂点データを抽出するX軸成
分最大値抽出過程を含む開始点記憶過程を有する多角形
描画方法であって、 右回りポリゴン輪郭直線の補間と左回りポリゴン輪郭直
線の補間とを行う前記補間過程をそれぞれ同時に行い、
その都度前記スパン描画過程を実行することに より、前
記描画開始頂点からポリゴンの輪郭に沿って前記ポリゴ
ン補間スパンを描画すると共に、前記X軸成分最大値抽
出過程の示すX軸成分が最大値の頂点からポリゴンの輪
郭に沿ってY軸方向に前記スパン描画過程を実行してX
軸方向に前記スパン描画過程を積み重ねる事を特徴とす
る多 角形描画方法。
4. A polygon drawing method according to claim 1, wherein:
Input for storing instead of starting point storing process
Monitors polygon vertex data sequentially and becomes the drawing start vertex
Determine and store the desired polygon vertex data and
Then, compare the polygon vertex data, and
X-axis component for extracting polygon vertex data with large value
Polygon with starting point storage process including min-max extraction process
It is a drawing method, where the clockwise polygon outline straight line interpolation and the counterclockwise polygon outline straight
Performing the interpolation process of performing line interpolation simultaneously,
Each time more to performing the span drawing process, before
The polygon is drawn along the outline of the polygon from the drawing start vertex.
Draw the interpolation span and extract the X-axis component maximum value.
From the vertex whose X-axis component indicates the maximum value,
Execute the span drawing process in the Y-axis direction along the
Characterized by stacking the span drawing process in the axial direction
Polygon drawing how.
【請求項5】請求項1記載の多角形描画方法において、
開始点記憶過程に代えて、記憶させるために入力される
ポリゴン頂点データを逐次監視し、描画開始頂点となる
べきあるポリゴン頂点データを定めて記憶しておくと共
に、ポリゴン頂点データを比較し、X軸方向成分とY軸
方向成分とが最も少ない値を有するポリゴン頂点データ
を抽出する成分最小値抽出過程と、 X軸方向のポリゴン全長を算出するポリゴンX全長算出
過程と、 Y軸方向のポリゴン全長を算出するポリゴンY全長算出
過程と、 X軸方向のポリゴン全長とY軸方向のポリゴン全長とを
比較して、全長の短い軸方向を定める最短全長算出過程
とを含む開始点記憶過程を有する多角形描画方法であっ
て、 右回りポリゴン輪郭直線の補間と左回りポリゴン輪郭直
線の補間とを行う前記補間過程をそれぞれ同時に行い、
その都度前記スパン描画過程を実行することにより、前
記描画開始頂点からポリゴンの輪郭に沿って前記ポリゴ
ン補間スパンを描画すると共に、 前記成分最小値抽出過程の示すX軸方向成分とY軸方向
成分とが最小値の頂点からポリゴンの輪郭に沿って、前
記最短全長算出過程で定められなかった他の軸方向に前
記スパン描画過程を実行して、前記最短全長算出過程定
でめられた軸方向に前記スパン描画過程を積み重ねる事
を特徴とする多角形描画方法。
5. The polygon drawing method according to claim 1, wherein
Input for storing instead of starting point storing process
Monitors polygon vertex data sequentially and becomes the drawing start vertex
Determine and store the desired polygon vertex data and
To compare the polygon vertex data, the component minimum value extraction process in which the X-axis direction component and the Y-axis direction component extracts the polygon vertex data having the smallest value, a polygon X total length for calculating the polygon entire length of the X-axis direction Calculating the total length of the polygon in the Y-axis direction; calculating the total length of the polygon in the Y-axis direction; and comparing the total length of the polygon in the X-axis direction and the total length of the polygon in the Y-axis direction to determine the shortest total length.
A polygon drawing method having a starting point storing step including
Te, clockwise polygon outline linear interpolation and counterclockwise polygon outline straight
Performing the interpolation process of performing line interpolation simultaneously,
By executing the span drawing process each time,
The polygon is drawn along the outline of the polygon from the drawing start vertex.
In addition to the drawing of the interpolation span, the X-axis direction component and the Y-axis direction component shown in the component minimum value extraction process are not determined in the shortest full length calculation process from the vertex of the minimum value along the polygon outline. polygon drawing method of executing the span drawing process in the axial direction, it characterized by stacking the span drawing process in order was axially front Symbol shortest total length calculation step constant.
【請求項6】請求項1記載の多角形描画方法において、
開始点記憶過程に代えて、記憶させるために入力される
ポリゴン頂点データを逐次監視し、描画開始頂点となる
べきあるポリゴン頂点データを定めて記憶しておくと共
に、ポリゴン頂点データを比較し、X軸方向成分とY軸
方向成分とが最も大きな値を有するポリゴン頂点データ
を抽出する成分最大値抽出過程と、 X軸方向のポリゴン全長を算出するポリゴンX全長算出
過程と、 Y軸方向のポリゴン全長を算出するポリゴンY全長算出
過程と、 X軸方向のポリゴン全長とY軸方向のポリゴン全長とを
比較して、全長の短い軸方向を定める最短全長算出過程
とを含む開始点記憶過程を有する多角形描画方法であっ
て、 右回りポリゴン輪郭直線の補間と左回りポリゴン輪郭直
線の補間とを行う前記補間過程をそれぞれ同時に行い、
その都度前記スパン描画過程を実行することにより、前
記描画開始頂点からポリゴンの輪郭に沿って前記ポリゴ
ン補間スパンを描画すると共に、 前記成分最大値抽出過程の示すX軸方向成分とY軸方向
成分とが最大値の頂点からポリゴンの輪郭に沿って、前
記最短全長算出過程で定められなかった他の軸方向に前
記スパン描画過程を実行して、前記最短全長算出過程定
でめられた軸方向に前記スパン描画過程を積み重ねる事
を特徴とする多角形描画方法。
6. A polygon drawing method according to claim 1, wherein:
Input for storing instead of starting point storing process
Monitors polygon vertex data sequentially and becomes the drawing start vertex
Determine and store the desired polygon vertex data and
To compare the polygon vertex data, the component maximum value extraction process in which the X-axis direction component and the Y-axis direction component extracts the polygon vertex data having the largest value, the polygon X total length for calculating the polygon entire length of the X-axis direction Calculating the total length of the polygon in the Y-axis direction; calculating the total length of the polygon in the Y-axis direction; and comparing the total length of the polygon in the X-axis direction and the total length of the polygon in the Y-axis direction to determine the shortest total length.
A polygon drawing method having a starting point storing step including
Te, clockwise polygon outline linear interpolation and counterclockwise polygon outline straight
Performing the interpolation process of performing line interpolation simultaneously,
By executing the span drawing process each time,
The polygon is drawn along the outline of the polygon from the drawing start vertex.
In addition to drawing the interpolation span, the X-axis component and the Y-axis component shown in the component maximum value extraction process are not determined in the shortest total length calculation process along the polygon outline from the maximum value vertex. polygon drawing method of executing the span drawing process in the axial direction, it characterized by stacking the span drawing process in order was axially front Symbol shortest total length calculation step constant.
【請求項7】データを表示する表示装置と、表示すべき
データを一時的に記憶しておく画像記憶手段と、2地点
の座標データから2地点を結ぶ直線のデータを算出する
直線描画手段とを有する多角形描画装置であって、 描画対象のポリゴンに関するポリゴン頂点データを予め
一時記憶するポリゴン頂点レジスタと、 前記ポリゴン頂点レジスタにポリゴン頂点データを所定
の条件で記憶させる管理を行う頂点管理手段と、 記憶させるために入力されるポリゴン頂点データを逐次
監視し、描画開始頂点となるべきあるポリゴン頂点デー
タを定めて一時記憶しておくと共に、ポリゴン頂点デー
タを比較し、Y軸方向成分が最も少ない値を有するポリ
ゴン頂点データを抽出するY軸成分最小値抽出手段を含
開始点レジスタと、 ポリゴンの輪郭を生成する順序を逐次制御する輪郭生成
手段と、 ポリゴンの輪郭に従って、前記描画開始頂点と関連して
定めた右回り方向の次のポリゴン頂点データが記憶され
ているアドレスを前記ポリゴン頂点レジスタに対して出
力する頂点アドレス加算手段と、 ポリゴンの輪郭に従って、前記描画開始頂点と関連して
定めた左回り方向の次のポリゴン頂点データが記憶され
ているアドレスを前記ポリゴン頂点レジスタに対して出
力する頂点アドレス減算手段と、 前記頂点アドレス加算手段および前記頂点アドレス減算
手段により得られたアドレスの示すポリゴン頂点データ
に基づき、ポリゴンの右回り輪郭直線および左回り輪郭
直線をそれぞれ補間する補間手段と、 前記補間手段でそれぞれ得られるポリゴンの右回り輪郭
直線および左回り輪郭直線の端点を線分の両端としてポ
リゴン補間スパンを描画する直線描画手段とを有し、 前記補間手段により右回りポリゴン輪郭直線の補間と左
回りポリゴン輪郭直線の補間とをそれぞれ同時に行い、
前記直線描画手段によりその都度前記ポリゴン補間スパ
ンの描画を行うことにより、前記描画開始頂点からポリ
ゴンの輪郭に沿って前記ポリゴン補間スパンを描画する
と共に、前記直線描画手段により前記Y軸成分最小値抽
出手段の示すY軸成分が最小値の頂点からポリゴンの輪
郭に沿ってX軸方向に前記ポリゴン補間スパンの描画を
行なってY軸方向に前記ポリゴン補間スパンの描画を積
み重ねる事を特徴とする多角形描画装置。
7. A display device for displaying data, image storage means for temporarily storing data to be displayed, and straight line drawing means for calculating data of a straight line connecting two points from coordinate data of two points. A polygon vertex register for temporarily storing polygon vertex data relating to a polygon to be rendered in advance, and vertex management means for managing the polygon vertex data to be stored under predetermined conditions in the polygon vertex register. , sequentially monitors the polygon vertex data input to be stored therein, with temporarily store defines a certain polygon vertex data to the portrayal starting vertex, the polygon vertex data
Data with the smallest value in the Y-axis direction component.
Includes Y-axis component minimum value extraction means for extracting gon vertex data
A start point register, contour generation means for sequentially controlling the order in which polygon outlines are generated, and the next polygon vertex data in the clockwise direction defined in relation to the drawing start vertex according to the polygon outline. A vertex address adding means for outputting an address to the polygon vertex register, and an address at which the next polygon vertex data in the counterclockwise direction defined in relation to the drawing start vertex is stored according to the outline of the polygon. A vertex address subtraction means for outputting to the polygon vertex register; and a clockwise contour line and a counterclockwise contour straight line of the polygon based on polygon vertex data indicated by the addresses obtained by the vertex address addition means and the vertex address subtraction means. Interpolating means for interpolating each of the polygons, Line drawing means for drawing a polygon interpolation span with the end points of the circling contour straight line and the counterclockwise contour straight line as both ends of the line segment, wherein the interpolation means interpolates the clockwise polygon contour straight line and interpolates the counterclockwise polygon contour straight line. Are performed simultaneously,
By drawing the polygon interpolation span each time by the straight line drawing means, the polygon interpolation span is drawn along the polygon outline from the drawing start vertex.
At the same time, the Y-axis component minimum value is extracted by the straight line drawing means.
From the vertex whose Y-axis component indicated by the output means is the minimum value,
Draw the polygon interpolation span in the X-axis direction along the contour
Line and multiply the drawing of the polygon interpolation span in the Y-axis direction.
A polygon drawing device characterized by overlapping .
【請求項8】請求項7記載の多角形描画装置において、
開始点レジスタに代えて、記憶させるために入力される
ポリゴン頂点データを逐次監視し、描画開始頂点となる
べきあるポリゴン頂点データを定めて一時記憶しておく
と共に、ポリゴン頂点データを比較し、Y軸方向成分が
最も大きな値を有するポリゴン頂点データを抽出するY
軸成分最大値抽出手段を含む開始点レジスタを有する多
角形描画装置であって、 前記補間手段により右回りポリゴン輪郭直線の補間と左
回りポリゴン輪郭直線の補間とをそれぞれ同時に行い、
前記直線描画手段によりその都度前記ポリゴン補間スパ
ンの描画を行うことにより、前記描画開始頂点からポリ
ゴンの輪郭に沿って前記ポリゴン補間スパンを描画する
と共に、前記直線描画手段により前記Y軸成分最大値抽
出手段の示すY軸成分が最大値の頂点からポリゴンの輪
郭に沿ってX軸方向に前記ポリゴン補間スパンの描画を
行なってY軸方向に前記ポリゴン補間スパンの描画を積
み重ねる事を特徴とする多 角形描画装置。
8. The polygon drawing apparatus according to claim 7, wherein:
Input to store instead of start point register
Monitors polygon vertex data sequentially and becomes the drawing start vertex
Predetermine polygon vertex data to be stored temporarily
With the polygon vertex data, and the component in the Y-axis direction is
Y for extracting polygon vertex data having the largest value
Multi-point with start point register including axis component maximum value extraction means
A polygon drawing device, comprising:
Interpolation of the surrounding polygon outline straight line is performed respectively at the same time,
Each time the polygon interpolation spa
By drawing a pattern, the polygon is drawn from the drawing start vertex.
Draw the polygon interpolation span along the outline of the gon
At the same time, the maximum value of the Y-axis component is extracted by the straight line drawing means.
From the vertex with the maximum value of the Y-axis component indicated by the output means,
Draw the polygon interpolation span in the X-axis direction along the contour
Line and multiply the drawing of the polygon interpolation span in the Y-axis direction.
Polygon drawing device, characterized in that overlapping seen.
【請求項9】請求項7記載の多角形描画装置において、
開始点レジスタに代えて、記憶させるために入力される
ポリゴン頂点データを逐次監視し、描画開始頂点となる
べきあるポリゴン頂点データを定めて一時記憶しておく
と共に、ポリゴ ン頂点データを比較し、X軸方向成分が
最も少ない値を有するポリゴン頂点データを抽出するX
軸成分最小値抽出手段を含む開始点レジスタを有する多
角形描画装置であって、 前記補間手段により右回りポリゴン輪郭直線の補間と左
回りポリゴン輪郭直線の補間とをそれぞれ同時に行い、
前記直線描画手段によりその都度前記ポリゴン補間スパ
ンの描画を行うことにより、前記描画開始頂点からポリ
ゴンの輪郭に沿って前記ポリゴン補間スパンを描画する
と共に、前記直線描画手段により前記X軸成分最小値抽
出手段の示すX軸成分が最小値の頂点からポリゴンの輪
郭に沿ってY軸方向に前記ポリゴン補間スパンの描画を
行なってX軸方向に前記ポリゴン補間スパンの描画を積
み重ねる事を特徴とする多 角形描画装置。
9. The polygon drawing apparatus according to claim 7, wherein
Input to store instead of start point register
Monitors polygon vertex data sequentially and becomes the drawing start vertex
Predetermine polygon vertex data to be stored temporarily
Together, to compare the polygon vertex data, the X-axis direction component
X for extracting polygon vertex data having the smallest value
Multi-point with start point register including axis component minimum value extraction means
A polygon drawing device, comprising:
Interpolation of the surrounding polygon outline straight line is performed respectively at the same time,
Each time the polygon interpolation spa
By drawing a pattern, the polygon is drawn from the drawing start vertex.
Draw the polygon interpolation span along the outline of the gon
At the same time, the X-axis component minimum value is extracted by the straight line drawing means.
From the vertex whose X-axis component indicated by the output means is the minimum value,
Draw the polygon interpolation span in the Y-axis direction along the contour
Line and multiply the drawing of the polygon interpolation span in the X-axis direction.
Polygon drawing device, characterized in that overlapping seen.
【請求項10】請求項7記載の多角形描画装置におい
て、開始点レジスタに代えて、記憶させるために入力さ
れるポリゴン頂点データを逐次監視し、描画開始頂点と
なるべきあるポリゴン頂点データを定めて一時記憶して
おくと共に、ポリゴン頂点データを比較し、X軸方向成
分が最も大きな値を有するポリゴン頂点データを抽出す
るX軸成分最大値抽出手段を含む開始点レジスタを有す
る多角形描画装置であって、 前記補間手段により右回りポリゴン輪郭直線の補間と左
回りポリゴン輪郭直線の補間とをそれぞれ同時に行い、
前記直線描画手段によりその都度前記ポリゴン補間スパ
ンの描画を行うことにより、前記描画開始頂点からポリ
ゴンの輪郭に沿って前記ポリゴン補間スパンを描画する
と共に、前記直線描画手段により前記X軸成分最大値抽
出手段の示すX軸成分が最大値の頂点からポリゴンの輪
郭に沿ってY軸方向に前記ポリゴン補間スパンの描画を
行なってX軸方向に前記ポリゴン補間スパンの描画を積
み重ねる事を特徴とする多 角形描画装置。
10. A polygon drawing apparatus according to claim 7, wherein
Instead of the start point register,
Monitor the polygon vertex data to be
Determine the polygon vertex data to be stored and temporarily store
At the same time, the polygon vertex data is compared and the X-axis direction
Extract the polygon vertex data with the largest value for the minute
Has a starting point register including an X-axis component maximum value extracting means.
A polygon drawing device, comprising:
Interpolation of the surrounding polygon outline straight line is performed respectively at the same time,
Each time the polygon interpolation spa
By drawing a pattern, the polygon is drawn from the drawing start vertex.
Draw the polygon interpolation span along the outline of the gon
At the same time, the X-axis component maximum value is extracted by the straight line drawing means.
From the vertex whose X axis component indicated by the output means is the maximum value,
Draw the polygon interpolation span in the Y-axis direction along the contour
Line and multiply the drawing of the polygon interpolation span in the X-axis direction.
Polygon drawing device, characterized in that overlapping seen.
【請求項11】請求項7記載の多角形描画装置におい
て、開始点レジスタに代えて、記憶させるために入力さ
れるポリゴン頂点データを逐次監視し、描画開始頂点と
なるべきあるポリゴン頂点データを定めて一時記憶して
おくと共に、ポリゴン頂点データを比較し、X軸方向成
分とY軸方向成分とが最も少ない値を有するポリゴン頂
点データを抽出する成分最小値抽出手段と、 X軸方向のポリゴン全長を算出するポリゴンX全長算出
手段と、 Y軸方向のポリゴン全長を算出するポリゴンY全長算出
手段と、 X軸方向のポリゴン全長とY軸方向のポリゴン全長とを
比較して、全長の短い軸方向を定める最短全長算出手段
とを含む開始点レジスタを有する多角形描画装置であっ
て、 前記補間手段により右回りポリゴン輪郭直線の補間と左
回りポリゴン輪郭直線の補間とをそれぞれ同時に行い、
前記直線描画手段によりその都度前記ポリゴン補間スパ
ンの描画を行うことにより、前記描画開始頂点からポリ
ゴンの輪郭に沿って前記ポリゴン補間スパンを描画する
と共に、 前記成分最小値抽出手段の示すX軸方向成分と
Y軸方向成分とが最小値の頂点からポリゴンの輪郭に沿
って、前記直線描画手段により前記最短全長算出手段で
定められなかった他の軸方向に前記ポリゴン補間スパン
の描画を行なって、前記最短全長算出手段で定められた
軸方向に前記ポリゴン補間スパンの描画を積み重ねる事
を特徴とする多角形描画装置。
11. A polygon drawing apparatus according to claim 7, wherein :
Instead of the start point register,
Monitor the polygon vertex data to be
Determine the polygon vertex data to be stored and temporarily store
In addition, a component minimum value extracting means for comparing polygon vertex data and extracting polygon vertex data having the smallest value in the X-axis direction component and the Y-axis direction component, and a polygon X for calculating the total length of the polygon in the X-axis direction A total length calculating means, a polygon Y total length calculating means for calculating the total length of the polygon in the Y-axis direction, a shortest total length calculation for determining an axial direction having a shorter total length by comparing the total length of the polygon in the X-axis direction and the total length of the polygon in the Y-axis direction A polygon drawing device having a starting point register including:
Te, interpolation and left clockwise polygon outline linear by said interpolation means
Interpolation of the surrounding polygon outline straight line is performed respectively at the same time,
Each time the polygon interpolation spa
By drawing a pattern, the polygon is drawn from the drawing start vertex.
Draw the polygon interpolation span along the outline of the gon
At the same time, the X-axis direction component and the Y-axis direction component indicated by the component minimum value extracting unit extend along the outline of the polygon from the vertex of the minimum value and are not determined by the straight line drawing unit by the shortest total length calculating unit. in the axial direction becomes line drawing of the polygon interpolation span shall be the previous SL wherein the stacking drawing of the polygon interpolation span in the axial direction defined by the shortest total length calculating means polygon drawing device.
【請求項12】請求項7記載の多角形描画装置におい
て、開始点レジスタに代えて、記憶させるために入力さ
れるポリゴン頂点データを逐次監視し、描画開始頂点と
なるべきあるポリゴン頂点データを定めて一時記憶して
おくと共に、ポリゴン頂点データを比較し、X軸方向成
分とY軸方向成分とが最も大きな値を有するポリゴン頂
点データを抽出する成分最大値抽出手段と、 X軸方向のポリゴン全長を算出するポリゴンX全長算出
手段と、 Y軸方向のポリゴン全長を算出するポリゴンY全長算出
手段と、 X軸方向のポリゴン全長とY軸方向のポリゴン全長とを
比較して、全長の短い軸方向を定める最短全長算出手段
とを含む開始点レジスタを有する多角形描画装置であっ
て、 前記補間手段により右回りポリゴン輪郭直線の補間と左
回りポリゴン輪郭直線の補間とをそれぞれ同時に行い、
前記直線描画手段によりその都度前記ポリゴン補間スパ
ンの描画を行うことにより、前記描画開始頂点からポリ
ゴンの輪郭に沿って前記ポリゴン補間スパンを描画する
と共に、 前記成分最大値抽出手段の示すX軸方向成分と
Y軸方向成分とが最大値の頂点からポリゴンの輪郭に沿
って、前記直線描画手段により前記最短全長算出手段で
定められなかった他の軸方向に前記ポリゴン補間スパン
の描画を行なって、前記最短全長算出手段で定められた
軸方向に前記ポリゴン補間スパンの描画を積み重ねる事
を特徴とする多角形描画装置。
12. A polygon drawing apparatus according to claim 7, wherein :
Instead of the start point register,
Monitor the polygon vertex data to be
Determine the polygon vertex data to be stored and temporarily store
In addition, a component maximum value extracting means for comparing polygon vertex data and extracting polygon vertex data having the largest value in the X-axis direction component and the Y-axis direction component, and a polygon X for calculating the total length of the polygon in the X-axis direction A total length calculating means, a polygon Y total length calculating means for calculating the total length of the polygon in the Y-axis direction, a shortest total length calculation for determining an axial direction having a shorter total length by comparing the total length of the polygon in the X-axis direction and the total length of the polygon in the Y-axis direction A polygon drawing device having a starting point register including:
Te, interpolation and left clockwise polygon outline linear by said interpolation means
Interpolation of the surrounding polygon outline straight line is performed respectively at the same time,
Each time the polygon interpolation spa
By drawing a pattern, the polygon is drawn from the drawing start vertex.
Draw the polygon interpolation span along the outline of the gon
At the same time, the X-axis direction component and the Y-axis direction component indicated by the component maximum value extracting unit are not determined by the straight line drawing unit by the shortest total length calculating unit along the outline of the polygon from the vertex of the maximum value. in the axial direction becomes line drawing of the polygon interpolation span shall be the previous SL wherein the stacking drawing of the polygon interpolation span in the axial direction defined by the shortest total length calculating means polygon drawing device.
JP6322356A 1993-12-28 1994-12-26 Polygon drawing method and polygon drawing device Expired - Fee Related JP2971765B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6322356A JP2971765B2 (en) 1993-12-28 1994-12-26 Polygon drawing method and polygon drawing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP5-334355 1993-12-28
JP33435593 1993-12-28
JP6322356A JP2971765B2 (en) 1993-12-28 1994-12-26 Polygon drawing method and polygon drawing device

Publications (2)

Publication Number Publication Date
JPH07234946A JPH07234946A (en) 1995-09-05
JP2971765B2 true JP2971765B2 (en) 1999-11-08

Family

ID=26570779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6322356A Expired - Fee Related JP2971765B2 (en) 1993-12-28 1994-12-26 Polygon drawing method and polygon drawing device

Country Status (1)

Country Link
JP (1) JP2971765B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5758128A (en) * 1996-06-27 1998-05-26 Cirrus Logic, Inc. Object referenced memory mapping
JP4492567B2 (en) 2006-03-17 2010-06-30 ソニー株式会社 Image processing apparatus, image processing method, and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0831138B2 (en) * 1985-09-27 1996-03-27 ダイキン工業株式会社 Polygonal fill device in scanning display device
JPH01128093A (en) * 1987-11-12 1989-05-19 Matsushita Electric Ind Co Ltd Lithography apparatus
JP2659584B2 (en) * 1989-03-06 1997-09-30 イビデン株式会社 How to fill shapes
JPH03137695A (en) * 1989-10-24 1991-06-12 Nec Corp Character display system
JPH04153786A (en) * 1990-10-17 1992-05-27 Nec Corp Quadrilateral area filling device

Also Published As

Publication number Publication date
JPH07234946A (en) 1995-09-05

Similar Documents

Publication Publication Date Title
US5563995A (en) Method and system for directly drawing a convex polygon having a given number of vertices with high speed
JP2971765B2 (en) Polygon drawing method and polygon drawing device
JP3280160B2 (en) Document processing apparatus and document processing method
JP2610825B2 (en) Graphic processing unit
JPH1186008A (en) Method and equipment for drawing processing
JPH10222142A (en) Window control device
JPH0350686A (en) Graphic processing system
JPH0887597A (en) Image processor
JP2537851B2 (en) Image scaling processor
JP2806376B2 (en) Image processing apparatus and image processing method
JPH0535912B2 (en)
JPH04342084A (en) Method and device for plotting curve
JPH0789381B2 (en) Pixel value interpolation display method
JPH03184184A (en) Image processor
JPH0113114B2 (en)
JPH05250479A (en) Curve interpolation device
JPH0969166A (en) Information processor, its method and storage medium
JPH0490067A (en) Graphic editing device
JPH07175937A (en) Plotting address calculating system
JPH08123956A (en) Image processing device
JPH0644385A (en) Z buffer control circuit
JPS62219078A (en) Arithmetic and processing device for expanded picture
JPH0467230B2 (en)
JP2000067229A (en) Device and method for generating image
JPH06348855A (en) Plotting processor and straight line generation parallel processing method for the same and graphic board and cad system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070827

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090827

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090827

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100827

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110827

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120827

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees