JPH07105390A - Perimeter line drawing data control method - Google Patents

Perimeter line drawing data control method

Info

Publication number
JPH07105390A
JPH07105390A JP5244246A JP24424693A JPH07105390A JP H07105390 A JPH07105390 A JP H07105390A JP 5244246 A JP5244246 A JP 5244246A JP 24424693 A JP24424693 A JP 24424693A JP H07105390 A JPH07105390 A JP H07105390A
Authority
JP
Japan
Prior art keywords
data
peripheral line
triangle
outer peripheral
line
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
JP5244246A
Other languages
Japanese (ja)
Inventor
Ikumi Arai
郁美 荒井
Tadashi Baba
匡史 馬場
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 JP5244246A priority Critical patent/JPH07105390A/en
Publication of JPH07105390A publication Critical patent/JPH07105390A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Abstract

(57)【要約】 【目的】本発明は多角形を複数の三角形に分割して描画
を行う外周線描画データ制御方式に関し,多角形図形の
外周線を描画する時に分割された三角形データを高速に
処理し且つデータ量を少なくすること及び三角形をクリ
ップ処理した時に分割された三角形の外周線データの処
理を簡単化し,描画処理のために外周線データ送出する
時に無駄なデータを削減し,データ送出時間を短縮化す
ることを目的とする。 【構成】多角形データを入力して複数の三角形に分割す
る多角形分割処理部は,分割した各三角形データとし
て,それぞれの頂点座標と境界線か分割線の何れである
かを表す識別フラグが付加する。描画処理部は多角形分
割処理部で作成して分割された各三角形データを受け取
ると,識別フラグに基づいて各三角形の外周線を処理し
て多角形の描画を行うよう構成する。
(57) [Summary] [Object] The present invention relates to a peripheral line drawing data control method for dividing a polygon into a plurality of triangles for drawing, and for dividing triangle data at the time of drawing an outer peripheral line of a polygonal figure at high speed. Processing and reducing the amount of data and simplifying the processing of the outer peripheral line data of the divided triangles when the triangle is clipped, and reducing unnecessary data when transmitting the outer peripheral line data for drawing processing. The purpose is to shorten the sending time. [Structure] A polygon division processing unit which inputs polygon data and divides the triangle data into a plurality of triangles includes a vertex flag for each of the divided triangle data and an identification flag indicating whether it is a boundary line or a dividing line. Add. When the drawing processing unit receives each of the triangular data created and divided by the polygon division processing unit, the drawing processing unit processes the outer peripheral line of each triangle based on the identification flag to draw the polygon.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は多角形を三角形に分割・
描画する時の外周線描画データ制御方式に関する。
The present invention divides a polygon into triangles.
The present invention relates to a control method for drawing outer peripheral lines when drawing.

【0002】多角形を描画するために,多角形を複数の
三角形に分割して各三角形の単位で描画を行う方式が利
用されている。この場合に三角形を高速に処理して描画
する時に,各三角形の各辺が元の多角形を形成する辺
(境界線という)であるか,分割により形成された辺
(分割線という)であるかを判別して,外周線の描画を
行う必要があるため,独立して外周線の作成・描画が行
われている。
In order to draw a polygon, a method is used in which the polygon is divided into a plurality of triangles and each triangle is drawn. In this case, when processing and drawing a triangle at high speed, each side of each triangle is a side forming the original polygon (called a boundary line) or a side formed by division (called a dividing line). Since it is necessary to determine whether or not to draw the outer peripheral line, the outer peripheral line is created and drawn independently.

【0003】また,多角形を分割して発生した三角形を
クリップ処理(指定したサイズ及び位置の四角形の枠で
図形を切り取る処理)で分割した三角形を発生してその
三角形の外周線データを描画する場合があるが,効率良
く外周線データを転送処理することが望まれている。
Further, a triangle generated by dividing a polygon is clipped (processing of cutting a figure with a rectangular frame of a specified size and position) to generate a triangle, and the outer peripheral line data of the triangle is drawn. However, efficient transfer processing of outer peripheral line data is desired.

【0004】[0004]

【従来の技術】図12は従来の外周線描画の構成図,図
13は従来例による外周線描画の動作例である。
2. Description of the Related Art FIG. 12 is a block diagram of a conventional outer peripheral line drawing, and FIG. 13 is an operation example of a conventional outer peripheral line drawing.

【0005】図12において,多角形データ格納部10
0に,描画される多角形のデータが格納されている。こ
の例では,図13のA.に示す5角形のデータが格納さ
れており,多角形データ101として,第1頂点(図1
3のA.の1で示す)乃至第5頂点(図13のA.の5
で示す)の各頂点の座標(X,Y,Z)が格納されてい
る。多角形分割処理部102は,多角形データ101に
対し,先ず三角形分割処理部103で5角形を3つの三
角形に分割処理を行う。これにより図13のA.の5角
形は,頂点1,2,3で構成する三角形,頂点1,3,
4で構成する三角形及び頂点1,4,5で構成する三角
形の3つに分割され,各三角形のデータは,三角形/外
周線データ格納部105の中の三角形データ106とし
て格納される。
In FIG. 12, a polygon data storage unit 10
Data of the polygon to be drawn is stored in 0. In this example, in FIG. The pentagonal data shown in is stored, and the first vertex (see FIG.
A.3. No. 1) to the fifth vertex (5 in A. of FIG. 13).
The coordinates (X, Y, Z) of each vertex are stored. The polygon division processing unit 102 first divides the pentagon into three triangles by the triangle division processing unit 103 on the polygon data 101. As a result, the A. Is a triangle composed of vertices 1, 2, and 3, vertices 1, 3,
It is divided into three, that is, a triangle formed by 4 and a triangle formed by vertices 1, 4, and 5, and the data of each triangle is stored as triangle data 106 in the triangle / peripheral line data storage unit 105.

【0006】一方,5角形の外周線(輪郭を表す線)
は,外周線データ作成処理部104により作成され,作
成されたデータは,三角形/外周線データ格納部105
の中の外周線データ107として格納される。なお,こ
の外周線データ107は第1頂点乃至第5頂点の座標に
より構成される。
On the other hand, a pentagonal outer peripheral line (a line representing a contour)
Is created by the peripheral line data creation processing unit 104, and the created data is the triangle / peripheral line data storage unit 105.
Is stored as the outer peripheral line data 107. The outer peripheral line data 107 is composed of the coordinates of the first to fifth vertices.

【0007】三角形/外周線データ格納部105の三角
形データ106は各三角形を単位に描画処理部108に
転送され,外周線データ107も同様に転送される。次
に描画処理部108の各部において図形の描画が行われ
る。まず,三角形データ処理部109において,三角形
データの第1三角形について頂点データを解析し,三角
形描画データを作成する処理を行い,続けて三角形描画
部111でフレームメモリ114に第1三角形の描画を
行う。図13のB.はフレームメモリへ第1三角形が描
画された状態を示す。同様に,三角形データ処理部10
9と三角形描画部111により第2三角形,第3三角形
の各三角形のデータ処理と描画が実行され,図13の
C.及びDに各三角形が順次追加して描画された状態が
示される。
The triangle data 106 in the triangle / perimeter line data storage unit 105 is transferred to the drawing processing unit 108 in units of each triangle, and the perimeter line data 107 is transferred in the same manner. Next, drawing of a figure is performed in each part of the drawing processing unit 108. First, in the triangle data processing unit 109, the vertex data of the first triangle of the triangle data is analyzed and the processing for creating the triangle drawing data is performed. Then, the triangle drawing unit 111 draws the first triangle in the frame memory 114. . B. of FIG. Shows the state where the first triangle is drawn in the frame memory. Similarly, the triangle data processing unit 10
9 and the triangle drawing unit 111 execute data processing and drawing of each triangle of the second triangle and the third triangle. And D are shown in which each triangle is sequentially added and drawn.

