JP3504935B2 - Figure processing method - Google Patents

Figure processing method

Info

Publication number
JP3504935B2
JP3504935B2 JP2001360910A JP2001360910A JP3504935B2 JP 3504935 B2 JP3504935 B2 JP 3504935B2 JP 2001360910 A JP2001360910 A JP 2001360910A JP 2001360910 A JP2001360910 A JP 2001360910A JP 3504935 B2 JP3504935 B2 JP 3504935B2
Authority
JP
Japan
Prior art keywords
triangle
vertex
data
quadrangle
vertex data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2001360910A
Other languages
Japanese (ja)
Other versions
JP2002183741A (en
Inventor
郁美 荒井
匡史 馬場
昌宏 高澤
正一 今澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2001360910A priority Critical patent/JP3504935B2/en
Publication of JP2002183741A publication Critical patent/JP2002183741A/en
Application granted granted Critical
Publication of JP3504935B2 publication Critical patent/JP3504935B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、各種多角形、例えば、
四角形以上の多角形や三角形、あるいは、複数の四辺形
が連続してなる四辺形メッシュを描画するための図形処
理方法に関する。
BACKGROUND OF THE INVENTION The present invention relates to various polygons, for example,
The present invention relates to a graphic processing method for drawing a polygon such as a quadrangle or a triangle, or a quadrilateral mesh in which a plurality of quadrilaterals are continuous.

【0002】[0002]

【従来の技術】図形を扱う処理システム、例えば多角形
の閉領域を所定の描画条件で塗りつぶす面塗り描画を行
なうシステムにおいては、分割手段により多角形を複数
の三角形に分割してから、描画手段により各三角形を所
定の描画条件で描画して、この多角形の面内全体を面塗
り描画することが行なわれている。このように、多角形
を複数の三角形に分割することで、描画手段における描
画処理を高速で行なうことができる。
2. Description of the Related Art In a processing system for handling a figure, for example, a system for performing surface painting in which a closed area of a polygon is filled under a predetermined drawing condition, the polygon is divided into a plurality of triangles by a dividing means, and then the drawing means. In this way, each triangle is drawn under a predetermined drawing condition, and the entire surface of the polygon is surface-painted. By thus dividing the polygon into a plurality of triangles, the drawing process in the drawing means can be performed at high speed.

【0003】分割手段においては、任意個に分割された
三角形の各頂点データとして、各頂点に対応する元の多
角形の頂点データを振り分け、1三角形を1単位として
三角形の3つの頂点データが、分割手段から描画手段へ
転送される。なお、頂点データには、その頂点について
の頂点座標,頂点色等のデータが含まれている。そし
て、描画手段では、転送されてきた三角形の各頂点デー
タに基づいて、その三角形が、多角形の一部(多角形を
分割したもの)であるか、あるいは、単独のものである
かを認識することなく、その頂点データに基づいて三角
形に対する描画処理を行なっている。
In the dividing means, the vertex data of the original polygon corresponding to each vertex is distributed as each vertex data of the triangle divided into arbitrary pieces, and the three vertex data of the triangle are set with one triangle as one unit. It is transferred from the dividing means to the drawing means. The vertex data includes data such as vertex coordinates and vertex color for the vertex. Then, the drawing means recognizes, based on the transferred vertex data of each triangle, whether the triangle is a part of a polygon (divided polygon) or a single polygon. Without doing so, the drawing process for the triangle is performed based on the vertex data.

【0004】多角形をフラット・シェーディング(単一
色面塗り描画:面内を単一色で塗りつぶす描画条件)で
面塗りする場合、その多角形の第1頂点に指定された色
値(頂点色)を多角形全体の面色(描画色)とし、分割
手段においては、多角形の第1頂点データを基点として
複数の三角形に分割し、多角形の第1頂点を各三角形の
第1頂点として描画手段に転送している。描画手段で
は、与えられた三角形の各頂点データのうち第1頂点デ
ータの色値に基づいて面塗り描画を行なうことにより、
多角形図形が単一色で描画されることになる。
When a polygon is surface-painted by flat shading (single-color face-drawing: a drawing condition for filling the surface with a single color), the color value (vertex color) specified at the first vertex of the polygon is applied. With the surface color (drawing color) of the entire polygon, the dividing means divides the polygon into a plurality of triangles using the first vertex data of the polygon as a base point, and the first vertex of the polygon is used as the first vertex of each triangle by the drawing means. Transferring. In the drawing means, surface drawing is performed based on the color value of the first vertex data of the vertex data of the given triangle,
The polygonal figure will be drawn in a single color.

【0005】一方、分割された三角形の頂点データを受
けた描画手段側では、ランダムに入力されてくる各三角
形の頂点データに基づいて、各三角形の領域を求め、そ
の領域を頂点データに含まれる頂点色(色値)に基づい
て面塗り描画している。このとき、各三角形の領域を求
めるには、ランダムに入力される3つの頂点を正しい順
番に並べ変える必要がある。この処理をソートという。
On the other hand, on the side of the drawing means which receives the vertex data of the divided triangles, the area of each triangle is obtained based on the vertex data of each triangle which is randomly input, and the area is included in the vertex data. Surface painting is performed based on the vertex color (color value). At this time, in order to obtain the area of each triangle, it is necessary to rearrange the three randomly input vertices in the correct order. This process is called sorting.

【0006】このようなソート機能を有する従来の三角
形の描画方式を適用されたシステムの構成例を図30に
示す。この図30において、101は前述の分割手段等
から転送されてきた三角形の頂点データを一旦格納する
図形データ格納領域、102は三角形頂点ソート処理部
で、この三角形頂点ソート処理部102は、3頂点x座
標ソート処理部102Aと3頂点y座標ソート処理部1
02Bとを有している。3頂点x座標ソート処理部10
2Aは、図形データ格納領域101から入力された三角
形の3つの頂点データのx座標についての大小関係を求
め、その大小関係に応じた順番に並べ変えるものであ
り、同様に、3頂点y座標ソート処理部102Bは、図
形データ格納領域101から入力された三角形の3つの
頂点データのy座標についての大小関係を求め、その大
小関係に応じた順番に並べ変えるものである。
FIG. 30 shows a configuration example of a system to which a conventional triangle drawing method having such a sorting function is applied. In FIG. 30, 101 is a graphic data storage area for temporarily storing the vertex data of the triangle transferred from the above-mentioned dividing means, 102 is a triangle vertex sort processing unit, and this triangle vertex sort processing unit 102 has 3 vertexes. The x-coordinate sort processing unit 102A and the three-vertex y-coordinate sort processing unit 1
02B. 3 vertex x coordinate sort processing unit 10
2A is for obtaining the magnitude relationship of the x-coordinates of the three vertex data of the triangle input from the graphic data storage area 101, and rearranging in order according to the magnitude relationship. The processing unit 102B obtains the magnitude relationship of the y-coordinates of the three vertex data of the triangle input from the graphic data storage area 101, and rearranges them in order according to the magnitude relationship.

【0007】103は三角形に対する描画処理を行なう
三角形描画部(描画手段)で、この三角形描画部103
は、形状判定部104,直線描画部105,右長辺三角
形描画部106および左長辺三角形描画部107を有し
ている。形状判定部104は、三角形頂点ソート処理部
102からのx座標およびy座標についてのソート結果
に応じて、入力された三角形の形状が、右長辺三角形
〔図31(a)参照〕,左長辺三角形〔図31(b)参
照〕,直線〔図32(a),(b)参照〕のいずれであ
るかを判定するものである。直線描画部105,右長辺
三角形描画部106および左長辺三角形描画部107
は、それぞれ、形状判定部104による形状判定結果に
よって振り分けられた三角形の頂点データに基づいて、
その三角形に対する描画処理を行なうものである。な
お、図31,図32中、各頂点等に付された符号1〜3
は三角形の各頂点番号を示すものである。
Reference numeral 103 denotes a triangle drawing unit (drawing means) for drawing a triangle.
Has a shape determination unit 104, a straight line drawing unit 105, a right long side triangle drawing unit 106, and a left long side triangle drawing unit 107. The shape determination unit 104 determines that the shape of the input triangle is the right long side triangle [see FIG. 31 (a)] or the left length according to the sorting result of the x-coordinate and the y-coordinate from the triangle vertex sort processing unit 102. It is determined whether it is a side triangle [see FIG. 31 (b)] or a straight line [see FIG. 32 (a), (b)]. Straight line drawing unit 105, right long side triangle drawing unit 106, and left long side triangle drawing unit 107
Are respectively based on the vertex data of the triangles sorted by the shape determination result by the shape determination unit 104,
The drawing process for the triangle is performed. It should be noted that in FIGS.
Indicates each vertex number of the triangle.

【0008】このような構成のシステムにおいて、図形
データ格納領域101から入力される三角形の各頂点の
大小比較を、3頂点x座標ソート処理部102A,3頂
点y座標ソート処理部102Bにより、x座標,y座標
それぞれについて行ない、各頂点のソーティングを行な
っている。つまり、3頂点のうちの2頂点のx座標もし
くはy座標ついての差分値が、0以上または0未満であ
るか、あるいは、0以下または0よりも大きいかに基づ
いて、三角形の各頂点が、x軸方向,y軸方向について
どのような順序で並んでいるかを判断して、ソート順を
決定し、三角形描画部103の形状判定部104へ送出
している。
In the system having such a configuration, the size comparison of the vertices of the triangle input from the graphic data storage area 101 is performed by the three-vertex x-coordinate sort processing unit 102A and the three-vertex y-coordinate sort processing unit 102B. , Y-coordinates for each vertex to sort. That is, based on whether the difference value about the x coordinate or the y coordinate of two of the three vertices is 0 or more, less than 0, or 0 or less, or greater than 0, each vertex of the triangle is The sort order is determined by determining in what order the x-axis direction and the y-axis direction are arranged, and the sorting order is sent to the shape determination unit 104 of the triangle drawing unit 103.

【0009】形状判定部104では、そのx軸方向およ
びy軸方向についてのソート順に基づいて、描画対象の
三角形の3つの頂点が、直線を形成するか、右長辺三角
形を形成するか、あるいは、左長辺三角形を形成するか
が判定され、その判定結果に応じた描画部105〜10
7のいずれかに描画対象の三角形の頂点データが振り分
けられ、その三角形に対する描画処理が行なわれてい
る。
In the shape determination unit 104, based on the sort order in the x-axis direction and the y-axis direction, the three vertices of the triangle to be drawn form straight lines, right long side triangles, or , The left long side triangle is formed, it is determined, and the drawing units 105 to 10 corresponding to the determination result.
The vertex data of the triangle to be drawn is distributed to any of 7 and drawing processing is performed on the triangle.

【0010】ところで、前述したように、多角形を描画
する場合には、複数の三角形に分割してから、各三角形
を所定の描画条件で描画している。このとき、従来、三
角形でない多角形に対する処理は、全て一括して行なわ
れている。このような従来の多角形の描画方式を適用さ
れたシステムの構成例を図33に示す。この図33にお
いて、108は各種図形データを保有するホスト(クラ
イアント)、109はホスト108と後述する図形デー
タ展開部110との間に介設されホスト108からのデ
ータを一旦格納するホスト・展開部インターフェイスメ
モリ、110は図形データ展開部(分割手段)で、この
図形データ展開部110は、ディスパッチャ(振分部)
111,第1種図形要素データ展開部112,第i種図
形要素データ展開部113,多角形要素データ展開部1
14等を有している。
By the way, as described above, when a polygon is drawn, it is divided into a plurality of triangles and each triangle is drawn under a predetermined drawing condition. At this time, conventionally, all the processing for polygons other than triangles is collectively performed. FIG. 33 shows a configuration example of a system to which such a conventional polygon drawing method is applied. In FIG. 33, 108 is a host (client) that holds various graphic data, 109 is a host / expansion unit that is provided between the host 108 and a graphic data expansion unit 110, which will be described later, and temporarily stores the data from the host 108. The interface memory 110 is a graphic data expansion unit (dividing means), and the graphic data expansion unit 110 is a dispatcher (distribution unit).
111, type 1 graphic element data expansion unit 112, i type graphic element data expansion unit 113, polygonal element data expansion unit 1
It has 14 mag.

【0011】ディスパッチャ111は、ホスト・展開部
インターフェイスメモリ109に格納されているホスト
108からのデータ展開対象となる要素を、その要素に
応じた展開部112〜114に振り分けるものである。
例えば、図33に示す例では、第1種図形要素は第1種
図形要素データ展開部112に、第i種図形要素は第i
種図形要素データ展開部113に、多角形要素は多角形
要素データ展開部114に振り分ける。
The dispatcher 111 distributes the elements, which are stored in the host / expansion unit interface memory 109 and are the object of data expansion from the host 108, to the expansion units 112 to 114 corresponding to the elements.
For example, in the example shown in FIG. 33, the first-type graphic element is in the first-type graphic element data expansion unit 112, and the i-th type graphic element is in the i-th type.
The polygon element is distributed to the seed graphic element data expansion unit 113, and the polygon element is allocated to the polygon element data expansion unit 114.

【0012】第1種図形要素データ展開部112,第i
種図形要素データ展開部113,多角形要素データ展開
部114は、それぞれ、その要素に応じたデータ展開処
理を施すもので、特に、ここで問題となる多角形要素デ
ータ展開部114は、外積演算部114A,形状判定部
114Bおよびデータ展開処理部114Cを有してい
る。
First-type graphic element data expansion unit 112, i-th
The seed graphic element data expansion unit 113 and the polygon element data expansion unit 114 respectively perform data expansion processing according to the elements. In particular, the polygon element data expansion unit 114, which is a problem here, is the outer product calculation. It has a unit 114A, a shape determination unit 114B, and a data expansion processing unit 114C.

【0013】外積演算部114Aは、多角形の各頂点に
ついて隣接する2辺の外積を演算するものであり、形状
判定部114Bは、外積演算部114Aからの各頂点の
外積演算結果に基づいて、その多角形の形状を判定する
ものであり、データ展開処理部114Cは、形状判定部
114Bによる判定結果に応じて多角形を複数の三角形
データに展開するものである。
The outer product calculation unit 114A calculates the outer product of two adjacent sides of each vertex of the polygon, and the shape determination unit 114B calculates the outer product of each vertex from the outer product calculation unit 114A. The shape of the polygon is determined, and the data expansion processing unit 114C expands the polygon into a plurality of triangle data according to the determination result by the shape determination unit 114B.

【0014】また、115は図形データ展開部110と
後述する図形描画部116との間に介設され図形データ
展開部110からの展開データ(三角形データ等)を一
旦格納する展開部・描画部インターフェイスメモリ(も
しくはFIFO)、116は展開部・描画部インターフ
ェイスメモリ115に格納されている展開データに基づ
いて多角形要素等の図形要素に対して描画処理を施す図
形描画部(描画手段)である。
Reference numeral 115 is an expansion / rendering unit interface which is provided between the graphic data expansion unit 110 and a graphic drawing unit 116 described later to temporarily store the expansion data (triangle data etc.) from the graphic data expansion unit 110. A memory (or FIFO) 116 is a graphic drawing unit (drawing means) for performing a drawing process on a graphic element such as a polygonal element based on the expanded data stored in the expansion / drawing unit interface memory 115.

【0015】このような構成のシステムにおいて、ホス
ト108からの多角形要素に対して描画処理を行なう際
には、その多角形要素は、ホスト・展開部インターフェ
イスメモリ109を介して図形データ展開部110に入
力される。図形データ展開部110において、多角形要
素は、ディスパッチャ111の振分機能により多角形要
素データ展開部114に振り分けられる。
In the system having such a configuration, when drawing processing is performed on a polygonal element from the host 108, the polygonal element is sent via the host / expansion unit interface memory 109 to the graphic data expansion unit 110. Entered in. In the graphic data expansion unit 110, the polygon elements are distributed to the polygon element data expansion unit 114 by the distribution function of the dispatcher 111.

【0016】そして、多角形要素データ展開部114に
おいて、外積演算部114Aにより、入力された多角形
の各頂点についての外積が演算され、その外積演算結果
に基づいて、形状判定部114Bにより、入力された多
角形の形状が判定される。この後、データ展開処理部1
14Cにより、入力された多角形は、形状判定部114
Bによる判定結果に応じて複数の三角形データに展開さ
れ、展開部・描画部インターフェイスメモリ115を介
して図形描画部116に転送され、この図形描画部11
6において、各三角形に対する描画処理を行なうことに
より、多角形に対する描画が行なわれるようになってい
る。
In the polygon element data expansion unit 114, the outer product calculation unit 114A calculates the outer product for each vertex of the input polygon, and based on the result of the outer product calculation, the shape determination unit 114B inputs the result. The shape of the polygon is determined. After this, the data expansion processing unit 1
14C, the input polygon is determined by the shape determination unit 114.
Depending on the judgment result by B, it is expanded into a plurality of triangle data and transferred to the graphic drawing unit 116 via the expansion / drawing unit interface memory 115.
In 6, the drawing process is performed on each triangle to draw a polygon.

【0017】[0017]

【発明が解決しようとする課題】しかしながら、図30
により上述した従来の三角形の描画方式では、三角形頂
点ソート処理部102において、図31(a),(b)
に示すような三角形に対し決定されたソート順に従って
三角形領域内部の各点における処理対象値を決定してい
るが、図32(a),(b)に示すような直線になる場
合にも、上述した三角形頂点ソート処理部102による
ソート処理に含まれてしまうため、直線に関係のない領
域内部の処理対象値を求めてしうまうことになり、高速
描画を行なえないという課題がある。
However, as shown in FIG.
According to the conventional triangle drawing method described above, the triangle vertex sort processing unit 102 in FIGS.
Although the processing target value at each point inside the triangular area is determined according to the sort order determined for the triangle as shown in FIG. 32, even in the case of a straight line as shown in FIGS. Since it is included in the sort processing by the triangle vertex sort processing unit 102 described above, the processing target value inside the area that is not related to the straight line is satisfactorily obtained, and there is a problem that high-speed drawing cannot be performed.

【0018】さらに、図33により上述した従来の多角
形の描画方式では、三角形でない多角形に対する処理
は、全て一括して行なわれているが、実運用上では、五
角形以上の多角形に比べ、複雑な曲面を近似する際に四
角形を用いるなど、四角形が使用されることが格段に多
い。従って、面をもつ図形を多様する実運用上の描画性
能は、四角形の描画性能に大きく依存する。
Further, in the conventional polygon drawing method described above with reference to FIG. 33, all the processing for polygons that are not triangular is performed all at once, but in actual operation, compared to polygons with pentagons or more, A quadrangle is often used, such as a quadrangle when approximating a complicated curved surface. Therefore, the drawing performance in actual operation in which a figure having a surface is diversified greatly depends on the drawing performance of a quadrangle.

【0019】多角形の処理でネックとなるのは、指定さ
れた多角形の形状が常に凸型とは限らない点にある。つ
まり、多角形の形状によって三角形への分割手段が異な
るため、正しく形状を求めなければならないが、従来の
方式では、全ての多角形に対して同一の形状判定を行な
っているので、四角形に対しては判定が過剰になり、結
果として性能低下を引き起こしている。
The bottleneck in processing polygons is that the shape of the designated polygon is not always convex. In other words, since the method of dividing a polygon into triangles differs depending on the shape of the polygon, it is necessary to obtain the correct shape.However, in the conventional method, the same shape determination is performed for all polygons. As a result, the number of judgments becomes excessive, resulting in performance degradation.

【0020】また、図33に示すように、図形データ展
開部110と図形描画部116とが分けられているシス
テムでは、従来、図形データ展開部110が多角形を三
角形に分割した後、その三角形データを独立した三角形
の集合としてデータを展開し、図形描画部116に処理
させているが、本来、各三角形データは一つの多角形だ
ったものであるので、それぞれの三角形は他の三角形と
一部の頂点を共有している。従って、同じ頂点データ
を、その頂点を共有する三角形数分だけ展開する必要が
生じ、データ量が増大し、処理性能の低下を招く要因と
なっている。
Further, as shown in FIG. 33, in a system in which the graphic data expansion unit 110 and the graphic drawing unit 116 are separated, conventionally, the graphic data expansion unit 110 divides a polygon into triangles, and then the triangles are divided. The data is developed as a set of independent triangles and is processed by the graphic drawing unit 116. However, since each triangle data is originally one polygon, each triangle is equal to another triangle. They share the top of the division. Therefore, it is necessary to expand the same vertex data by the number of triangles sharing the vertex, which increases the amount of data and causes deterioration of processing performance.

【0021】そこで、各頂点毎に、共有する頂点がある
かどうかを示すフラグを付加することにより、頂点デー
タを重複して展開することを回避する手段も提案されて
いるが、その手段では、図形描画部116で三角形を描
画する毎に、他の三角形と共有する頂点があるか、
どの頂点がどの頂点と同じなのかを判断する必要が生
じ、処理性能を十分に引き出すことができなかった。
Therefore, a means for avoiding overlapping expansion of the vertex data by adding a flag indicating whether or not there is a shared vertex for each vertex has been proposed. Each time the graphic drawing unit 116 draws a triangle, whether there is a vertex shared with another triangle,
It was necessary to determine which vertex was the same as which vertex, and processing performance could not be fully brought out.

【0022】本発明はこのような課題に鑑み創案された
もので、三角形の各頂点データが直線になる場合も、ソ
ート段階で分類できるようにして、形状に応じた高速処
理を可能にし図形描画性能の向上をはかるとともに、四
角形の処理をそれ以上の多角形の処理と分離できるよう
にして、実運用上での描画処理性能の向上をはかった、
図形処理方法を提供することを目的とする。
The present invention was devised in view of such a problem. Even when each vertex data of a triangle is a straight line, it is possible to classify the data at the sorting stage, thereby enabling high-speed processing according to the shape and drawing a graphic. In addition to improving the performance, the processing of the quadrangle can be separated from the processing of the polygon more than that, and the drawing processing performance in the actual operation was improved.
An object is to provide a graphic processing method.

【0023】[0023]

【課題を解決するための手段】図1は第1の発明の原理
ブロック図で、この図1において、2は各三角形の頂点
データに基づいて各三角形を描画する描画手段で、この
描画手段2は、三角形の各頂点データに基づいて三角形
を描画するもので、直線,右長辺三角形,左長辺三角形
それぞれに応じた描画処理を行なう直線描画手段2A,
右長辺三角形描画手段2Bおよび左長辺三角形描画手段
2Cを有している。
FIG. 1 is a block diagram of the principle of the first invention. In FIG. 1, reference numeral 2 is a drawing means for drawing each triangle based on vertex data of each triangle. Is for drawing a triangle based on each vertex data of the triangle, and a straight line drawing means 2A for performing drawing processing according to each of a straight line, a right long side triangle and a left long side triangle.
It has a right long side triangle drawing means 2B and a left long side triangle drawing means 2C.

【0024】また、5は三角形の所定頂点について隣接
する二辺の外積を算出する外積演算手段、6は三角形の
3つの頂点データの所定座標についての大小関係を求め
て3つの頂点データのソート順を決定するソート手段で
ある。なお、ソート手段6において大小関係を求める際
には、外積演算手段5において外積を算出するために求
めた、三角形の各頂点データの所定座標についての差分
値を用いる。
Further, 5 is an outer product calculating means for calculating an outer product of two adjacent sides of a predetermined vertex of the triangle, and 6 is a sort order of the three vertex data by obtaining a magnitude relationship of predetermined coordinates of the three vertex data of the triangle. Is a sort means for determining. When the magnitude relationship is obtained by the sorting means 6, the difference value about the predetermined coordinate of each vertex data of the triangle, which is obtained by the outer product calculating means 5 to calculate the outer product, is used.

【0025】9は描画処理対象の三角形の頂点データを
描画手段2における直線描画手段2A,右長辺三角形描
画手段2B,左長辺三角形描画手段2Cのいずれかに振
り分け形状判定結果に応じた三角形の描画処理を実行さ
せる振分手段である。10はソート手段6からの大小関
係および外積演算手段5からの外積の値により設定され
るコードと三角形の形状(直線,右長辺三角形,左長辺
三角形)に応じた三角形の描画手段2における直線描画
手段2A,右長辺三角形描画手段2B,左長辺三角形描
画手段2Cとの関係を与えるジャンプテーブルで、前記
コードに基づいてジャンプテーブル10を参照すること
により、振分手段9は、描画対象三角形を直線描画手段
2A,右長辺三角形描画手段2B,左長辺三角形描画手
段2Cのいずれかに振り分けて、描画手段2(2A,2
B,2C)に描画対象三角形の描画処理を実行させる。
Reference numeral 9 is a triangle corresponding to the shape determination result, in which the vertex data of the triangle to be drawn is distributed to any of the straight line drawing means 2A, the right long side triangle drawing means 2B and the left long side triangle drawing means 2C in the drawing means 2. Is a distribution unit that executes the drawing process of. Reference numeral 10 is in the triangle drawing means 2 according to the code set by the magnitude relation from the sorting means 6 and the value of the outer product from the outer product calculating means 5 and the shape of the triangle (straight line, right long side triangle, left long side triangle). In the jump table that gives the relationship between the straight line drawing means 2A, the right long side triangle drawing means 2B, and the left long side triangle drawing means 2C, by referring to the jump table 10 based on the above code, the distribution means 9 draws. The target triangle is distributed to any of the straight line drawing means 2A, the right long side triangle drawing means 2B, and the left long side triangle drawing means 2C, and the drawing means 2 (2A, 2).
B, 2C) to execute the drawing process of the drawing target triangle.

