JPH0883350A - Graphic display device - Google Patents

Graphic display device

Info

Publication number
JPH0883350A
JPH0883350A JP21730594A JP21730594A JPH0883350A JP H0883350 A JPH0883350 A JP H0883350A JP 21730594 A JP21730594 A JP 21730594A JP 21730594 A JP21730594 A JP 21730594A JP H0883350 A JPH0883350 A JP H0883350A
Authority
JP
Japan
Prior art keywords
line
data
triangle
processing unit
outer peripheral
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.)
Withdrawn
Application number
JP21730594A
Other languages
Japanese (ja)
Inventor
Akihiro Yanoguchi
晃大 矢野口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP21730594A priority Critical patent/JPH0883350A/en
Publication of JPH0883350A publication Critical patent/JPH0883350A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To guarantee the plotting result of a triangle with a peripheral line for an outer peripheral pattern other than solid lines by allowing a plotting processing part to plot and display boundary data generated by a hollow line processing part and peripheral lint data generated by an outer peripheral line processing part under the control of a boundary data controlling part. CONSTITUTION: The boundary data controlling part 21a manages the vertex coordinate values of a triangle and sends the absolute minimum numbers of triangle vertex coordinate values for the boundary of the triangle to a plotting data exchanging part 3 as graphic data. In this case, DDA processing for generating a boundary is the same DDA processing as that of an outer peripheral line. The sent boundary data are regarded as the triangle data of a triangle whose inside is hollow, hollow line processing is executed and the boundary is plotted by the same area color as that of the inside area of the triangle. When the pattern data of an outer peripheral line processed by the same DDA processing are plotted so as to be superposed to the boundary, the outer peripheral line on which a part of the boundary is left as the area color of the boundary can be plotted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、少なくとも、ディスプ
レイ面上に設定したウィンドウでクリップされた三角形
を形成する三角形クリップ処理部,外周線引っ込め処理
部と中空線処理部と外周線処理部とを備えたDDA処理
部,描画データをドットデータに変換する描画データ変
換部,実際の描画を行う描画処理部を備えた図形表示装
置において、装置座標系(DC)で表される3頂点座標値を
持つ三角形データと、該三角形の外周線部分を境界線と
し、該境界線の描画・非描画を示すフラグを有する境界
線データとから、上記DDA処理部に設けられているス
キャンコンバージョン部で分割された装置座標系(DC)の
三角形領域の内部データ (スパンデータ) と、これに隣
接する境界線を中空線として描画した境界線データを形
成し、上記外周線処理部で描画した外周線データを、該
境界線に上書きして、該三角形を描画して表示する図形
表示装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention includes at least a triangle clip processing section for forming a triangle clipped by a window set on a display surface, a peripheral wire retraction processing section, a hollow wire processing section and a peripheral line processing section. In a graphic display device equipped with a DDA processing unit provided, a drawing data conversion unit for converting drawing data into dot data, and a drawing processing unit for performing actual drawing, three vertex coordinate values represented by a device coordinate system (DC) are displayed. It is divided by the scan conversion unit provided in the DDA processing unit from the triangle data that it has and the border line data that has the outer peripheral line portion of the triangle as a border line and that has a flag that indicates whether or not to draw the border line. The internal data (span data) of the triangular area of the device coordinate system (DC) and the boundary line data in which the boundary line adjacent to this is drawn as a hollow line are formed. In the drawing the peripheral line data, and overwrites the boundary line relates to graphic display device for displaying by drawing the triangle.

【0002】[0002]

【従来の技術】図10〜図14は、従来の外周線付き三
角形の描画方法及び装置を説明する図であって、図10
は、従来の図形表示装置の構成例を示し、図11,図1
2は、従来の外周線付き三角形の面塗り方法を示し、図
13は、三角形 (領域)DDAと外周線DDAの相違を
示し、図14は、三角形データの格納例を示している。
2. Description of the Related Art FIGS. 10 to 14 are views for explaining a conventional method and apparatus for drawing a triangle with a peripheral line.
Shows an example of the configuration of a conventional graphic display device.
2 shows a conventional triangle surface-applied triangle surface painting method, FIG. 13 shows the difference between the triangle (area) DDA and the outer circumference line DDA, and FIG. 14 shows an example of storing triangular data.

【0003】通常、図形表示装置は、図10に示されて
いるように、少なくとも、ディスプレイ面上に設定した
ウィンドウでクリップ(ウィンドウ枠による枠取り)さ
れた三角形を形成する三角形クリップ処理部 1,三角形
の内部領域(スパン)を描画するスキャンコンバージョ
ン部 20 と外周線引っ込め処理部 20aと中空線処理部21
と外周線処理部 22 とを備えたDDA処理部 2,描画
データをドットデータに変換する描画データ変換部 3,
実際の描画を行う描画処理部 4を備えており、図示され
ていない上位装置で実行されているアプリケーションプ
ログラムからの指示に基づいて、指示された、例えば、
三角形を描画して表示する。
Generally, as shown in FIG. 10, a graphic display device usually has at least a triangle clip processing unit 1, which forms a triangle clipped (framed by a window frame) in a window set on the display surface. Scan conversion unit 20 that draws the internal area (span) of the triangle, peripheral line retraction processing unit 20a, and hollow line processing unit 21
A DDA processing unit 2 including a peripheral line processing unit 22 and a drawing data conversion unit 3 for converting drawing data into dot data,
A drawing processing unit 4 for performing actual drawing is provided, and based on an instruction from an application program executed by a higher-level device (not shown),
Draw and display a triangle.

【0004】ここで、上記三角形クリップ処理部 1は、
例えば、図示されていない上位装置が指示したウィンド
ウの枠で、表示すべき三角形の図形がクリップされたと
き、該クリップされた図形(例えば、三角形)のみを、
該ウィンドウ内に表示するためのクリップ処理を行う部
分である。
Here, the triangle clip processing unit 1 is
For example, when a triangular figure to be displayed is clipped in a window frame designated by a higher-level device (not shown), only the clipped figure (for example, triangle) is
This is a part for performing clip processing for displaying in the window.

【0005】又、外周線引っ込め処理部 20aは、装置座
標系(DC)で表される3頂点座標値を持つ三角系データ
{例えば、図14(a) に示した三角形頂点データリスト
参照}を基に、所定のディジタル微分解析器(DDA) のア
ルゴリズムによって、外周線の座標値を算出し、該算出
された座標値 (少数点付き座標データ) と、図示されて
いない表示装置の表示座標 (ピクセルということがあ
る)(整数) との差分から、該外周線に囲まれた内側の表
示領域の端点の座標 (上記ピクセル座標:整数) を検出
する部分である。
The outer peripheral line retraction processing unit 20a also receives trigonal system data (for example, refer to the triangle vertex data list shown in FIG. 14A) having the three vertex coordinate values represented by the device coordinate system (DC). Based on the algorithm of a predetermined digital differential analyzer (DDA), the coordinate values of the outer peripheral line are calculated, and the calculated coordinate values (coordinate data with decimal points) and the display coordinates of a display device (not shown) ( This is a part for detecting the coordinates (the pixel coordinates: integer) of the end point of the inner display area surrounded by the outer peripheral line from the difference between the pixel and the pixel.

【0006】先ず、従来、外周線付き三角形を面塗り描
画するとき、上記三角形クリップ処理部 1のクリッピン
グ処理部 10 と外周線データ制御部 11 で、所定のウィ
ンドウでクリップされた三角形を、図14(a),(b) に、
そのデータフォーマットを示した三角形頂点データと外
周線頂点データに分割し、該三角形頂点データは、図1
0に示されているDDA処理部 2のスキャンコンバージ
ョン部 20 の上記外周線引っ込め処理部 20aに転送さ
れ、該三角形の左右の外周線に囲まれた内側の領域端点
を検出し、該三角形の面塗りに必要なスパンデータを生
成する。
First, conventionally, when a triangle with an outer peripheral line is surface-painted and drawn, the triangle clipped by the clipping processing unit 10 and the outer peripheral line data control unit 11 of the above-mentioned triangle clip processing unit 1 is used as shown in FIG. In (a) and (b),
It is divided into triangle vertex data showing the data format and outer peripheral line vertex data.
0 is transferred to the outer peripheral line retraction processing unit 20a of the scan conversion unit 20 of the DDA processing unit 2 shown in FIG. Generate the span data required for painting.

【0007】該スパンデータは、図14(c) に示されて
いるように、例えば、各スパンデータ1〜の装置座標形
(DC)でのY座標値(Yspan1 〜) と、該スパンの開始点の
X座標値(Xs1〜) と該スパンの終了点のX座標値(Xe1
〜) と、奥行き方向の座標値(Zs1〜) 等からなる 該生
成されたスパンデータリストは、描画データ変換部 3に
送出され、スパンデータ変換部 30 において、ドットデ
ータからなるスパン描画データに変換され、描画処理部
4に送出される。
The span data is, for example, as shown in FIG.
(DC) Y coordinate value (Yspan1 ~), X coordinate value of the start point of the span (Xs1 ~) and X coordinate value of the end point of the span (Xe1 ~)
~) And the coordinate values in the depth direction (Zs1 ~), etc., the generated span data list is sent to the drawing data conversion unit 3 and converted into span drawing data composed of dot data in the span data conversion unit 30. The drawing processing unit
Dispatched to 4.