【0008】一方,描画処理部108の外周線データ処
理部110は,属性データ格納部113に格納された描
画条件の『外周線可視/不可視』が何れに設定されるか
によって処理を行うか否かが決定される。この描画条件
の中には各種の条件が用意され,ユーザが描画を行う前
に選択して設定することができ,外周線可視が設定され
ていると,5角形を描画する時,輪郭である外周線を明
確に表示するよう描画し,不可視が設定されていると外
周線を描画せず,また5角形の内部を網かけや,色等に
より描画できる。
On the other hand, the outer peripheral line data processing unit 110 of the drawing processing unit 108 determines whether to perform processing depending on which of the drawing conditions “outer peripheral line visible / invisible” stored in the attribute data storage unit 113 is set. Is decided. Various kinds of conditions are prepared in this drawing condition, which can be selected and set by the user before drawing, and when the visible outer line is set, it is a contour when drawing a pentagon. It is drawn so that the outer peripheral line is clearly displayed, and if the invisible is set, the outer peripheral line is not drawn, and the inside of the pentagon can be drawn by shading or colors.

【0009】外周線可視が設定されている場合,外周線
データ処理部110は,外周線データ107の第1頂点
と第2頂点の各データを解析し,外周線データを作成
し,作成されたデータは外周線描画部112によりフレ
ームメモリ114上に描画される。図13のE.にこの
外周線が描画された状態を示す。次に第2頂点と第3頂
点について同様の処理により描画が行われ,以下,第3
頂点と第4頂点,第4頂点と第5頂点,第5頂点と第1
頂点の各外周線について順次描画が行われる。図13の
F.〜I.にその時の各外周線が描画される様子を示
す。
When the outer peripheral line visible is set, the outer peripheral line data processing unit 110 analyzes each data of the first vertex and the second vertex of the outer peripheral line data 107 to create the outer peripheral line data, The data is drawn on the frame memory 114 by the peripheral line drawing unit 112. E. of FIG. The state in which this outer peripheral line is drawn is shown in FIG. Next, drawing is performed for the second vertex and the third vertex by the same process.
Vertex and fourth vertex, fourth vertex and fifth vertex, fifth vertex and first
Drawing is sequentially performed for each outer peripheral line of the apex. F. of FIG. ~ I. Shows how each outer peripheral line is drawn at that time.

【0010】次に図形データから多角形分割した三角形
データからクリップ処理で分割した三角形の外周線デー
タを描画する方式を説明する。図14は従来のクリップ
処理で分割した三角形の外周線データの制御方式の説明
図である。図14の図形データ120は多角形を表すデ
ータであり,このデータが多角形分割処理部121(図
12の102と同様)に入力されると,多角形を複数の
三角形に分割する処理が行われる。この分割処理によ
り,多角形は複数の三角形に分割されて,各三角形の頂
点データを含む三角形データ122が作成されると共に
外周線データ123が作成される。これらのデータは,
クリップ処理部124において,順番に送出された頂点
データとしてクリップ枠との交点計算が行われ,新しく
求めた頂点データを図形データ格納領域128に格納
し,次いで描画処理部125に格納していた。
Next, a method of drawing the outer peripheral line data of the triangle divided by the clipping process from the triangle data obtained by dividing the figure data into polygons will be described. FIG. 14 is an explanatory diagram of a control method of triangle outer peripheral line data divided by the conventional clip processing. The graphic data 120 in FIG. 14 is data representing a polygon, and when this data is input to the polygon division processing unit 121 (similar to 102 in FIG. 12), processing for dividing the polygon into a plurality of triangles is performed. Be seen. By this division processing, the polygon is divided into a plurality of triangles, the triangle data 122 including the vertex data of each triangle is created, and the outer peripheral line data 123 is created. These data are
In the clip processing unit 124, the intersection point with the clip frame is calculated as the vertex data transmitted in order, the newly obtained vertex data is stored in the graphic data storage area 128, and then stored in the drawing processing unit 125.

【0011】この場合のクリップ処理部124の機能を
説明すると,図14の左下部に示すように,A,B,C
の3つの頂点を持つ三角形を,a〜dの角を持つクリッ
プ枠でクリップ(切り出し)を行い,クリップ枠と三角
形の交点である座標e,fが求められると,このクリッ
プで形成された三角形の新たな頂点データ(A,e,
f)を図形データ格納領域128の三角形データ129
に格納していた。
The function of the clip processing unit 124 in this case will be described. As shown in the lower left part of FIG.
A triangle with three vertices is clipped (cut out) with a clip frame having corners a to d, and when the coordinates e and f which are the intersections of the clip frame and the triangle are obtained, the triangle formed by this clip New vertex data of (A, e,
f) is the triangle data 129 of the graphic data storage area 128
Was stored in.

【0012】また,クリップにより分割された三角形の
外周線データを描画処理部125に送出する場合,外周
線データ123として,図14に示すように,外周線線
分L1(頂点Aと交点e間の線分)のデータとして頂点
S1(線分L1のスタート位置を表し頂点Aの座標)と
頂点E1(線分L1の終点を表し交点eの座標)の2頂
点データが送られ,更に外周線線分L2のデータとして
頂点S2(スタート位置である交点fの座標)と頂点E
2(終点である頂点Aの座標)の2頂点データを順番に
描画処理部125に送出し,これにより外周線描画を保
障していた。
Further, when the outer peripheral line data of the triangle divided by the clip is sent to the drawing processing section 125, the outer peripheral line data 123 is set as the outer peripheral line segment L1 (between the vertex A and the intersection e as shown in FIG. 14). 2 segment data of a vertex S1 (representing the start position of the line segment L1 and the coordinates of the vertex A) and a vertex E1 (representing the end point of the line segment L1 and the coordinate of the intersection point e) are transmitted as data of the line segment of As the data of the line segment L2, the vertex S2 (coordinates of the intersection f which is the start position) and the vertex E
The two vertex data of 2 (coordinates of the vertex A which is the end point) are sequentially sent to the rendering processing unit 125, whereby the outer peripheral line rendering is guaranteed.

【0013】[0013]

【発明が解決しようとする課題】上記図12,図13に
示した従来の外周線描画方式によれば,描画処理部は,
多角形分割処理部で任意個数に分割された三角形のそれ
ぞれを,三角形データ処理部において1三角形の単位で
各頂点データに従って処理するだけで,その三角形デー
タが多角形の一部であるかまたは独立した三角形である
かを意識せずに処理している。
According to the conventional peripheral line drawing method shown in FIGS. 12 and 13, the drawing processing section is
The triangle data processing unit processes each triangle divided into an arbitrary number according to each vertex data in units of one triangle, and the triangle data is a part of the polygon or independent. It is processed without being aware of whether it is a triangular shape.

【0014】また,外周線については,図形描画部の外
周線データ処理部において,描画属性(可視/不可視)
の条件により「可視」の場合に描画されるが,多角形図
形の外周線を描画する場合,従来では元の多角形を形成
する辺(以後,境界線という)であるか,三角形に分割
した際に形成された辺(以後,分割線という)であるか
を判別しないため,外周線は三角形とは独立にデータ作
成及び描画処理を行う必要があり,データを格納するメ
モリ容量が多くなり,処理に時間がかかるという問題が
あった。
Further, regarding the outer peripheral line, the drawing attribute (visible / invisible) is set in the outer peripheral line data processing section of the graphic drawing section.
Although it is drawn when it is "visible" depending on the condition, when drawing the outer line of a polygonal figure, conventionally it is the side that forms the original polygon (hereinafter referred to as the boundary line) or divided into triangles. Since it is not discriminated whether it is a side formed at that time (hereinafter referred to as a dividing line), it is necessary to perform data creation and drawing processing on the outer peripheral line independently of the triangle, which increases the memory capacity for storing the data. There was a problem that processing took time.