【0026】なお、ここで描画処理対象となる三角形
は、多角形を分割して得られたものでもよいし、四辺形
メッシュを分割して得られたものでもよいし、三角形ス
トリップを分割して得られたものでもよい。上述した第
1の発明の図形処理方法では、三角形の各頂点データに
基づいて三角形を描画する際に、その三角形の描画処理
前に、外積演算手段5により、三角形の所定頂点につい
て隣接する二辺の外積を三角形の各頂点データに基づい
て算出した後、所定座標ソート手段6により、外積を算
出するために外積演算手段5にて求めた、三角形の各頂
点データの所定座標についての差分値を用い、三角形の
各頂点データの所定座標についての大小関係(ソート
順)を求める。
The triangle to be rendered here may be one obtained by dividing a polygon, one obtained by dividing a quadrilateral mesh, or one obtained by dividing a triangle strip. It may be obtained. In the graphic processing method of the first invention described above, when a triangle is drawn on the basis of each vertex data of the triangle, the outer product calculation means 5 is used to draw two sides adjacent to the predetermined vertex of the triangle before the drawing process of the triangle. After calculating the outer product of each of the triangles based on the vertex data of the triangle, the predetermined coordinate sorting unit 6 calculates the outer product to calculate the outer product, and obtains the difference value for each predetermined coordinate of the vertex data of the triangle. Then, the size relationship (sort order) with respect to the predetermined coordinates of each vertex data of the triangle is obtained.

【0027】ソート手段6からの大小関係および外積演
算手段5からの外積の値により三角形の形状に対応した
コードを設定するとともに、そのコードと三角形の描画
処理との関係を与えるジャンプテーブル10を予め作成
しておくことにより、コードに基づいてジャンプテーブ
ル10を参照するだけで、振分手段9は、三角形頂点デ
ータを描画手段2における直線描画手段2A,右長辺三
角形描画手段2B,左長辺三角形描画手段2Cのいずれ
かに振り分け、形状判定結果に応じた三角形の描画処理
を実行させることができる。これにより、三角形の各頂
点データが直線になる場合も、ソート段階で分類でき
る。なお、多角形,四辺形メッシュ,三角形ストリップ
を分割して得られた三角形を上述した第3の発明に適用
することで、多角形,四辺形メッシュ,三角形ストリッ
プの描画を行なうこともできる。
A code corresponding to the shape of the triangle is set according to the magnitude relation from the sorting means 6 and the value of the outer product from the outer product calculating means 5, and the jump table 10 giving the relation between the code and the triangle drawing processing is set in advance. By creating, the allocating means 9 only needs to refer to the jump table 10 based on the code, and the allocating means 9 draws the triangle vertex data from the linear drawing means 2A, right long side triangle drawing means 2B, left long side in the drawing means 2. It can be distributed to any of the triangle drawing means 2C, and the triangle drawing processing can be executed according to the shape determination result. As a result, even if each vertex data of the triangle becomes a straight line, it can be classified in the sorting stage. It is also possible to draw a polygon, a quadrilateral mesh, or a triangle strip by applying the triangle obtained by dividing the polygon, the quadrilateral mesh, or the triangle strip to the third invention described above.

【0028】図2は第2の発明の原理ブロック図で、こ
の図2において、2は前述と同様の描画手段、11は描
画処理すべき該多角形が四角形であるか否かを判定する
四角形判定手段、12は四角形の各頂点で隣接する二辺
の外積を算出する外積演算手段、15はその四角形に対
応したデータ展開処理を行なって描画手段2へ転送する
データ展開処理手段である。
FIG. 2 is a block diagram of the principle of the second invention. In FIG. 2, 2 is a drawing means similar to the above, 11 is a quadrangle for judging whether or not the polygon to be drawn is a quadrangle. Determining means, 12 is an outer product calculating means for calculating an outer product of two sides adjacent to each other at each vertex of the quadrangle, and 15 is a data developing processing means for performing a data developing process corresponding to the quadrangle and transferring the data to the drawing means 2.

【0029】また、16は四角形の各頂点における隣接
する二辺の外積の符号と当該四角形の形状に応じた当該
四角形の頂点データ選択順序との関係を与えるジャンプ
テーブルで、このようなジャンプテーブル16を予め作
成しておき、データ展開処理手段15によりデータ展開
処理を行なう際に、データ展開処理手段15は、外積演
算手段12からの四角形の各頂点における外積の符号に
基づいてジャンプテーブル16を参照することにより、
その四角形の形状に応じた頂点データ選択順序を決定
し、決定された頂点データ選択順序に従って四角形の各
頂点データを選択することにより、データ展開処理を行
なう。なお、データ展開処理手段15においては、四角
形を2つの三角形からなる三角形ストリップとしてデー
タ展開することにより、データ展開処理を行なってもよ
い。
Reference numeral 16 is a jump table which gives a relation between the sign of the outer product of two adjacent sides at each vertex of the quadrangle and the vertex data selection order of the quadrangle according to the shape of the quadrangle. When the data expansion processing means 15 performs the data expansion processing in advance, the data expansion processing means 15 refers to the jump table 16 based on the sign of the outer product at each vertex of the quadrangle from the outer product calculation means 12. By doing
Data development processing is performed by determining the vertex data selection order according to the shape of the quadrangle, and selecting each vertex data of the quadrangle according to the determined vertex data selection order. The data expansion processing means 15 may perform the data expansion processing by expanding the data of a quadrangle as a triangle strip composed of two triangles.

【0030】上述した第2の発明の図形処理方法では、
多角形の各頂点データに基づいて多角形を描画する際
に、まず、四角形判定手段11により描画処理すべき多
角形が四角形であるか否かを判定し、多角形が四角形で
あると判定された場合には、その多角形に対して、四角
形に対応したデータ展開処理をデータ展開処理手段15
により施してから、このデータ展開処理により得られた
各頂点データに基づいて、描画手段2による多角形の描
画が行なわれる。これにより、四角形の処理をそれ以上
の多角形の処理と分離することができる。
In the graphic processing method of the second invention described above,
When drawing a polygon based on each vertex data of the polygon, first, the quadrangle determining unit 11 determines whether the polygon to be drawn is a quadrangle, and the polygon is determined to be a quadrangle. In the case of the polygon, the data expansion processing unit 15 executes the data expansion processing corresponding to the quadrangle for the polygon.
Then, the drawing means 2 draws a polygon based on each vertex data obtained by this data expansion processing. This allows quadrilateral processing to be separated from further polygon processing.