【0008】続いて、外周線処理部 22 において、外周
線データ制御部 11 から得た外周線頂点データ{図14
(b) のフォーマット参照、各データの詳細な意味説明は
省略}から外周線のDDA処理を行い、外周線データ変
換部 32 を介して、描画処理部 4に送出し、外周線付き
三角形の描画を保障している。
Subsequently, in the outer peripheral line processing unit 22, the outer peripheral line vertex data obtained from the outer peripheral line data control unit 11 (see FIG. 14).
Perform the DDA processing of the outer peripheral line from the format reference in (b) and omit the detailed description of the meaning of each data}, send it to the drawing processing unit 4 via the outer peripheral line data conversion unit 32, and draw the triangle with the outer peripheral line. Is guaranteed.

【0009】図11,図12は、上記従来の外周線付き
三角形の面塗り方法を示しているが、図11(a) は描画
する基本三角形を示していて、●印は、該与えられた基
本三角形の理論装置座標を示しており、図11(b) は、
該図11(a) で示した三角形を描画するときの、該三角
形の領域内部分 (これをスパンという) 迄の描画を行う
ときの実際の描画領域を示している。即ち、図11(b)
において、太線は、該三角形の理論値を示し、細線は、
実際に表示される三角形を示しており、三角形△A”
B”C”は、上記理論値で示されている三角形ABCの
3頂点を、ディスプレイ上の実際に表示される画素(ピ
クセル)位置に丸めた(四捨五入した)三角形を示して
いる。従って、該三角形の領域部分(即ち、スパン)
は、図11(b) の□印で示したピクセルで表される。図
12(c) は、図11(b) に示したスパン迄を描画した三
角形に対して、外周線までの描画したときの描画例を示
しており、■印が、該描画された外周線のピクセルを表
している。このときの該外周線のピクセルは、所定のD
DA処理によって生成される。
FIG. 11 and FIG. 12 show the conventional surface painting method for a triangle with an outer peripheral line. FIG. 11 (a) shows a basic triangle to be drawn, and the ● mark indicates the given triangle. The theoretical device coordinates of the basic triangle are shown in Fig. 11 (b).
When drawing the triangle shown in FIG. 11 (a), an actual drawing area is shown when drawing up to the area inside the triangle (this is called the span). That is, FIG. 11 (b)
In, the thick line indicates the theoretical value of the triangle and the thin line indicates
It shows the triangle that is actually displayed, and the triangle ΔA ”
B "C" indicates a triangle obtained by rounding (rounding) the three vertices of the triangle ABC indicated by the theoretical value to the pixel (pixel) position actually displayed on the display. Therefore, the area portion (ie span) of the triangle
Are represented by pixels indicated by □ in FIG. 11 (b). FIG. 12 (c) shows a drawing example in which a triangle drawn up to the span shown in FIG. 11 (b) is drawn up to the outer peripheral line, and a black square indicates the drawn outer peripheral line. Represents a pixel. The pixel of the peripheral line at this time is a predetermined D
It is generated by DA processing.