【0015】また,上記図14に示す従来のクリップさ
れた三角形の外周線データは,先に外周線線分L1の頂
点データとして頂点S1,頂点E1を描画処理部に送出
した後,外周線線分L2のデータとして頂点S2と本来
頂点S1と同一である頂点E2のデータを別の外周線線
分のデータとして新たに描画処理部に送出するため,デ
ータ送出に無駄が生じるという問題があった。
In the conventional clipped outer peripheral line data of the triangle shown in FIG. 14, the outer peripheral line segment L1 is first transmitted as the apex data of the outer peripheral line segment L1 to the rendering processing unit, and then the outer peripheral line segment is transmitted. The data of the vertex S2 as the data of the segment L2 and the data of the vertex E2 which is originally the same as the vertex S1 are newly sent to the drawing processing unit as the data of another outer peripheral line segment, so that there is a problem in that data is wasted. .

【0016】本発明は多角形図形の外周線を描画する場
合に,分割された三角形データを高速に処理し且つデー
タ量を少なくすることができる外周線描画データ制御方
式を提供することを第1の目的とし,クリップ処理部に
おいて三角形をクリップした時の外周線データの制御
と,描画処理部に外周線データ送出する時に,無駄なデ
ータを削減し,データ送出時間を短縮化できる外周線デ
ータ制御方式を提供することを第2の目的とする。
A first object of the present invention is to provide a peripheral line drawing data control method capable of processing divided triangle data at high speed and reducing the amount of data when drawing the peripheral line of a polygonal figure. The purpose of this is to control the outer peripheral line data when clipping the triangle in the clip processing part and to control the outer peripheral line data when sending the outer peripheral line data to the drawing processing part, by reducing unnecessary data and shortening the data sending time. The second purpose is to provide a method.

【0017】[0017]

【課題を解決するための手段】図1は本発明の第1の原
理構成図であり,図2は本発明の第2の原理構成図であ
る。
FIG. 1 is a first principle configuration diagram of the present invention, and FIG. 2 is a second principle configuration diagram of the present invention.

【0018】図1において,1は多角形の頂点データを
含む多角形データ格納部,2は多角形を複数の三角形に
分割する多角形分割処理部,3は三角形・外周線データ
格納部,4は三角形・外周線データ格納部3に格納され
た第1三角形データ,第2三角形データ・・・等の三角
形データ,4a〜4cは各三角形に対し第1乃至第3の
各頂点座標と各頂点に対応する辺が境界線(多角形の外
周線)か分割線(多角形を分割した時に生じた線)かを
表示する識別フラグとで構成する各頂点データ,5は描
画処理部,5aは三角形データを処理するデータ処理
部,5bは三角形描画部,5cは外周線描画部,6は描
画条件を含む属性データ格納部,7はフレームメモリで
ある。
In FIG. 1, 1 is a polygon data storage unit containing polygon vertex data, 2 is a polygon division processing unit that divides a polygon into a plurality of triangles, 3 is a triangle / peripheral line data storage unit, 4 Is triangle data such as the first triangle data, the second triangle data, etc. stored in the triangle / peripheral line data storage unit 3, and 4a to 4c are first to third vertex coordinates and vertexes of each triangle. Each vertex data constituted by an identification flag indicating whether the side corresponding to is a boundary line (outer peripheral line of polygon) or a dividing line (line generated when the polygon is divided), 5 is a drawing processing unit, and 5a is A data processing unit for processing triangle data, 5b is a triangle drawing unit, 5c is a peripheral line drawing unit, 6 is an attribute data storage unit including drawing conditions, and 7 is a frame memory.

【0019】また図2において,10は多角形データ格
納部,11は多角形分割処理部,12はクリップ処理
部,13はクリップ処理部12に設けられた外周線線形
制御部,14は同じくクリップ処理部12に設けられた
外周線連結処理部,15は図形データ格納部,16は描
画処理部,17はフレームメモリである。この図2の1
0,11,16及び17の各部は,それぞれ上記図1の
1,2,5及び7に対応する。
In FIG. 2, 10 is a polygon data storage unit, 11 is a polygon division processing unit, 12 is a clip processing unit, 13 is a peripheral line linear control unit provided in the clip processing unit 12, and 14 is the same clip. An outer peripheral line connection processing unit provided in the processing unit 12, 15 is a graphic data storage unit, 16 is a drawing processing unit, and 17 is a frame memory. 1 of this FIG.
The parts 0, 11, 16 and 17 correspond to the parts 1, 2, 5 and 7 in FIG. 1, respectively.

【0020】本発明の第1の構成は,多角形を分割する
とき,三角形の各頂点データに次の頂点と結ぶ辺が境界
線であるか分割線であるかを示すフラグを付加し,描画
処理部において高速に外周線を描画処理できるようにし
たものである。また,第2の構成では分割された三角形
に対しクリップ枠によるクリップ処理において三角形分
割を行い,その三角形データの中に各頂点に対応する外
周線を描画するか否かを表すフラグを付加し,そのフラ
グを用いて外周線描画のタイプを識別し,描画処理部に
対し必要な外周線のデータだけを送出するものである。
According to the first configuration of the present invention, when a polygon is divided, a flag indicating whether the side connecting to the next vertex is a boundary line or a dividing line is added to each vertex data of the triangle, and the drawing is performed. The processing unit is capable of drawing the outer peripheral line at high speed. Further, in the second configuration, the divided triangles are divided into triangles in the clip processing by the clip frame, and a flag indicating whether or not to draw the outer peripheral line corresponding to each vertex is added to the triangle data. The flag is used to identify the type of outer peripheral line drawing, and only the necessary outer peripheral line data is sent to the drawing processing unit.

【0021】[0021]

【作用】図1の構成において,多角形分割処理部2は多
角形データ格納部1の多角形データを入力し,多角形を
複数の三角形に分割する。この分割により作成された各
三角形の頂点に対し境界線・分割線を示す識別フラグを
付加し,三角形データ格納部3の三角形データ4として
格納する。三角形データ4は3つの頂点データ4a〜4
cで構成され,頂点座標と識別フラグとで構成される。
In the configuration of FIG. 1, the polygon division processing unit 2 inputs the polygon data in the polygon data storage unit 1 and divides the polygon into a plurality of triangles. An identification flag indicating a boundary line / division line is added to the vertices of each triangle created by this division and stored as triangle data 4 in the triangle data storage unit 3. Triangle data 4 is three vertex data 4a-4
c, which is composed of vertex coordinates and an identification flag.

【0022】三角形データ4は描画処理部5に転送さ
れ,この中のデータ処理部5aで各頂点データが解析さ
れ,三角形描画部5bでフレームメモリ7に三角形が描
画され,外周線描画部5cで属性データ格納部6の描画
条件(外周線可視・不可視)を参照し,可視の場合は境
界線を表すフラグが付された頂点だけフレームメモリ7
に外周線を描画する。描画処理部5は,全ての三角形に
ついて同様に描画を行う。
The triangle data 4 is transferred to the drawing processing unit 5, and the data processing unit 5a therein analyzes each vertex data, the triangle drawing unit 5b draws a triangle in the frame memory 7, and the outer peripheral line drawing unit 5c. Referring to the drawing condition (outer peripheral line visible / invisible) in the attribute data storage unit 6, if visible, only the vertices to which the flag representing the boundary line is attached are stored in the frame memory 7
Draw a peripheral line on. The drawing processing unit 5 similarly draws for all triangles.