【0031】データ展開処理手段15によりデータ展開
処理を行なう際、外積演算手段12により四角形の各頂
点で隣接する二辺の外積を算出する。このとき、四角形
の各頂点における隣接する二辺の外積の符号と当該四角
形の形状に応じた当該四角形の頂点データ選択順序との
関係を与えるジャンプテーブル16を予め作成しておく
ことにより、外積演算手段12からの外積の符号に基づ
いてジャンプテーブル16を参照するだけで、四角形の
形状に応じた四角形の頂点データ選択順序を決定して、
データ展開処理手段15によるデータ展開処理を行なわ
せることができる。また、データ展開処理手段15によ
りデータ展開処理を行なう際、四角形を2つの三角形か
らなる三角形ストリップとしてデータ展開することによ
り、データ展開処理手段15から描画手段2への転送デ
ータ量を減少させることができる。
When the data expansion processing means 15 performs the data expansion processing, the outer product calculation means 12 calculates the outer product of two sides adjacent to each other at each vertex of the quadrangle. At this time, the jump table 16 that gives the relationship between the sign of the outer product of two adjacent sides at each vertex of the quadrangle and the vertex data selection order of the quadrangle according to the shape of the quadrangle is created in advance to calculate the outer product. Only by referring to the jump table 16 based on the sign of the cross product from the means 12, the order of selecting the vertex data of the quadrangle according to the shape of the quadrangle is determined,
Data expansion processing can be performed by the data expansion processing means 15. Further, when performing the data expansion processing by the data expansion processing means 15, by expanding the data as a triangle strip consisting of two triangles, the amount of data transferred from the data expansion processing means 15 to the drawing means 2 can be reduced. it can.

【0032】図3は第3および第4の発明の原理ブロッ
ク図で、この図3において、2は前述と同様の描画手段
であるが、ここで、描画手段2は、複数の四辺形が連続
してなる四辺形メッシュを各四辺形の頂点データに基づ
いて描画するものである。また、17は四辺形メッシュ
の頂点データを後述する一定順序データ展開処理手段1
8または形状認識データ展開処理手段19のいずれか一
方に切り換えて出力する切換手段であり、一定順序デー
タ展開処理手段18は、各四辺形の頂点データを一定の
順序で選択することにより四辺形メッシュをデータ展開
する一定順序データ展開処理を実行するものであり、形
状認識データ展開処理手段19は、各四辺形の形状に応
じた順序で各四辺形の頂点データを選択することにより
四辺形メッシュをデータ展開する形状認識データ展開処
理を実行するものである。
FIG. 3 is a block diagram of the principle of the third and fourth inventions. In FIG. 3, 2 is a drawing means similar to that described above, but in the drawing means 2, a plurality of quadrilaterals are continuous. The resulting quadrilateral mesh is drawn based on the vertex data of each quadrilateral. Further, 17 is a fixed order data expansion processing means 1 which will be described later for the vertex data of the quadrilateral mesh.
8 or shape recognition data expansion processing means 19 is a switching means for switching and outputting to either one, and the fixed order data expansion processing means 18 selects the vertex data of each quadrilateral in a fixed order to form a quadrilateral mesh. The shape recognition data expansion processing means 19 selects the vertex data of each quadrangle in the order corresponding to the shape of each quadrangle, thereby forming the quadrilateral mesh. The shape recognition data expansion processing for expanding the data is executed.

【0033】これらの一定順序データ展開処理手段18
および形状認識データ展開処理手段19は、各四辺形を
三角形ストリップとしてデータ展開することにより、デ
ータ展開処理を行なうものである。特に、形状認識デー
タ展開処理手段19においては、各四辺形を三角形スト
リップとしてデータ展開すべく、各四辺形についての4
つの頂点データから3つの頂点データを選択するための
頂点データ選択順序として、これら4つの頂点データか
ら3つの頂点データを異なる組み合わせで選択しうる2
種類のものが予め設定されている。また、現在の頂点デ
ータ選択順序の種類と、四辺形の各頂点における隣接す
る二辺の外積の符号と、当該現在の頂点データ選択順序
および当該四辺形の形状に応じた当該四辺形の頂点デー
タ選択順序との関係を与えるジャンプテーブル24が予
め作成されている。
These fixed order data expansion processing means 18
The shape recognition data expansion processing means 19 executes data expansion processing by expanding each quadrilateral as a triangle strip. In particular, in the shape recognition data expansion processing means 19, in order to expand each quadrilateral as a triangular strip, the data for each quadrilateral is divided into four.
As the vertex data selection order for selecting three vertex data from one vertex data, three vertex data can be selected from these four vertex data in different combinations.
The types are preset. Also, the type of the current vertex data selection order, the sign of the outer product of two adjacent sides of each vertex of the quadrangle, the current vertex data selection order, and the vertex data of the quadrangle according to the shape of the quadrangle. A jump table 24 that gives a relationship with the selection order is created in advance.

【0034】また、形状認識データ展開処理手段19
は、上述したジャンプテーブル24のほかに外積演算手
段20およびデータ展開処理手段23を有している。そ
して、形状認識データ展開処理手段19では、外積演算
手段20が、次の四辺形の各頂点で隣接する二辺の外積
を算出し、算出された次の四角形の各頂点における外積
の符号と現在の頂点データ選択順序とに基づいてジャン
プテーブル24を参照することにより、データ展開処理
手段23が、次の四辺形についての頂点データ選択順序
として前記2種類の頂点データ選択順序のうちの一方を
選択し、選択された頂点データ選択順序で各四辺形の頂
点データを選択することにより四辺形メッシュを連続す
る三角形ストリップとしてデータ展開する形状認識デー
タ展開処理を行なって、その展開結果を描画手段2へ転
送するものである。
Further, shape recognition data expansion processing means 19
In addition to the jump table 24 described above, has an outer product calculation means 20 and a data expansion processing means 23. Then, in the shape recognition data expansion processing means 19, the outer product calculating means 20 calculates the outer product of the two adjacent sides of each vertex of the next quadrangle, and calculates the sign of the outer product at each vertex of the calculated next quadrangle and the current By referring to the jump table 24 based on the vertex data selection order of, the data expansion processing unit 23 selects one of the two types of vertex data selection order as the vertex data selection order for the next quadrangle. Then, the vertex recognition data of each quadrangle is selected in the selected vertex data selection order to perform shape recognition data rasterization processing for rasterizing the quadrilateral mesh as a continuous triangle strip, and the rasterization result is sent to the drawing means 2. It is to be transferred.

【0035】なお、切換手段17により、一定順序デー
タ展開処理手段18または形状認識データ展開処理手段
19のいずれか一方によるデータ展開処理が選択され、
四辺形メッシュに対するデータ展開処理が行なわれてか
ら、その展開結果が描画手段2へ転送され、この描画手
段2において、そのデータ展開処理により得られた各頂
点データに基づいて四辺形メッシュが描画される。
The switching means 17 selects the data development processing by either the fixed order data development processing means 18 or the shape recognition data development processing means 19,
After the data expansion processing for the quadrilateral mesh is performed, the expansion result is transferred to the drawing means 2, and the drawing means 2 draws the quadrilateral mesh based on each vertex data obtained by the data expansion processing. It

【0036】[0036]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を説明する。 (a)第1実施形態の説明 図4は本発明の第1実施形態としての図形処理方法を適
用されたシステムの構成例を示すブロック図である。こ
の第1実施形態では、三角形の各頂点データに基づいて
三角形を描画する方法について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. (A) Description of First Embodiment FIG. 4 is a block diagram showing a configuration example of a system to which the graphic processing method according to the first embodiment of the present invention is applied. In the first embodiment, a method of drawing a triangle based on each vertex data of the triangle will be described.

【0037】図4において、50は描画処理を施すべき
三角形の頂点データ等の図形データを格納する図形デー
タ格納領域(メモリ)、59は三角形の各頂点データに
基づいて三角形を描画する三角形描画部で、この三角形
描画部59は、直線,右長辺三角形,左長辺三角形それ
ぞれに応じた描画処理を行なう直線描画手段59A,右
長辺三角形描画手段59Bおよび左長辺三角形描画手段
59Cを有している。
In FIG. 4, 50 is a graphic data storage area (memory) for storing graphic data such as vertex data of a triangle to be drawn, and 59 is a triangle drawing section for drawing a triangle based on each vertex data of the triangle. The triangle drawing section 59 has a straight line drawing means 59A, a right long side triangle drawing means 59B, and a left long side triangle drawing means 59C for performing drawing processing according to the straight line, the right long side triangle and the left long side triangle, respectively. is doing.

【0038】また、51は描画処理を施すべき三角形の
形状を判定しその形状において振分(ディスパッチ)処
理を行なう形状判定処理部で、この形状判定処理部51
は、形状判定前処理部52,3頂点y値ソーティング部
53,外積比較部54および三角形描画ディスパッチ処
理部55を有している。ここで、形状判定前処理部52
は、三角形の第1頂点(所定頂点)について隣接する二
辺の外積を算出する機能を有するものである。例えば三
角形の第1頂点〜第3頂点のx,y,z座標を、図4の
図形データ格納領域50に示すように、それぞれ、(x
1,y1,z1),(x2,y2,z2),(x3,y3,z3)とした
場合、この形状判定前処理部52における外積演算は、
まず、下式(1),(2)により外積の要素を演算し
て、一旦、形状判定前処理部52のレジスタに格納して
から、下式(3)により第1頂点についての外積Gを算
出している。
Reference numeral 51 denotes a shape determination processing unit that determines the shape of a triangle to be drawn and performs a dispatch process on that shape.
Has a shape determination preprocessing unit 52, a three-vertex y-value sorting unit 53, an outer product comparison unit 54, and a triangle drawing dispatch processing unit 55. Here, the shape determination preprocessing unit 52
Has a function of calculating the outer product of two adjacent sides of the first vertex (predetermined vertex) of the triangle. For example, the x, y, and z coordinates of the first to third vertices of the triangle are respectively (x) as shown in the graphic data storage area 50 of FIG.
1, y1, z1), (x2, y2, z2), (x3, y3, z3), the outer product calculation in the shape determination preprocessing unit 52 is
First, the elements of the outer product are calculated by the following equations (1) and (2) and once stored in the register of the shape determination preprocessing unit 52, and then the outer product G for the first vertex is calculated by the following equation (3). It is calculated.

【0039】 (y1−y2)*(x1−x3) (1) (y1−y3)*(x1−x2) (2) G=(y1−y2)*(x1−x3)−(y1−y3)*(x1−x2) (3) また、3頂点y値ソーティング部53は、図形データ格
納領域50から入力された三角形の3つの頂点データの
y座標y1,y2,y3についての大小関係を求め、その大小
関係に応じた順番に並べ変えてソート順を決定するもの
である。
(Y1-y2) * (x1-x3) (1) (y1-y3) * (x1-x2) (2) G = (y1-y2) * (x1-x3)-(y1-y3) * (X1-x2) (3) Further, the three-vertex y-value sorting unit 53 obtains the magnitude relationship between the y-coordinates y1, y2, y3 of the three vertex data of the triangle input from the graphic data storage area 50, The sorting order is determined by rearranging the sorting order according to the magnitude relation.

【0040】なお、3頂点y値ソーティング部53にお
いて、y座標y1,y2,y3についての大小関係を求める際
には、形状判定前処理部52において(1),(2)式
により外積Gの要素を求める際に計算した差分値(y1−
y2)および(y1−y3)を利用する。このとき、差分値
(y2−y3)については別個算出する。これらの差分値が
0に等しいか0よりも大きいかあるいは0よりも小さい
かを、3頂点y値ソーティング部53にて判断すること
により、y座標y1,y2,y3についての大小関係として、
12種類のソート順(図4の第1作業領域56中を参
照)が求められる。3頂点y値ソーティング部53によ
るソート結果は、第1作業領域56に格納される。
When determining the magnitude relationship of the y-coordinates y1, y2, y3 in the three-vertex y-value sorting unit 53, the shape determination preprocessing unit 52 calculates the outer product G by the equations (1) and (2). Difference value (y1−
y2) and (y1-y3) are used. At this time, the difference value (y2-y3) is calculated separately. By determining in the three-vertex y-value sorting unit 53 whether these difference values are equal to 0, greater than 0, or less than 0, the y-coordinates y1, y2, and y3 have a magnitude relation,
Twelve sort orders (see the first work area 56 in FIG. 4) are obtained. The sorting result by the 3-vertex y-value sorting unit 53 is stored in the first work area 56.

【0041】なお、外積Gを求める前にy座標の比較に
おいてy1=y2=y3となるような場合は明らかに直線であ
るので、そのような三角形の頂点データについては、形
状判定前処理部52による外積演算や3頂点y値ソーテ
ィング部53によるソート処理を行なうことなく、直ち
に三角形描画部59の直線描画部59Aに振り分ける。
このため、y1=y2=y3となるソート結果(図18参照)
は図4の第1作業領域56中に表示していない。
If y1 = y2 = y3 is obtained in the y-coordinate comparison before obtaining the outer product G, it is obviously a straight line. Therefore, the shape determination preprocessing unit 52 is used for the vertex data of such a triangle. It is immediately distributed to the straight line drawing section 59A of the triangle drawing section 59 without performing the outer product calculation by the above and the sort processing by the three-vertex y-value sorting section 53.
Therefore, the sorting result of y1 = y2 = y3 (see FIG. 18)
Is not displayed in the first work area 56 of FIG.

【0042】外積比較部54は、形状判定前処理部52
において前記(1)〜(3)式により算出された外積G
を0と比較し、この外積Gが0に等しいか0よりも大き
いかあるいは0よりも小さいかを判断するものである。
この外積比較部54による比較結果は、第2作業領域5
7へ出力され、第1作業領域56に格納された3頂点y
値ソーティング部53によるソート結果(y座標y1,y
2,y3についての大小関係)と組み合わせることによ
り、図4の第2作業領域56中に示すような36種類の
外積比較結果が求められ、各外積比較結果として、a1,a
2,a3,b1,b2,b3,…,k1,k2,k3,l1,l2,l3が得られる。
The outer product comparing section 54 is a shape determination preprocessing section 52.
The outer product G calculated by the equations (1) to (3) in
Is compared with 0 to determine whether the outer product G is equal to 0, larger than 0, or smaller than 0.
The comparison result by the cross product comparison unit 54 is the second work area 5.
3 vertices y output to 7 and stored in the first work area 56
Sort result by the value sorting unit 53 (y coordinates y1, y
2 and y3), 36 kinds of outer product comparison results as shown in the second work area 56 of FIG. 4 are obtained.
2, a3, b1, b2, b3, ..., k1, k2, k3, l1, l2, l3 are obtained.

【0043】これらの外積比較結果a1,a2,a3, …,l1,l
2,l3 に基づいて、形状判定テーブル58を参照するこ
とにより、三角形の形状、つまり直線であるか右長辺三
角形であるか左長辺三角形であるかを判定できるように
なっている。外積比較結果a1,b1,c1,d1,e1,f1,g1,h1,i
1,j1,k1,l1 の場合、即ち外積Gが零の場合、図6〜図
17の(a)に示すように、三角形の3つの頂点データ
は直線上にあり、三角形の形状は直線であると判定でき
る。
Outer product comparison results a1, a2, a3, ..., L1, l
By referring to the shape determination table 58 on the basis of 2, l3, it is possible to determine the shape of the triangle, that is, whether it is a straight line, a right long side triangle or a left long side triangle. Outer product comparison result a1, b1, c1, d1, e1, f1, g1, h1, i
In the case of 1, j1, k1, l1, that is, when the outer product G is zero, as shown in (a) of FIGS. 6 to 17, the three vertex data of the triangle are on a straight line, and the shape of the triangle is a straight line. It can be determined that there is.