【0010】三角形の描画を上記のように行うのは、多
角形描画におけるZバッファの値に基づいて、所謂隠面
消去処理を行うとき、三角形領域(スパン)の端点を求
めるディジタル微分解析器(以下、DDAという)処理
と、外周線のDDA処理の違いから、同一のピクセルを
三角形の領域部分(スパン),外周線(ベクトル)の順
に描画したとき、算出したZ値の違いで、本来、外周線
を表示している筈のピクセルが、三角形の領域部分(ス
パン)のピクセルで表示されてしまうことを防止する為
である。
The drawing of the triangle is performed as described above by the digital differential analyzer (which determines the end points of the triangular area (span) when the so-called hidden surface removal processing is performed based on the value of the Z buffer in the polygon drawing. Because of the difference between the DDA processing and the DDA processing of the outer peripheral line, when the same pixel is drawn in the order of the triangular area portion (span) and the outer peripheral line (vector), the difference in the calculated Z value is This is to prevent a pixel that should display the outer peripheral line from being displayed as a pixel in the triangular area portion (span).

【0011】上記DDA処理の違いによって、本来、外
周線を表示している筈のピクセルが、三角形の領域部分
(スパン)のピクセルで表示されてしまう問題を、図1
3によって、具体的に説明する。
Due to the difference in the DDA processing described above, the problem that a pixel that should originally display the outer peripheral line is displayed as a pixel in the triangular region (span) is shown in FIG.
A detailed description will be given with reference to No. 3.

【0012】図13において、●印は三角形の理論座標
値を示し、□印は、該三角形が、所定のウィンドウでク
リップされたときの座標値を示しているものとする。上
記三角形の領域(スパン)の端点を求めるDDA処理
は、装置座標値を三角形クリップ処理した後の理論値を
使用しているのに対して、外周線(ベクトル)を求める
DDA処理は、外周線クリップ処理後の理論値をピクセ
ルに合わせるべく四捨五入した装置座標値を使用してい
る。
In FIG. 13, it is assumed that the mark ● indicates the theoretical coordinate value of the triangle, and the mark □ indicates the coordinate value when the triangle is clipped in a predetermined window. The DDA processing for obtaining the end points of the triangular area (span) uses the theoretical value after the device coordinate value is subjected to the triangle clipping processing, while the DDA processing for obtaining the outer peripheral line (vector) uses the outer peripheral line. The device coordinate value rounded off is used to match the theoretical value after clipping to the pixel.

【0013】つまり、図13(a) に示したある三角形の
2頂点A,B(外周線は、点C,D)を装置座標値のZ
値に関して、Zmin,Zmaxでクリップした場合を
考えると、該三角形の領域部分(スパン)の場合は、理
論値でDDA処理をするので、元々の理論値上の点
A’,B’を継承するが、外周線の場合は、該外周線を
クリップした後、点C’、D’のように、ピクセル位置
に四捨五入された点を用いてDDA処理が行われるた
め、上記理論値上から外れた線分(ベクトル)を描画し
てしまうことになる。
That is, the two vertices A and B (the outer peripheral lines are points C and D) of a certain triangle shown in FIG.
Regarding the value, considering the case of clipping with Zmin and Zmax, in the case of the area portion (span) of the triangle, the DDA processing is performed with the theoretical value, and therefore the points A ′ and B ′ on the original theoretical value are inherited. However, in the case of an outer peripheral line, after the outer peripheral line is clipped, DDA processing is performed using points that are rounded off to pixel positions, such as points C ′ and D ′, and thus deviate from the above theoretical value. A line segment (vector) will be drawn.

【0014】上記のDDA処理の違いから、描画処理部
4において、同一ピクセル (装置座標でX,Yで示され
るピクセル)を描画するとき、上記理論上のZ値を保持
している領域部分(スパン)を実際のピクセル位置に補
正して描画した後、理論上のZ値を保持していない外周
線(ベクトル)を描画すると、該外周線のピクセルの所
々に、該三角形の領域部分(スパン)の描画結果が、該
画面上に表示されてしまうという問題である。
Due to the above difference in DDA processing, the drawing processing unit
In 4, when drawing the same pixel (pixel indicated by X and Y in device coordinates), after drawing the area part (span) holding the above theoretical Z value corrected to the actual pixel position , When an outer peripheral line (vector) that does not hold the theoretical Z value is drawn, the drawing result of the triangular area portion (span) is displayed on the screen at each pixel of the outer peripheral line. Is a problem.

【0015】[0015]

【発明が解決しようとする課題】上記従来の三角形の描
画方法では、外周線が実線(連続したドット線、即ち、
パターンではない)のときには、該外周線を形成してい
る連続したピクセルによって外周線が描画されるので、
該外周線のピクセルの所々に、該三角形の領域部分(ス
パン)の描画結果が、該画面上に表示されることはない
が、外周線がパターンのときには、該外周線は連続して
いないので、外周線、即ち、パターンの無い部分の所々
において、該三角形の領域部分(スパン)の描画結果
が、該画面上に表示されてしまうことがあるという問題
があった。
In the above-mentioned conventional triangle drawing method, the outer peripheral line is a solid line (continuous dot line, that is,
When it is not a pattern), since the outer peripheral line is drawn by the continuous pixels forming the outer peripheral line,
The drawing result of the triangular area portion (span) is not displayed on the screen at the pixels of the outer peripheral line, but when the outer peripheral line is a pattern, the outer peripheral line is not continuous. However, there is a problem that the drawing result of the triangular area portion (span) may be displayed on the screen at the outer peripheral line, that is, at portions where there is no pattern.

【0016】本発明は上記従来の欠点に鑑み、実線でな
い外周線付き三角形を描画したとき、外周線引っ込め処
理部で、外周線に囲まれた内側の領域部分(スパン)を
描画データ変換部に送出した後、三角形の領域部分(ス
パン)と同じ頂点座標値を持つ中空データを境界線デー
タとして描画データ変換部に送出し、続いて、外周線の
頂点データを送出することで、実線以外の外周線パター
ンの外周線付き三角形の描画結果を保障することができ
る図形表示装置を提供することを目的とするものであ
る。
In view of the above-mentioned conventional drawbacks, the present invention draws a triangle with an outer peripheral line that is not a solid line, and the outer peripheral line retraction processing unit uses the inner area portion (span) surrounded by the outer peripheral line as a drawing data conversion unit. After sending, the hollow data having the same vertex coordinate value as the triangular area (span) is sent to the drawing data conversion unit as boundary line data, and then the vertex data of the outer peripheral line is sent. An object of the present invention is to provide a graphic display device capable of guaranteeing the drawing result of a triangle with an outer peripheral line of a peripheral line pattern.

【0017】[0017]

【課題を解決するための手段】図1は、本発明の原理構
成図である。上記の問題点は下記の如くに構成した図形
表示装置によって解決される。
FIG. 1 is a block diagram showing the principle of the present invention. The above problems can be solved by the graphic display device configured as follows.

【0018】(1) 少なくとも、ディスプレイ面上に設定
したウィンドウでクリップされた三角形を形成する三角
形クリップ処理部 1,外周線引っ込め処理部 20aと中空
線処理部 21 と外周線処理部 22 とを備えたDDA処理
部 2,描画データをドットデータに変換する描画データ
変換部 3,実際の描画を行う描画処理部 4を備えた図形
表示装置であって、上記三角形クリップ処理部 1でクリ
ップ処理された外周線付き三角形を三角形の領域部分と
外周線とに分けて描画する場合において、上記DDA処
理部 2内の、上記外周線引っ込め処理部 20aで算出した
スパンデータで、該三角形の外周線を除いた領域を描画
した後の外周線部分を境界線として、従来の中空線と同
じ中空線処理を行わせる為の境界線データを生成して、
該中空線処理部 21 に転送する境界線データ制御部 21a
を設けて、上記三角形クリップ処理部 1で生成されたス
パンデータと、上記境界線データ制御部 21aの制御の基
に、上記中空線処理部 21 で生成された境界線データ
と、上記外周線処理部 22 で生成された外周線データと
を、上記描画処理部 4で描画して表示するように構成す
る。
(1) At least a triangle clip processing unit 1 forming a triangle clipped by a window set on the display surface, an outer peripheral line retraction processing unit 20a, a hollow wire processing unit 21, and an outer peripheral line processing unit 22. A graphic display device having a DDA processing unit 2, a drawing data converting unit 3 for converting drawing data into dot data, and a drawing processing unit 4 for performing actual drawing, which is clipped by the triangle clip processing unit 1. When a triangle with an outer peripheral line is divided into a triangular area portion and an outer peripheral line and drawn, the outer peripheral line of the triangle is excluded from the span data calculated by the outer peripheral line retraction processing unit 20a in the DDA processing unit 2. Boundary line data for performing the same hollow line processing as the conventional hollow line is generated by using the outer peripheral line part after drawing the area as the boundary line,
Boundary line data control unit 21a to be transferred to the hollow line processing unit 21
And the boundary data generated by the hollow line processing unit 21 and the outer peripheral line processing based on the span data generated by the triangle clip processing unit 1 and the control of the boundary line data control unit 21a. The peripheral line data generated by the unit 22 is configured to be drawn and displayed by the drawing processing unit 4.

【0019】(2) 上記(1) 項に記載の図形表示装置であ
って、上記描画データ変換部 3内の中空線データ変換部
31 内に、ハッチ参照制御部 311を設けて、上記DDA
処理部 2内の境界線データ制御部 21aの制御の基に、上
記中空線処理部 21 で生成された境界線データ部分を、
予め、描画アドレス毎に指定されているハッチパターン
で描画して表示するように構成する。
(2) The graphic display device according to the above item (1), wherein the hollow line data conversion unit in the drawing data conversion unit 3 is used.
A hatch reference control unit 311 is provided in the 31 to enable the DDA.
Based on the control of the boundary line data control unit 21a in the processing unit 2, the boundary line data portion generated by the hollow line processing unit 21 is
In advance, it is configured to draw and display a hatch pattern specified for each drawing address.

【0020】[0020]

【作用】図1は、本発明の原理構成図であり、図2は、
本発明の三角形の境界線描画タイプを説明する図であ
る。図1において、境界線データ制御部 21aと、ハッチ
参照制御部 311(該制御部の右下を三角形の黒ベタで示
す)以外は、従来の図形表示装置と同じ構成である。
1 is a block diagram showing the principle of the present invention, and FIG.
It is a figure explaining the boundary line drawing type of the triangle of this invention. In FIG. 1, except for the boundary line data control unit 21a and the hatch reference control unit 311 (the lower right of the control unit is indicated by a solid black triangle), the configuration is the same as that of the conventional graphic display device.

【0021】上記境界線データ制御部 21aは、三角形ク
リップ処理部 1に設けられているクリッピング処理部 1
0 と、外周線データ制御部 11 で分割された三角形デー
タ (領域部分データ) と外周線データの各三角形頂点デ
ータ{図8参照}に付加する外周線可視性情報 (ライン
フラグという) を基に、図2に示したように、該三角形
の境界線分を、互いに頂点が重ならない必要最小限の複
数個の描画タイプに分けて生成し、既存処理である中空
線処理部 21 に渡すようにする。
The boundary line data control unit 21a is a clipping processing unit 1 provided in the triangle clipping processing unit 1.
Based on 0 and the outer peripheral line visibility information (referred to as line flag) added to the triangular data (area part data) divided by the outer peripheral line data control unit 11 and each triangular vertex data (see FIG. 8) of the outer peripheral line data. As shown in FIG. 2, the boundary line segment of the triangle is divided into a plurality of minimum necessary drawing types in which the vertices do not overlap each other, and is generated and passed to the hollow line processing unit 21, which is an existing process. To do.

【0022】即ち、本発明の図形表示装置では、外周線
付き三角形に関して、境界線データ制御部 21aにより、
該三角形の頂点座標値を管理し、該三角形の境界線とし
て、必要最小限の三角形頂点座標値を図形データとして
描画データ変換部 3に送出する。このときの該境界線を
生成するDDA処理は、外周線と同じDDA処理であ
る。この処理により、描画データ変換部 3以降において
は、送られてきた境界線データは、内部様式が中空の三
角形データと見なされ、従来と同様の中空線処理が実行
され、該境界線が、該三角形の内部領域(スパン)と同
じ領域色で描画される。この境界線に対して、同じDD
Aで処理された外周線のパターンデータを上書きの形で
描画することで、上記描画されている境界線の一部が、
境界線の領域色のままに残る外周線が描画される、結果
として実線の外周線を描画したときと同じ作用が得ら
れ、隠面処理を施した時でも、他の三角形の領域部分の
領域色が描画されることを抑止することができる。
That is, in the graphic display device of the present invention, regarding the triangle with the outer peripheral line, the boundary line data control unit 21a
The vertex coordinate values of the triangle are managed, and the minimum necessary triangle vertex coordinate values as the boundary line of the triangle are sent to the drawing data conversion unit 3 as graphic data. The DDA process for generating the boundary line at this time is the same as the DDA process for the outer peripheral line. By this processing, in the drawing data conversion unit 3 and later, the boundary line data sent is regarded as triangular data having a hollow internal format, hollow line processing similar to the conventional one is executed, and the boundary line It is drawn with the same area color as the internal area (span) of the triangle. The same DD for this border
By drawing the pattern data of the outer peripheral line processed in A in the form of overwriting, part of the drawn boundary line is
Boundary area The outer peripheral line that remains the same color is drawn. As a result, the same effect as when drawing a solid outer peripheral line is obtained, and even when hidden surface processing is performed, the area of another triangular area part It is possible to prevent the color from being drawn.

【0023】又、描画データ変換部 3に設けられたハッ
チ参照制御部 311では、上記中空線処理部 21 から送ら
れてきた境界線データ中の後述するインテリアフラグの
ビット4を基に、送られてきた境界線データがベタの境
界線データか, ハッチの境界線データを判定して、ハッ
チの場合には、上記中空線データの内部様式が指示する
ハッチパターンを獲得,参照して、境界線を形成してい
るピクセル毎に、上記ハッチパターンとビット比較し
て、外周線の非可視部分の外周線を、該ハッチパターン
で描画することで、上記描画されている境界線の一部
が、ハッチパターンで描画され、結果として実線の外周
線を描画したときと同じ作用が得られ、隠面処理を施し
た時でも、他の三角形の領域部分の領域色が描画される
ことを抑止することができる。
Further, the hatch reference control unit 311 provided in the drawing data conversion unit 3 sends data based on bit 4 of an interior flag described later in the boundary line data sent from the hollow line processing unit 21. If the received boundary line data is a solid boundary line data, it is judged whether it is a hatch boundary line data. In the case of a hatch, the hatch pattern indicated by the internal style of the hollow line data is acquired and referred to For each pixel forming a, by comparing the bit with the hatch pattern, by drawing the outer peripheral line of the invisible portion of the outer peripheral line in the hatch pattern, a part of the drawn boundary line, It is drawn with a hatch pattern, and as a result, the same effect as when drawing the solid outer line is obtained, and even when the hidden surface processing is applied, it is possible to prevent the area color of the other triangular area part from being drawn. Can .

【0024】[0024]

【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1が、本発明の原理構成図であり、図2
は、本発明の三角形の境界線描画タイプを説明する図で
あり、図3は、境界線の可視フラグを説明する図であっ
て、図3(a) は境界線可視フラグを示し、図3(b) は、
境界線可視フラグと境界線頂点との関係を説明する図で
あり、図3(c) は、三角形がクリップ枠でクリップされ
た状態を示しており、図4は、本発明の境界線描画と境
界線可視フラグの関係を示す図であり、図5,図6は、
本発明の境界線データ制御部と中空線処理部の処理フロ
ー図であり、図7は、本発明のハッチ参照制御部の処理
フロー図であり、図8は、本発明の三角形描画データリ
ストの構成例図を示しいる。
Embodiments of the present invention will be described in detail below with reference to the drawings. The above-mentioned FIG. 1 is a block diagram of the principle of the present invention.
3A and 3B are diagrams for explaining a triangle boundary line drawing type of the present invention, FIG. 3 is a diagram for explaining a visible flag of a boundary line, and FIG. 3A shows a boundary line visible flag; (b) is
FIG. 3C is a diagram for explaining the relationship between the boundary visible flag and the boundary vertices. FIG. 3C shows a state in which a triangle is clipped by a clip frame, and FIG. 4 shows boundary drawing of the present invention. It is a figure which shows the relationship of a boundary line visible flag, and FIGS.
FIG. 8 is a processing flow diagram of a boundary line data control unit and a hollow line processing unit of the present invention, FIG. 7 is a processing flow diagram of a hatch reference control unit of the present invention, and FIG. 8 is a triangle drawing data list of the present invention. The structural example figure is shown.

【0025】本発明の図形表示装置では、少なくとも、
ディスプレイ面上に設定したウィンドウでクリップされ
た三角形を形成する三角形クリップ処理部 1,三角形の
内部領域(スパン)を描画するスキャンコンバージョン
部 20 と外周線引っ込め処理部 20aと中空線処理部 21
と外周線処理部 22 とを備えたDDA処理部 2,描画デ
ータをドットデータに変換する描画データ変換部 3,実
際の描画を行う描画処理部 4を備えた図形表示装置にお
いて、上記DDA処理部 2内の、上記外周線引っ込め処
理部 20aで算出したスパンデータで、該三角形から外周
線を除いた領域を描画した後、上記境界線データ制御部
21aと、中空処理を行う中空線処理部 21 とで生成した
境界線を、従来の中空線と同じ処理で描画し、続いて、
上記外周線処理部 22 で外周線パターンを上書きの形で
描画する手段、又は、同じ図形表示装置の、上記描画デ
ータ変換部 3の中空線データ変換部 31 内に、ハッチ参
照制御部 311を設けて、上記DDA処理部 2内の境界線
データ制御部 21a,中空線処理部 21 とで生成された境
界線データの部分を、予め、描画アドレス毎に指定され
ているハッチパターンに合わせて描画して表示する手段
が、本発明を実施するのに必要な手段である。尚、全図
を通して同じ符号は同じ対象物を示している。
In the graphic display device of the present invention, at least
Triangle clip processing unit 1 that forms a triangle clipped by a window set on the display surface, scan conversion unit 20 that draws the internal area (span) of the triangle, outer peripheral line retraction processing unit 20a, and hollow line processing unit 21
A DDA processing unit 2 including an outer peripheral line processing unit 22, a drawing data conversion unit 3 for converting drawing data into dot data, and a drawing processing unit 4 for performing actual drawing. After drawing the area excluding the outer peripheral line from the triangle with the span data calculated by the outer peripheral line retraction processing unit 20a in 2, the boundary line data control unit
21a and the hollow line processing unit 21 that performs hollow processing draws the boundary line by the same processing as the conventional hollow wire, and then,
A means for drawing the outer peripheral line pattern in the outer peripheral line processing unit 22 in the form of overwriting, or a hatch reference control unit 311 in the hollow line data converting unit 31 of the drawing data converting unit 3 of the same graphic display device. Then, the boundary data portion generated by the boundary data control unit 21a and the hollow line processing unit 21 in the DDA processing unit 2 is drawn in advance in accordance with the hatch pattern designated for each drawing address. The means for displaying is the means necessary for carrying out the present invention. The same reference numerals indicate the same objects throughout the drawings.

【0026】以下、図10で説明した従来の図形表示装
置, 及び、図1を参照しながら、図2〜図7によって、
本発明の図形表示装置の構成と、外周線付き三角形の描
画動作を説明する。
2 to 7 while referring to the conventional graphic display device described in FIG. 10 and FIG.
The configuration of the graphic display device of the present invention and the drawing operation of the triangle with the outer peripheral line will be described.

【0027】先ず、本発明の図形表示装置は、図1に示
した構成をとり、その基本的な描画方法は、図10で説
明した従来と同じである。前述のように、従来の外周線
付き三角形の描画方法では、該外周線が実線である場合
に対してしか保障していなかった。つまり、該外周線が
パターンデータであると、隠面処理を行ったとき、パタ
ーンデータからなる外周線の所々に、隠面されている三
角形の領域部分(スパン)が画面上に表示されることが
あるという問題があった。そこで、本発明の図形表示装
置では、DDA処理部 2の中空線処理部 21 を制御する
境界線データ制御部 21aを設け、外周線付き三角形から
外周線を除いた領域部分 (スパン) を描画した後、該境
界線データ制御部 21aにおいて、描画対象の三角形と同
じ頂点座標を持つ必要最小限の境界線データ{図8(d)
に示した境界線データリスト参照}を、外周線と同じD
DA処理で生成して、外周線と同じ領域に該境界線を描
画し、該描画された境界線に対して、外周線のパターン
を上書きする。
First, the graphic display device of the present invention has the configuration shown in FIG. 1, and the basic drawing method is the same as the conventional one described in FIG. As described above, the conventional method of drawing a triangle with an outer peripheral line guarantees only when the outer peripheral line is a solid line. That is, when the outer peripheral line is pattern data, when the hidden surface processing is performed, a hidden triangular area portion (span) is displayed on the screen at each of the outer peripheral lines formed of the pattern data. There was a problem that there is. Therefore, in the graphic display device of the present invention, the boundary line data control unit 21a for controlling the hollow line processing unit 21 of the DDA processing unit 2 is provided, and the area portion (span) where the outer peripheral line is removed from the triangle with the outer peripheral line is drawn. After that, in the boundary line data control unit 21a, the minimum necessary boundary line data having the same vertex coordinates as the drawing target triangle (see FIG. 8 (d)).
Boundary line data list shown in [1]
The boundary line is generated in the DA process, the boundary line is drawn in the same area as the outer circumference line, and the drawn boundary line is overwritten with the pattern of the outer circumference line.

【0028】上記境界線の描画処理を、図2〜図5によ
って具体的に説明する。図3は境界線の可視フラグを説
明する図であり、図3(a) は境界線フラグの構成図を示
し、図3(b) は頂点と境界線フラグとの関係を示し、図
3(c) は三角形がクリップ枠でクリップされた状況を示
している。
The boundary line drawing process will be described in detail with reference to FIGS. 3A and 3B are views for explaining the visible flag of the boundary line, FIG. 3A shows a configuration diagram of the boundary line flag, FIG. 3B shows the relationship between the vertex and the boundary line flag, and FIG. c) shows the situation where the triangle is clipped by the clip frame.