【0023】図2の構成において,多角形分割処理部1
1は上記図1と同様に多角形データ格納部10の多角形
データを入力し複数の三角形に分割する。分割された各
三角形データに対し,クリップ処理部12はクリップ枠
でクリップ処理を行い,枠に入る図形を三角形分割し
て,分割された三角形の各頂点座標と各頂点に対応する
外周線が可視か不可視かを表す外周線フラグが付加され
た三角形データが作成される。外周線線形制御部13に
は各頂点に対応する外周線フラグが入力され,外周線フ
ラグを用いて,三角形の描画タイプ(3辺の中のどの辺
を描画するかのパターン)を表すラインフラグを作成す
る。次に外周線連結処理部14が,前記ラインフラグに
基づいて,描画すべき外周線線分についてだけ頂点デー
タの連結を行って,図形データ格納部15に格納する。
この図形データ格納部15の内容は描画処理部16に送
られる。描画処理部16は三角形描画と外周線描画の処
理を行いフレームメモリ17に格納する。
In the configuration of FIG. 2, the polygon division processing unit 1
In the same manner as in FIG. 1, 1 inputs polygon data in the polygon data storage unit 10 and divides it into a plurality of triangles. The clip processing unit 12 performs clip processing on each of the divided triangle data with a clip frame, divides the figure in the frame into triangles, and the vertex coordinates of the divided triangles and the outer peripheral line corresponding to each vertex are visible. Triangle data with an outer peripheral line flag indicating whether it is invisible or not is created. An outer peripheral line flag corresponding to each vertex is input to the outer peripheral line linear control unit 13, and a line flag indicating a drawing type of a triangle (a pattern of which side among the three sides is drawn) is used by using the outer peripheral line flag. To create. Next, the outer peripheral line connection processing unit 14 connects the vertex data only for the outer peripheral line segment to be drawn based on the line flag, and stores it in the graphic data storage unit 15.
The contents of the graphic data storage unit 15 are sent to the drawing processing unit 16. The drawing processing unit 16 performs a triangle drawing process and a peripheral line drawing process, and stores it in the frame memory 17.

【0024】[0024]

【実施例】図3は実施例1の構成図,図4は三角形デー
タの構成例,図5は実施例1による5角形の描画の例で
ある。
FIG. 3 is a block diagram of the first embodiment, FIG. 4 is a configuration example of triangular data, and FIG. 5 is an example of drawing a pentagon according to the first embodiment.

【0025】この実施例1は上記図1に示す本発明の第
1の原理構成に対応する構成である。図3において,2
〜4,5及び7は上記図1と同じ名称を備えた装置であ
り,特に描画処理部5の内部の詳細が示されている。
The first embodiment has a structure corresponding to the first principle structure of the present invention shown in FIG. In FIG. 3, 2
4, 5, and 7 are devices having the same names as those in FIG. 1, and in particular, the details of the inside of the drawing processing unit 5 are shown.

【0026】以下に実施例1の動作を説明すると,多角
形分割処理部2は図示されない多角形データ格納部(従
来例の図12の100と同じ)からの多角形データ(同
図12の101)を受け取って,これを複数の三角形に
分割する処理を行い,分割された各三角形のデータを三
角形・外周線データ格納部3に格納する。この時,各三
角形について第1三角形データ,第2三角形データ・・
と順次作成される。例えば,多角形データとして5角形
データが入力した場合,第1,第2,第3の三角形デー
タが作成される。
The operation of the first embodiment will be described below. The polygon division processing unit 2 uses the polygon data (not shown in FIG. 12; the same as 100 in FIG. 12) to draw polygon data (101 in FIG. 12). ) Is received, a process of dividing this into a plurality of triangles is performed, and the data of each divided triangle is stored in the triangle / peripheral line data storage unit 3. At this time, the first triangle data, the second triangle data ...
It is created sequentially. For example, when pentagonal data is input as polygonal data, first, second, and third triangular data are created.

【0027】本発明の多角形分割処理部2は,各三角形
データとして,第1頂点座標乃至第3頂点座標を発生す
ると共に,各頂点座標に対しその頂点に対応する外周線
が境界線か分割線かの何れであるかを表す識別フラグを
設定する。この識別フラグは,各頂点に対応する外周線
が,元の多角形の境界を表す場合は境界線フラグとして
“1”が設定され,分割により生じた外周線であれば分
割線フラグとして“0”が設定される。
The polygon division processing unit 2 of the present invention generates first vertex coordinates to third vertex coordinates as each triangle data, and for each vertex coordinate, the outer peripheral line corresponding to the vertex is a boundary line or a division. An identification flag indicating whether the line is a line is set. This identification flag is set to "1" as the boundary line flag when the outer peripheral line corresponding to each vertex represents the boundary of the original polygon, and is set to "0" as the dividing line flag if the outer peripheral line is generated by division. Is set.

【0028】図4に示す三角形データの構成例では,一
つの頂点座標として,40〜42にX,Y,Zの各座標
データ(各32ビット)が設定され,これにフラグデー
タ43が設定される。フラグデータ43は,0ビットか
ら31ビットの合計32ビットで構成され,その中の1
6ビットに“1”(境界線フラグ)か“0”(分割線フ
ラグ)が設定される。
In the configuration example of the triangle data shown in FIG. 4, as one vertex coordinate, X, Y, and Z coordinate data (32 bits each) is set in 40 to 42, and flag data 43 is set in this. It The flag data 43 is composed of a total of 32 bits from 0 bit to 31 bit, and 1 of them is included.
"1" (boundary line flag) or "0" (dividing line flag) is set in 6 bits.

【0029】このように,多角形分割処理部2により作
成された各三角形のデータ4a〜4cは,三角形・外周
線データ格納部3内に各頂点座標と識別フラグと共に図
のように格納される。
In this way, the triangle data 4a to 4c created by the polygon division processing unit 2 are stored in the triangle / peripheral line data storage unit 3 together with each vertex coordinate and the identification flag as shown in the figure. .

【0030】三角形・外周線データ格納部3は1三角形
を単位に三角形データを描画処理部5に転送する。描画
処理部5では,三角形・外周線データ入力部50で三角
形データを入力し,データ処理部51(図1の5aに対
応)で処理が行われる。データ処理部51の処理のフロ
ーが図3のデータ処理部51内に示されているように,
最初に第n三角形データ解析(nは最大で分割により作
成された三角形の数までの任意の数)において,第n番
目の三角形の各頂点データが解析され(図3の51内の
S1),解析結果に基づいて三角形・外周線描画データ
が作成される(同S2)。この場合,三角形の頂点座標
と対応する外周線の識別フラグが一体となって作成され
る。作成されたデータは描画部52に送られる一方,他
の三角形データが有るか判別し(同S3),有る場合
は,次の三角形・外周線データについて同様の処理が行
われる。
The triangle / peripheral line data storage unit 3 transfers the triangle data to the drawing processing unit 5 in units of one triangle. In the drawing processing unit 5, the triangle / outer peripheral line data input unit 50 inputs the triangle data, and the data processing unit 51 (corresponding to 5a in FIG. 1) performs processing. As shown in the data processing unit 51 of FIG. 3, the processing flow of the data processing unit 51 is as follows.
First, in the nth triangle data analysis (n is an arbitrary number up to the number of triangles created by division), each vertex data of the nth triangle is analyzed (S1 in 51 of FIG. 3), Triangle / perimeter line drawing data is created based on the analysis result (at step S2). In this case, the identification flag of the outer peripheral line corresponding to the vertex coordinates of the triangle is created integrally. While the created data is sent to the drawing unit 52, it is determined whether or not there is other triangle data (at step S3), and if there is, the same processing is performed on the next triangle / peripheral line data.