【0044】また、その他の外積比較結果a2〜l2および
a3〜l3の場合、図6〜図17の(b)および(c)に示
すように、外積Gの正負に応じて、三角形の形状は右長
辺三角形もしくは左長辺三角形であると判定できる。こ
のような外積比較結果a1,a2,a3, …,l1,l2,l3 と、三角
形の形状(直線,右長辺三角形,左長辺三角形)との関
係を与えるべく形状判定テーブル58が予め作成されて
いる。
Further, other outer product comparison results a2 to l2 and
In the case of a3 to l3, as shown in (b) and (c) of FIGS. 6 to 17, it can be determined that the shape of the triangle is a right long side triangle or a left long side triangle, depending on whether the outer product G is positive or negative. . The shape determination table 58 is created in advance so as to give the relationship between the outer product comparison results a1, a2, a3, ..., L1, l2, l3 and the shape of the triangle (straight line, right long side triangle, left long side triangle). Has been done.

【0045】三角形描画ディスパッチ処理部55は、形
状判定前処理部52および形状判定テーブル58により
判定された三角形の形状に従い、三角形の頂点データを
その形状に応じた三角形描画部59における各種描画部
59A〜59Cに振分・分岐するものである。上述の構
成により、第1実施形態では、三角形の各頂点データに
基づいて三角形を描画する際に、まず、その各頂点デー
タを図形データ格納領域50に格納する。そして、その
三角形の描画処理前に、補助レジスタAR0,AR1,
AR2を使用して、各頂点データを図形データ格納領域
50から形状判定処理部51に呼び出す。なお、図4
中、図形データ格納領域50中に記載されたオプション
データ1〜3は、任意のデータ(例えば頂点色等)であ
る。
According to the shape of the triangle determined by the shape determination preprocessing unit 52 and the shape determination table 58, the triangle drawing dispatch processing unit 55 converts the vertex data of the triangle into various drawing units 59A in the triangle drawing unit 59 according to the shape. It assigns and branches to ~ 59C. With the above configuration, in the first embodiment, when drawing a triangle based on each vertex data of the triangle, first, each vertex data is stored in the graphic data storage area 50. Then, before drawing processing of the triangle, the auxiliary registers AR0, AR1,
AR2 is used to call each vertex data from the graphic data storage area 50 to the shape determination processing unit 51. Note that FIG.
The option data 1 to 3 described in the graphic data storage area 50 are arbitrary data (for example, vertex color).

【0046】形状判定処理部51の形状判定前処理部5
2において、三角形の第1頂点について隣接する二辺の
外積Gを、前記(1)〜(3)式により算出するととも
に、3頂点y値ソーティング部53において、形状判定
前処理部52にて(1),(2)式により外積Gの要素
を求める際に計算した差分値(y1−y2)および(y1−y
3)と、別個に算出した差分値(y2−y3)とを用いて、
三角形の各頂点のy座標y1,y2,y3についての大小関係
(ソート順)を求める。
Shape determination preprocessing unit 5 of shape determination processing unit 51
2, the outer product G of the two adjacent sides of the first vertex of the triangle is calculated by the equations (1) to (3), and the three-vertex y-value sorting unit 53 uses the shape determination preprocessing unit 52 ( Difference values (y1−y2) and (y1−y) calculated when the elements of the outer product G are calculated by the equations (1) and (2).
3) and the difference value (y2-y3) calculated separately,
Find the magnitude relationship (sort order) for the y-coordinates y1, y2, y3 of each vertex of the triangle.

【0047】そして、形状判定前処理部52により算出
された外積Gを外積比較部54で零と比較し、その比較
結果と、3頂点y値ソーティング部53によるソート結
果とに基づいて、第2作業領域57で外積比較結果を求
め、この外積比較結果により形状判定テーブル58を参
照することで、三角形の形状が直線であるか右長辺三角
形であるかまたは左長辺三角形であるかが判定される。
Then, the outer product G calculated by the shape determination preprocessing unit 52 is compared with zero by the outer product comparing unit 54, and based on the comparison result and the sorting result by the three-vertex y-value sorting unit 53, the second By determining the outer product comparison result in the work area 57 and referring to the shape determination table 58 based on this outer product comparison result, it is determined whether the shape of the triangle is a straight line, a right long side triangle, or a left long side triangle. To be done.

【0048】この形状判定結果を受けて、三角形描画デ
ィスパッチ処理部55により、形状判定された三角形
は、その形状に応じた三角形描画部59における各種描
画部59A〜59Cへ振分・分岐され、三角形の形状に
応じた三角形の描画処理を実行させることができる。こ
のように、第1実施形態によれば、従来のように3頂点
の各々の座標の大小関係を比較してソートを行なう場合
に比べて、三角形の形状が直線,右長辺三角形,左長辺
三角形のいずれかであるかを、三角形描画部59による
描画処理前のソート段階で分類することができるため、
三角形の形状が直線となるものについては、独立した直
線描画処理を実行することができ、描画処理の効率が改
善され、形状に応じた高速描画処理が可能になり、図形
描画性能が大幅に向上する。
In response to the shape determination result, the triangle whose shape is determined by the triangle drawing dispatch processing unit 55 is distributed / branched to various drawing units 59A to 59C in the triangle drawing unit 59 according to the shape, and the triangle is drawn. It is possible to execute a drawing process of a triangle according to the shape of the. As described above, according to the first embodiment, the shape of a triangle is a straight line, a right long side triangle, and a left long side, as compared with the conventional case where the magnitude relation of the coordinates of the three vertices is compared to perform sorting. Since one of the side triangles can be classified at the sorting stage before the drawing processing by the triangle drawing unit 59,
For triangles with straight lines, independent line drawing processing can be executed, the efficiency of drawing processing is improved, high-speed drawing processing according to the shape is possible, and figure drawing performance is greatly improved. To do.

【0049】特に、本実施形態では、前述のような形状
判定テーブル58に代えて、例えば図5に示すようなジ
ャンプテーブル60を設けることが望ましい。このジャ
ンプテーブル60は、3頂点y値ソーティング部53に
よるソート結果と外積比較部54による比較結果とによ
りソートコードを設定し、そのソートコードと、ソート
コードに対応する形状の三角形についての振分先となる
描画部(描画部59A〜59Cのいずれか)との関係を
与えるものである。
In particular, in the present embodiment, it is desirable to provide a jump table 60 as shown in FIG. 5, for example, instead of the shape determination table 58 as described above. In this jump table 60, a sort code is set based on the sorting result by the 3-vertex y-value sorting unit 53 and the comparison result by the outer product comparing unit 54, and the sorting code and the sorting destination for the triangle having a shape corresponding to the sorting code are set. And a drawing unit (one of the drawing units 59A to 59C).

【0050】ソートコードとしては、図5〜図18に示
すように、三角形の形状が直線である場合(つまり外積
G=0の場合)には、“OnLine”が与えられ、三角形の
形状が右長辺三角形である場合には、最後に“R(Righ
t) ”を付された6文字の英数コードが与えられ、三角
形の形状が左長辺三角形である場合には、最後に“L(L
eft)”を付された6文字の英数コードが与えられる。
As the sort code, as shown in FIGS. 5 to 18, when the shape of the triangle is a straight line (that is, when the outer product G = 0), "OnLine" is given and the shape of the triangle is right. If it is a long-sided triangle, then at the end "R (Righ
t) ”is given and the 6-character alphanumeric code is given, and if the shape of the triangle is a left long sided triangle, then“ L (L
The 6-character alphanumeric code with "eft)" is given.

【0051】ここで、三角形の形状が右長辺三角形もし
くは左長辺三角形である場合の、最初の英数5文字は、
例えば、3頂点y値ソーティング部53によるソート結
果がy1<y2<y3である場合、“1L2L3”とし
て与えられ、y3=y1<y2である場合、“3E1L
2”として与えられ、y3>y2=y1である場合、
“3G1E2”として与えられるものである。コード
中、“L”はLittleを、“E”はEqual を、“G”はGr
eat をそれぞれ意味するものである。
Here, when the shape of the triangle is a right long side triangle or a left long side triangle, the first 5 alphanumeric characters are:
For example, when the sorting result by the 3-vertex y-value sorting unit 53 is y1 <y2 <y3, it is given as “1L2L3”, and when y3 = y1 <y2, “3E1L” is given.
Given as 2 "and y3> y2 = y1,
It is given as "3G1E2". In the code, "L" is Little, "E" is Equal, and "G" is Gr.
Each means eat.

【0052】このようなジャンプテーブル60を用い、
三角形描画ディスパッチ処理部55から、3頂点y値ソ
ーティング部53によるソート結果と外積比較部54に
よる比較結果とにより得られるソートコードに基づい
て、ジャンプテーブル60を参照することで、三角形描
画ディスパッチ処理部55は、三角形についての振分描
画部先を直ちに認識することができ、三角形描画ディス
パッチ処理部55による三角形の頂点データの振分処理
をより高速化することができる。
Using such a jump table 60,
The triangle drawing dispatch processing unit 55 refers to the jump table 60 based on the sort code obtained by the sorting result by the three-vertex y-value sorting unit 53 and the comparison result by the cross product comparing unit 54, and thereby the triangle drawing dispatch processing unit 55 can immediately recognize the distribution drawing unit destination for the triangle, and can speed up the distribution process of the triangle vertex data by the triangle drawing dispatch processing unit 55.

【0053】また、上述の実施形態では、単独の三角形
を描画処理する場合に本発明を適用しているが、例え
ば、各種多角形描画方法により多角形から分割された各
三角形や、四辺形メッシュ,三角形ストリップを分割し
て得られた各三角形に対して、上述した第1実施形態の
図形処理方法を適用することで、多角形,四辺形メッシ
ュ,三角形ストリップに対する描画処理も高速化するこ
とができる。
In the above embodiment, the present invention is applied to the case where a single triangle is drawn. However, for example, each triangle divided from a polygon by various polygon drawing methods or a quadrilateral mesh is used. By applying the figure processing method of the first embodiment to each triangle obtained by dividing the triangle strip, the drawing process for the polygon, the quadrilateral mesh, and the triangle strip can be speeded up. it can.

【0054】(b)第2実施形態の説明 図19は本発明の第2実施形態としての図形処理方法を
適用されたシステムの構成例を示すブロック図である。
この第2実施形態では、多角形の各頂点データに基づい
てその多角形を描画する方法について説明する。図19
において、61は各種図形データを保有するホスト(ク
ライアント)、62はホスト61と後述する図形データ
展開部63との間に介設されホスト61からのデータを
一旦格納するホスト・展開部インターフェイス(I/
F)メモリ、63は図形データ展開部で、この図形デー
タ展開部63は、ディスパッチャ64,第1種図形要素
データ展開部65,第i種図形要素データ展開部66,
四辺形メッシュ要素データ展開部67,多角形要素デー
タ展開部68等を有している。
(B) Description of Second Embodiment FIG. 19 is a block diagram showing an example of the configuration of a system to which the graphic processing method according to the second embodiment of the present invention is applied.
In the second embodiment, a method of drawing a polygon based on each vertex data of the polygon will be described. FIG. 19
In 61, 61 is a host (client) that holds various graphic data, and 62 is a host / expansion interface (I) that is provided between the host 61 and a graphic data expansion unit 63 described later to temporarily store the data from the host 61. /
F) Memory, 63 is a graphic data expansion unit, and this graphic data expansion unit 63 includes a dispatcher 64, a first type graphic element data expansion unit 65, an i type graphic element data expansion unit 66,
It has a quadrilateral mesh element data expansion unit 67, a polygon element data expansion unit 68, and the like.

【0055】ディスパッチャ64は、ホスト・展開部イ
ンターフェイスメモリ62に格納されているホスト61
からのデータ展開対象となる要素を、その要素に応じた
展開部65〜68に振り分けるものである。例えば、図
19に示す例では、第1種図形要素は第1種図形要素デ
ータ展開部65に、第i種図形要素は第i種図形要素デ
ータ展開部66に、四辺形メッシュ要素は四辺形メッシ
ュ要素データ展開部67に、多角形要素は多角形要素デ
ータ展開部68に振り分ける。
The dispatcher 64 is the host 61 stored in the host / expansion unit interface memory 62.
The elements to be data-expanded from are distributed to the expansion units 65 to 68 according to the elements. For example, in the example shown in FIG. 19, the first-type graphic element is in the first-type graphic element data expansion unit 65, the i-th type graphic element is in the i-type graphic element data expansion unit 66, and the quadrilateral mesh element is a quadrilateral. The polygon element is distributed to the mesh element data expanding unit 67 and the polygon element data expanding unit 68.

【0056】第1種図形要素データ展開部65,第i種
図形要素データ展開部66,四辺形メッシュ要素データ
展開部67,多角形要素データ展開部68は、それぞ
れ、その要素に応じたデータ展開処理を施すもので、特
に、多角形要素データ展開部68は、頂点数判定処理部
(四角形判定手段)69,四角形専用処理部70および
五角形以上の多角形処理部74を有している。
The first-type graphic element data expansion unit 65, the i-th type graphic element data expansion unit 66, the quadrilateral mesh element data expansion unit 67, and the polygon element data expansion unit 68 respectively expand data corresponding to the elements. In particular, the polygon element data expansion unit 68 has a vertex number determination processing unit (quadrangle determination unit) 69, a quadrangle dedicated processing unit 70, and a pentagonal or higher polygon processing unit 74.

【0057】頂点数判定処理部69は、ディスパッチャ
64からの多角形要素の頂点数を計数し、その数が4で
あるか否かによりディスパッチャ64からの多角形要素
が四角形であるか否かを判定し、四角形であると判定さ
れた場合には、その多角形要素つまり四角形要素を四角
形専用処理部70に振り分ける一方、四角形ではないと
判定された場合には、その四角形要素を五角形以上の多
角形処理部74に振り分ける。
The vertex number determination processing unit 69 counts the number of vertices of the polygon element from the dispatcher 64, and determines whether the polygon element from the dispatcher 64 is a quadrangle or not by checking whether the number is 4. If it is determined to be a quadrangle, the polygonal element, that is, the quadrangle element is distributed to the quadrangle-dedicated processing unit 70. It is distributed to the polygon processing unit 74.

【0058】ここで、五角形以上の多角形処理部74
は、図33に示した従来システムにおける多角形要素デ
ータ展開部と同様に、外積演算部74A,形状判定部7
4Bおよびデータ展開処理部74Cから構成されてお
り、それぞれ図33に示す外積演算部114A,形状判
定部114B,データ展開処理部114Cと同様のもの
であるので、ここではその詳細な説明は省略する。
Here, a polygon processing section 74 for a pentagon or more
Is the outer product calculation unit 74A and the shape determination unit 7 as in the polygon element data expansion unit in the conventional system shown in FIG.
4B and a data expansion processing unit 74C, which are similar to the outer product calculation unit 114A, the shape determination unit 114B, and the data expansion processing unit 114C shown in FIG. 33, respectively, and therefore detailed description thereof will be omitted here. .

【0059】さて、四角形専用処理部70は、外積演算
部71,形状判定部72,データ展開処理部73を有し
ている。外積演算部71は、四角形の各頂点で隣接する
二辺の外積を算出するものであり、形状判定部72は、
外積演算部71により算出された四角形の各頂点におけ
る外積の符号(負であるか非負であるか)に基づいて四
角形の形状を判定する形状判定部で、本実施形態では、
形状判定部73は、予め作成された四角形形状テーブル
77を参照することにより、形状判定を行なっている。
The quadrangle-only processing section 70 has an outer product calculating section 71, a shape determining section 72, and a data expansion processing section 73. The outer product calculation unit 71 calculates the outer product of two sides adjacent to each other at each vertex of the quadrangle, and the shape determination unit 72
A shape determination unit that determines the shape of a quadrangle based on the sign (negative or non-negative) of the outer product at each vertex of the quadrangle calculated by the outer product calculation unit 71.
The shape determination unit 73 makes a shape determination by referring to a rectangular shape table 77 created in advance.