【0029】図3(a) に示すように、境界線フラグは、
32ビットの境界線フラグデータ中の0ビットの位置に設
定され、この0ビットが“1”のときは、該境界線が可
視(描画あり)を示し、“0”のときは、該境界線が不
可視(描画なし)を示す。この境界線フラグは、図3
(b) に示されているように、頂点nと頂点n+1の境界
線(en:エッジnを意味する)の境界線フラグが頂点
nの座標データに付加され、同様に頂点n+1の座標デ
ータにエッジen+1の境界線フラグが付加され、頂点
n+2にエッジen+2の外周線フラグが付加される。
As shown in FIG. 3A, the boundary line flag is
It is set to the 0 bit position in the 32-bit border line flag data. When the 0 bit is "1", the border line is visible (with drawing), and when it is "0", the border line is set. Indicates invisible (no drawing). This border line flag is shown in FIG.
As shown in (b), the boundary line flag of the boundary line between the vertex n and the vertex n + 1 (en: means the edge n) is added to the coordinate data of the vertex n, and the coordinate data of the vertex n + 1 is also added to the coordinate data. A boundary line flag of edge en + 1 is added, and a peripheral line flag of edge en + 2 is added to vertex n + 2.

【0030】図5(b),図6は、本発明の境界線データ制
御部の処理フロー図である。この処理フローは、前述の
三角形クリップ処理部 1のクリッピング処理部 10 によ
り、図5(a) に示す頂点P1,P2,P3を備えた三角
形が作成され、各エッジの外周線部分をクリップされた
三角形の境界線とし、各境界線エッジの境界線フラグ
が、図3(b) と同様の関係で、各頂点P1,P2,P3
の座標データに付加されているものとし、各エッジの境
界線フラグは“0”または“1”の何れかが任意に設定
されている。
FIGS. 5B and 6 are process flow charts of the boundary line data control unit of the present invention. In this processing flow, the clipping processing section 10 of the triangle clipping processing section 1 described above creates a triangle having vertices P1, P2 and P3 shown in FIG. 5 (a) and clips the outer peripheral line portion of each edge. It is assumed that the boundary line is a triangle, and the boundary line flags of the respective boundary line edges have the same relations as in FIG.
It is assumed that the boundary flag of each edge is added to the coordinate data, and either "0" or "1" is arbitrarily set as the boundary flag of each edge.