【0031】描画部52は送られた三角形・外周線描画
データについて,三角形描画部53(図1の5bに対
応)において第n三角形描画を行う。最初は第1三角形
をフレームメモリ7に描画し,続けて外周線描画部54
でその第1三角形の外周線の描画を行う。この時,属性
データ格納部6に格納された描画条件(外周線可視/不
可視)を参照し,外周線可視で且つ境界線フラグが付加
された頂点に対応する外周線だけをフレームメモリ7に
描画する。
The drawing unit 52 draws the n-th triangle of the sent triangle / peripheral line drawing data in the triangle drawing unit 53 (corresponding to 5b in FIG. 1). First, the first triangle is drawn in the frame memory 7, and then the outer peripheral line drawing unit 54
Then, the outer peripheral line of the first triangle is drawn. At this time, referring to the drawing conditions (outer peripheral line visible / invisible) stored in the attribute data storage unit 6, only the outer peripheral line visible to the outer peripheral line and corresponding to the vertex to which the boundary line flag is added is drawn in the frame memory 7. To do.

【0032】データ処理部51から次の第2三角形の三
角形・外周線描画データが送られてくると,同様にその
三角形と外周線を描画し,全ての三角形・外周線描画デ
ータについてフレームメモリ7上に描画される。
When the next triangle / peripheral line drawing data of the second triangle is sent from the data processing unit 51, the triangle and the peripheral line drawing data are similarly drawn, and the frame memory 7 for all the triangle / peripheral line drawing data. Drawn on top.

【0033】図5の例で説明すると,A.に示す5角形
を3つの三角形に分割して描画する場合,第1三角形は
頂点1,2,3の各頂点座標と,頂点1に対応する外周
線(頂点1と頂点2を結ぶ線)は境界線フラグが付加さ
れ,頂点2に対応する外周線(頂点2と頂点3を結ぶ
線)も境界線フラグが付加され,頂点3に対応する外周
線(頂点3と頂点1を結ぶ線)は分割線フラグが付加さ
れている。
Explaining with the example of FIG. When the pentagon shown in is divided into three triangles and drawn, the first triangle has the vertex coordinates of vertices 1, 2 and 3 and the outer peripheral line (the line connecting vertex 1 and vertex 2) corresponding to vertex 1. A boundary flag is added, and a peripheral line corresponding to vertex 2 (a line connecting vertex 2 and vertex 3) is also added with a boundary flag, and a peripheral line corresponding to vertex 3 (a line connecting vertex 3 and vertex 1) is A dividing line flag is added.

【0034】このような第1三角形のデータが,データ
処理部51で処理されて描画部52において描画した結
果,図5のB.に示すように頂点1,2,3で構成する
第1三角形(網かけ表示)と太線で示す2つの外周線
(頂点1,2間及び頂点2,3間)が一緒に描画され
る。この後,一本の境界線フラグを持つ外周線(頂点3
と4の間)を表す頂点3のデータを備えた第2三角形の
描画が図5のC.に示すように描画され,最後に第3三
角形が図5のD.のように描画されて,5角形全体の描
画が完成する。
The data of the first triangle is processed by the data processing unit 51 and drawn by the drawing unit 52. As shown in (1), the first triangle (shaded area) composed of the vertices 1, 2, and 3 and the two outer peripheral lines (between the vertices 1 and 2 and the vertices 2 and 3) indicated by thick lines are drawn together. After this, a perimeter line (vertex 3
5), the drawing of the second triangle with the data of the vertex 3 representing C. 5D, and finally the third triangle is D.I. The drawing of the entire pentagon is completed.

【0035】次に図6乃至図10は上記図2に示す本発
明の第2の原理構成に対応する実施例2の構成に関する
図である。図2に示す構成において,多角形分割処理部
11で分割された一つの三角形に対して,クリップ処理
部12で従来と同様にクリップ枠と三角形との交点を求
めてクリップ処理が行われる。この具体例を図6により
説明する。
Next, FIGS. 6 to 10 are diagrams showing the configuration of the second embodiment corresponding to the second principle configuration of the present invention shown in FIG. In the configuration shown in FIG. 2, with respect to one triangle divided by the polygon division processing unit 11, the clipping processing unit 12 performs clipping processing by obtaining an intersection between the clipping frame and the triangle in the same manner as in the conventional case. This specific example will be described with reference to FIG.

【0036】図6はクリップ処理によりクリップされる
三角形の例であり,分割された三角形は頂点A,B,C
で構成され,この三角形とクリップ枠Dとは点B’と点
C’で交差する。従ってクリップ処理により,新たに頂
点A,B’,C’で構成する三角形が,元の頂点A,
B,Cで構成する三角形から分割される。
FIG. 6 shows an example of triangles clipped by the clipping process, and the divided triangles are vertices A, B and C.
The triangle and the clip frame D intersect at a point B ′ and a point C ′. Therefore, by the clipping process, the triangle newly formed by the vertices A, B ′, and C ′ becomes the original vertex A,
The triangle formed by B and C is divided.

【0037】クリップ処理部12では,クリップにより
分割された三角形(図6の頂点A,B’,C’の三角
形)の各外周線を描画(可視)か,描画無し(不可視)
かを表す外周線フラグを作成する。すなわち,図6の線
分L1(頂点Aと頂点B’間の外周線)と線分L2(頂
点Aと頂点C’間の外周線)は,共に元の三角形の外周
線上の線分であるから可視(描画)を表す状態に外周線
フラグが設定されるが,頂点B’と頂点C’間の線分は
クリップ処理による分割で生じた外周線であるから描画
しない状態に外周線フラグを設定される。
The clip processing unit 12 draws (visible) or does not draw (invisible) each peripheral line of a triangle (triangles of vertices A, B ', and C'in FIG. 6) divided by the clip.
An outer peripheral line flag indicating whether or not is created. That is, the line segment L1 (the outer peripheral line between the vertices A and B ′) and the line segment L2 (the outer peripheral line between the vertices A and C ′) in FIG. 6 are both line segments on the outer peripheral line of the original triangle. From the above, the outer peripheral line flag is set to the state of being visible (drawn), but since the line segment between the vertices B ′ and C ′ is the outer peripheral line generated by the division by the clip processing, the outer peripheral line flag is set to the state of not being drawn. Is set.