【0060】つまり、四角形の各頂点A〜Dについての
外積の符号(負,非負)の組合せにより、四角形の形状
が一意的に決まることを利用し、外積演算部71からの
四角形の各頂点A〜Dについての外積の符号(負,非
負)の組合せと四角形の形状との関係を与える四角形形
状テーブル77を予め作成しておく。なお、図20に、
各頂点の外積の符号の組合せと、それに対応する実際の
四角形ABCDの形状例(凸型,凹型,交差型等)との
関係(四角形形状テーブル77の例)を示す。
That is, by utilizing the fact that the shape of the quadrangle is uniquely determined by the combination of the signs (negative and non-negative) of the outer products for the respective vertices A to D of the quadrangle, each vertex A of the quadrangle from the outer product computing unit 71 is utilized. A quadrangle shape table 77 that gives the relationship between the combination of the cross product signs (negative, non-negative) for ˜D and the shape of the quadrangle is created in advance. In addition, in FIG.
The relationship (example of the quadrangle shape table 77) between the combination of the signs of the outer products of the vertices and the corresponding shape example of the quadrangle ABCD (convex shape, concave shape, intersecting shape, etc.) is shown.

【0061】データ展開処理部73は、形状判定部72
による形状判定結果に応じてその四角形の形状に対応し
たデータ展開処理を行なって出力するものである。この
とき、四角形ABCDの形状に対応した頂点選択順序
(データ展開処理)の例を、四角形の各頂点A〜Dにつ
いての外積の符号(負,非負)の組合せとの関係で図2
1に示す。具体的には、四角形が凸型もしくは凹型の場
合には、頂点A→頂点B→頂点D→頂点Cの順序、もし
くは、頂点B→頂点A→頂点C→頂点Dの順序で三角形
ストリップデータに展開する一方、四角形が交差型の場
合には、2つの三角形ABEとCDE、もしくは、2つ
の三角形ADEとBCEに展開する(ここでEは交差す
る辺の交点)。
The data expansion processing section 73 has a shape determination section 72.
In accordance with the result of the shape determination by, the data expansion processing corresponding to the quadrangle shape is performed and output. At this time, an example of the vertex selection order (data expansion processing) corresponding to the shape of the quadrangle ABCD is shown in relation to the combination of the signs (negative, non-negative) of the outer products for the vertices A to D of the quadrangle.
Shown in 1. Specifically, when the quadrangle is convex or concave, the triangle strip data is converted in the order of vertex A → vertex B → vertex D → vertex C, or in the order of vertex B → vertex A → vertex C → vertex D. On the other hand, when the quadrangle is expanded, the quadrangle is expanded to two triangles ABE and CDE or two triangles ADE and BCE (E is an intersection of intersecting sides).

【0062】また、75は図形データ展開部63と後述
する図形描画部76との間に介設され図形データ展開部
63からの展開データ(三角形データ等)を一旦格納す
る展開部・描画部インターフェイス(I/F)メモリ
(もしくはFIFO)、76は展開部・描画部インター
フェイスメモリ75に格納されている展開データに基づ
いて多角形要素等の図形要素に対して描画処理を施す図
形描画部(描画手段)である。
Further, reference numeral 75 denotes an expansion / rendering unit interface which is provided between the graphic data expansion unit 63 and a graphic drawing unit 76 described later to temporarily store the expansion data (triangle data etc.) from the graphic data expansion unit 63. An (I / F) memory (or a FIFO) 76 is a drawing unit (drawing unit) that draws a drawing element such as a polygon element based on the expansion data stored in the expansion / drawing unit interface memory 75. Means).

【0063】上述の構成により、第2実施形態では、ホ
スト61は、描画すべき図形要素をホスト・展開部イン
ターフェイスメモリ62に設定し、図形データ展開部6
3を起動する。そして、図形データ展開部63は、ホス
ト・展開部インターフェイスメモリ62から図形要素を
読み出し、図形要素のヘッダを使用して、ディスパッチ
ャ64が、その図形要素を図形データ展開部63内の対
応する要素データ展開部65〜68へ振り分ける。
With the above-mentioned configuration, in the second embodiment, the host 61 sets the graphic element to be drawn in the host / expansion unit interface memory 62, and the graphic data expansion unit 6
Start 3. Then, the graphic data expansion unit 63 reads out the graphic element from the host / expansion unit interface memory 62, and the dispatcher 64 uses the header of the graphic element to send the graphic element to the corresponding element data in the graphic data expansion unit 63. Allot to the developing units 65 to 68.

【0064】各要素データ展開部65〜68は、ホスト
61から送られた図形要素を図形描画部76が処理でき
る形に展開し、展開部・描画部インターフェイスメモリ
(もしくはFIFO)75に設定し、図形描画部76を
起動することで、図形要素を絵として描画し画面に表示
する。なお、システムの立ち上げ時には、ホスト・展開
部インターフェイスメモリ62に、図20,図21で前
述したような四角形形状テーブル77をロードする。こ
の四角形形状テーブル77のエントリは、四角形の4つ
の頂点についての外積の符号ビットの組合せである。
Each of the element data expansion units 65 to 68 expands the graphic element sent from the host 61 into a form that can be processed by the graphic drawing unit 76 and sets it in the expansion unit / drawing unit interface memory (or FIFO) 75. By activating the graphic drawing unit 76, the graphic element is drawn as a picture and displayed on the screen. When the system is started up, the quadrangle table 77 as described above with reference to FIGS. 20 and 21 is loaded into the host / expansion unit interface memory 62. The entry of this quadrangle shape table 77 is a combination of sign bits of the outer product for the four vertices of the quadrangle.

【0065】本実施形態では、多角形要素データ展開部
68に、四角形専用処理部70が追加され、頂点数判定
処理部69により、描画すべき多角形が四角形か否かを
判定し、四角形であると判定された場合には、四角形専
用処理部70によるデータ展開処理を行なう一方、五角
形以上であると判定された場合には、五角形以上の多角
形処理部74により従来と同じ処理によりデータ展開を
行なう。
In this embodiment, a quadrangle-dedicated processing unit 70 is added to the polygon element data expansion unit 68, and the vertex number determination processing unit 69 determines whether or not the polygon to be drawn is a quadrangle. If it is determined that the data is processed by the quadrangle-dedicated processing unit 70, if it is determined that it is a pentagon or more, the polygon processing unit 74 for a pentagon or more is used to perform data expansion by the same process as the conventional one. Do.

【0066】四角形専用処理部70では、外積演算部7
1により、四角形ABCDの頂点Aから順に外積を求
め、形状判定部72により、その組合せに基づいて図2
0に示す四角形形状テーブル77を参照することで、四
角形の形状を判定する。そして、判定された四角形の形
状に応じた頂点選択順序で、データ展開処理部73によ
り四角形の頂点データを展開し、展開部・描画部インタ
ーフェイスメモリ75を介して図形描画部76へ転送す
る。
In the quadrangle-only processing section 70, the outer product calculating section 7
1, the outer product is obtained in order from the vertex A of the quadrangle ABCD, and the shape determination unit 72 determines the outer product based on the combination.
The quadrangle shape is determined by referring to the quadrangle shape table 77 shown in FIG. Then, the data expansion processing unit 73 expands the quadrangle vertex data in the vertex selection order corresponding to the determined shape of the quadrangle, and transfers it to the graphic drawing unit 76 via the expansion / drawing unit interface memory 75.

【0067】本実施形態では、データ展開処理部73に
より四角形のデータ展開を行なう際には、四角形が交差
型である場合(図20の“非負−非負−負−負”や“非
負−負−負−非負”の場合等)を除き、三角形に分割し
た多角形は、図形描画部76に対して独立した三角形の
集合ではなく、三角形ストリップの形にデータ展開す
る。
In the present embodiment, when the quadrangular data is expanded by the data expansion processing unit 73, when the quadrangle is a cross type (“non-negative-non-negative-negative-negative” or “non-negative-negative-in FIG. 20). Except for the case of "negative-non-negative"), the polygon divided into triangles is not a set of triangles independent to the graphic drawing unit 76, but data is expanded into the shape of a triangle strip.

【0068】ここで、図22に示すような四角形ABC
Dを、独立した2つの三角形ABDとBDCとに分割し
てデータ展開した例を図23に示し、図22に示すよう
な四角形ABCDを、三角形ストリップの形にデータ展
開した例を図24に示す。図23に示すように、独立し
た2つの三角形ABDとBDCとに分割すると、2つの
三角形が共有する頂点B,Dを2度展開する必要がある
が、三角形ストリップの形にデータ展開すると、図24
に示すように、重複するデータはない。
Here, a square ABC as shown in FIG.
FIG. 23 shows an example in which D is divided into two independent triangles ABD and BDC to expand the data, and FIG. 24 shows an example in which a quadrangle ABCD as shown in FIG. 22 is expanded into a triangular strip. . As shown in FIG. 23, when dividing into two independent triangles ABD and BDC, it is necessary to expand twice the vertices B and D shared by the two triangles. 24
There is no duplicate data, as shown in.

【0069】従って、四角形が交差型でなければ、四角
形を三角形ストリップの形にデータ展開することで、図
形描画部76への転送データ量を少なくすることがで
き、処理性能を大幅に向上することができる。なお、図
21には、各頂点の外積の符号の組合せと、三角形スト
リップの形に四角形の頂点を展開するための頂点選択順
序を示す。
Therefore, if the quadrangle is not an intersecting type, the amount of data transferred to the graphic drawing unit 76 can be reduced by expanding the quadrangle into the shape of a triangular strip, and the processing performance can be greatly improved. You can Note that FIG. 21 shows a combination of signs of outer products of respective vertices and a vertex selection order for expanding the vertices of a quadrangle in the shape of a triangular strip.

【0070】また、図24に示すように、図形描画部7
6に対しては、展開したデータの最初に、続くデータを
三角形ストリップとして処理することを指定するヘッダ
を付加するとともに、データの終りにターミネータを付
加する。独立した三角形として処理する場合は、図23
に示すように、続くデータを独立する三角形の集合とし
て処理することを指定するヘッダを付加するとともに、
データの終りを示すターミネータを付加する。これによ
り、図形描画部76において、従来のごとく、三角形を
描画する毎に、他の三角形と共有する頂点があるか、
どの頂点がどの頂点と同じなのかを判断する必要がな
くなる。
Further, as shown in FIG. 24, the graphic drawing unit 7
For No. 6, a header designating that the following data is processed as a triangle strip is added to the beginning of the expanded data, and a terminator is added to the end of the data. When processing as an independent triangle, FIG.
As shown in, with the addition of a header that specifies that the following data should be treated as a set of independent triangles,
Add a terminator to indicate the end of data. As a result, in the graphic drawing unit 76, every time a triangle is drawn, as in the conventional case, is there a vertex shared with another triangle?
There is no need to determine which vertex is the same as which vertex.

【0071】ところで、本実施形態では、四角形形状テ
ーブル77を、図21に示すように、四角形ABCDの
各頂点A〜Dにおける外積の符号の組合せとその四角形
の形状に応じた頂点選択順序との関係を与えるジャンプ
テーブルとして設定することにより、外積演算部71か
らの各頂点の外積の符号の組合せに基づき四角形形状テ
ーブル77を参照することで、従来の形状判定処理が不
要になり、外積計算から直ちにデータ展開処理部73に
よる三角形ストリップまたは独立した2つの三角形の集
合の形へのデータ展開に移行することができる。そし
て、四角形形状テーブル77それぞれのエントリに対し
て、図21に示すような頂点選択順序で頂点を選択し、
データを展開すれば、多角形が交差型である場合を除い
て、四角形を三角形ストリップとして処理させることが
できる。
By the way, in the present embodiment, as shown in FIG. 21, the quadrangle shape table 77 is composed of a combination of signs of cross products of the vertices A to D of the quadrangle ABCD and a vertex selection order corresponding to the shape of the quadrangle. By setting it as a jump table that gives a relationship, by referring to the quadrangle shape table 77 based on the combination of the signs of the outer products of the vertices from the outer product calculation unit 71, the conventional shape determination processing becomes unnecessary and the outer product calculation Immediately, the data expansion processing unit 73 can proceed to the data expansion into the form of a triangle strip or a set of two independent triangles. Then, for each entry of the rectangular shape table 77, vertices are selected in the vertex selection order as shown in FIG.
Expanding the data allows the quadrilateral to be treated as a triangle strip, except when the polygons are intersecting.

【0072】このように、第2実施形態によれば、多角
形の各頂点データに基づいて多角形を描画する際に、頂
点数判定処理部69により描画処理すべき多角形が四角
形であるか否かを判定する処理を付加し、多角形が四角
形である場合の処理を一般の多角形の処理と分離するこ
とにより、実運用上での描画処理性能を大幅に向上する
ことができる。
As described above, according to the second embodiment, when drawing a polygon based on each vertex data of the polygon, is the polygon to be drawn by the vertex number determination processing unit 69 a quadrangle? By adding a process for determining whether or not the polygon is a quadrangle and separating the process when the polygon is a quadrangle from the process for a general polygon, the drawing process performance in actual operation can be significantly improved.

【0073】また、本実施形態によれば、形状判定部7
2で図20に示す四角形形状テーブル77を参照するこ
とにより、外積演算部71により四角形の各頂点で求め
た外積の符号の組合せから、直ちに四角形の形状を判定
することができる。さらに、四角形形状テーブル77
を、四角形の各頂点の外積符号の組合せから四角形の頂
点選択順序を与えるジャンプテーブル(頂点選択順序別
の頂点データ展開サブルーチンへのジャンプテーブル)
として構成することにより、四角形の形状判定と同時に
三角形への分割処理を行なうことができ、処理性能のさ
らなる向上をはかることができる。
Further, according to the present embodiment, the shape determination unit 7
By referring to the quadrangle shape table 77 shown in FIG. 20 in 2, it is possible to immediately determine the shape of the quadrangle from the combination of the signs of the outer products obtained by the outer product computing unit 71 at each vertex of the quadrangle. Furthermore, the rectangular shape table 77
Is a jump table that gives the vertices selection order of the quadrangle from the combination of outer product codes of the vertices of the quadrangle (jump table to the vertex data expansion subroutine for each vertex selection order)
With the above configuration, it is possible to determine the shape of the quadrangle and perform the division processing into the triangles at the same time, and it is possible to further improve the processing performance.

【0074】また、四角形の形状が交差型でない場合に
は、四角形の分割後の三角形データを、独立した三角形
としてではなく、三角形ストリップとして展開する機能
をデータ展開処理部73にもたせたことにより、前述し
たように、図形描画部76への転送データ量を少なくす
ることができ、処理性能を大幅に向上することができ
る。
Further, when the shape of the quadrangle is not an intersection type, the data expansion processing section 73 is provided with the function of expanding the triangle data after the division of the quadrangle into not the independent triangle but the triangle strip. As described above, the amount of data transferred to the graphic drawing unit 76 can be reduced, and the processing performance can be greatly improved.

【0075】(c)第3実施形態の説明 図25は本発明の第3実施形態としての図形処理装置を
適用されたシステムの構成例を示すブロック図である。
この第3実施形態は、複数の四辺形が連続してなる四辺
形メッシュを各四辺形の頂点データに基づいて描画する
方法に関するもので、この方式を、例えば、第2実施形
態において前述した図19に示すシステムの四辺形メッ
シュ要素データ展開部67に適用した場合について説明
する。従って、図25中、図19の符号と同一の符号は
同一部分を示しているので、その説明は省略する。
(C) Description of Third Embodiment FIG. 25 is a block diagram showing an example of the configuration of a system to which a graphic processing device as a third embodiment of the present invention is applied.
The third embodiment relates to a method for drawing a quadrilateral mesh in which a plurality of quadrilaterals are continuous based on the vertex data of each quadrilateral, and this method is described, for example, in the drawings described in the second embodiment. A case of application to the quadrilateral mesh element data expansion unit 67 of the system shown in FIG. 19 will be described. Therefore, in FIG. 25, the same reference numerals as those in FIG. 19 indicate the same parts, and the description thereof will be omitted.