【0031】図5(b) の処理が開始されると、本発明の
境界線データ制御部 21aの処理が実行され、内部の図示
されていないメモリの特定のエリアに設けられているラ
インフラグ(LineFlag と表示) という名称の変数 (メモ
リの特定エリア) を“0”に初期化する。{図5(b) の
処理ステップ 100参照} 次に、処理ステップ 101において、以下の処理が実行さ
れる。即ち、最初に、上記ラインフラグ(LineFlag)に対
して、エッジ(edge1) の境界線フラグの内容を設定す
る。このとき、図3(a) に示すように、32ビット内の
0ビット位置に設定されたフラグを表す内容(“0”,
又は“1”)が、上記ラインフラグの第0ビット位置に
設定される。
When the process of FIG. 5B is started, the process of the boundary line data control unit 21a of the present invention is executed, and a line flag () provided in a specific area of a memory (not shown) inside is executed. Initialize a variable named LineFlag (specified area of memory) to "0". {Refer to processing step 100 in FIG. 5B} Next, in processing step 101, the following processing is executed. That is, first, the content of the boundary line flag of the edge (edge1) is set to the line flag (LineFlag). At this time, as shown in FIG. 3A, the content (“0”, which indicates the flag set at the 0-bit position in 32 bits,
Alternatively, "1") is set to the 0th bit position of the line flag.

【0032】次に、エッジ2(edge2) の境界線フラグを
左側に1ビットシフトして、その境界線フラグのビット
(左側に1ビットシフトしているので、32ビット内の
第1ビット位置にある)を、32ビットで構成されるラ
インフラグ(LineFlag)の対応する第1ビット位置に設定
する。更に、エッジ3(edge3) の境界線フラグを左側に
2ビットシフトして、その境界線フラグのビット(左側
に2ビットシフトしているので、32ビット内の第2ビ
ット位置にある)を、上記ラインフラグ(LingFlag)の対
応する第2ビット位置に設定する。
Next, the boundary line flag of the edge 2 is shifted to the left by 1 bit, and the bit of the boundary line flag is shifted to the left (1 bit to the left. Yes) is set to the corresponding first bit position of the line flag (LineFlag) composed of 32 bits. Furthermore, the boundary line flag of edge 3 (edge3) is shifted to the left by 2 bits, and the bit of the boundary line flag (since it is shifted to the left by 2 bits, it is at the second bit position within 32 bits), It is set to the second bit position corresponding to the line flag (LingFlag).

【0033】図4は、境界線描画と上記ラインフラグ(L
ineFlag)の可視フラグとの関係を示している。該図4を
用いて、上記処理ステップ 101の処理内容を説明する。
図4(a) において、〜は、上記エッジ1〜エッジ3
の境界線フラグを、対応する左シフトを行った後の状態
を示し、は、上記ラインフラグ(LineFlag)を表してい
る。上記のシフト,設定処理により、〜のそれぞれ
の第0ビット位置に設定されている境界線フラグビット
の内容が、に示されているように、ラインフラグ(Lin
eFlag)の3つのビット位置(ビット0,1,2)に設定
される。
FIG. 4 shows the boundary line drawing and the line flag (L
ineFlag) and the visible flag. The processing contents of the processing step 101 will be described with reference to FIG.
In FIG. 4 (a), is the above edge 1 to edge 3
Indicates the state after the corresponding left shift has been performed, and indicates the line flag (LineFlag). As a result of the shift and setting processing described above, the contents of the boundary flag bits set at the 0th bit positions of the line flag (Lin
eFlag) is set in three bit positions (bits 0, 1, 2).

【0034】図5の処理に戻って、次に、上記のように
して得られたラインフラグ(LineFlag)について、内容が
“0”か“1”かを判断する。{図5(b) の処理ステッ
プ 102参照} この判断で該ラインフラグ(LineFlag)の内容が全て
“0”(全ビットが“0”)の場合は、描画する境界線
が無いので、境界線の描画をすることなく、本境界線デ
ータ制御処理 21aの処理を終了する。該ラインフラグ(L
ineFlag)の内容が“0”でない場合、上記ラインフラグ
(LineFlag)によりジャンプ先を設定し{図5(b) の処理
ステップ 103参照}、設定されたジャンプ先(M1〜M
7の何れか:M1〜M7については後述する)にジャン
プする。{図5(b) の処理ステップ 104参照}このジャ
ンプ先は、図6に示す中空線処理部 21 の処理である。
Returning to the processing of FIG. 5, it is next determined whether the content of the line flag (LineFlag) obtained as described above is "0" or "1". {Refer to processing step 102 of FIG. 5 (b)} If all the contents of the line flag (LineFlag) are “0” (all bits are “0”) in this judgment, there is no boundary line to draw, so the boundary line The process of this boundary line data control process 21a is terminated without drawing. The line flag (L
If the content of ineFlag) is not "0", the above line flag
The jump destination is set by (LineFlag) {see processing step 103 in FIG. 5B}, and the set jump destination (M1 to M
7): M1 to M7 will be described later). {Refer to processing step 104 in FIG. 5B} This jump destination is the processing of the hollow wire processing unit 21 shown in FIG.

【0035】ここで、上記ラインフラグ(LineFlag)の作
用を、図4により説明すると、図4(a) により、該ライ
ンフラグ(LineFlag)の下位3ビットには、最下位の0ビ
ット位置にエッジ1の境界線フラグが、1ビット位置に
はエッジ2の境界線フラグが、2ビット位置にはエッジ
3の境界線フラグがそれぞれ設定されている。このライ
ンフラグ(LineFlag)の下位3ビットが表す範囲は "000"
〜"111" であり、10進数の0〜7の8つの値になる。
Now, the operation of the line flag (LineFlag) will be described with reference to FIG. 4. As shown in FIG. 4A, the lower 3 bits of the line flag (LineFlag) have an edge at the lowest 0 bit position. The boundary flag of 1 is set, the boundary flag of edge 2 is set at the 1-bit position, and the boundary flag of edge 3 is set at the 2-bit position. The range represented by the lower 3 bits of this line flag is "000"
It is "111", and it has 8 values from 0 to 7 in decimal.