【0038】図7は外周線フラグの説明図であり,図7
のA.は外周線フラグの構成図,B.は頂点と外周線フ
ラグの関係を示す。A.に示すように外周線フラグは,
32ビットのデータ中の0ビットの位置に設定され,こ
の0ビットが“1”の時外周線可視(描画有り),
“0”の時外周線不可視(描画無し)を表す。この外周
線フラグは,B.に示すように頂点nと頂点n+1の外
周線(en:エッジnを意味する)の外周線フラグが頂
点nの座標データに付加され,同様に頂点n+1の座標
データにen+1(エッジn+1の外周線フラグが付加
され,頂点n+2にen+2(エッジn+2)の外周線
フラグが付加される。
FIG. 7 is an explanatory diagram of the outer circumference line flag.
A. Is a block diagram of the peripheral line flag, B. Indicates the relationship between the vertex and the peripheral line flag. A. As shown in
It is set to the 0 bit position in the 32 bit data, and when this 0 bit is "1", the outer peripheral line is visible (with drawing),
When "0", it indicates that the outer peripheral line is invisible (no drawing). This peripheral line flag is As shown in, the outer peripheral line flags of the outer peripheral lines (en: meaning edge n) of the apex n and the apex n + 1 are added to the coordinate data of the apex n. A flag is added, and a peripheral line flag of en + 2 (edge n + 2) is added to the vertex n + 2.

【0039】図8及び図9は実施例2の処理フロー図
(その1),(その2)である。この処理フローはクリ
ップ処理部(図2の12)の制御により動作する外周線
線形制御部(図2の13)及び外周線連結処理部(図2
の14)の機能を示す。
8 and 9 are processing flow charts (No. 1) and (No. 2) of the second embodiment. This processing flow is performed by the outer peripheral line linear control unit (13 in FIG. 2) and the outer peripheral line connection processing unit (FIG.
14) of the above.

【0040】また,この処理フローは,クリップ処理部
により図8の右側に示す頂点P1,P2,P3を備えた
三角形が作成され,各エッジの外周線フラグが上記,図
7のB.と同様の関係で各頂点の座標データに付加され
ているものとし,各エッジの外周線フラグは“0”また
は“1”の何れか任意に設定されている。
In this processing flow, the clip processing unit creates a triangle having the vertices P1, P2 and P3 shown on the right side of FIG. It is assumed that it is added to the coordinate data of each vertex in the same relationship as, and the outer peripheral line flag of each edge is arbitrarily set to either "0" or "1".

【0041】図8の処理が開始すると,外周線線形制御
部の処理が実行され,内部のメモリ(図示せず)の特定
エリアに設けられたラインフラグ(LINEFLG と表示) と
いう名前の変数(メモリの特定のエリア)を0に初期化
する(図8のS1)。次に,ステップS2において,以
下の処理が実行される。すなわち,最初にラインフラグ
(LINEFLG) に対し,エッジ1(edge1)の外周線フラグ
の内容を設定する。この時,上記図7のA.に示すよう
に,32ビット内の0ビット位置に設定されたフラグを
表す内容(1または0)がラインフラグ(LINEFLG) の
0ビットに設定する。
When the process of FIG. 8 is started, the process of the outer peripheral line linear control unit is executed, and a variable (memory called a line flag (displayed as LINEFLG)) provided in a specific area of an internal memory (not shown) Specific area) is initialized to 0 (S1 in FIG. 8). Next, in step S2, the following processing is executed. That is, first, the contents of the outer peripheral line flag of edge 1 (edge1) are set to the line flag (LINEFLG). At this time, the A. As shown in, the content (1 or 0) representing the flag set at the 0 bit position in 32 bits is set to the 0 bit of the line flag (LINEFLG).

【0042】次に,エッジ2(edge2)の外周線フラグを
左側に1ビットシフトして,その外周線フラグのビット
(左に1ビットシフトしているので,32ビット内の1
ビット位置にある)をラインフラグ(LINEFLG) の対応
する1ビット位置に設定する。さらに,エッジ3(edge
3)の外周線フラグを左に2ビットシフトし,そのライン
フラグのビット(32ビット内の2ビット位置にある)
をラインフラグ(LINEFLG) に設定する。
Next, the outer peripheral line flag of edge 2 is shifted to the left by 1 bit, and the bit of the outer peripheral line flag is shifted to the left (1 bit to the left.
Bit position) is set to the corresponding 1 bit position of the line flag (LINEFLG). In addition, edge 3 (edge
The outer peripheral line flag of 3) is shifted to the left by 2 bits, and the bit of the line flag (at the 2 bit position within 32 bits)
To the line flag (LINEFLG).

【0043】図10に示すラインフラグの説明図によ
り,上記ステップS2の処理内容を説明する。図10の
A.において,〜はエッジ1〜エッジ3の外周線フ
ラグが対応する左シフトを行った後の状態を示し,は
ラインフラグを表す。〜のそれぞれの0ビット位置
(フラグビット)の内容がに示すようにラインフラグ
の3つのビット位置に設定される。
The processing contents of step S2 will be described with reference to the line flag diagram shown in FIG. A. of FIG. In the figure, ~ indicates the state after the left shift corresponding to the outer peripheral line flags of edge 1 to edge 3, and indicates the line flag. The contents of each 0 bit position (flag bit) of are set to three bit positions of the line flag as shown in.

【0044】図8に戻って,次に得られたラインフラグ
(LINEFLG) について,内容が0か否か判断する(図8
のS3)。この判断でラインフラグ(LINEFLG) の内容
が全て0(全ビットが“0”)の場合は,描画する外周
線が無いので外周線連結処理をすることなく終了する。
内容が0でない場合,ラインフラグ(LINEFLG) により
ジャンプ先を設定し(図8のS4),設定されたジャン
ブ先(M1〜M7の何れか:M1〜M7については後述
する)にジャンプする(同S5)。このジャンプ先は,
図9に示す外周線連結処理部である。
Returning to FIG. 8, it is judged whether or not the content of the line flag (LINEFLG) obtained next is 0 (FIG. 8).
S3). If all the contents of the line flag (LINEFLG) are 0 (all bits are "0") in this determination, there is no outer peripheral line to be drawn, and the process ends without performing the outer peripheral line connecting process.
If the content is not 0, the jump destination is set by the line flag (LINEFLG) (S4 in FIG. 8), and the jump destination is set (any of M1 to M7: M1 to M7 will be described later) (same). S5). This jump destination is
It is a peripheral line connection processing unit shown in FIG. 9.

【0045】ここで,上記ラインフラグ(LINEFLG) の
作用を図10により説明すると,図10のA.によりラ
インフラグ(LINEFLG) の3ビットには,最下位の0ビ
ット位置にエッジ1の外周線フラグ,1ビット位置にエ
ッジ2の外周線フラグ,2ビット位置にエッジ3の外周
線フラグがそれぞれ設定されている。このラインフラグ
(LINEFLG) の3ビットで表す範囲は000〜111で
あり,10進数の0〜7の8つの値になる。
The operation of the line flag (LINEFLG) will now be described with reference to FIG. Thus, for the 3 bits of the line flag (LINEFLG), the outermost line flag of edge 1 is set at the lowest 0 bit position, the outermost line flag of edge 2 is set at the 1st bit position, and the outermost line flag of edge 3 is set at the 2th bit position. Has been done. The range represented by 3 bits of this line flag (LINEFLG) is 000 to 111, and has eight values of decimal numbers 0 to 7.

【0046】図10のB.の表はこのラインフラグ(LI
NEFLG) の8つの値が,それぞれ外周線描画線分の描画
のパターンを表すことを示し,これに対応する外周線描
画線分のパターン例を図11に示す。
B. of FIG. Table shows this line flag (LI
Each of the eight NEFLG) values represents a drawing pattern of a peripheral line drawing line segment, and an example of a pattern of a peripheral line drawing line segment corresponding to this is shown in FIG.

【0047】すなわち,図10のB.において,番号
(1) は, ラインフラグが0の場合であり,描画無しであ
って,ジャンプ先はM0(図8のステップS3で0と判
断された場合)となり,外周線描画線分は図11の(1)
に示すように転送されない。また,番号(2) は, ライン
フラグが1の場合であり,外周線描画線分は図8の右側
に示す三角形の頂点P1−P2間を描画することを指示
し,使用する外周線エッジはエッジ1であり,ジャンプ
先はM1となる。この場合,ジャンプ先で図11の(2)
に示す描画が行われる。
That is, as shown in FIG. Where the number
(1) is the case where the line flag is 0, there is no drawing, the jump destination is M0 (when it is determined to be 0 in step S3 of FIG. 8), and the outer peripheral line drawing line segment is ( 1)
Not transferred as shown in. Further, the number (2) indicates that the line flag is 1, the peripheral line drawing line segment indicates to draw between the vertices P1 and P2 of the triangle shown on the right side of FIG. 8, and the peripheral line edge to be used is The edge is 1, and the jump destination is M1. In this case, the jump destination is (2) in FIG.
The drawing shown in is performed.