【0076】図25に示すように、第3実施形態の四辺
形メッシュ要素データ展開部67は、切換部79,一定
順序データ展開処理部80,形状認識データ展開処理部
81を有している。切換部79は、ディスパッチャ64
からの四辺形メッシュ要素を一定順序データ展開処理部
80または形状認識データ展開処理部81のいずれか一
方に切り換えて出力するものである。即ち、本実施形態
では、この切換部79の切換操作により、四辺形メッシ
ュを、一定順序データ展開処理部80によって形状に関
係なく頂点を一定順序で選んで得られる三角形の集合と
して処理するか、形状認識データ展開処理部81によっ
て形状を認識した上で分割した三角形の集合として処理
するかを属性に応じて制御することが可能になってい
る。
As shown in FIG. 25, the quadrilateral mesh element data expansion unit 67 of the third embodiment has a switching unit 79, a fixed order data expansion processing unit 80, and a shape recognition data expansion processing unit 81. The switching unit 79 includes the dispatcher 64.
The quadrilateral mesh element from is switched to either the fixed order data expansion processing unit 80 or the shape recognition data expansion processing unit 81 and is output. That is, in the present embodiment, by the switching operation of the switching unit 79, the quadrilateral mesh is processed as a set of triangles obtained by selecting the vertices in a fixed order regardless of the shape by the fixed order data expansion processing unit 80, or It is possible to control whether the shape is recognized by the shape recognition data expansion processing unit 81 and then processed as a set of divided triangles according to the attribute.

【0077】ここで、一定順序データ展開処理部80
は、各四辺形の形状に関係なく、各四辺形の頂点データ
を一定の順序で選択することにより四辺形メッシュを三
角形ストリップデータに展開するものである。このと
き、順序としては、例えば図27に示すような四辺形メ
ッシュに対して、この四辺形メッシュをm−1組の四辺
形の行と見ることにより、以下のような2通りがある。
Here, the fixed order data expansion processing section 80.
Is to expand the quadrilateral mesh into triangular strip data by selecting the vertex data of each quadrilateral in a fixed order regardless of the shape of each quadrilateral. At this time, for example, for a quadrilateral mesh as shown in FIG. 27, the quadrilateral mesh can be regarded as m−1 sets of quadrilateral rows, and there are the following two ways.

【0078】…→Ai,j →Ai+1,j →Ai,j+1 →Ai+
1,j+1 →Ai,j+2 →Ai+1,j+2 →… …→Ai+1,j →Ai,j →Ai+1,j+1 →Ai,j+1 →Ai+
1,j+2 →Ai,j+2 →… ここでは、を順序1、を順序2と呼ぶ。また、形状
認識データ展開処理部81は、各四辺形をひとつの多角
形(多角形要素として与えられた四角形)として扱い、
その形状通りに描画するための三角形への分割を行なう
もので、各四辺形の形状に応じた順序で各四辺形の頂点
データを選択することにより四辺形メッシュを三角形ス
トリップとしてデータ展開するものである。
… → Ai, j → Ai + 1, j → Ai, j + 1 → Ai +
1, j + 1 → Ai, j + 2 → Ai + 1, j + 2 → ……… → Ai + 1, j → Ai, j → Ai + 1, j + 1 → Ai, j + 1 → Ai +
1, j + 2 → Ai, j + 2 → ... Here, order 1 and order 2 are called. Further, the shape recognition data expansion processing unit 81 treats each quadrangle as one polygon (a quadrangle given as a polygon element),
It divides into triangles to draw according to the shape, and expands the quadrilateral mesh as a triangle strip by selecting the vertex data of each quadrilateral in the order according to the shape of each quadrilateral. is there.

【0079】この形状認識データ展開処理部81は、外
積演算部82,形状判定部83およびデータ展開処理部
84を有しており、外積演算部82,形状判定部83
は、第2実施形態において前述した四角形専用処理部7
0の外積演算部71,形状判定部72と全く同様の機能
を果たすものである。また、第2実施形態における四角
形形状テーブル77に相当するメッシュ四辺形形状テー
ブル85がホスト・展開部インターフェイスメモリ62
に設定されており、形状判定部83は、メッシュ四辺形
形状テーブル85を参照し、外積演算部82からの各四
辺形の頂点の外積符号の組合せに基づいて、展開すべき
次の四辺形の形状判定を行なっている。
The shape recognition data expansion processing section 81 has an outer product calculating section 82, a shape determining section 83 and a data expanding processing section 84, and the outer product calculating section 82 and the shape determining section 83.
Is the quadrangle dedicated processing unit 7 described in the second embodiment.
The outer product calculation unit 71 and the shape determination unit 72 of 0 perform exactly the same functions. Further, the mesh quadrilateral shape table 85 corresponding to the quadrilateral shape table 77 in the second embodiment is a host / expansion unit interface memory 62.
, The shape determination unit 83 refers to the mesh quadrilateral shape table 85, and based on the combination of the outer product codes of the vertices of each quadrilateral from the outer product calculation unit 82, the shape of the next quadrilateral to be expanded. Shape determination is being performed.

【0080】さらに、データ展開処理部84は、形状判
定部83による形状判定結果に応じて次の四辺形に対応
したデータ展開処理を行なうものである。このデータ展
開処理部84においては、各四辺形を三角形ストリップ
としてデータ展開すべく各四辺形についての4つの頂点
データから3つの頂点データを選択するための2種類の
頂点選択順序、つまり、前述した順序1および順序2が
予め設定されている。
Further, the data expansion processing section 84 performs data expansion processing corresponding to the next quadrangle according to the shape determination result by the shape determination section 83. In the data expansion processing unit 84, two types of vertex selection order for selecting three vertex data from the four vertex data of each quadrangle to develop each quadrilateral as a triangle strip, that is, the above-mentioned The order 1 and the order 2 are preset.

【0081】そして、これらの2種類の順序1,2のう
ちの一方を用い各四辺形に対してデータ展開処理を行な
う際に、形状判定部83からのデータ展開すべき次の四
辺形の形状と現在の頂点選択順序とに応じて、現在の頂
点選択順序を2種類の順序1,2のうちの他方に切り換
え、この他方の頂点選択順序を用いて次の四辺形をデー
タ展開することにより、四辺形メッシュを連続する三角
形ストリップとしてデータ展開するようになっている。
Then, when the data expansion processing is performed on each quadrangle using one of these two types of orders 1 and 2, the shape of the next quadrangle to be expanded by the shape determination unit 83. And the current vertex selection order, the current vertex selection order is switched to the other of the two types of orders 1 and 2, and the next quadrilateral is expanded using this other vertex selection order. , The quadrilateral mesh is developed as a continuous triangle strip.

【0082】展開すべき次の四辺形についての具体的な
頂点選択順序を、現在の選択順序と、次の四辺形の各頂
点Ai,j ,Ai+1,j ,Ai+1,j+1 ,Ai,j+1 の外積の符
号の組合せとの関係と併せて、図26に示す。交差型の
四辺形を含まない場合、四辺形の頂点から順序1または
順序2に従って選択を開始し、次の四辺形の形状に応じ
て、頂点を重複して展開することにより、頂点選択順序
を、順序1から順序2へ、もしくは、順序2から順序1
へ切り換え、四辺形メッシュの一つの行を一連の三角形
ストリップとして展開することができる。
The specific vertex selection order for the next quadrilateral to be expanded is the current selection order and the vertices Ai, j, Ai + 1, j, Ai + 1, j + 1 of the next quadrilateral. , Ai, j + 1 are shown in FIG. 26 together with the relationship with the combination of signs of the outer product. If the intersecting quadrilateral is not included, the selection is started from the vertices of the quadrilateral according to the order 1 or the order 2, and the vertices are overlapped according to the shape of the next quadrilateral so that the vertices are selected in order. , Order 1 to order 2, or order 2 to order 1
, And one row of the quadrilateral mesh can be developed as a series of triangular strips.

【0083】例えば、現在の選択順序が順序1であり、
次の四辺形についての外積符号の組合せが“非負−非負
−非負−非負”である場合、四辺形の形状は凸型である
ので、頂点選択順序は順序1のままで、次の四辺形を一
連の三角形ストリップとして展開することができる。ま
た、現在の選択順序が順序1であり、次の四辺形につい
ての外積符号の組合せが“非負−非負−非負−負”もし
くは“非負−負−非負−非負”である場合、四辺形の形
状はそれぞれ図28(a),(c)に示すケース1,3
であるが、この場合も、頂点選択順序は順序1のまま
で、次の四辺形を一連の三角形ストリップとして展開す
ることができる。
For example, the current selection order is order 1,
If the combination of outer product codes for the next quadrilateral is "non-negative-non-negative-non-negative-non-negative", the shape of the quadrilateral is convex, so the vertex selection order remains order 1 and the next quadrilateral is It can be developed as a series of triangular strips. Also, if the current selection order is order 1 and the combination of cross product codes for the next quadrilateral is "non-negative-non-negative-non-negative-" or "non-negative-negative-non-negative-non-negative", the shape of the quadrilateral Are cases 1 and 3 shown in FIGS. 28 (a) and 28 (c), respectively.
However, in this case as well, the vertex selection order remains the order 1 and the next quadrilateral can be expanded as a series of triangle strips.

【0084】これに対して、現在の選択順序が順序1で
あり、次の四辺形についての外積符号の組合せが“非負
−非負−負−非負”もしくは“非負−負−負−負”であ
る場合、四辺形の形状はそれぞれ図28(b),(d)
に示すケース2,4で、この場合、順序1のままで展開
を続けると三角形ストリップとしての展開を行なえなく
なるため、頂点Ai,j を重複して展開することにより、
頂点選択順序を順序1から順序2に切り換え、次の四辺
形を一連の三角形ストリップとして展開する。
On the other hand, the current selection order is the order 1, and the combination of outer product codes for the next quadrilateral is "non-negative-non-negative-negative-non-negative" or "non-negative-negative-negative-negative". In this case, the shapes of the quadrangle are shown in FIGS. 28 (b) and (d), respectively.
In cases 2 and 4 shown in, in this case, if the expansion is continued in the order 1, the expansion as a triangle strip cannot be performed. Therefore, by expanding the vertices Ai, j in duplicate,
Switch the vertex selection order from order 1 to order 2 and develop the next quadrilateral as a series of triangle strips.

【0085】同様に、現在の選択順序が順序2であり、
次の四辺形についての外積符号の組合せが“非負−非負
−非負−非負”である場合、四辺形の形状は凸型である
ので、頂点選択順序は順序2のままで、次の四辺形を一
連の三角形ストリップとして展開する。また、現在の選
択順序が順序2であり、次の四辺形についての外積符号
の組合せが“非負−非負−非負−負”もしくは“非負−
負−非負−非負”である場合、四辺形の形状はそれぞれ
図28(a),(c)に示すケース1,3であるが、こ
の場合、順序2のままで展開を続けると三角形ストリッ
プとしての展開を行なえなくなるため、頂点Ai+1,j を
重複して展開することにより、頂点選択順序を順序2か
ら順序1に切り換え、次の四辺形を一連の三角形ストリ
ップとして展開する。
Similarly, the current selection order is order 2,
If the combination of outer product codes for the next quadrilateral is "non-negative-non-negative-non-negative-non-negative", the shape of the quadrilateral is convex, so the vertex selection order remains Order 2 and the next quadrilateral is Deploy as a series of triangular strips. Further, the current selection order is the order 2, and the combination of outer product codes for the next quadrangle is “non-negative-non-negative-non-negative-negative” or “non-negative-
In the case of “negative-non-negative-non-negative”, the shapes of the quadrilateral are cases 1 and 3 shown in FIGS. 28 (a) and 28 (c), respectively. Therefore, the vertex selection order is switched from the order 2 to the order 1 by redundantly expanding the vertices Ai + 1, j, and the next quadrilateral is expanded as a series of triangular strips.

【0086】また、現在の選択順序が順序2であり、次
の四辺形についての外積符号の組合せが“非負−非負−
負−非負”もしくは“非負−負−負−負”である場合、
四辺形の形状はそれぞれ図28(b),(d)に示すケ
ース2,4で、この場合、頂点選択順序は順序2のまま
で、次の四辺形を一連の三角形ストリップとして展開す
ることができる。
Further, the current selection order is the order 2, and the combination of outer product codes for the next quadrangle is "non-negative-non-negative-
If "negative-nonnegative" or "nonnegative-negative-negative-negative",
The shapes of the quadrilaterals are cases 2 and 4 shown in FIGS. 28B and 28D, respectively. In this case, the vertex selection order remains the order 2, and the next quadrilateral can be expanded as a series of triangular strips. it can.

【0087】一方、次の四辺形が交差型で、頂点Ai,j+
1 とAi+1,j+1 が同じ側にある場合〔図29(b),
(d)に示すケース2,4;特にケース2は外積符号の
組合せが“非負−負−負−非負”の場合〕、辺Ai,j A
i,j+1 と辺Ai+1,j Ai+1,j+1との交点Bを求め、この
交点Bをはさんで、別の三角形ストリップとして展開す
る。
On the other hand, the following quadrilateral is a cross type and has vertices Ai, j +
When 1 and Ai + 1, j + 1 are on the same side [FIG. 29 (b),
Cases 2 and 4 shown in (d); especially case 2 is a case where the combination of outer product codes is "non-negative-negative-negative-non-negative"], side Ai, j A
An intersection B between the i, j + 1 and the side Ai + 1, j Ai + 1, j + 1 is obtained, and this intersection B is sandwiched to develop another triangle strip.

【0088】また、次の四辺形が交差型で、頂点Ai,j+
1 とAi+1,j+1 が対角側にある場合〔図29(a),
(c)に示すケース1,3;特にケース1は外積符号の
組合せが“非負−非負−負−負”の場合〕、辺Ai,j A
i+1,j と辺Ai,j+1 Ai+1,j+1との交点Bを求め、Ai,j
Ai+1,j 以前をひとつの三角形ストリップ、三角形A
i,j Ai,j+1 Bと三角形Ai+1,j Ai+1,j+1 Bとをそれ
ぞれ独立した三角形、三角形Ai+1,j Ai+1,j+1 Bを別
の三角形ストリップとして展開する。
Further, the following quadrilateral is a cross type, and the vertex Ai, j +
When 1 and Ai + 1, j + 1 are on the diagonal side [Fig. 29 (a),
Cases 1 and 3 shown in (c); particularly Case 1 is a case where the combination of outer product codes is “non-negative-non-negative-negative-negative”], side Ai, j A
Find the intersection B of i + 1, j and side Ai, j + 1 Ai + 1, j + 1, and calculate Ai, j
Before Ai + 1, j one triangle strip, triangle A
i, j Ai, j + 1 B and triangle Ai + 1, j Ai + 1, j + 1 B are independent triangles, and triangle Ai + 1, j Ai + 1, j + 1 B is another triangle strip. To deploy as.

【0089】特に、第3実施形態では、メッシュ四辺形
形状テーブル85を、図26に示すように、現在の頂点
選択順序および次の四辺形についての外積符号の組合せ
と、現在の頂点選択順序および次の四角形の形状に応じ
た頂点選択順序との関係を与えるジャンプテーブルとし
て設定することにより、外積演算部82からの各頂点の
外積の符号の組合せに基づきメッシュ四辺形形状テーブ
ル85を参照することで、外積計算から直ちにデータ展
開処理部81による凸型,凹型,交差型の四辺形に対応
したデータ展開に移行することができる。
In particular, in the third embodiment, as shown in FIG. 26, the mesh quadrilateral shape table 85 is configured so that the combination of the current vertex selection order and the outer product code for the next quadrilateral, the current vertex selection order, and By referring to the mesh quadrangle shape table 85 based on the combination of the signs of the outer products of the respective vertices from the outer product computing unit 82, by setting it as a jump table that gives a relationship with the vertex selection order according to the shape of the next quadrangle. Then, it is possible to immediately shift from the outer product calculation to the data expansion corresponding to the convex, concave, or intersecting quadrilateral by the data expansion processing unit 81.