【0036】図4(b) に示した表は、上記ラインフラグ
(LineFlag)の8つの値が、それぞれ境界線描画線分の描
画パターンを表すことを示しており、上記の各値に対応
する境界線描画線分のパターン例が、前述の図2に示し
たものである。
The table shown in FIG. 4B shows the above line flag.
The eight values of (LineFlag) represent that each represents a drawing pattern of a boundary drawing line segment, and a pattern example of the boundary drawing line segment corresponding to each of the above values is shown in FIG. 2 described above. It is a thing.

【0037】即ち、図4(b) において、番号(1) は、ラ
インフラグ(LineFlag)が“0”の場合であり、前述のよ
うに描画無しであって、ジャンプ先はM0{図5(b) の
処理ステップ 102で、ラインフラグ(LineFlag)が“0”
と判断された場合}となり、境界線描画線分は、図2
(1) に示すように転送されない。又、番号(2) は、該ラ
インフラグ(LineFlag)が“1”の場合であり、境界線描
画線分は、図3(b) に示す三角形の頂点P1−P2間を
描画することを指示し、使用する境界線エッジはエッジ
1(edge1) であり、ジャンプ先はM1となる。この場
合、該ジャンプ先で、図2(2) に示す描画が行われる。
That is, in FIG. 4B, the number (1) is the case where the line flag (LineFlag) is "0", no drawing is performed as described above, and the jump destination is M0 {FIG. 5 ( In the processing step 102 of b), the line flag (LineFlag) is "0".
If it is determined that}, the boundary line drawing line segment is
It is not transferred as shown in (1). The number (2) indicates that the line flag (LineFlag) is "1", and the boundary line drawing line segment indicates to draw between the vertices P1 and P2 of the triangle shown in FIG. 3 (b). However, the boundary line edge to be used is edge 1 (edge1), and the jump destination is M1. In this case, the drawing shown in FIG. 2B is performed at the jump destination.

【0038】同様に、番号(3) 〜(8) は、上記ラインフ
ラグ(LineFlag)の「2」〜「7」の値に対応して、図4
(b) の境界線描画線分に示す各頂点区間が、対応する境
界線エッジを使用して描画することを指示し、それぞれ
のジャンプ先は、ラインフラグ(LineFlag)の数値に対応
するM2〜M7である。
Similarly, the numbers (3) to (8) correspond to the values of "2" to "7" of the line flag (LineFlag) shown in FIG.
Each vertex section shown in the boundary line drawing line segment in (b) indicates to draw using the corresponding boundary line edge, and each jump destination is M2 to M2 corresponding to the numerical value of the line flag (LineFlag). It is M7.

【0039】図6には、上記図5の境界線データ制御部
21aからジャンプされる中空線処理部 21 の処理フロー
が示され、該ジャンプ先として設定されたM1〜M7の
何れかに応じて、対応する中空処理が実行され、実行後
は、図5(b) に戻り終了する。尚、M1〜M7は、上記
図4(b) の各番号(2) 〜(7) の場合に該当する。
FIG. 6 shows the boundary line data control unit shown in FIG.
The processing flow of the hollow wire processing unit 21 jumped from 21a is shown, and the corresponding hollow processing is executed according to any of M1 to M7 set as the jump destination, and after the execution, the hollow processing shown in FIG. ) To end. Incidentally, M1 to M7 correspond to the cases of the numbers (2) to (7) in FIG. 4 (b).

【0040】例えば、ジャンプ先がM1の場合には、第
1頂点{図5(a) の三角形のP1}のデータを中空線処
理部 21 内の図示されていない図形データ格納部に格納
し、次に第2頂点{図5(a) の三角形のP2}のデータ
を格納する。これにより、図2(2) に示すような P1-P2
間の境界線が描画される。
For example, when the jump destination is M1, the data of the first vertex {P1 of the triangle of FIG. 5 (a)} is stored in the graphic data storage unit (not shown) in the hollow line processing unit 21, Next, the data of the second vertex {P2 of the triangle in FIG. 5 (a)} is stored. This allows P1-P2 as shown in Fig. 2 (2).
A boundary line between them is drawn.

【0041】又、図3(c) に示したクリップにより作成
された2つの境界線を描画する場合は、図5(a) の三角
形の頂点P2−P3−P1間を描画する場合に相当す
る。このとき、上記ラインフラグ(LineFlag)の3ビット
は“110”に設定され、10進数の「6」であるから
M6にジャンプする。この場合、図6の処理フローによ
り、第2頂点(P2)のデータの上記図形データ格納部
への格納、第3頂点(P3)のデータの格納、第1頂点
(P1)のデータの格納が順次行われ、該3つの頂点デ
ータが格納されると、これらのデータが図1の描画デー
タ変換部 1の中空線データ変換部 31 において、これも
図示されていないフレームメモリに描画される。
The case of drawing the two boundary lines created by the clip shown in FIG. 3C corresponds to the case of drawing between the vertices P2-P3-P1 of the triangle of FIG. 5A. . At this time, the 3 bits of the line flag (LineFlag) are set to "110" and the decimal number is "6", so that the process jumps to M6. In this case, according to the processing flow of FIG. 6, the data of the second vertex (P2) is stored in the graphic data storage unit, the data of the third vertex (P3) is stored, and the data of the first vertex (P1) is stored. When the three vertex data are sequentially stored and stored, these data are drawn in the frame memory (not shown) in the hollow line data converter 31 of the drawing data converter 1 in FIG.

【0042】この場合、図1の描画処理部 4へ転送され
る頂点データは2つの境界線線分が連結された3個のデ
ータであり、各線分毎に始点−終点の2つの頂点データ
を転送する必要がなく、メモリ容量を少なくして、且
つ、転送時間を短縮することができる。
In this case, the vertex data transferred to the drawing processing unit 4 of FIG. 1 is three pieces of data in which two boundary line segments are connected, and two vertex data of start point-end point are provided for each line segment. It is not necessary to transfer, the memory capacity can be reduced, and the transfer time can be shortened.

【0043】上記の境界線データ制御部 21aでの処理フ
ローは、本願出願人が昭和5年9月30日付けで先願し
ている特願平05−244246号「外周線描画データ
制御方式」でクリップ処理された三角形の外周線の描画
方式として開示しているもので、本願発明では、この外
周線の描画方式を、本発明の境界線の描画に適用するこ
とで、該境界線の描画を効率的に行うようにしたもの
で、本願発明の主眼ではない。
The processing flow in the boundary line data control section 21a is the same as the Japanese Patent Application No. 05-244246 "peripheral line drawing data control method" filed by the applicant of the present application on September 30, 1952. It is disclosed as a drawing method of the outer peripheral line of the triangle clipped by the above method. In the present invention, by applying this outer peripheral line drawing method to the boundary line drawing of the present invention, the boundary line drawing is performed. Is performed efficiently and is not the main object of the present invention.

【0044】本発明の主眼の一つは、前述されているよ
うに、所定のウィンドウによってクリップされた三角形
を描画する際に、該三角形の内部領域(スパン)を描画
した後、該三角形と同じ頂点を持つ三角形の外周線部分
を境界線として、従来の中空処理を行うことで描画され
た境界線に、同じDDA処理で生成された本来の外周線
のパターンを上書きにより描画し直すことにより、実線
でないパターンの外周線に対しても、実線と同じ描画効
果をもたらすようにしたものである。
One of the main points of the present invention is, as described above, when drawing a triangle clipped by a predetermined window, after drawing the internal area (span) of the triangle, the same as the triangle. By redrawing the original outer peripheral line pattern generated by the same DDA processing by overwriting the boundary line drawn by performing the conventional hollow processing with the outer peripheral line portion of the triangle having the vertices as the boundary line, The same drawing effect as that of the solid line is obtained even for the peripheral line of the pattern which is not the solid line.

【0045】次に、本発明の他の特徴であるハッチによ
る描画手段を、図1の原理構成図,及び、図7のハッチ
参照部の処理フロー図,図9のハッチパターンの表示例
を示した図とを用いて説明する。
Next, the drawing means by the hatch, which is another feature of the present invention, is shown in the principle configuration diagram of FIG. 1, the processing flow diagram of the hatch reference section of FIG. 7, and the display example of the hatch pattern of FIG. It will be described with reference to FIG.

【0046】図1に示した描画データ変換部 3内のハッ
チ参照制御部 311内には、図示されていないインテリア
フラグが、上記ラインフラグ(LingFlag)の第4ビット位
置にあり、上記境界線データがハッチの場合には、該第
4ビットを立て(オン)、ベタの境界線の場合には、該
第4ビットを立てない(オフ)仕様とする。
In the hatch reference control unit 311 in the drawing data conversion unit 3 shown in FIG. 1, there is an interior flag (not shown) at the 4th bit position of the line flag (LingFlag) and the boundary line data. Is a hatch, the fourth bit is set (ON), and in the case of a solid boundary line, the fourth bit is not set (OFF).