【0048】同様に,番号(3) 〜(8) はラインフラグ
(LINEFLG) の「2」〜「7」の値に対応して,図10
のB.の各外周線描画線分に示す各頂点区間が,対応す
る外周線エッジを使用して描画することを指示し,それ
ぞれのジャンプ先はラインフラグ(LINEFLG) の数値に
対応するM2〜M7である。
Similarly, the numbers (3) to (8) correspond to the values of "2" to "7" of the line flag (LINEFLG) and correspond to the values of FIG.
B. Each vertex section indicated by each outer line drawing line segment instructed to draw using the corresponding outer line edge, and each jump destination is M2 to M7 corresponding to the value of the line flag (LINEFLG). .

【0049】図9には上記図8の外周線線形制御部から
ジャンプされる外周線連結処理部の処理フローが示さ
れ,ジャンプ先として設定されたM1〜M7の何れかに
応じて対応する外周線連結処理が実行されて,実行後図
8に戻り終了する。なお,M1〜M7は上記図10の
B.の各番号(2) 〜(7) の場合に該当する。
FIG. 9 shows a processing flow of the outer peripheral line connection processing unit which is jumped from the outer peripheral line linear control unit of FIG. 8, and the outer periphery corresponding to any one of M1 to M7 set as the jump destination. The line connection process is executed, and after execution, the process returns to FIG. 8 and ends. In addition, M1 to M7 are B. It corresponds to each number (2) to (7) of.

【0050】例えば,ジャンプ先がM1の場合,第1頂
点(図8の三角形のP1)のデータを図形データ格納部
(図2の15)に格納し,次に第2頂点(図8の三角形
のP2)のデータを格納する。これにより,図11の
(2) に示すような外周線が描画される。
For example, when the jump destination is M1, the data of the first vertex (P1 of the triangle of FIG. 8) is stored in the graphic data storage unit (15 of FIG. 2), and then the second vertex (triangle of FIG. 8). The data of P2) is stored. As a result,
A peripheral line as shown in (2) is drawn.

【0051】また, 上記図6に示すクリップにより作成
された三角形の2つの外周線を描画する場合は,図8の
三角形の頂点P2−P3−P1間を描画する場合に相当
する。この時,ラインフラグ(LINEFLG) の3ビットは
“110”に設定され,10進数の「6」であるからM
6にジャンプする。この場合,図9のフローにより,第
2頂点(P2)のデータの格納(図形データ格納部
へ),第3頂点のデータの格納,第1頂点のデータの格
納が順次行われ,3つの頂点データが格納されると,こ
れらのデータが描画処理部(図2の16)でフレームメ
モリに描画される。
The case of drawing the two outer peripheral lines of the triangle created by the clip shown in FIG. 6 corresponds to the case of drawing between the vertices P2-P3-P1 of the triangle of FIG. At this time, the 3 bits of the line flag (LINEFLG) is set to “110”, which is a decimal number “6”, so M
Jump to 6. In this case, according to the flow of FIG. 9, the storage of the data of the second vertex (P2) (in the graphic data storage unit), the storage of the data of the third vertex, and the storage of the data of the first vertex are sequentially performed, and three vertexes are stored. When the data is stored, these data are drawn in the frame memory by the drawing processing unit (16 in FIG. 2).

【0052】この場合,描画処理部へ転送される頂点デ
ータは2つの外周線線分が連結されて3個であり,従来
例のように各線分毎に始点−終点の2つの頂点データを
転送する必要がなく,メモリ容量を少なくし,転送時間
を短縮することができる。
In this case, the vertex data transferred to the drawing processing unit is three by connecting two outer peripheral line segments, and two vertex data of start point-end point are transferred for each line segment as in the conventional example. There is no need to do so, the memory capacity can be reduced, and the transfer time can be shortened.

【0053】[0053]

【発明の効果】本発明の第1の原理によれば,多角形を
複数の三角形に分割する際に境界線・分割線を表す識別
フラグを頂点データに付加して,これを処理することに
より描画できるので,外周線処理を高速化すると共にメ
モリを縮小化することができる。すなわち,外周線デー
タの作成処理を簡単化し,多角形分割処理部と描画処理
部間でのデータ転送量を削減し,描画処理における外周
線データ処理を削減することができる。
According to the first principle of the present invention, when a polygon is divided into a plurality of triangles, an identification flag representing a boundary line / dividing line is added to the vertex data and processed. Since it can be drawn, the peripheral line processing can be speeded up and the memory can be reduced. That is, it is possible to simplify the outer peripheral line data creation process, reduce the data transfer amount between the polygon division processing unit and the drawing processing unit, and reduce the outer peripheral line data processing in the drawing process.

【0054】本発明の第2の原理によれば三角形の外周
線を描画するとき,多角形分割した三角形がクリップさ
れた後,複雑な三角形の外周線頂点データを管理する場
合に外周線フラグを用いてデータを簡略化することが可
能となる。また,描画に必要な外周線頂点データを削減
し,データ送出時間を短縮することができる。
According to the second principle of the present invention, when the outer peripheral line of a triangle is drawn, the outer peripheral line flag is set when the outer peripheral line vertex data of a complicated triangle is managed after the divided triangles are clipped. Can be used to simplify the data. In addition, the peripheral line apex data required for drawing can be reduced, and the data transmission time can be shortened.

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

【図1】本発明の第1の原理構成図である。FIG. 1 is a first principle configuration diagram of the present invention.

【図2】本発明の第2の原理構成図である。FIG. 2 is a second principle configuration diagram of the present invention.

【図3】実施例1の構成図である。FIG. 3 is a configuration diagram of a first embodiment.

【図4】三角形データの構成例を示す図である。FIG. 4 is a diagram showing a configuration example of triangle data.

【図5】実施例1による5角形の描画の例を示す図であ
る。
FIG. 5 is a diagram showing an example of drawing a pentagon according to the first embodiment.

【図6】クリップ処理によりクリップされる三角形の例
を示す図である。
FIG. 6 is a diagram showing an example of a triangle clipped by a clipping process.

【図7】外周線フラグの説明図である。FIG. 7 is an explanatory diagram of a peripheral line flag.

【図8】実施例2の処理フロー図(その1)である。FIG. 8 is a processing flow diagram (part 1) of the second embodiment.

【図9】実施例2の処理フロー図(その2)である。FIG. 9 is a process flow diagram (2) of the second embodiment.

【図10】ラインフラグの説明図である。FIG. 10 is an explanatory diagram of line flags.

【図11】外周線描画線分のパターン例を示す図であ
る。
FIG. 11 is a diagram showing a pattern example of an outer peripheral line drawing line segment.

【図12】従来の外周線描画の構成図である。FIG. 12 is a configuration diagram of conventional peripheral line drawing.

【図13】従来例による外周線描画の動作例を示す図で
ある。
FIG. 13 is a diagram showing an operation example of drawing an outer peripheral line according to a conventional example.

【図14】従来のクリップ処理で分割した三角形の外周
線データの制御方式の説明図である。
FIG. 14 is an explanatory diagram of a control method of triangular outer peripheral line data divided by conventional clip processing.

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