【0090】上述の構成により、第3実施形態では、複
数の四辺形が連続してなる四辺形メッシュを各四辺形の
頂点データに基づいて描画する際に、切換部79によ
り、四辺形メッシュの頂点データを一定順序データ展開
処理部80または形状認識データ展開処理部81のいず
れか一方に切り換えて出力することができる。四辺形メ
ッシュにおいて、全ての四辺形が凸型であれば、一定順
序データ展開処理部80,形状認識データ展開処理部8
1のいずれによってデータ展開を行なっても、図形描画
部76により描画される四辺形メッシュは同じものとな
るが、途中の非凸型の四辺形が入った場合(図28,図
29参照)、一定順序1または2のみでデータ展開を行
なうと、描画結果は必ずしも一意ではない。
With the above-described configuration, in the third embodiment, when a quadrilateral mesh in which a plurality of quadrilaterals are continuous is drawn based on the vertex data of each quadrilateral, the switching unit 79 selects the quadrilateral mesh. The vertex data can be output by switching to either the fixed order data expansion processing unit 80 or the shape recognition data expansion processing unit 81. In the quadrilateral mesh, if all the quadrilaterals are convex, the fixed order data expansion processing unit 80, the shape recognition data expansion processing unit 8
No matter which of 1 and 2 is used for data expansion, the quadrilateral mesh drawn by the graphic drawing unit 76 is the same, but when a non-convex quadrilateral is included (see FIGS. 28 and 29), If the data is expanded only in the fixed order 1 or 2, the drawing result is not necessarily unique.

【0091】そこで、本実施形態では、切換部79の機
能により、四辺形メッシュに対するデータ展開として、
一定順序データ展開処理部80または形状認識データ展
開処理部81のいずれか一方によるものを選択すること
ができる。一定順序データ展開処理部80を選択した場
合には、各四辺形の頂点データが一定の順序1または2
で選択されて四辺形メッシュがデータ展開される一方、
形状認識データ展開処理部81を選択した場合には、図
26により前述したように、現在の頂点選択順序と展開
すべき次の四辺形の形状とに応じて、四辺形メッシュの
一つの行を一連の三角形ストリップとして展開できるよ
うになっている。
Therefore, in the present embodiment, by the function of the switching unit 79, as the data expansion for the quadrilateral mesh,
It is possible to select either the fixed order data expansion processing unit 80 or the shape recognition data expansion processing unit 81. When the fixed order data expansion processing unit 80 is selected, the vertex data of each quadrilateral is fixed in the fixed order 1 or 2.
Is selected and the quadrilateral mesh is expanded,
When the shape recognition data expansion processing unit 81 is selected, as described above with reference to FIG. 26, one row of the quadrilateral mesh is selected according to the current vertex selection order and the shape of the next quadrilateral to be expanded. It can be deployed as a series of triangular strips.

【0092】このように、第3実施形態によれば、四辺
形メッシュが、データ展開処理部80もしくは81によ
り一連の三角形ストリップとしてデータ展開され図形描
画部76に転送されるので、展開後に図形描画部76へ
転送されるデータ量を削減し、四辺形メッシュの描画処
理を高速化することができる。また、メッシュ四辺形テ
ーブル85として、ジャンプテーブルを用いることによ
り、処理性能のさらなる向上をはかることができる。
As described above, according to the third embodiment, the quadrilateral mesh is expanded into data as a series of triangle strips by the data expansion processing unit 80 or 81 and transferred to the graphic drawing unit 76. It is possible to reduce the amount of data transferred to the unit 76 and speed up the drawing process of the quadrilateral mesh. Further, by using a jump table as the mesh quadrilateral table 85, it is possible to further improve the processing performance.

【0093】[0093]

【発明の効果】以上詳述したように、本発明によれば、
以下に示すような効果ないし利点がある。 (1)三角形の形状が直線,右長辺三角形,左長辺三角
形のいずれかであるかを、ジャンプテーブルを用いて描
画処理前のソート段階で分類することができるため、三
角形の形状が直線となるものについては、独立した直線
描画処理を実行することができ、描画処理の効率が改善
され、形状に応じた高速描画処理が可能になり、図形描
画性能が大幅に向上する。
As described in detail above, according to the present invention,
There are the following effects or advantages. (1) Whether the triangle shape is a straight line, a right long-sided triangle, or a left long-sided triangle can be classified at the sort stage before the rendering process using the jump table. For these, independent straight line drawing processing can be executed, the efficiency of drawing processing is improved, high-speed drawing processing according to the shape is possible, and figure drawing performance is greatly improved.

【0094】(2)多角形の各頂点データに基づいて多
角形を描画する際に、描画処理すべき多角形が四角形で
あるか否かを判定する処理を付加し、多角形が四角形で
ある場合の処理を一般の多角形の処理と分離することに
より、実運用上での描画処理性能を大幅に向上すること
ができる。このとき、四角形の各頂点の外積符号の組合
せから四角形の頂点選択順序を与えるジャンプテーブル
を用いることにより、四角形の形状判定と同時に三角形
への分割処理を行なうことができ、処理性能のさらなる
向上をはかることができる。また、四角形を分割した後
の三角形データを、独立した三角形としてではなく、三
角形ストリップとして展開する機能をもたせたことによ
り、描画手段への転送データ量を少なくでき、処理性能
を大幅に向上することができる。
(2) When drawing a polygon based on each vertex data of the polygon, a process for determining whether or not the polygon to be drawn is a quadrangle is added, and the polygon is a quadrangle. By separating the case processing from general polygon processing, the drawing processing performance in actual operation can be greatly improved. At this time, by using the jump table that gives the order of selecting the vertices of the quadrangle from the combination of the outer product codes of the vertices of the quadrangle, it is possible to determine the shape of the quadrangle and perform the division processing into the triangles at the same time. You can measure. Also, by providing the function of expanding the triangle data after dividing the quadrangle as triangle strips instead of as independent triangles, the amount of data transferred to the drawing means can be reduced and the processing performance can be greatly improved. You can

【0095】(3)ジャンプテーブルを用いて、一定順
序データ展開処理もしくは形状識別データ展開処理のい
ずれか一方を選択し、選択されたデータ展開処理により
四辺形メッシュを一連の三角形ストリップとしてデータ
展開して、描画手段へ転送することにより、転送データ
量を削減し、四辺形メッシュの描画処理を高速化するこ
とができる。
(3) Using the jump table, one of the fixed order data expansion processing and the shape identification data expansion processing is selected, and the quadrilateral mesh is expanded as a series of triangular strips by the selected data expansion processing. By transferring the data to the drawing means, the transfer data amount can be reduced and the drawing processing of the quadrilateral mesh can be speeded up.

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

【図1】第1の発明の原理ブロック図である。FIG. 1 is a principle block diagram of a first invention.

【図2】第2の発明の原理ブロック図である。FIG. 2 is a principle block diagram of a second invention.

【図3】第3の発明の原理ブロック図である。FIG. 3 is a principle block diagram of a third invention.

【図4】本発明の第1実施形態としての図形処理方法を
適用されたシステムの構成例を示すブロック図である。
FIG. 4 is a block diagram showing a configuration example of a system to which the graphic processing method according to the first embodiment of the present invention is applied.

【図5】第1実施形態におけるジャンプテーブルの例を
示す図である。
FIG. 5 is a diagram showing an example of a jump table in the first embodiment.

【図6】(a)〜(c)はいずれも第1実施形態におけ
るソートコードに対応する実際の三角形形状を示す図で
ある。
6A to 6C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図7】(a)〜(c)はいずれも第1実施形態におけ
るソートコードに対応する実際の三角形形状を示す図で
ある。
7A to 7C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図8】(a)〜(c)はいずれも第1実施形態におけ
るソートコードに対応する実際の三角形形状を示す図で
ある。
FIGS. 8A to 8C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図9】(a)〜(c)はいずれも第1実施形態におけ
るソートコードに対応する実際の三角形形状を示す図で
ある。
9A to 9C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図10】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
10A to 10C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図11】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
11A to 11C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図12】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
12A to 12C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図13】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
13A to 13C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図14】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
14A to 14C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図15】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
15A to 15C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図16】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
16A to 16C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図17】(a)〜(c)はいずれも第1実施形態にお
けるソートコードに対応する実際の三角形形状を示す図
である。
17A to 17C are diagrams showing actual triangular shapes corresponding to the sort codes in the first embodiment.

【図18】第1実施形態におけるソートコードに対応す
る実際の三角形形状を示す図である。
FIG. 18 is a diagram showing an actual triangular shape corresponding to a sort code in the first embodiment.

【図19】本発明の第2実施形態としての図形処理方法
を適用されたシステムの構成例を示すブロック図であ
る。
FIG. 19 is a block diagram showing a configuration example of a system to which a graphic processing method according to a second embodiment of the present invention is applied.

【図20】第2実施形態における四角形形状テーブルの
例を示す図である。
FIG. 20 is a diagram showing an example of a rectangular shape table in the second embodiment.

【図21】第2実施形態における頂点選択順序例を示す
図である。
FIG. 21 is a diagram showing an example of vertex selection order in the second embodiment.

【図22】第2実施形態における四角形のデータ展開を
説明するための図である。
FIG. 22 is a diagram for explaining data development of a quadrangle in the second embodiment.

【図23】四角形を独立した2つの三角形の集合として
データ展開した場合の転送データ例を示す図である。
FIG. 23 is a diagram showing an example of transfer data when a quadrangle is expanded as a set of two independent triangles.

【図24】四角形を三角形ストリップとしてデータ展開
した場合の転送データ例を示す図である。
FIG. 24 is a diagram showing an example of transfer data in the case where data is expanded as a quadrangle into a triangle strip.

【図25】本発明の第3実施形態としての図形処理方法
を適用されたシステムの構成例を示すブロック図であ
る。
FIG. 25 is a block diagram showing a configuration example of a system to which a graphic processing method according to a third embodiment of the present invention is applied.

【図26】第3実施形態における頂点選択順序例を示す
図である。
FIG. 26 is a diagram showing an example of vertex selection order in the third embodiment.

【図27】四辺形メッシュの例を示す図である。FIG. 27 is a diagram showing an example of a quadrilateral mesh.

【図28】(a)〜(d)はいずれも四辺形メッシュに
おける凹型四辺形の例を示す図である。
28A to 28D are diagrams each showing an example of a concave quadrilateral in a quadrilateral mesh.

【図29】(a)〜(d)はいずれも四辺形メッシュに
おける交差型四辺形の例を示す図である。
29 (a) to (d) are diagrams showing examples of intersecting quadrilaterals in a quadrilateral mesh.

【図30】従来の三角形の描画方式を適用されたシステ
ムの構成例を示すブロック図である。
FIG. 30 is a block diagram showing a configuration example of a system to which a conventional triangle drawing method is applied.

【図31】(a),(b)はそれぞれ右長辺三角形およ
び左長辺三角形の例を示す図である。
31A and 31B are diagrams showing examples of a right long side triangle and a left long side triangle, respectively.

【図32】(a),(b)はいずれも3つの頂点データ
が直線になる例を示す図である。
32A and 32B are diagrams showing an example in which three vertex data are straight lines.

【図33】従来の多角形の描画方式を適用されたシステ
ムの構成例を示すブロック図である。
FIG. 33 is a block diagram showing a configuration example of a system to which a conventional polygon drawing method is applied.

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

2 描画手段 2A 直線描画手段 2B 右長辺三角形描画手段 2C 左長辺三角形描画手段 5 外積演算手段 6 ソート手段 9 振分手段 10 ジャンプテーブル 11 四角形判定手段 12 外積演算手段 15 データ展開処理手段 16 ジャンプテーブル 17 切換手段 18 一定順序データ展開処理手段 19 形状認識データ展開処理手段 20 外積演算手段 23 データ展開処理手段 24 ジャンプテーブル 50 図形データ格納領域 51 形状判定処理部 52 形状判定前処理部 53 3頂点y値ソーティング部 54 外積比較部 55 三角形描画ディスパッチ処理部 56 第1作業領域 57 第2作業領域 58 形状判定テーブル 59 三角形描画部(描画手段) 59A 直線描画部 59B 右長辺三角形描画部 59C 左長辺三角形描画部 60 ジャンプテーブル 61 ホスト(クライアント) 62 ホスト・展開部インターフェイスメモリ 63 図形データ展開部 64 ディスパッチャ 65 第1種図形要素データ展開部 66 第i種図形要素データ展開部 67 四辺形メッシュ要素データ展開部 68 多角形要素データ展開部 69 頂点数判定処理部 70 四角形専用処理部 71 外積演算部 72 形状判定部 73 データ展開処理部 74 五角形以上の多角形処理部 74A 外積演算部 74B 形状判定部 74C データ展開処理部 75 展開部・描画部インターフェイスメモリ 76 図形描画部(描画手段) 77 四辺形形状テーブル(ジャンプテーブル) 79 切換部 80 一定順序データ展開処理部 81 形状認識データ展開処理部 82 外積演算部 83 形状判定部 84 データ展開処理部 85 メッシュ四辺形形状テーブル(ジャンプテーブ
ル)
2 Drawing means 2A Straight line drawing means 2B Right long side triangle drawing means 2C Left long side triangle drawing means 5 Outer product calculating means 6 Sorting means 9 Sorting means 10 Jump table 11 Square determination means 12 Outer product calculating means 15 Data expansion processing means 16 Jump Table 17 switching means 18 fixed order data expansion processing means 19 shape recognition data expansion processing means 20 outer product calculation means 23 data expansion processing means 24 jump table 50 graphic data storage area 51 shape determination processing section 52 shape determination preprocessing section 53 3 vertex y Value sorting unit 54 Outer product comparison unit 55 Triangle drawing dispatch processing unit 56 First work area 57 Second work area 58 Shape determination table 59 Triangle drawing unit (drawing means) 59A Straight line drawing unit 59B Right long side Triangle drawing unit 59C Left long side Triangle drawing unit 60 Jump table 61 Host (Client) 62 Host / expansion unit Interface memory 63 Graphic data expansion unit 64 Dispatcher 65 1st type graphic element data expansion unit 66 i-type graphic element data expansion unit 67 Quadrilateral mesh element data expansion unit 68 Polygonal element data expansion unit 69 vertex number determination processing unit 70 quadrangle dedicated processing unit 71 outer product calculation unit 72 shape determination unit 73 data expansion processing unit 74 pentagonal polygon processing unit 74A outer product calculation unit 74B shape determination unit 74C data expansion processing unit 75 expansion unit / drawing Section interface memory 76 figure drawing section (drawing means) 77 quadrilateral shape table (jump table) 79 switching section 80 fixed order data expansion processing section 81 shape recognition data expansion processing section 82 outer product calculation section 83 shape determination section 84 data expansion processing section 85 mesh quadrilateral shape table (jump Buru)