【0047】前述の境界線データ制御部 21aで起動され
た中空線処理部 21 から、境界線データが送られて、本
ハッチ参照制御部 311が起動されると、先ず、上記ライ
ンフラグ(LingFlag)の第4ビット位置が調べられ、該イ
ンテリアフラグ(InterriorFlag) がオンかどうかが判定
される。もし、該境界線に対してハッチ描画が指示され
ている場合には、図示されていない上位装置から、対応
するハッチパターンをRAM 33 上に獲得する。{図7
の処理ステップ 200,201参照} 該ハッチパターンは、図9に示されているように、例え
ば、32ビット×32ビットの画素からなるパターンで
あり、図示されていない表示装置のディスプレイに表示
される画像データを格納するビットマップメモリ(前述
のフレームメモリに対応)も、該32ビットの整数倍の
容量を持ち、図形がハッチで表示される場合、該フレー
ムメモリ上のどの画素が、該32ビット×32ビットの
画素からなるハッチパターンのどの画素に対応するかが
定められている。即ち、該フレームメモリは、図9に示
されているように、上記32ビット×32ビットの画素
からなるパターンに区分けされて表示される。
When the boundary line data is sent from the hollow line processing unit 21 started by the boundary line data control unit 21a and the hatch reference control unit 311 is started up, first, the line flag (LingFlag) is set. The 4th bit position of is checked to determine whether the interior flag (InterriorFlag) is on. If the hatch drawing is instructed to the boundary line, the corresponding hatch pattern is obtained from the upper device (not shown) on the RAM 33. {Fig. 7
Processing steps 200 and 201}, the hatch pattern is, for example, as shown in FIG. 9, a pattern composed of 32 bits × 32 bits pixels, and image data displayed on the display of a display device (not shown). The bit map memory (corresponding to the frame memory described above) that stores a number has a capacity that is an integral multiple of the 32 bits, and when a figure is displayed in a hatch, which pixel on the frame memory is the 32 bits x 32 bits. It is determined which pixel of the hatch pattern made up of bit pixels corresponds. That is, as shown in FIG. 9, the frame memory is divided and displayed in the pattern composed of the above 32 bits × 32 bits pixels.

【0048】従って、あるウィンドウによって、ある図
形を表示する場合、該ウィンドウに枠取りされた領域
と、上記32ビット×32ビットの領域との対応関係に
よって、該ウィンドウ内の、例えば、三角形内のハッチ
パターンは、上記32ビット×32ビットで構成される
ハッチパターンの様々な断片(部分)模様となるが、該
描画さる三角形のフレームメモリ上のビット位置によっ
て、該表示されるハッチパターンは、予め、定められて
いることになる。(図9参照) そこで、本発明による外周線付き三角形の境界線を内部
領域(スパン)の領域色で表示する場合、前述の理論値
を四捨五入した装置座標値によるDDA処理によって算
出されたアドレス (前述のピクセル) に対応する上記R
AM上のハッチパターンが判定され、一致 (ハッチパタ
ーンが存在する) すると、図1の描画処理部 4に対し
て、そのハッチパターンが該境界線描画データとして出
力される。{図7の処理ステップ 201〜203 参照} 上記処理ステップ 202での判定処理で、対応するハッチ
パターンがない場合には、処理ステップ 204に移り、該
描画対象の三角形の境界線上の次のピクセルの座標値,
色が算出され、該ピクセルのハッチパターンが、上記R
AM上のハッチパターンから読み出され、上記処理ステ
ップ 202で、ハッチパターンが存在するか否かの判定が
行われる。
Therefore, when a certain figure is displayed by a certain window, the correspondence between the framed area in the window and the 32 bit × 32 bit area allows the window to be displayed, for example, in a triangle. The hatch pattern is various pieces (partial) patterns of the above-described hatch pattern composed of 32 bits × 32 bits. Depending on the bit position on the frame memory of the drawn triangle, the hatch pattern displayed in advance is , Will be set. (See FIG. 9.) Therefore, when the boundary line of the triangle with the outer peripheral line according to the present invention is displayed in the area color of the internal area (span), the address calculated by the DDA process using the device coordinate value rounded to the theoretical value ( R corresponding to the above pixel)
When the hatch pattern on the AM is determined and coincides (the hatch pattern exists), the hatch pattern is output to the drawing processing unit 4 in FIG. 1 as the boundary line drawing data. {Refer to processing steps 201 to 203 in FIG. 7} If there is no corresponding hatch pattern in the determination processing in the above processing step 202, the processing moves to processing step 204, and the next pixel on the boundary line of the triangle to be drawn is detected. Coordinate value,
The color is calculated and the hatch pattern of the pixel is
It is read from the hatch pattern on the AM, and in the processing step 202, it is judged whether or not the hatch pattern exists.

【0049】このようにして、本発明によるハッチパタ
ーンの描画手段では、三角形の頂点座標に基づいて、前
述の理論値を四捨五入した装置座標値によるDDA処理
によって算出された境界線アドレス (前述のピクセル)
に対応して領域色が描画されるか、そのアドレスにハッ
チパターンが存在する場合には、該当のハッチパターン
が、該境界線上のピクセルの描画データとして、描画処
理部 4で描画されることになる。
In this way, in the hatch pattern drawing means according to the present invention, based on the vertex coordinates of the triangle, the boundary line address (the above-mentioned pixel described above) calculated by the DDA process using the device coordinate value obtained by rounding off the above theoretical value. )
If the area color is drawn in correspondence with or the hatch pattern exists at the address, the corresponding hatch pattern is drawn by the drawing processing unit 4 as the drawing data of the pixel on the boundary line. Become.

【0050】従って、該外周線と同じDDA処理で生成
されたアドレスに基づいて、該アドレスに対応するハッ
チパターンで描画されるので、実線と同じ描画効果をも
たらすことができる。
Therefore, since the hatch pattern corresponding to the address is drawn based on the address generated by the same DDA process as that of the outer peripheral line, the same drawing effect as the solid line can be obtained.

【0051】このように、本発明の図形表示装置は、少
なくとも、ディスプレイ面上に設定したウィンドウでク
リップされた三角形を形成する三角形クリップ処理部,
DDA処理部,描画データをドットデータに変換する描
画データ変換部,実際の描画を行う描画処理部を備えた
図形表示装置であって、上記DDA処理部に境界線デー
タ制御部を設け、外周線付き三角形を三角形の内部領域
(スパン)と外周線とに分けて描画する場合、上記DD
A処理部内の外周線引っ込め処理部で算出したスパンデ
ータで、該三角形から外周線を除いた領域(スパン)を
描画した後、上記境界線データ制御部の指示により、上
記除かれた外周線部分を境界線として、中空線処理部で
従来の中空線と同じ処理で描画し、続いて、該中空線と
して描画された境界線に対して外周線パターンを上書き
で描画するように構成する。又、該境界線をハッチパタ
ーンで描画する場合には、該境界線部分を対応するハッ
チパターンで描画するようにしたところに特徴がある。
As described above, the graphic display device of the present invention includes at least a triangle clip processing section for forming a triangle clipped by a window set on the display surface.
A graphic display device comprising a DDA processing unit, a drawing data conversion unit for converting drawing data into dot data, and a drawing processing unit for performing actual drawing, wherein a boundary line data control unit is provided in the DDA processing unit, and an outer peripheral line is provided. When the attached triangle is divided into an inner area (span) of the triangle and an outer peripheral line and drawn, the above DD
After drawing a region (span) from the triangle in which the outer peripheral line is removed with the span data calculated by the outer peripheral line retraction processing unit in the processing unit, the removed outer peripheral line portion is instructed by the boundary line data control unit. Is used as a boundary line and is drawn by the hollow line processing unit in the same process as the conventional hollow line, and subsequently, the outer peripheral line pattern is drawn by overwriting the boundary line drawn as the hollow line. When the boundary line is drawn in a hatch pattern, the boundary line portion is drawn in a corresponding hatch pattern.

【0052】[0052]

【発明の効果】以上、詳細に説明したように、本発明の
図形表示装置によれば、外周線付き三角形を描画すると
き、 (1) 隠面処理等を有効とした場合でも、実線以外の全て
の外周線パターンにおいて、隠面された三角形の領域部
分 (スパン) が外周線パターン上に表示されずに描画す
ることができる。
As described above in detail, according to the graphic display device of the present invention, when a triangle with an outer peripheral line is drawn, (1) even when the hidden surface processing is enabled, a line other than the solid line is displayed. In all of the outer peripheral line patterns, the hidden triangular area portion (span) can be drawn without being displayed on the outer peripheral line pattern.