1 多角形データ格納部 2 多角形分割処理部 3 三角形・外周線データ格納部 4 三角形データ 4a〜4c 各頂点データ 5 描画処理部 5a データ処理部 5b 三角形描画部 5c 外周線描画部 6 属性データ格納部 7 フレームメモリ 1 Polygon data storage unit 2 Polygon division processing unit 3 Triangle / perimeter line data storage unit 4 Triangle data 4a to 4c Vertex data 5 Drawing processing unit 5a Data processing unit 5b Triangle drawing unit 5c Perimeter line drawing unit 6 Attribute data storage Part 7 Frame memory

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 多角形を複数の三角形に分割して描画を
行う外周線描画データ制御方式において,多角形データ
を入力して複数の三角形に分割する多角形分割処理部
は,分割した各三角形のそれぞれの頂点座標と各頂点座
標に対応する外周線が境界線か分割線の何れであるかを
表す識別フラグとで構成する三角形データを作成し,描
画処理部は前記多角形分割処理部で作成した前記分割さ
れた各三角形データを受け取って,前記識別フラグに基
づいて各三角形の外周線を処理することにより多角形の
描画を行うことを特徴とする外周線描画データ制御方
式。
1. In a peripheral line drawing data control method for drawing a polygon by dividing it into a plurality of triangles, a polygon division processing unit for inputting polygon data and dividing the polygon into a plurality of triangles, Triangle data composed of each vertex coordinate of the above and an identification flag indicating whether the outer peripheral line corresponding to each vertex coordinate is a boundary line or a dividing line, and the drawing processing unit A peripheral line drawing data control method, wherein a polygon is drawn by receiving each of the divided triangular data created and processing an outer peripheral line of each triangle based on the identification flag.
【請求項2】 請求項1において,前記描画処理部は,
前記各三角形データの描画と前記境界線フラグが付加さ
れた頂点に対応する外周線だけを描画することを特徴と
する外周線描画データ制御方式。
2. The drawing processing unit according to claim 1,
An outer peripheral line drawing data control method characterized in that only the outer peripheral lines corresponding to the vertices to which the boundary line flag is added are drawn and the respective triangle data are drawn.
【請求項3】 請求項1において,前記外周線を描画す
る時,予め属性データ格納部に設定された描画条件を参
照して外周線可視が設定されている外周線だけを描画す
ることを特徴とする外周線描画データ制御方式。
3. The drawing method according to claim 1, wherein when drawing the outer peripheral line, only the outer peripheral line for which the outer peripheral line visible is set is drawn with reference to a drawing condition set in advance in the attribute data storage unit. Perimeter line drawing data control method.
【請求項4】 多角形を複数の三角形に分割してクリッ
プ処理により切り出した上で描画を行う外周線描画デー
タ制御方式において,多角形データを入力して複数の三
角形に分割する多角形分割処理部は分割した各三角形デ
ータを作成し,クリップ処理を行うクリップ処理部は前
記多角形分割処理部で作成した三角形データに対しクリ
ップ枠により三角形分割を行い,クリップにより発生し
た三角形に対し三角形の各外周線を描画するか否かを表
す外周線フラグを備えた三角形データを発生し,前記各
外周線フラグを用いてクリップにより発生した三角形デ
ータを描画処理部に送出する時,前記各外周線フラグを
用いて各三角形の頂点データを連結することを特徴とす
る外周線描画データ制御方式。
4. A polygon dividing process for inputting polygon data and dividing the polygon into a plurality of triangles in a peripheral line drawing data control method in which a polygon is divided into a plurality of triangles and cut out by clipping processing and then drawn. The section creates each divided triangle data, and performs clip processing. The clip processing section performs triangle division on the triangle data created by the polygon division processing section with a clip frame, and divides each triangle into triangles generated by clipping. When generating triangle data having an outer peripheral line flag indicating whether or not to draw an outer peripheral line and sending the triangular data generated by clipping using the respective outer peripheral line flags to the drawing processing unit, the respective outer peripheral line flags A peripheral line drawing data control method characterized by connecting vertex data of each triangle by using.
【請求項5】 請求項4において,前記クリップ処理部
は,クリップ処理される前の元の三角形の外周線である
か否かにより前記外周線フラグを設定し,クリップによ
り分割された三角形の対応する各頂点データ毎に外周線
フラグを付加し,前記三角形の各頂点毎の外周線フラグ
を加工して描画される外周線のパターンを表す複数ビッ
トで構成するラインフラグを生成する外周線線形制御部
を備えることを特徴とする外周線描画データ制御方式。
5. The clip processing unit according to claim 4, wherein the clip processing unit sets the peripheral line flag depending on whether or not the peripheral line of the original triangle before being clipped, and the correspondence of the triangles divided by the clip. A peripheral line linear control for generating a line flag composed of a plurality of bits by adding a peripheral line flag to each vertex data and processing the peripheral line flag for each vertex of the triangle A peripheral line drawing data control method characterized by comprising a section.
【請求項6】 請求項5において,前記クリップ処理部
は,前記ラインフラグのパターンに基づいて,描画処理
のために外周線分の頂点データの連結を行って図形デー
タ格納部に格納する外周線連結部を備えることを特徴と
する外周線描画データ制御方式。
6. The outer peripheral line according to claim 5, wherein the clip processing unit connects the vertex data of the outer peripheral line segment for drawing processing based on the pattern of the line flag and stores it in the graphic data storage unit. A peripheral line drawing data control method comprising a connecting portion.
JP5244246A 1993-09-30 1993-09-30 Perimeter line drawing data control method Withdrawn JPH07105390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5244246A JPH07105390A (en) 1993-09-30 1993-09-30 Perimeter line drawing data control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5244246A JPH07105390A (en) 1993-09-30 1993-09-30 Perimeter line drawing data control method

Publications (1)

Publication Number Publication Date
JPH07105390A true JPH07105390A (en) 1995-04-21

Family

ID=17115908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5244246A Withdrawn JPH07105390A (en) 1993-09-30 1993-09-30 Perimeter line drawing data control method

Country Status (1)

Country Link
JP (1) JPH07105390A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7142224B2 (en) * 1997-07-10 2006-11-28 Yamaha Corporation Polygon drawing apparatus and method, and storage medium for implementing the same method
US8368713B2 (en) 2007-03-20 2013-02-05 Fujitsu Semiconductor Limited Figure drawing device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7142224B2 (en) * 1997-07-10 2006-11-28 Yamaha Corporation Polygon drawing apparatus and method, and storage medium for implementing the same method
US8368713B2 (en) 2007-03-20 2013-02-05 Fujitsu Semiconductor Limited Figure drawing device and method

Similar Documents

Publication Publication Date Title
JP2690110B2 (en) Scan conversion method
US5276783A (en) Tessellating complex polygons in modeling coordinates
US5012433A (en) Multistage clipping method
US6483519B1 (en) Processing graphic objects for fast rasterised rendering
EP0210554B1 (en) A method of windowing image data in a computer system
JPH06309466A (en) Graphical image display device and method
JPH0445874B2 (en)
JPH0785290A (en) Method and equipment for clipping of graphic polygon to clip region
US6741243B2 (en) Method and system for reducing overflows in a computer graphics system
JPH07175843A (en) Mixing method of edge
US7015917B2 (en) Curved surface subdivision apparatus
JPH06176122A (en) Graphic editing device
US20010055024A1 (en) Polygon drawing apparatus and method, and storage medium for implementing the same method
JP3504935B2 (en) Figure processing method
JPH0668270A (en) Picture processing method and picture processor
US6628281B1 (en) Method and system for computing the intersection of a bounding volume and screen-aligned plane
JP2001209369A (en) Method for generating three-dimensional graphic data and recording medium
JPH11203486A (en) Display method of translucent object and image display device using the same
JPH0350686A (en) Graphic processing system
JPH09282486A (en) Image processing device
JP3727998B2 (en) Graphic processing apparatus and graphic processing method
JPH07104876B2 (en) Design support method and design support apparatus
JPH03150683A (en) Printing device
CN116703698A (en) A Composite Batch Rendering System Based on ARINC661
JP3162130B2 (en) Graphic data input method and graphic data output method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20001226