───────────────────────────────────────────────────── フロントページの続き (72)発明者 高澤 昌宏 神奈川県川崎市中原区上小田中四丁目1 番1号 株式会社富士通プログラム技研 内 (72)発明者 今澤 正一 神奈川県川崎市中原区上小田中四丁目1 番1号 株式会社富士通プログラム技研 内 (56)参考文献 特開 平4−229387(JP,A) 特開 平3−175587(JP,A) 特開 平3−35375(JP,A) 特開 昭62−256092(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 11/40 G06T 1/00 G06T 3/00 G06T 11/00 G06T 15/00 G09G 5/00 G06F 17/50 G06T 17/40 CSDB(日本国特許庁)─────────────────────────────────────────────────── ─── Continuation of the front page (72) Masahiro Takasawa Inventor Masahiro Takasawa 4-1-1 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Fujitsu Program Giken Co., Ltd. (72) Shoichi Imazawa, Uanaka, Nakahara-ku, Kawasaki, Kanagawa 4-1, 1-1 Fujitsu Program Giken Co., Ltd. (56) Reference JP-A-4-229387 (JP, A) JP-A-3-175587 (JP, A) JP-A-3-35375 (JP, A) JP 62-256092 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06T 11/40 G06T 1/00 G06T 3/00 G06T 11/00 G06T 15/00 G09G 5 / 00 G06F 17/50 G06T 17/40 CSDB (Japan Patent Office)

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 三角形の各頂点データに基づいて該三角
形を描画する図形処理方法において、 三角形の各頂点データの所定座標についての大小関係お
よび該三角形の所定頂点について隣接する二辺の外積の
値により設定されるコードと、各コードに対応する該三
角形の形状(直線,右長辺三角形,左長辺三角形)に応
じた該三角形の描画手段(直線,右長辺三角形,左長辺
三角形それぞれに応じた描画処理を行なう直線描画手
段,右長辺三角形描画手段,左長辺三角形描画手段)と
の関係を与えるジャンプテーブルを予め作成しておき、 描画対象三角形の描画処理前に、該描画対象三角形の所
定頂点について隣接する二辺の外積を該描画対象三角形
の各頂点データに基づいて算出するとともに、該描画対
象三角形の各頂点データの所定座標についての大小関係
を求め、 該描画対象三角形についての前記大小関係および前記外
積の値により設定された前記コードに基づいて該ジャン
プテーブルを参照して、該描画対象三角形を前記の直線
描画手段,右長辺三角形描画手段,左長辺三角形描画手
段のいずれかに振り分けて、該描画対象三角形の描画処
理を実行することを特徴とする、図形処理方法。
1. A graphic processing method for drawing a triangle based on each vertex data of a triangle, the magnitude relationship of each vertex data of the triangle with respect to a predetermined coordinate, and the value of the outer product of two adjacent sides of the predetermined vertex of the triangle. And the drawing means of the triangle ( straight line, right long side triangle, left long side ) according to the shape of the triangle corresponding to each code (straight line, right long side triangle, left long side triangle)
A jump table giving a relationship with a straight line drawing means, a right long side triangle drawing means, and a left long side triangle drawing means for performing drawing processing according to each triangle is created in advance, and before the drawing processing of the drawing target triangle, An outer product of two adjacent sides of a predetermined vertex of the drawing target triangle is calculated based on each vertex data of the drawing target triangle, and a magnitude relation of predetermined coordinates of each vertex data of the drawing target triangle is obtained. Referring to the jump table on the basis of the code set by the magnitude relation and the value of the outer product for the target triangle, the drawing target triangle is drawn by the straight line drawing means, right long side triangle drawing means, left long side. A graphic processing method, wherein the drawing processing of the drawing target triangle is executed by allocating to any one of the triangle drawing means.
【請求項2】 前記大小関係を求める際に、前記外積を
算出するために求めた、該描画対象三角形の各頂点デー
タの所定座標についての差分値を用いることを特徴とす
る、請求項1記載の図形処理方法。
2. The difference value for predetermined coordinates of each vertex data of the drawing target triangle, which is obtained for calculating the outer product, is used when obtaining the magnitude relationship. Figure processing method.
【請求項3】 該描画対象三角形が、多角形を分割して
得られたものであることを特徴とする、請求項1または
請求項2に記載の図形処理方法。
3. The graphic processing method according to claim 1, wherein the drawing target triangle is obtained by dividing a polygon.
【請求項4】 該描画対象三角形が、四辺形メッシュを
分割して得られたものであることを特徴とする、請求項
1または請求項2に記載の図形処理方法。
4. The graphic processing method according to claim 1, wherein the drawing target triangle is obtained by dividing a quadrilateral mesh.
【請求項5】 該描画対象三角形が、三角形ストリップ
を分割して得られたものであることを特徴とする、請求
項1または請求項2に記載の図形処理方法。
5. The graphic processing method according to claim 1 or 2, wherein the drawing target triangle is obtained by dividing a triangle strip.
【請求項6】 多角形の各頂点データに基づいて該多角
形を描画する図形処理方法において、 四角形の各頂点における隣接する二辺の外積の符号と当
該四角形の形状に応じた当該四角形の頂点データ選択順
序との関係を与えるジャンプテーブルを予め作成してお
き、 描画処理すべき該多角形が四角形であるか否かを判定
し、 該多角形が四角形であると判定された場合には、該四角
形の各頂点で隣接する二辺の外積を算出し、算出された
該四角形の各頂点における外積の符号に基づいて該ジャ
ンプテーブルを参照することにより、該四角形の形状に
応じた該四角形の頂点データ選択順序を決定し、 決定された該頂点データ選択順序に従って該四角形の各
頂点データを選択することにより、該四角形に対応した
データ展開処理を行なってから、 該データ展開処理により得られた各頂点データに基づい
て該多角形を描画することを特徴とする、図形処理方
法。
6. A graphic processing method for drawing a polygon based on each vertex data of the polygon, the vertex of the quadrangle according to the shape of the quadrangle according to the sign of the outer product of two adjacent sides of each vertex of the quadrangle. A jump table that gives a relationship with the data selection order is created in advance, and it is determined whether the polygon to be drawn is a quadrangle. If it is determined that the polygon is a quadrangle, An outer product of two adjacent sides of each quadrangle of the quadrangle is calculated, and the jump table is referred to based on the sign of the calculated outer product of each vertice of the quadrangle, whereby the quadrangle corresponding to the shape of the quadrangle is calculated. After determining the vertex data selection order and selecting each vertex data of the quadrangle according to the determined vertex data selection order, after performing the data expansion processing corresponding to the quadrangle, Characterized in that to draw the polygon based on each vertex data obtained by the data development processing, graphic processing method.
【請求項7】 該四角形を2つの三角形からなる三角形
ストリップとしてデータ展開することにより、該データ
展開処理を行なうことを特徴とする、請求項6記載の図
形処理方法。
7. The graphic processing method according to claim 6, wherein the data expansion processing is performed by expanding the data of the quadrangle as a triangle strip composed of two triangles.
【請求項8】 複数の四辺形が連続してなる四辺形メッ
シュを各四辺形の頂点データに基づいて描画する図形処
理方法において、 前記の各四辺形を三角形ストリップとしてデータ展開す
べく、前記の各四辺形についての4つの頂点データから
3つの頂点データを選択するための頂点データ選択順序
として、該4つの頂点データから3つの頂点データを異
なる組み合わせで選択しうる2種類のものを予め設定し
ておくとともに、 現在の頂点データ選択順序の種類と、四辺形の各頂点に
おける隣接する二辺の外積の符号と、当該現在の頂点デ
ータ選択順序および当該四辺形の形状に応じた当該四辺
形の頂点データ選択順序との関係を与えるジャンプテー
ブルを予め作成しておき、 データ展開すべき次の四辺形の各頂点で隣接する二辺の
外積を算出し、算出された該次の四角形の各頂点におけ
る外積の符号と現在の頂点データ選択順序とに基づいて
該ジャンプテーブルを参照することにより、該次の四辺
形についての頂点データ選択順序として前記2種類の頂
点データ選択順序のうちの一方を選択し、 選択された該頂点データ選択順序で前記の各四辺形の頂
点データを選択することにより、該四辺形メッシュを、
連続する三角形ストリップとしてデータ展開する形状認
識データ展開処理を行なってから、 該データ展開処理により得られた各頂点データに基づい
て該四辺形メッシュを描画することを特徴とする、図形
処理方法。
8. A graphic processing method for drawing a quadrilateral mesh, in which a plurality of quadrilaterals are continuous, based on vertex data of each quadrilateral, in order to develop each quadrilateral as a triangular strip, As the vertex data selection order for selecting the three vertex data from the four vertex data for each quadrangle, two kinds of vertex data which can select three vertex data from the four vertex data in different combinations are preset. In addition, the type of the current vertex data selection order, the sign of the outer product of the adjacent two sides at each vertex of the quadrangle, the current vertex data selection order, and the quadrilateral shape according to the quadrilateral shape Create a jump table that gives the relationship with the vertex data selection order in advance, and calculate the cross product of the two adjacent sides at each vertex of the next quadrilateral to be expanded. Then, by referring to the jump table on the basis of the sign of the outer product at each vertex of the next quadrangle calculated and the current vertex data selection order, the vertex data selection order for the next quadrangle is set to 2 The quadrilateral mesh is selected by selecting one of the types of vertex data selection order and selecting the vertex data of each of the quadrilaterals in the selected vertex data selection order.
A graphic processing method, comprising: performing shape recognition data expansion processing for expanding data as continuous triangle strips, and then drawing the quadrilateral mesh based on each vertex data obtained by the data expansion processing.
【請求項9】 複数の四辺形が連続してなる四辺形メッ
シュを各四辺形の頂点データに基づいて描画する図形処
理方法において、 前記の各四辺形を三角形ストリップとしてデータ展開す
べく、前記の各四辺形についての4つの頂点データから
3つの頂点データを選択するための頂点データ選択順序
として、該4つの頂点データから3つの頂点データを異
なる組み合わせで選択しうる2種類のものを予め設定し
ておくとともに、 現在の頂点データ選択順序の種類と、四辺形の各頂点に
おける隣接する二辺の外積の符号と、当該現在の頂点デ
ータ選択順序および当該四辺形の形状に応じた当該四辺
形の頂点データ選択順序との関係を与えるジャンプテー
ブルを予め作成しておき、 前記の各四辺形の頂点データを一定の順序で選択するこ
とにより該四辺形メッシュをデータ展開する一定順序デ
ータ展開処理と、 データ展開すべき次の四辺形の各頂点で隣接する二辺の
外積を算出し、算出された該次の四角形の各頂点におけ
る外積の符号と現在の頂点データ選択順序とに基づいて
該ジャンプテーブルを参照することにより、該次の四辺
形についての頂点データ選択順序として前記2種類の頂
点データ選択順序のうちの一方を選択し、選択された該
頂点データ選択順序で前記の各四辺形の頂点データを選
択することにより該四辺形メッシュを連続する三角形ス
トリップとしてデータ展開する形状認識データ展開処理
とのいずれか一方を選択して、該四辺形メッシュに対す
るデータ展開処理を行なってから、 該データ展開処理により得られた各頂点データに基づい
て該四辺形メッシュを描画することを特徴とする、図形
処理方法。
9. A graphic processing method for drawing a quadrilateral mesh consisting of a plurality of quadrilaterals on the basis of vertex data of each quadrilateral, wherein said quadrilateral is developed as a triangle strip in data. As the vertex data selection order for selecting the three vertex data from the four vertex data for each quadrangle, two kinds of vertex data which can select three vertex data from the four vertex data in different combinations are preset. In addition, the type of the current vertex data selection order, the sign of the outer product of the adjacent two sides at each vertex of the quadrangle, the current vertex data selection order, and the quadrilateral shape according to the quadrilateral shape A jump table that gives a relationship with the vertex data selection order is created in advance, and by selecting the vertex data of each quadrilateral in a fixed order, A fixed order data expansion process for expanding the data of the quadrilateral mesh, and an outer product of two adjacent sides of each vertex of the next quadrangle to be expanded, and the sign of the outer product at each vertex of the calculated next quadrangle. By referring to the jump table based on the current vertex data selection order and the current vertex data selection order, one of the two types of vertex data selection order is selected and selected as the vertex data selection order for the next quadrangle. By selecting the vertex data of each of the quadrilaterals in the vertex data selection order, one of shape recognition data expansion processing for expanding the quadrilateral mesh as a continuous triangular strip is selected, and the quadrilateral is selected. After performing data expansion processing on the shape mesh, draw the quadrilateral mesh based on each vertex data obtained by the data expansion processing. Characterized in that, the graphic processing method.
JP2001360910A 2001-11-27 2001-11-27 Figure processing method Expired - Lifetime JP3504935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001360910A JP3504935B2 (en) 2001-11-27 2001-11-27 Figure processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001360910A JP3504935B2 (en) 2001-11-27 2001-11-27 Figure processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP24522593A Division JP3329903B2 (en) 1993-09-30 1993-09-30 Graphic processing unit

Publications (2)

Publication Number Publication Date
JP2002183741A JP2002183741A (en) 2002-06-28
JP3504935B2 true JP3504935B2 (en) 2004-03-08

Family

ID=19171653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001360910A Expired - Lifetime JP3504935B2 (en) 2001-11-27 2001-11-27 Figure processing method

Country Status (1)

Country Link
JP (1) JP3504935B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8114062B2 (en) 2004-04-21 2012-02-14 Acclarent, Inc. Devices and methods for delivering therapeutic substances for the treatment of sinusitis and other disorders
US8114113B2 (en) 2005-09-23 2012-02-14 Acclarent, Inc. Multi-conduit balloon catheter
US8118757B2 (en) 2007-04-30 2012-02-21 Acclarent, Inc. Methods and devices for ostium measurement
US8123722B2 (en) 2004-04-21 2012-02-28 Acclarent, Inc. Devices, systems and methods for treating disorders of the ear, nose and throat
US8142422B2 (en) 2004-04-21 2012-03-27 Acclarent, Inc. Devices, systems and methods for diagnosing and treating sinusitis and other disorders of the ears, nose and/or throat
US8172828B2 (en) 2004-04-21 2012-05-08 Acclarent, Inc. Apparatus and methods for dilating and modifying ostia of paranasal sinuses and other intranasal or paranasal structures
US8190389B2 (en) 2006-05-17 2012-05-29 Acclarent, Inc. Adapter for attaching electromagnetic image guidance components to a medical device
US8388642B2 (en) 2005-01-18 2013-03-05 Acclarent, Inc. Implantable devices and methods for treating sinusitis and other disorders

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8114062B2 (en) 2004-04-21 2012-02-14 Acclarent, Inc. Devices and methods for delivering therapeutic substances for the treatment of sinusitis and other disorders
US8123722B2 (en) 2004-04-21 2012-02-28 Acclarent, Inc. Devices, systems and methods for treating disorders of the ear, nose and throat
US8142422B2 (en) 2004-04-21 2012-03-27 Acclarent, Inc. Devices, systems and methods for diagnosing and treating sinusitis and other disorders of the ears, nose and/or throat
US8172828B2 (en) 2004-04-21 2012-05-08 Acclarent, Inc. Apparatus and methods for dilating and modifying ostia of paranasal sinuses and other intranasal or paranasal structures
US8388642B2 (en) 2005-01-18 2013-03-05 Acclarent, Inc. Implantable devices and methods for treating sinusitis and other disorders
US8114113B2 (en) 2005-09-23 2012-02-14 Acclarent, Inc. Multi-conduit balloon catheter
US8190389B2 (en) 2006-05-17 2012-05-29 Acclarent, Inc. Adapter for attaching electromagnetic image guidance components to a medical device
US8118757B2 (en) 2007-04-30 2012-02-21 Acclarent, Inc. Methods and devices for ostium measurement

Also Published As

Publication number Publication date
JP2002183741A (en) 2002-06-28

Similar Documents

Publication Publication Date Title
JP2690110B2 (en) Scan conversion method
JP4499292B2 (en) Shading of 3D computer generated images
US5455897A (en) Polygon and polyline clipping for computer graphic displays
WO2000011562B1 (en) Apparatus and method for performing setup operations in a 3-d graphics pipeline using unified primitive descriptors
US6052128A (en) Method and apparatus for clipping convex polygons on single instruction multiple data computers
KR20110112828A (en) A tessellator whose tessellation time grows linearly with the amount of tessellation
EP1295256B1 (en) Method and system for image rendering with tiles
US20110227921A1 (en) Processing of 3D computer graphics data on multiple shading engines
JP3504935B2 (en) Figure processing method
US20040196296A1 (en) Method and system for efficiently using fewer blending units for antialiasing
WO2002001500A2 (en) Method, apparatus and article for determining visible parts of surfaces of three-dimensional objects and their parameters of shading accounting for light and shadow volumes
JP2002529870A (en) Shading and texturing of 3D computer generated images
US20240126643A1 (en) TILE REGION PROTECTION USING MULTIPLE GPUs
US20030043148A1 (en) Method for accelerated triangle occlusion culling
US6532009B1 (en) Programmable hardwired geometry pipeline
EP2728551B1 (en) Image rendering method and system
JPH08153205A (en) Device for plotting polygon
JP4664169B2 (en) Graphic drawing apparatus and graphic drawing program
JP7100624B2 (en) Hybrid rendering with binning and sorting of preferred primitive batches
JPH07105405A (en) Plotting method of polygon, triangle and quardrangle mesh
US5563990A (en) Method and apparatus for processing a pick event
US20210295585A1 (en) Tessellator sub-patch distribution based on group limits
JPH11203486A (en) Translucent object display method and image display device using the method
JPH0350686A (en) Graphic processing system
JPH07105390A (en) System for controlling outer circumferential line drawing data

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20031202

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20031211

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

Free format text: PAYMENT UNTIL: 20071219

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081219

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091219

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091219

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101219

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111219

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111219

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121219

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121219

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20131219

Year of fee payment: 10

EXPY Cancellation because of completion of term