【0053】(2) 又、該三角形の領域部分がハッチの様
な場合でも、該三角形の境界線をハッチパターンにビッ
ト対応させれば、外周線のパターン無しの部分も正確に
ハッチパターンで描画することができる。
(2) Further, even if the triangular area portion is like a hatch, if the boundary line of the triangle is made to correspond to the bit of the hatch pattern, the portion of the outer peripheral line having no pattern is accurately drawn in the hatch pattern. can do.

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

【図1】本発明の原理構成図FIG. 1 is a block diagram of the principle of the present invention.

【図2】本発明の三角形の境界線描画タイプを説明する
FIG. 2 is a diagram for explaining a triangle boundary line drawing type of the present invention.

【図3】境界線の可視フラグを説明する図FIG. 3 is a diagram illustrating a visible flag of a boundary line.

【図4】本発明の境界線描画と境界線可視フラグの関係
を示す図
FIG. 4 is a diagram showing a relationship between a boundary line drawing and a boundary line visible flag according to the present invention.

【図5】本発明の境界線データ制御部の処理フロー図
(その1)
FIG. 5 is a processing flow chart of the boundary line data control unit of the present invention (No. 1)

【図6】本発明の境界線データ制御部の処理フロー図
(その2)
FIG. 6 is a processing flow chart of the boundary line data control unit of the present invention (No. 2)

【図7】本発明のハッチ参照制御部の処理フロー図FIG. 7 is a processing flow chart of a hatch reference control unit of the present invention.

【図8】本発明の三角形描画データリストの構成例図FIG. 8 is a structural example diagram of a triangle drawing data list of the present invention.

【図9】ハッチパターンの表示例を示した図FIG. 9 is a diagram showing a display example of a hatch pattern.

【図10】従来の外周線付き三角形の描画方法及び装置
を説明する図(その1)
FIG. 10 is a diagram (part 1) illustrating a conventional method and apparatus for drawing a triangle with a peripheral line.

【図11】従来の外周線付き三角形の描画方法及び装置
を説明する図(その2)
FIG. 11 is a diagram (part 2) illustrating a conventional method and apparatus for drawing a triangle with a peripheral line.

【図12】従来の外周線付き三角形の描画方法及び装置
を説明する図(その3)
FIG. 12 is a diagram (part 3) for explaining a conventional method and apparatus for drawing a triangle with a peripheral line.

【図13】従来の外周線付き三角形の描画方法及び装置
を説明する図(その4)
FIG. 13 is a diagram (part 4) illustrating a conventional method and apparatus for drawing a triangle with a peripheral line.

【図14】従来の外周線付き三角形の描画方法及び装置
を説明する図(その5)
FIG. 14 is a diagram for explaining a conventional method and apparatus for drawing a triangle with a peripheral line (Part 5).

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

1 三角形クリップ処理部 10 クリッピン
グ処理部 11 外周線データ制御部 2 DDA処理部 20 スキャンコ
ンバージョン部 20a 外周線引っ込め処理部 21 中空線処理部 21a 境界線デー
タ制御部 22 外周線処理部 3 描画データ変換部 30 スパンデー
タ変換部 31 中空線データ変換部 32 外周線デー
タ変換部 310 中空線描画データ部 311 ハッチ参照
制御部 33 RAM
1 Triangle clip processing unit 10 Clipping processing unit 11 Perimeter line data control unit 2 DDA processing unit 20 Scan conversion unit 20a Perimeter line retraction processing unit 21 Hollow line processing unit 21a Boundary line data control unit 22 Perimeter line processing unit 3 Drawing data conversion unit 30 Span data conversion unit 31 Hollow line data conversion unit 32 Perimeter line data conversion unit 310 Hollow line drawing data unit 311 Hatch reference control unit 33 RAM

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】少なくとも、ディスプレイ面上に設定した
ウィンドウでクリップされた三角形を形成する三角形ク
リップ処理部,外周線引っ込め処理部と中空線処理部と
外周線処理部とを備えたDDA処理部,描画データをド
ットデータに変換する描画データ変換部,実際の描画を
行う描画処理部を備えた図形表示装置であって、 上記三角形クリップ処理部でクリップ処理された外周線
付き三角形を三角形の領域部分と外周線とに分けて描画
する場合において、 上記DDA処理部内の、上記外周線引っ込め処理部で算
出したスパンデータで、該三角形の外周線を除いた領域
を描画した後の外周線部分を境界線として、従来の中空
線と同じ中空線処理を行わせる為の境界線データを生成
して、該中空線処理部に転送する境界線データ制御部を
設けて、 上記三角形クリップ処理部で生成されたスパンデータ
と、上記境界線データ制御部の制御の基に、上記中空線
処理部で生成された境界線データと、上記外周線処理部
で生成された外周線データとを、上記描画処理部で描画
して表示することを特徴とする図形表示装置。
1. A triangle clip processing unit for forming a triangle clipped by a window set on a display surface, a DDA processing unit including a peripheral line retraction processing unit, a hollow line processing unit and a peripheral line processing unit, A graphic display device comprising a drawing data conversion unit for converting drawing data into dot data, and a drawing processing unit for performing actual drawing, wherein a triangle with an outer peripheral line clipped by the triangle clipping processing unit is a triangular area portion. And the outer peripheral line are drawn separately, the outer peripheral line portion after drawing the area excluding the outer peripheral line of the triangle in the span data calculated by the outer peripheral line retraction processing unit in the DDA processing unit is the boundary. As a line, a boundary line data control unit that generates boundary line data for performing the same hollow line processing as a conventional hollow line and transfers it to the hollow line processing unit is provided. Then, under the control of the span data generated by the triangle clip processing unit and the boundary line data control unit, the boundary line data generated by the hollow line processing unit and the outer peripheral line processing unit are generated. A graphic display device, wherein the peripheral line data is drawn and displayed by the drawing processing unit.
【請求項2】請求項1に記載の図形表示装置であって、
上記描画データ変換部内の中空線データ変換部内に、ハ
ッチ参照制御部を設けて、 上記DDA処理部内の境界線データ制御部の制御の基
に、上記中空線処理部で生成された境界線データ部分
を、予め、描画アドレス毎に指定されているハッチパタ
ーンで描画して表示することを特徴とする図形表示装
置。
2. The graphic display device according to claim 1, wherein:
A hatch reference control unit is provided in the hollow line data conversion unit in the drawing data conversion unit, and based on the control of the boundary line data control unit in the DDA processing unit, the boundary line data portion generated in the hollow line processing unit. Is drawn and displayed in a hatch pattern specified in advance for each drawing address.
JP21730594A 1994-09-12 1994-09-12 Graphic display device Withdrawn JPH0883350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21730594A JPH0883350A (en) 1994-09-12 1994-09-12 Graphic display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21730594A JPH0883350A (en) 1994-09-12 1994-09-12 Graphic display device

Publications (1)

Publication Number Publication Date
JPH0883350A true JPH0883350A (en) 1996-03-26

Family

ID=16702072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21730594A Withdrawn JPH0883350A (en) 1994-09-12 1994-09-12 Graphic display device

Country Status (1)

Country Link
JP (1) JPH0883350A (en)

Similar Documents

Publication Publication Date Title
US5363483A (en) Updating objects displayed in a computer system
JPH0251786A (en) Scan converting system
JP3892900B2 (en) Window system with individual windows of arbitrary resolution for display on multiple devices of arbitrary resolution
JP2976945B2 (en) Image drawing device
US6304269B1 (en) Image processor
JP3547250B2 (en) Drawing method
JPH0883350A (en) Graphic display device
JP3493745B2 (en) Drawing device
JP2002056395A (en) Pattern plotting device
KR100586602B1 (en) Method for overlaing raster map
JP2714114B2 (en) Graphic processing method and graphic system
JP2511966B2 (en) Graphic processing device
JP4320604B2 (en) Image processing method and image processing apparatus
JPS62127971A (en) Clipping system in line segment drawing
JPH0350686A (en) Graphic processing system
JPH01166126A (en) Display control method in multiwindow display device
JPH07325927A (en) Image data processor and system using same
JPH0750514B2 (en) 3D graphic display
JPH06162209A (en) Three-dimensional graphic plotting system
JPH1145083A (en) Image data processing device and system using the same
JPH07210707A (en) Method and device for plotting edge figure
JPH06342280A (en) Video character pattern processor
JPH01200489A (en) Processor for three-dimensional graphic
JPS6169094A (en) Graphic processing method and apparatus
JPH04205484A (en) Method and device for filling edge emphasizing polygon area

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20011120