JPH08106521A - Graphic data processing method and graphic data processing device - Google Patents
Graphic data processing method and graphic data processing deviceInfo
- Publication number
- JPH08106521A JPH08106521A JP6241460A JP24146094A JPH08106521A JP H08106521 A JPH08106521 A JP H08106521A JP 6241460 A JP6241460 A JP 6241460A JP 24146094 A JP24146094 A JP 24146094A JP H08106521 A JPH08106521 A JP H08106521A
- Authority
- JP
- Japan
- Prior art keywords
- vertex
- vertices
- peripheral line
- outer peripheral
- predetermined number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Image Generation (AREA)
- Processing Or Creating Images (AREA)
Abstract
(57)【要約】
【目的】 三角形スター構造の図形データを三角形スト
リップ構造の図形データに変換して処理する方法及び装
置を提供することを目的とする。
【構成】 所定番号から1ずつ増加すると共に、“n”
を1以上の整数として場合に、所定番号、(所定番号+
n)番及び(所定番号+n+1)番の頂点からなる三角
形により、図形の内部が重なることなく、かつ過不足な
く分割されるように割り当てられた第一の番号列を、
“m”を整数とした場合に、(m−2)番、(m−1)
番及びm番の頂点から形成される三角形と(m−1)
番、m番及び(m+1)番の頂点からなる三角形とを合
成して形成される四角形により、図形の内部が重なるこ
となく、かつ過不足なく分割されるように割り当てられ
た第二の番号列に変換する。
(57) [Summary] [Object] An object of the present invention is to provide a method and apparatus for converting graphic data having a triangular star structure into graphic data having a triangular strip structure and processing it. [Structure] The number is incremented by 1 from the predetermined number and "n"
Is a predetermined number, (predetermined number +
The first number sequence assigned so that the interiors of the figures are not overlapped and are exactly divided by the triangles having the vertices of (n) th and (predetermined number + n + 1) th,
When "m" is an integer, (m-2) number, (m-1)
Triangle formed from the vertices of the number n and m and (m-1)
A second number sequence allocated so that the insides of the figures do not overlap and are exactly divided by a quadrangle formed by synthesizing a triangle composed of the vertices of the number m, the number m, and the number (m + 1) Convert to.
Description
【0001】[0001]
【産業上の利用分野】本発明は、独立した三角形に別の
三角形が三角形スターと呼ばれる構造で接続して形成さ
れた図形のデータを、三角形ストリップと呼ばれる構造
で形成された図形のデータに変換する方法と装置に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention converts data of a figure formed by connecting another triangle to an independent triangle in a structure called a triangle star to data of a figure formed in a structure called a triangle strip. Method and apparatus.
【0002】[0002]
【従来の技術】従来、グラフィック表示装置等では、多
角形図形として扱われる三次元表示物体の座標変換、輝
度計算、クリッピング等の処理を高速に行うため、図5
に示すような三角形ストリップを用いて扱うデータの数
を少なくする方法が採用されている。2. Description of the Related Art Conventionally, in a graphic display device or the like, processing such as coordinate conversion, brightness calculation, and clipping of a three-dimensional display object treated as a polygonal figure is performed at high speed.
A method of reducing the number of data handled by using a triangular strip as shown in FIG.
【0003】即ち、図5に示す三角形ストリップでは、
頂点2〜7が隣接する2つの三角形に共有され、また頂
点3〜6が隣接する3つの三角形に共有されることによ
りデータの数を少なくしている。That is, in the triangular strip shown in FIG.
The vertices 2 to 7 are shared by two adjacent triangles, and the vertices 3 to 6 are shared by three adjacent triangles, thereby reducing the number of data.
【0004】このような三角形ストリップからなる図形
は、例えば複数のCT画像から立体像を再構成する場合
に、CT画像間を補間する図形として利用される。な
お、三角形ストリップとは、図形の頂点に付された頂点
列をV0、V1、V2、・・・、Vnとするときに、
Vn-2、Vn-1、Vnより三角形を構成する図形をいう。A figure consisting of such triangular strips is used as a figure for interpolating between CT images when a stereoscopic image is reconstructed from a plurality of CT images, for example. A triangle strip means that when a vertex row attached to the vertices of a figure is V 0 , V 1 , V 2 , ..., V n ,
A figure that forms a triangle from V n-2 , V n-1 , and V n .
【0005】[0005]
【発明が解決しようとする課題】ところで、前述の従来
のグラフィック表示装置では、三角形ストリップは高速
に処理されるが、三角形スターと呼ばれる構造の図形
は、高速に処理されない。By the way, in the above-mentioned conventional graphic display device, the triangular strip is processed at high speed, but the graphic of the structure called triangular star is not processed at high speed.
【0006】ここで、三角形スターとは、図6に示すよ
うに、図形の頂点に付された頂点列をV0、V1、V2、
・・・、Vnとするときに、V0、Vn-1、Vnより三角形
を構成する図形をいうが、この三角形スターでは、連続
する一つの三角形を構築するのに、三角形ストリップの
場合と同様、一頂点ずつしかデータが増えない点で三角
形ストリップと共通する。Here, the triangular star means, as shown in FIG. 6, a series of vertices attached to the vertices of a figure by V 0 , V 1 , V 2 ,
.., V n , a figure that forms a triangle from V 0 , V n-1 , and V n . In this triangle star, a triangle strip is used to construct one continuous triangle. Similar to the case, it is common with the triangle strip in that the data increases only one vertex at a time.
【0007】しかし、従来は、図4に示すように、個々
に独立した三角形(図6の例では、、、、の4
つの三角形)として処理されていたため、高速に描画で
きなかった。However, conventionally, as shown in FIG. 4, individually independent triangles (in the example of FIG. 6, 4 of
It was processed as two triangles), so it could not be drawn at high speed.
【0008】本発明は、このような事情に鑑みてなされ
たもので、三角形スター構造の図形データを三角形スト
リップ構造の図形データに変換して処理する方法及び装
置を提供することを課題とする。The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a method and apparatus for converting graphic data having a triangular star structure into graphic data having a triangular strip structure for processing.
【0009】[0009]
<本発明の第1の図形データ処理方法>本発明の第1の
図形データ処理方法は、前述した課題を解決するため下
記の如く構成されている。図1は、本発明の原理図であ
る。<First Graphic Data Processing Method of the Present Invention> The first graphic data processing method of the present invention is configured as follows in order to solve the above-mentioned problems. FIG. 1 is a principle diagram of the present invention.
【0010】即ち、所定番号から図形の各頂点に1つづ
つ増加する番号を割り当ててなる頂点列であり、“n”
を1以上の整数とした場合に、所定番号、(所定番号+
n)番及び(所定番号+n+1)番の頂点から形成され
る三角形により、前記図形の内部を過不足なく分割する
第一の頂点列を、前記図形の各頂点に割り当ててなる別
の頂点列であり、“m”を整数とした場合に、(m−
2)番、(m−1)番及びm番の頂点から形成される三
角形と(m−1)番、m番及び(m+1)番の頂点から
形成される三角形とを合成して形成される四角形によ
り、前記図形の内部を過不足なく分割する第二の頂点列
に変換して処理することを含むことを特徴とする(請求
項1に対応)。 <本発明の第2の図形データ処理方法>本発明の第2の
図形データ処理方法は、前述した課題を解決するため下
記の如く構成されている。That is, it is a vertex string in which a number which is incremented by one from each of the predetermined numbers is assigned to each vertex of the figure.
Is a predetermined number, (predetermined number +
A first vertex row that divides the inside of the figure without excess or deficiency by a triangle formed by the nth and (predetermined number + n + 1) vertices is a different vertex row that is assigned to each vertex of the figure. Yes, when "m" is an integer, (m-
2), triangles formed from (m-1) th and mth vertices and triangles formed from (m-1) th, mth and (m + 1) th vertices are formed by combining It is characterized by including processing by converting the inside of the figure into a second vertex row that divides the inside of the figure by just a quadrangle without excess or shortage (corresponding to claim 1). <Second Graphic Data Processing Method of the Present Invention> A second graphic data processing method of the present invention is configured as follows in order to solve the above-mentioned problems.
【0011】即ち、前記第一の頂点列が付された頂点間
の各辺に割り当てられたフラグである第一の外周線フラ
グを、前記第二の頂点列が付された頂点間の各辺に割り
当てられたフラグである第二の外周線フラグに変換して
処理することを特徴とする(請求項2に対応)。 <本発明の第3の図形データ処理方法>本発明の第3の
図形データ処理方法は、前述した課題を解決するため下
記の如く構成されている。図2は、本発明の原理図であ
る。That is, the first peripheral line flag, which is a flag assigned to each side between the vertices to which the first vertex row is attached, is set to the each edge between the vertices to which the second vertex row is attached. It is characterized in that it is converted into a second outer peripheral line flag which is a flag assigned to (1) and processed (corresponding to claim 2). <Third Graphic Data Processing Method of the Present Invention> A third graphic data processing method of the present invention is configured as follows in order to solve the above-mentioned problems. FIG. 2 is a principle diagram of the present invention.
【0012】即ち、所定番号から図形の各頂点に1つづ
つ増加する番号を割り当ててなる頂点列であり、“n”
を1以上の整数とした場合に、所定番号、(所定番号+
n)番及び(所定番号+n+1)番の頂点から形成され
る三角形により、前記図形の内部を過不足なく分割する
ように割り当てられた第一の頂点列を、前記図形の各頂
点に割り当ててなる別の頂点列であり、“m”を整数と
した場合に、(m−2)番、(m−1)番及びm番の頂
点から形成される三角形により、前記図形の内部を過不
足なく分割する第二の頂点列に変換して処理することを
特徴とする(請求項3に対応)。 <本発明の第4の図形データ処理方法>本発明の第4の
図形データ処理方法は、前述した課題を解決するため下
記の如く構成されている。That is, it is a vertex sequence in which a number that is incremented by one is assigned to each vertex of the figure from a predetermined number, and "n"
Is a predetermined number, (predetermined number +
A first vertex row allocated so as to divide the inside of the figure without excess or deficiency by a triangle formed from the nth and (predetermined number + n + 1) vertices is assigned to each vertex of the figure. It is another vertex sequence, and when "m" is an integer, the triangle formed from the vertices of (m-2) th, (m-1) th and mth is used to ensure that the inside of the figure is not excessive or deficient. It is characterized in that it is converted into a second vertex sequence to be divided and processed (corresponding to claim 3). <Fourth Graphic Data Processing Method of the Present Invention> A fourth graphic data processing method of the present invention is configured as follows in order to solve the above-mentioned problems.
【0013】即ち、第3の図形データ処理方法におい
て、前記第一の頂点列が付された頂点間の各辺に割り当
てられたフラグである第一の外周線フラグを、前記第二
の頂点列が付された頂点間の各辺に割り当てられたフラ
グである第二の外周線フラグに変換して処理することを
特徴とする(請求項4に対応)。 <本発明の第1の図形データ処理装置>本発明の第1の
図形データ処理装置は、前述した課題を解決するため下
記の如く構成されている。図3は、本発明の原理図であ
る。That is, in the third graphic data processing method, the first peripheral line flag, which is a flag assigned to each side between the vertices to which the first vertex line is added, is set to the second vertex line. It is characterized by converting into a second outer peripheral line flag which is a flag assigned to each side between vertices marked with and processing (corresponding to claim 4). <First Graphic Data Processing Device of the Present Invention> A first graphic data processing device of the present invention is configured as follows in order to solve the problems described above. FIG. 3 is a principle diagram of the present invention.
【0014】即ち、所定番号から図形の各頂点に1つづ
つ増加する割り当ててなる頂点列であり、“n”を1以
上の整数とした場合に、所定番号、(所定番号+n)番
及び(所定番号+n+1)番の頂点から形成される三角
形により、前記図形の内部を過不足なく分割する第一の
頂点列を、図形データ格納部10から入力し、前記図形
の各頂点に割り当ててなる別の頂点列であり、“m”を
整数とした場合に、(m−2)番、(m−1)番及びm
番の頂点から形成される三角形と(m−1)番、m番及
び(m+1)番の頂点から形成される三角形とを合成し
て形成される四角形により、前記図形の内部を過不足な
く分割する第二の頂点列に変換する頂点データ変換部2
1と、この頂点データ変換部21により変換された第二
の頂点列を、三角形ストリップを描画する機能を有する
図形描画部30に出力する変換データ出力部22とを備
えたことを特徴とする(請求項5に対応)。That is, it is a row of vertices that is assigned by incrementing from the predetermined number to each vertex of the figure by one. When "n" is an integer of 1 or more, the predetermined number, (predetermined number + n) number and (predetermined number) A first vertex row that divides the inside of the figure without excess or deficiency by a triangle formed from the predetermined number + n + 1) vertices is input from the figure data storage unit 10 and assigned to each vertex of the figure. (M-2) number, (m-1) number, and m when "m" is an integer.
The inside of the figure is exactly divided by a quadrangle formed by synthesizing a triangle formed from the vertices of No. and a triangle formed from the vertices of (m−1) th, mth and (m + 1) th Vertex data conversion unit 2 for converting into a second vertex sequence
1 and a conversion data output unit 22 for outputting the second vertex array converted by the vertex data conversion unit 21 to a graphic drawing unit 30 having a function of drawing a triangle strip ( (Corresponding to claim 5).
【0015】ここで、図形データ格納部10は、例え
ば、ROM(Read Only Memory;読み出し専用記憶装
置)、半導体記憶装置、磁気ディスク記憶装置、フレキ
シィブル装置、磁気テープ装置、CD−ROM(Compac
t Disc ROM;光学的記憶装置)、M/O(Magnet Optic
al;光磁気ディスク装置)等を利用することができる。The graphic data storage unit 10 is, for example, a ROM (Read Only Memory), a semiconductor storage device, a magnetic disk storage device, a flexible device, a magnetic tape device, a CD-ROM (Compac).
t Disc ROM: Optical storage device, M / O (Magnet Optic
al; magneto-optical disk device) or the like can be used.
【0016】また、頂点データ変換部21は、CPU
(Central Processing Unit ;中央演算処理装置)で実
行されるソフトウェアによって実現することができる。 <本発明の第2の図形データ処理装置>本発明の第2の
図形データ処理装置は、前述した課題を解決するため下
記の如く構成されている。図3は、本発明の原理図であ
る。The vertex data conversion unit 21 is a CPU
It can be realized by software executed by (Central Processing Unit). <Second Graphic Data Processing Device of the Present Invention> A second graphic data processing device of the present invention is configured as follows in order to solve the above-mentioned problems. FIG. 3 is a principle diagram of the present invention.
【0017】即ち、所定番号から図形の各頂点に1つづ
つ増加する番号を割り当ててなる頂点列であり、“n”
を1以上の整数とした場合に、所定番号、(所定番号+
n)番及び(所定番号+n+1)番の頂点から形成され
る三角形により、前記図形の内部を過不足なく分割する
ように割り当てられた第一の頂点列を、図形データ格納
部10から入力し、前記図形の各頂点に割り当ててなる
別の頂点列であり、“m”を整数とした場合に、(m−
2)番、(m−1)番及びm番の頂点から形成される三
角形により、前記図形の内部を過不足なく分割する第二
の頂点列に変換する頂点データ変換部21と、この頂点
データ変換部21により変換された第二の頂点列を、三
角形ストリップを描画する機能を有する図形描画部30
に出力する変換データ出力部22とを備えたことを特徴
とする(請求項6に対応)。That is, it is a vertex sequence in which a number that is incremented by one is assigned to each vertex of the figure from a predetermined number, and "n"
Is a predetermined number, (predetermined number +
From the figure data storage unit 10, a first vertex row allocated so as to divide the inside of the figure without excess or deficiency by a triangle formed from the n) th and (predetermined number + n + 1) th vertices, It is another vertex string assigned to each vertex of the figure, and when "m" is an integer, (m-
A vertex data conversion unit 21 for converting the inside of the figure into a second vertex sequence that divides the inside of the figure without excess or deficiency by a triangle formed from the 2) th, (m-1) th and the mth vertices, and this vertex data. The graphic drawing unit 30 having a function of drawing a triangular strip from the second vertex array converted by the converting unit 21.
And a converted data output unit 22 for outputting the data (corresponding to claim 6).
【0018】ここで、図形データ格納部10は、例え
ば、ROM、半導体記憶装置、磁気ディスク記憶装置、
フレキシィブル装置、磁気テープ装置、CD−ROM、
M/O等を利用することができる。Here, the graphic data storage unit 10 is, for example, a ROM, a semiconductor memory device, a magnetic disk memory device,
Flexible device, magnetic tape device, CD-ROM,
M / O or the like can be used.
【0019】また、頂点データ変換部21は、CPUで
実行されるソフトウェアによって実現することができ
る。Further, the vertex data conversion unit 21 can be realized by software executed by the CPU.
【0020】[0020]
【作用】本発明の第1及び第2の図形データ処理方法に
よれば、第一の頂点列が、第二の頂点列に変換して処理
される。変換された第二の頂点列は、三角形ストリップ
構造をなすため高速に描画可能である。つまり、三角形
スター構造をなす第一の頂点列の図形が高速に描画され
るようになる。According to the first and second graphic data processing methods of the present invention, the first vertex row is converted into the second vertex row and processed. The converted second vertex array has a triangular strip structure, and thus can be drawn at high speed. That is, the figure of the first vertex row forming the triangular star structure can be drawn at high speed.
【0021】また、本発明の第3及び第4の図形データ
処理方法によれば、三角形スター構造をなす図形の外周
線フラグが、三角形ストリップ構造をなす図形の外周線
フラグに変換して処理される。Further, according to the third and fourth graphic data processing methods of the present invention, the peripheral line flag of the graphic having the triangular star structure is converted into the peripheral line flag of the graphic having the triangular strip structure and processed. It
【0022】そして、本発明の第1及び第2の図形デー
タ処理装置によれば、頂点データ変換部21により、第
一の頂点列が第二の頂点列に変換される。次に、変換デ
ータ出力部22により、図形描画部30に出力される。
つまり、第1及び第2の図形データ処理方法と同様に、
三角形スター構造をなす第一の頂点列の図形が高速に描
画されるようになる。Then, according to the first and second graphic data processing devices of the present invention, the vertex data conversion unit 21 converts the first vertex row into the second vertex row. Next, the converted data output unit 22 outputs the converted data to the graphic drawing unit 30.
That is, like the first and second graphic data processing methods,
The figure of the first vertex row forming the triangular star structure can be drawn at high speed.
【0023】[0023]
【実施例】以下、本発明の実施例を図面を参照して説明
する。Embodiments of the present invention will be described below with reference to the drawings.
【0024】[0024]
【第1実施例】 <構成>図9は、本発明の第1実施例の構成ブロック図
である。First Embodiment <Structure> FIG. 9 is a structural block diagram of a first embodiment of the present invention.
【0025】図9では、三角形リスト構造で表現された
図形データを格納した図形データ格納部10と、この図
形データ格納部10から入力した図形データが三角形ス
ター形式である場合に、三角形ストリップ形式に変換す
る三角形リスト処理部20と、独立三角形及び三角形ス
トリップ形式の図形を描画する図形描画部30とが備え
られている。In FIG. 9, when the graphic data storage unit 10 storing the graphic data represented by the triangle list structure and the graphic data input from the graphic data storage unit 10 is in the triangular star format, the triangular strip format is used. A triangle list processing unit 20 for converting and a graphic drawing unit 30 for drawing a graphic in the independent triangle and triangle strip formats are provided.
【0026】以下、各構成要素について詳細に説明す
る。 〔図形データ格納部10〕図形データ格納部10には、
三角形リストで表現された図形データが、図10に示す
形式で格納されている。即ち、三角形リスト要素のヘッ
ダと、頂点数と、頂点1からNの各々のデータとを格納
している。なお、頂点1から3のデータは、常に独立三
角形となるように選ばれている。ここで、図形データの
具体例を、図6を参照して説明する。まず、頂点数には
“6”が、頂点1から6のデータには、番号“1”から
“6”が付された頂点のデータが格納される。Hereinafter, each component will be described in detail. [Graphic Data Storage Unit 10] The graphic data storage unit 10 includes
The graphic data represented by the triangle list is stored in the format shown in FIG. That is, the header of the triangle list element, the number of vertices, and each data of vertices 1 to N are stored. The data of the vertices 1 to 3 are selected so that they are always independent triangles. Here, a specific example of the graphic data will be described with reference to FIG. First, "6" is stored in the number of vertices, and the data of the vertices 1 to 6 stores the data of the vertices numbered "1" to "6".
【0027】そして、各頂点のデータは、座標と、頂点
色と、頂点法線と、頂点フラグとで構成されている。こ
のうち、頂点色、頂点法線、頂点フラグは、必ずしもデ
ータが用意されている訳ではなく、必要に応じ値が設定
されている。また、頂点フラグは、ダミーエリアと、
(a)(n−2)頂点間の外周線フラグ(1ビット)
と、(b)(n−1)頂点間の外周線フラグ(1ビッ
ト)と、(c)三角形形状フラグ(2ビット)とで構成
されている。The data of each vertex is composed of coordinates, vertex colors, vertex normals, and vertex flags. Of these, data is not necessarily prepared for the vertex color, the vertex normal, and the vertex flag, and values are set as necessary. Also, the vertex flag is a dummy area,
(A) (n-2) Perimeter line flag between vertices (1 bit)
And (b) (n-1) outer peripheral line flag between vertices (1 bit) and (c) triangular shape flag (2 bits).
【0028】(a)(n−2)頂点間の外周線フラグと
は、“(n−2)”番の頂点と“n”番の頂点間の外周
線が有るか無いかを示すフラグである(有る場合は
“1”で、無い場合は“0”)。図7の(a)で説明す
ると、例えば“1”番の頂点と“3”番の頂点間には外
周線があるから“1”となるが、“3”番の頂点と
“5”番の頂点間には外周線がないから“0”となる。The (a) (n-2) outer peripheral line flag between vertices is a flag indicating whether or not there is an outer peripheral line between the "(n-2)" vertex and the "n" vertex. Yes (“1” if yes, “0” if no). Explaining with reference to FIG. 7A, for example, since there is an outer peripheral line between the "1" vertex and the "3" vertex, it becomes "1", but the "3" vertex and the "5" vertex Since there is no peripheral line between the vertices of, the value is "0".
【0029】(b)(n−1)頂点間の外周線フラグと
は、“(n−1)”番の頂点と“n”番の頂点間の外周
線が有るか無いかを示すフラグである(有る場合は
“1”で、無い場合は“0”)。図7の(a)で説明す
ると、例えば“2”番の頂点と“3”番の頂点間には外
周線があるから“1”となる。(B) The outer peripheral line flag between (n-1) vertices is a flag indicating whether or not there is an outer peripheral line between the "(n-1)" vertex and the "n" vertex. Yes (“1” if yes, “0” if no). Explaining with reference to FIG. 7A, for example, since there is an outer peripheral line between the "2" vertex and the "3" vertex, it becomes "1".
【0030】(c)三角形形状フラグとは、図形の種別
によって下記の(イ)から(ハ)のいずれかを示すフラ
グである。ただし、頂点列は、“0”番から1づつ増加
する番号が割り当てられているものとする。 (イ)“n”番の頂点と“(n+1)”番の頂点と
“(n+2)”番の頂点より三角形が構成される場合、
独立三角形を示す値“00”をとる。 (ロ)“(n−2)”番の頂点と“(n−1)”番の頂
点と“n”番の頂点より三角形が構成される場合、三角
形ストリップを示す値“01”をとる。 (ハ)“0”番の頂点と“(n−1)”番の頂点と
“n”番の頂点より三角形が構成される場合、三角形ス
トリップを示す値“10”をとる。(C) The triangular shape flag is a flag indicating any one of the following (a) to (c) depending on the type of figure. However, it is assumed that the vertex row is assigned a number that is incremented by 1 from "0". (A) In the case where a triangle is composed of the “n” vertex, the “(n + 1)” vertex and the “(n + 2)” vertex,
The value "00" indicating an independent triangle is taken. (B) When a triangle is composed of "(n-2)" vertices, "(n-1)" vertices, and "n" vertices, the value "01" indicating a triangle strip is taken. (C) When a triangle is composed of the "0" vertex, the "(n-1)" vertex and the "n" vertex, the value "10" indicating the triangle strip is taken.
【0031】〔三角形リスト処理部20〕三角形リスト
処理部20の内部は、下記の(1)〜(3)からなる。 (1−a)頂点列を含む頂点データの変換を行う頂点デ
ータ変換部21。 (1−b)頂点データ変換部21より入力した三角形ス
ターの頂点データを2つの三角形よりなる三角形ストリ
ップ群の頂点データに変換する第1のストリップ頂点デ
ータ変換処理部25a。 (1−c)現在何番目のストリップを処理しているかと
いう情報を格納するストリップ分割番号テーブル23。 (1−d)頂点データの変換方法に関する情報を格納す
る第1の頂点データ変換テーブル26a。 (2−a)外周線データの付け替えを行う外周線変換部
27。 (2−b)外周線変換部27より外周線データを入力し
て、三角形ストリップ用の外周線データを変換する第1
のストリップ用外周線変換部28a。 (2−c)外周線データの変換方法に関する情報を格納
する第1の外周線変換テーブル29a。 (3−a)第1のストリップ頂点データ変換処理部25
a及び第1のストリップ用外周線変換部28aが変換し
た情報を格納するストリップデータ格納部24。 (3−b)ストリップデータ格納部24に格納された情
報を図形描画部30に送出するストリップデータ送出部
22。[Triangle List Processing Unit 20] The inside of the triangle list processing unit 20 is composed of the following (1) to (3). (1-a) A vertex data conversion unit 21 that converts vertex data including a vertex row. (1-b) A first strip vertex data conversion processing unit 25a for converting the vertex data of the triangular star input from the vertex data conversion unit 21 into the vertex data of the triangle strip group consisting of two triangles. (1-c) A strip division number table 23 that stores information on which strip is currently processed. (1-d) A first vertex data conversion table 26a that stores information regarding a method of converting vertex data. (2-a) An outer peripheral line conversion unit 27 that replaces outer peripheral line data. (2-b) First, inputting outer peripheral line data from the outer peripheral line converting unit 27 to convert the outer peripheral line data for the triangle strip.
Outer peripheral line converting portion 28a for strip. (2-c) A first outer peripheral line conversion table 29a that stores information regarding a method of converting outer peripheral line data. (3-a) First strip vertex data conversion processing unit 25
a and the strip data storage unit 24 that stores the information converted by the first strip outer peripheral line conversion unit 28a. (3-b) The strip data transmission unit 22 that transmits the information stored in the strip data storage unit 24 to the graphic drawing unit 30.
【0032】以下、各構成要素を説明する。 (頂点データ変換部21、第1のストリップ頂点データ
変換処理部25a)第1のストリップ頂点データ変換処
理部25aは、ストリップ分割番号テーブル23と第1
の頂点データ変換テーブル26aを変換時に参照する。Each component will be described below. (Vertex data conversion unit 21, first strip vertex data conversion processing unit 25a) The first strip vertex data conversion processing unit 25a includes the strip division number table 23 and the first
The vertex data conversion table 26a of is referred to at the time of conversion.
【0033】第1の頂点データ変換テーブル26aは、
具体的には、表1のように構成されている。この表1を
参照して、図1(a)に示す三角形スターの頂点列を図
1(b)(c)に示す三角形ストリップの頂点列に変換
する方法を説明する。The first vertex data conversion table 26a is
Specifically, it is configured as shown in Table 1. A method for converting the vertex array of the triangular star shown in FIG. 1A into the vertex array of the triangular strip shown in FIGS. 1B and 1C will be described with reference to Table 1.
【0034】[0034]
【表1】 まず、図1(b)に示す三角形ストリップ群の4つの頂
点“1”、“2”、“3”及び“4”は、1番目にでき
る三角形ストリップであるから、それぞれ図1(a)の
“2”番、“3”番、“1”番及び“4”番の頂点から
構成される。[Table 1] First, the four vertices “1”, “2”, “3” and “4” of the triangle strip group shown in FIG. 1B are the first triangle strips. It is composed of "2", "3", "1" and "4" vertices.
【0035】次に、図1(c)に示す三角形ストリップ
群の4つの頂点“5”、“6”、“7”及び“8”は、
2番目にできる三角形ストリップであるから、それぞれ
図1(a)の“4”番、“5”番、“1”番及び“6”
番の頂点から構成される。Next, the four vertices "5", "6", "7" and "8" of the triangular strip group shown in FIG.
Since it is the second triangular strip, it is the "4", "5", "1" and "6" in FIG. 1 (a), respectively.
It consists of the top of the number.
【0036】(外周線変換部27、第1のストリップ用
外周線変換部28a)第1のストリップ用外周線変換部
28aは、第1の外周線変換テーブル29aを変換時に
参照する。(Outer peripheral line conversion unit 27, first outer peripheral line conversion unit 28a) The first strip outer peripheral line conversion unit 28a refers to the first outer peripheral line conversion table 29a during conversion.
【0037】第1の外周線変換テーブル29aは、具体
的には、表2及び表3のように構成されている。表2及
び表3を参照して、図7(a)に示す三角形スターの外
周線を図7(b)に示す三角形ストリップの外周線に変
換する方法を説明する。The first outer peripheral line conversion table 29a is specifically constructed as shown in Tables 2 and 3. A method of converting the outer peripheral line of the triangular star shown in FIG. 7A into the outer peripheral line of the triangular strip shown in FIG. 7B will be described with reference to Tables 2 and 3.
【0038】[0038]
【表2】 まず、図7(b)に示す三角形ストリップ群は、1番目
にできる三角形ストリップであるから、表2に従って、
次のように変換される。[Table 2] First, since the triangle strip group shown in FIG. 7B is the first triangle strip, according to Table 2,
It is converted as follows.
【0039】“1”番の頂点については、この番号より
若い番号との間に外周線が引けないため、変換を考慮し
なくて良い。“2”番の頂点については、“1”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの3頂点目の(n−1)頂点間外周線(3-1)(図
7(a)参照)となる。Regarding the apex of "1", the outer peripheral line cannot be drawn between the number and a number smaller than this number, so it is not necessary to consider the conversion. A peripheral line can be drawn between the "2" apex and the "1" apex, but this peripheral line is the (n-1) inter-apex outer peripheral line (3 -1 ) of the third apex of the triangular star. ) (See FIG. 7A).
【0040】“3”番の頂点については、“2”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの3頂点目の(n−2)頂点間外周線(3-2)(図
7(a)参照)となる。また、“1”番の頂点との間に
外周線が引けるが、この外周線は、三角形スターの2頂
点目の(n−1)頂点間外周線(2-1)(図7(a)参
照)となる。An outer peripheral line can be drawn between the "3" apex and the "2" apex, and this outer peripheral line is the outer peripheral line between the (n-2) apexes of the third apex of the triangular star ( 3 -2 ) (see FIG. 7A). Also, an outer peripheral line can be drawn between the apex of "1", but this outer peripheral line is the outer peripheral line (2 -1 ) between the (n-1) apexes of the second apex of the triangular star (Fig. 7 (a)). (See).
【0041】“4”番の頂点については、“3”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの4頂点目の(n−2)頂点間外周線(4ー2)(図
7(a)参照)となる。また、“2”番の頂点との間に
外周線が引けるが、この外周線は、三角形スターの4頂
点目の(n−1)頂点間外周線(4ー1)(図7(a)参
照)となる。A peripheral line can be drawn between the "4" vertex and the "3" vertex, but this peripheral line is the (n-2) inter-vertical peripheral line (n-2) at the fourth vertex of the triangular star. 4-2 ) (see FIG. 7A). Further, "2" number but can be subtracted peripheral line between the apex of the outer peripheral line of the triangle Stars 4 vertices th (n-1) vertices between peripheral line (4-1) (FIGS. 7 (a) (See).
【0042】[0042]
【表3】 まず、図7(c)に示す三角形ストリップ群は、2番目
にできる三角形ストリップであるから、表3に従って、
次のように変換される。[Table 3] First, since the triangular strip group shown in FIG. 7C is the second triangular strip group, according to Table 3,
It is converted as follows.
【0043】“5”番の頂点については、この番号より
若い番号との間に外周線が引けないため、変換を考慮し
なくて良い。“6”番の頂点については、“5”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの5頂点目の(n−1)頂点間外周線(5-1)(図
7(a)参照)となる。Regarding the apex of "5", since an outer peripheral line cannot be drawn between the number and a number smaller than this number, the conversion need not be considered. The apex of the "6" th, "5" th but can be subtracted peripheral line between the apex of the outer peripheral line of the triangle Stars 5 vertices th (n-1) vertices between peripheral line (5 -1 ) (See FIG. 7A).
【0044】“7”番の頂点については、“6”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの5頂点目の(n−2)頂点間外周線(5ー2)(図
7(a)参照)となる。また、“5”番の頂点との間に
外周線が引けるが、この外周線は、三角形スターの4頂
点目の(n−2)頂点間外周線(4ー2)(図7(a)参
照)となる。An outer peripheral line can be drawn between the apex of "7" and the apex of "6", but this outer peripheral line is the outer peripheral line between the (n-2) apexes of the fifth apex of the triangular star ( 5-2 ) (see FIG. 7 (a)). Further, "5" th but can be subtracted peripheral line between the apex of the outer peripheral line of the triangle star 4 vertices th (n-2) between vertices peripheral line (4-2) (FIGS. 7 (a) (See).
【0045】“8”番の頂点については、“7”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの6頂点目の(n−2)頂点間外周線(6ー2)(図
7(a)参照)となる。また、“6”番の頂点との間に
外周線が引けるが、この外周線は、三角形スターの6頂
点目と(n−1)頂点間外周線(6ー1)(図7(a)参
照)となる。An outer peripheral line can be drawn between the apex of "8" and the apex of "7", and this outer peripheral line is the outer peripheral line between the (n-2) apexes of the sixth vertex of the triangular star ( 6-2 ) (see FIG. 7 (a)). Further, "6" number but can be subtracted peripheral line between the apex of the outer peripheral line, 6 vertices th triangle star and (n-1) vertices between peripheral line (6-1) (FIGS. 7 (a) (See).
【0046】<三角形リスト処理部20の動作>次に、
図11を参照して三角形リスト処理部20の動作を説明
する。まず、図形データ格納部10から図形データが入
力されると、「三角形スター」、「三角形ストリッ
プ」、及び「独立三角形」のいずれに該当するかが形状
判定される(ステップ1101)。<Operation of Triangle List Processing Unit 20> Next,
The operation of the triangle list processing unit 20 will be described with reference to FIG. First, when the graphic data is input from the graphic data storage unit 10, the shape of the “triangle star”, the “triangle strip”, or the “independent triangle” is determined (step 1101).
【0047】ステップ1101で、「三角形ストリッ
プ」と判定された場合は、図示していない三角形ストリ
ップ処理部に処理が移る(ステップ1103)。また、
ステップ1101で「独立三角形」と判定された場合
は、図示していない独立三角形処理部に処理が移る(ス
テップ1104)。If it is determined in step 1101 that the "triangle strip" is present, the process proceeds to a triangle strip processing unit (not shown) (step 1103). Also,
If it is determined as "independent triangle" in step 1101, the process moves to an independent triangle processing unit (not shown) (step 1104).
【0048】そして、ステップ1101で「三角形スタ
ー」と判定された場合は、2つのストリップ分のデータ
を読み込む(ステップ1102)。そして、1番目のス
トリップか否かを判断する(ステップ1105)。Then, if it is determined in step 1101 that it is a "triangle star", data for two strips is read (step 1102). Then, it is determined whether or not it is the first strip (step 1105).
【0049】ステップ1105で、YES(=1番目の
ストリップ)と判断された場合、更に、外周線データ付
きか否かを判断する(ステップ1106)。ステップ1
106で、YES(=外周線データ付き)と判断された
場合、第1の外周線変換テーブル29aの1番目にでき
るストリップの表により、外周線データを付け替える
(ステップ1107)。When it is judged YES (= 1st strip) in step 1105, it is further judged whether or not outer peripheral line data is included (step 1106). Step 1
When it is determined to be YES (= with outer peripheral line data) in 106, the outer peripheral line data is replaced according to the first strip table in the first outer peripheral line conversion table 29a (step 1107).
【0050】ステップ1106で、NO(=外周線デー
タが付いていない)と判断された場合及びステップ11
07の後に、第1の頂点データ変換テーブル26aの1
番目にできるストリップ表の順番で4頂点をストリップ
として送出する(ステップ1108)。When it is judged as NO (= the outer peripheral line data is not attached) in step 1106, and step 11
After 07, 1 in the first vertex data conversion table 26a
The four vertices are sent out as strips in the order of the second strip table (step 1108).
【0051】一方、ステップ1105で、NO(=1番
目のストリップではない)と判断された場合、更に、外
周線データ付きか否かを判断する(ステップ110
9)。ステップ1109で、YES(=外周線データ付
き)と判断された場合、第1の外周線変換テーブル29
aのN番目にできるストリップの表により、外周線デー
タを付け替える(ステップ1110)。On the other hand, if NO (= 1st strip) is judged in step 1105, it is further judged whether or not outer peripheral line data is attached (step 110).
9). If YES (= with outer peripheral line data) is determined in step 1109, the first outer peripheral line conversion table 29
The outer peripheral line data is rearranged according to the table of the Nth strip of a (step 1110).
【0052】ステップ1110で、NO(=外周線デー
タが付いていない)と判断された場合及びステップ11
10の後に、第1の頂点データ変換テーブル26aのN
番目にできるストリップ表の順番で4頂点をストリップ
として送出する(ステップ1111)。When it is judged as NO (= no outer peripheral line data is attached) in step 1110, and in step 11
10 after the first vertex data conversion table 26a N
The four vertices are sent out as strips in the order of the second strip table (step 1111).
【0053】ステップ1108及びステップ1111の
後に、全てのストリップデータを送ったか否かを判断す
る(ステップ1112)。ステップ1112で、NO
(=送っていない)と判断された場合、ステップ110
2に戻る。After steps 1108 and 1111, it is determined whether all strip data has been sent (step 1112). NO in step 1112
If it is determined that (= not sent), step 110
Return to 2.
【0054】[0054]
【第2実施例】 <構成>図12は、本発明の第2実施例の構成ブロック
図である。[Second Embodiment] <Structure> FIG. 12 is a block diagram showing the structure of a second embodiment of the present invention.
【0055】第2実施例は、第1実施例と同様に構成さ
れているので、同一部分には同一符号を付して説明を省
略し、以下、相違する部分についてのみ説明する。 〔三角形リスト処理部20〕三角形リスト処理部20の
内部は、下記の(1)〜(3)からなる。 (1−a)頂点列を含む頂点データの変換を行う頂点デ
ータ変換部21。 (1−b)頂点データ変換部21より入力した三角形ス
ターの頂点データを三角形ストリップ群の頂点データに
変換する第2のストリップ頂点データ変換処理部25
b。 (1−c)現在何番目のストリップを処理しているかと
いう情報を格納するストリップ分割番号テーブル23。 (1−d)頂点データの変換方法に関する情報を格納す
る第2の頂点データ変換テーブル26b。 (2−a)外周線データの付け替えを行う外周線変換部
27。 (2−b)外周線変換部27より外周線データを入力し
て、三角形ストリップ用の外周線データを変換する第2
のストリップ用外周線変換部28b。 (2−c)外周線データの変換方法に関する情報を格納
する第2の外周線変換テーブル29b。 (3−a)第2のストリップ頂点データ変換処理部25
b及び第2のストリップ用外周線変換部28bが変換し
た情報を格納するストリップデータ格納部24。 (3−b)ストリップデータ格納部24に格納された情
報を図形描画部30に送出するストリップデータ送出部
22。Since the second embodiment has the same structure as the first embodiment, the same parts are designated by the same reference numerals and the description thereof will be omitted. Only the different parts will be described below. [Triangle list processing unit 20] The inside of the triangle list processing unit 20 is composed of the following (1) to (3). (1-a) A vertex data conversion unit 21 that converts vertex data including a vertex row. (1-b) Second strip vertex data conversion processing unit 25 for converting the vertex data of the triangle star input from the vertex data conversion unit 21 into the vertex data of the triangle strip group.
b. (1-c) A strip division number table 23 that stores information on which strip is currently processed. (1-d) A second vertex data conversion table 26b that stores information regarding the conversion method of vertex data. (2-a) An outer peripheral line conversion unit 27 that replaces outer peripheral line data. (2-b) Inputting outer peripheral line data from the outer peripheral line converting unit 27 to convert the outer peripheral line data for the triangular strip.
Outer peripheral line conversion unit 28b for strip. (2-c) A second outer peripheral line conversion table 29b that stores information about a method of converting outer peripheral line data. (3-a) Second strip vertex data conversion processing unit 25
b and the strip data storage unit 24 that stores the information converted by the second strip outer peripheral line conversion unit 28b. (3-b) The strip data transmission unit 22 that transmits the information stored in the strip data storage unit 24 to the graphic drawing unit 30.
【0056】以下、各構成要素を説明する。 (頂点データ変換部21、第2のストリップ頂点データ
変換処理部25b)第2のストリップ頂点データ変換処
理部25bは、ストリップ分割番号テーブル23と第2
の頂点データ変換テーブル26bを変換時に参照する。Each component will be described below. (Vertex data conversion unit 21, second strip vertex data conversion processing unit 25b) The second strip vertex data conversion processing unit 25b includes the strip division number table 23 and the second
The vertex data conversion table 26b of is referred to at the time of conversion.
【0057】第2の頂点データ変換テーブル26aは、
具体的には、表4のように構成されている。この表4を
参照して、図2(a)に示す三角形スターの頂点列を図
2(b)に示す三角形ストリップの頂点列に変換する方
法を説明する。The second vertex data conversion table 26a is
Specifically, it is configured as shown in Table 4. A method for converting the vertex array of the triangular star shown in FIG. 2A into the vertex array of the triangular strip shown in FIG. 2B will be described with reference to Table 4.
【0058】[0058]
【表4】 まず、図2(b)に示す三角形ストリップの“1”番目
の頂点は、図2(a)に示す三角形スターの“2”番目
の頂点から変換される。[Table 4] First, the "1" th vertex of the triangular strip shown in FIG. 2B is converted from the "2" th vertex of the triangular star shown in FIG. 2A.
【0059】以下、図2(b)に示す三角形ストリップ
の“2”番目、“3”番目、“4”番目、“5”番目、
“6”番目、“7”番目及び“8”番目の頂点は、それ
ぞれ図2(a)の示す三角形スターの“3”番目、
“1”番目、“4”番目、“1”番目、“1”番目及び
“6”番目の頂点から変換される。Hereinafter, the "2" th, "3" th, "4" th, "5" th, and 3rd of the triangular strip shown in FIG.
The "6" th, "7" th, and "8" th vertices are the "3" th and the 3rd of the triangular star shown in FIG. 2 (a), respectively.
The "1" -th, "4" -th, "1" -th, "1" -th, and "6" -th vertices are converted.
【0060】第2のストリップ用外周線変換部28b
は、第2の外周線変換テーブル29bを変換時に参照す
る。第2の外周線変換テーブル29bは、具体的には、
表5及び表6のように構成されている。Second outer peripheral line converting portion 28b for strip
Refers to the second outer peripheral line conversion table 29b during conversion. The second outer peripheral line conversion table 29b is, specifically,
It is configured as shown in Table 5 and Table 6.
【0061】表5及び表6を参照して、図8(a)に示
す三角形スターの外周線を図8(b)に示す三角形スト
リップの外周線に変換する方法を説明する。A method of converting the outer peripheral line of the triangular star shown in FIG. 8A into the outer peripheral line of the triangular strip shown in FIG. 8B will be described with reference to Tables 5 and 6.
【0062】[0062]
【表5】 [Table 5]
【0063】[0063]
【表6】 まず、“1”番の頂点については、この番号より若い番
号との間に外周線が引けないため、変換を考慮しなくて
良い。[Table 6] First, since the outer peripheral line cannot be drawn between the number "1" and a number smaller than this number, the conversion need not be considered.
【0064】“2”番の頂点については、“1”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの3頂点目の(n−1)頂点間外周線(3-1)(図
8(a)参照)となる。An outer peripheral line can be drawn between the "2" apex and the "1" apex. This outer peripheral line is the outer peripheral line between the (n-1) apexes of the third apex of the triangular star ( 3 −1 ) (see FIG. 8A).
【0065】“3”番の頂点については、“2”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの3頂点目の(n−2)頂点間外周線(3-2)(図
8(a)参照)となる。また、“1”番の頂点との間に
外周線が引けるが、この外周線は、三角形スターの2頂
点目の(n−1)頂点間外周線(2-1)(図8(a)参
照)となる。An outer peripheral line can be drawn between the "3" apex and the "2" apex, and this outer peripheral line is the outer peripheral line between the (n-2) apexes of the third apex of the triangular star ( 3 -2 ) (see FIG. 8A). Also, an outer peripheral line can be drawn between the apex of "1", but this outer peripheral line is the outer peripheral line (2 -1 ) between the (n-1) apexes of the second apex of the triangular star (Fig. 8 (a)). (See).
【0066】“4”番の頂点については、“3”番の頂
点との間に外周線が引けるが、この外周線は、三角形ス
ターの4頂点目の(n−2)頂点間外周線(4ー2)(図
8(a)参照)となる。また、“2”番の頂点との間に
外周線が引けるが、この外周線は、三角形スターの4頂
点目の(n−1)頂点間外周線(4ー1)(図8(a)参
照)となる。An outer peripheral line can be drawn between the "4" apex and the "3" apex. This outer peripheral line is the outer peripheral line between the (n-2) apexes of the fourth apex of the triangular star ( 4-2 ) (see FIG. 8A). A peripheral line can be drawn between the "2" vertex and this peripheral line is the (n-1) inter-vertical peripheral line ( 4-1 ) at the 4th vertex of the triangular star (Fig. 8 (a)). (See).
【0067】“5”番の頂点については、表6より考慮
しなくてもよい。“6”番の頂点については、“5”番
の頂点との間に外周線が引けるが、この外周線は、三角
形スターの5頂点目の(n−2)頂点間外周線(5ー2)
(図8(a)参照)となる。また、“4”番の頂点との
間に外周線が引けるが、この外周線は、三角形スターの
5頂点目の(n−1)頂点間外周線(5ー1)(図8
(a)参照)となる。It is not necessary to consider from Table 6 the vertex "5". The apex of the "6" th, "5" th but can be subtracted peripheral line between the apex of the outer peripheral line of the triangle Stars 5 vertices th (n-2) between vertices peripheral line (5-2 )
(See FIG. 8A). Also, an outer peripheral line can be drawn between the "4" vertex and this outer peripheral line is the outer peripheral line ( 5-1 ) between the (n-1) apexes of the fifth vertex of the triangular star (Fig. 8).
(See (a)).
【0068】“7”番の頂点については、表6より考慮
しなくてもよい。“8”番の頂点については、“7”番
の頂点との間に外周線が引けるが、この外周線は、三角
形スターの6頂点目の(n−2)頂点間外周線(6ー2)
(図8(a)参照)となる。また、“6”番の頂点との
間に外周線が引けるが、この外周線は、三角形スターの
5頂点目の(n−1)頂点間外周線(6ー1)(図8
(a)参照)となる。It is not necessary to consider from Table 6 the "7" vertex. A peripheral line can be drawn between the apex of "8" and the apex of "7", but this peripheral line is the outer peripheral line between the (n-2) apexes of the sixth vertex of the triangular star ( 6-2 )
(See FIG. 8A). A peripheral line can be drawn between the "6" vertex and this peripheral line is the (n-1) inter-vertical peripheral line ( 6-1 ) at the 5th vertex of the triangular star (Fig. 8).
(See (a)).
【0069】<三角形リスト処理部20の動作>次に、
図13を参照して三角形リスト処理部20の動作を説明
する。まず、図形データ格納部10から図形データが入
力されると、「三角形スター」、「三角形ストリッ
プ」、及び「独立三角形」のいずれに該当するかが形状
判定される(ステップ1301)。<Operation of Triangle List Processing Unit 20> Next,
The operation of the triangle list processing unit 20 will be described with reference to FIG. First, when the graphic data is input from the graphic data storage unit 10, the shape of the “triangle star”, the “triangle strip”, or the “independent triangle” is determined (step 1301).
【0070】ステップ1301で、「三角形ストリッ
プ」と判定された場合は、図示していない三角形ストリ
ップ処理部に処理が移る(ステップ1303)。また、
ステップ1301で「独立三角形」と判定された場合
は、図示していない独立三角形処理部に処理が移る(ス
テップ1304)。If it is determined in step 1301 that the "triangle strip" is present, the process moves to a triangle strip processing unit (not shown) (step 1303). Also,
If it is determined as "independent triangle" in step 1301, the process moves to an independent triangle processing unit (not shown) (step 1304).
【0071】そして、ステップ1301で「三角形スタ
ー」と判定された場合は、2つのストリップ分のデータ
を読み込む(ステップ1302)。そして、1番目のス
トリップか否かを判断する(ステップ1305)。Then, when it is judged as "triangle star" in step 1301, the data for two strips is read (step 1302). Then, it is judged whether or not it is the first strip (step 1305).
【0072】ステップ1305で、YES(=1番目の
ストリップ)と判断された場合、更に、外周線データ付
きか否かを判断する(ステップ1306)。ステップ1
306で、YES(=外周線データ付き)と判断された
場合、第2の外周線変換テーブル29bの1番目にでき
るストリップの表により、外周線データを付け替える
(ステップ1307)。When it is determined YES (= 1st strip) in step 1305, it is further determined whether or not outer peripheral line data is included (step 1306). Step 1
When it is determined YES in 306 (= with outer peripheral line data), the outer peripheral line data is replaced according to the first strip table in the second outer peripheral line conversion table 29b (step 1307).
【0073】ステップ1306で、NO(=外周線デー
タが付いていない)と判断された場合及びステップ13
07の後に、3頂点を第2の頂点データ変換テーブル2
6bより変換して送出する(ステップ1308)。When it is determined as NO (= the outer peripheral line data is not attached) in step 1306, and step 13
After 07, 3 vertices are converted to the second vertex data conversion table 2
6b is converted and transmitted (step 1308).
【0074】一方、ステップ1305で、NO(=1番
目のストリップではない)と判断された場合、更に、外
周線データ付きか否かを判断する(ステップ130
9)。ステップ1309で、YES(=外周線データ付
き)と判断された場合、第2の外周線変換テーブル29
bのN番目にできるストリップの表により、外周線デー
タを付け替える(ステップ1310)。On the other hand, when it is judged NO in step 1305 (= not the first strip), it is further judged whether or not outer peripheral line data is attached (step 130).
9). If it is determined as YES (= with outer peripheral line data) in step 1309, the second outer peripheral line conversion table 29
The outer peripheral line data is rearranged according to the table of the Nth strip formed in b (step 1310).
【0075】ステップ1310で、NO(=外周線デー
タが付いていない)と判断された場合及びステップ13
10の後に、2頂点を第2の頂点データ変換テーブル2
6bより変換して送出する(ステップ1311)。When it is judged as NO (= the outer peripheral line data is not attached) in Step 1310, and Step 13
After 10, the second vertex is converted into the second vertex data conversion table 2
6b is converted and transmitted (step 1311).
【0076】ステップ1308及びステップ1311の
後に、全てのストリップデータを送ったか否かを判断す
る(ステップ1312)。ステップ1312で、NO
(=送っていない)と判断された場合、ステップ130
2に戻る。After steps 1308 and 1311, it is determined whether all strip data has been sent (step 1312). NO in step 1312
If it is determined (= not sent), step 130
Return to 2.
【0077】[0077]
【発明の効果】本発明の図形データ処理方法及び図形デ
ータ処理装置によれば、三角形スター構造の図形データ
を三角形ストリップ構造の図形データに変換して処理す
ることで、三角形ストリップを高速に描画する装置が利
用可能となり、従来、高速描画が困難であった三角形ス
ターを高速に描画することが可能になる。According to the graphic data processing method and the graphic data processing apparatus of the present invention, the graphic data of the triangle star structure is converted into the graphic data of the triangle strip structure and processed, thereby drawing the triangle strip at high speed. The device can be used, and it becomes possible to draw a triangular star at high speed, which was difficult to draw at high speed in the past.
【図1】本発明の図形データ処理方法の第1原理図であ
る。FIG. 1 is a first principle diagram of a graphic data processing method of the present invention.
【図2】本発明の図形データ処理方法の第2原理図であ
る。FIG. 2 is a second principle diagram of the graphic data processing method of the present invention.
【図3】本発明の図形データ処理装置の原理図である。FIG. 3 is a principle diagram of a graphic data processing device of the present invention.
【図4】独立三角形の説明図である。FIG. 4 is an explanatory diagram of an independent triangle.
【図5】三角形ストリップの説明図である。FIG. 5 is an explanatory diagram of a triangular strip.
【図6】三角形スターの説明図である。FIG. 6 is an explanatory diagram of a triangular star.
【図7】三角形スターの外周線フラグと三角形ストリッ
プの外周線フラグとの関係図である。FIG. 7 is a diagram showing a relationship between an outer peripheral line flag of a triangular star and an outer peripheral line flag of a triangular strip.
【図8】三角形スターの外周線フラグと三角形ストリッ
プの外周線フラグとの関係図である。FIG. 8 is a diagram showing a relationship between an outer peripheral line flag of a triangular star and an outer peripheral line flag of a triangular strip.
【図9】第1実施例の構成ブロック図である。FIG. 9 is a configuration block diagram of the first embodiment.
【図10】実施例の三角形リスト要素テーブルを示す図
である。FIG. 10 is a diagram showing a triangle list element table according to the embodiment.
【図11】第1実施例の三角形リスト処理部のフローチ
ャートである。FIG. 11 is a flowchart of a triangle list processing unit according to the first embodiment.
【図12】第2実施例の構成ブロック図である。FIG. 12 is a configuration block diagram of a second embodiment.
【図13】第2実施例の三角形リスト処理部のフローチ
ャートである。FIG. 13 is a flowchart of a triangle list processing unit according to the second embodiment.
10・・・・図形データ格納部 20・・・・三角形リスト処理部 21・・・・頂点データ変換部 22・・・・ストリップデータ送出部 23・・・・ストリップ分割番号テーブル 24・・・・ストリップデータ格納部 25a・・・第1のストリップ頂点データ変換処理部 25b・・・第2のストリップ頂点データ変換処理部 26a・・・第1の頂点データ変換テーブル 26b・・・第2の頂点データ変換テーブル 27・・・・外周線変換部 28a・・・第1のストリップ用外周線変換部 28b・・・第2のストリップ用外周線変換部 29a・・・第1の外周線変換テーブル 29b・・・第2の外周線変換テーブル 30・・・・図形描画部 10 ... Graphic data storage unit 20 ... Triangle list processing unit 21 ... Vertex data conversion unit 22 ... Strip data transmission unit 23 ... Strip division number table 24 ... Strip data storage unit 25a ... First strip vertex data conversion processing unit 25b ... Second strip vertex data conversion processing unit 26a ... First vertex data conversion table 26b ... Second vertex data Conversion table 27 ... Outer peripheral line conversion unit 28a ... First strip outer peripheral line conversion unit 28b ... Second strip outer peripheral line conversion unit 29a ... First outer peripheral line conversion table 29b. .... Second outer peripheral line conversion table 30 ... Graphic drawing unit
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 9365−5H G06F 15/72 355 K ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location 9365-5H G06F 15/72 355 K
Claims (6)
する番号を割り当ててなる頂点列であり、“n”を1以
上の整数とした場合に、所定番号、(所定番号+n)番
及び(所定番号+n+1)番の頂点から形成される三角
形により、前記図形の内部を過不足なく分割する第一の
頂点列を、 前記図形の各頂点に割り当ててなる別の頂点列であり、
“m”を整数とした場合に、(m−2)番、(m−1)
番及びm番の頂点から形成される三角形と(m−1)
番、m番及び(m+1)番の頂点から形成される三角形
とを合成して形成される四角形により、前記図形の内部
を過不足なく分割する第二の頂点列に変換して処理する
ことを含むことを特徴とする図形データ処理方法。1. A vertex sequence in which a number that is incremented by one is assigned to each vertex of a figure from a predetermined number. When "n" is an integer of 1 or more, a predetermined number, (predetermined number + n) number And a first vertex row which divides the inside of the figure without excess or deficiency by a triangle formed from the (predetermined number + n + 1) number of vertices is another vertex row which is assigned to each vertex of the figure,
When "m" is an integer, (m-2) number, (m-1)
Triangle formed from the vertices of the number n and m and (m-1)
By converting a quadrangle formed by synthesizing a triangle formed from the # 1, m-th, and (m + 1) -th vertices into a second vertex row that divides the inside of the figure without excess or deficiency, processing is performed. A graphic data processing method comprising:
れたフラグである第一の外周線フラグを、 前記第二の頂点列が付された頂点間の各辺に割り当てら
れたフラグである第二の外周線フラグに変換して処理す
ることを特徴とする図形データ処理方法。2. The first peripheral line flag according to claim 1, wherein the first peripheral line flag is a flag assigned to each side between the vertices to which the first vertex line is attached, and the second vertex line is attached. A graphic data processing method characterized by converting to a second outer peripheral line flag which is a flag assigned to each side between vertices and processing.
する番号を割り当ててなる頂点列であり、“n”を1以
上の整数とした場合に、所定番号、(所定番号+n)番
及び(所定番号+n+1)番の頂点から形成される三角
形により、前記図形の内部を過不足なく分割するように
割り当てられた第一の頂点列を、 前記図形の各頂点に割り当ててなる別の頂点列であり、
“m”を整数とした場合に、(m−2)番、(m−1)
番及びm番の頂点から形成される三角形により、前記図
形の内部を過不足なく分割する第二の頂点列に変換して
処理することを特徴とする図形データ処理方法。3. A vertex sequence in which a number that is incremented by one from a predetermined number is assigned to each vertex of a figure. When "n" is an integer of 1 or more, a predetermined number, (predetermined number + n) number And another vertex formed by allocating to the vertices of the figure a first row of vertices that is assigned to divide the inside of the figure without excess or deficiency by a triangle formed by the vertices of (predetermined number + n + 1) Columns,
When "m" is an integer, (m-2) number, (m-1)
A graphic data processing method characterized by converting the inside of the graphic into a second apex sequence that divides the interior of the graphic with just the right and left corners by using a triangle formed from the # 1 and m-th vertices.
れたフラグである第一の外周線フラグを、 前記第二の頂点列が付された頂点間の各辺に割り当てら
れたフラグである第二の外周線フラグに変換して処理す
ることを特徴とする図形データ処理方法。4. The third peripheral line flag according to claim 3, wherein the first peripheral line flag is a flag assigned to each side between the vertices to which the first vertex line is attached. A graphic data processing method characterized by converting to a second outer peripheral line flag which is a flag assigned to each side between vertices and processing.
する番号を割り当ててなる頂点列であり、“n”を1以
上の整数とした場合に、所定番号、(所定番号+n)番
及び(所定番号+n+1)番の頂点から形成される三角
形により、前記図形の内部を過不足なく分割する第一の
頂点列を、図形データ格納部から入力し、前記図形の各
頂点に割り当ててなる別の頂点列であり、“m”を整数
とした場合に、(m−2)番、(m−1)番及びm番の
頂点から形成される三角形と(m−1)番、m番及び
(m+1)番の頂点から形成される三角形とを合成して
形成される四角形により、前記図形の内部を過不足なく
分割する第二の頂点列に変換する頂点データ変換部と、 この頂点データ変換部により変換された第二の頂点列
を、三角形ストリップを描画する機能を有する図形描画
部に出力する変換データ出力部とを備えたことを特徴と
する図形データ処理装置。5. A vertex sequence in which a number that is incremented by one is assigned to each vertex of a figure from a predetermined number. When "n" is an integer of 1 or more, a predetermined number, (predetermined number + n) number And a first vertex row that divides the inside of the figure without excess or deficiency by the triangle formed by the (predetermined number + n + 1) vertices is input from the figure data storage unit and assigned to each vertex of the figure. It is another vertex sequence, and when "m" is an integer, a triangle formed from vertices of (m-2) th, (m-1) th and mth and (m-1) th and mth And a vertex formed by combining the triangles formed by the (m + 1) th vertices into a second vertex sequence that divides the inside of the figure without excess or deficiency, and this vertex data. The second vertex row converted by the converter is a triangle strip. And a conversion data output unit that outputs the converted data to a graphic drawing unit having a function of drawing.
する番号を割り当ててなる頂点列であり、“n”を1以
上の整数とした場合に、所定番号、(所定番号+n)番
及び(所定番号+n+1)番の頂点から形成される三角
形により、前記図形の内部を過不足なく分割するように
割り当てられた第一の頂点列を、図形データ格納部から
入力し、前記図形の各頂点に割り当ててなる別の頂点列
であり、“m”を整数とした場合に、(m−2)番、
(m−1)番及びm番の頂点から形成される三角形によ
り、前記図形の内部を過不足なく分割する第二の頂点列
に変換する頂点データ変換部と、 この頂点データ変換部により変換された第二の頂点列
を、三角形ストリップを描画する機能を有する図形描画
部に出力する変換データ出力部とを備えたことを特徴と
する図形データ処理装置。6. A vertex sequence in which a number that is incremented by one is assigned to each vertex of a figure from a predetermined number. When "n" is an integer of 1 or more, a predetermined number, (predetermined number + n) number And a triangle formed by the (predetermined number + n + 1) number of vertices, the first vertex row allocated so as to divide the inside of the figure without excess or deficiency is input from the figure data storage unit, and each of the figures It is another vertex sequence assigned to the vertices, and when "m" is an integer, the number (m-2),
A vertex data conversion unit that converts the inside of the figure into a second vertex sequence that divides the inside of the figure without excess or deficiency by a triangle formed from (m-1) th and mth vertices, and is converted by this vertex data conversion unit. And a converted data output unit for outputting the second vertex row to a graphic drawing unit having a function of drawing a triangular strip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6241460A JPH08106521A (en) | 1994-10-05 | 1994-10-05 | Graphic data processing method and graphic data processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6241460A JPH08106521A (en) | 1994-10-05 | 1994-10-05 | Graphic data processing method and graphic data processing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH08106521A true JPH08106521A (en) | 1996-04-23 |
Family
ID=17074653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6241460A Withdrawn JPH08106521A (en) | 1994-10-05 | 1994-10-05 | Graphic data processing method and graphic data processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH08106521A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011175656A (en) * | 2006-05-11 | 2011-09-08 | Panasonic Corp | Processing device |
-
1994
- 1994-10-05 JP JP6241460A patent/JPH08106521A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011175656A (en) * | 2006-05-11 | 2011-09-08 | Panasonic Corp | Processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2134447C1 (en) | Data transfer device and video game using it | |
CA1181881A (en) | Method and apparatus for compiling digital image information | |
US4533910A (en) | Graphics display system with viewports of arbitrary location and content | |
EP0235456A2 (en) | Image processing apparatus | |
JPH0916144A (en) | System and method for triangle raster with two-dimensionallyinterleaved frame buffer | |
EP0076082B1 (en) | Display processing apparatus | |
EP0279693A2 (en) | Multi-plane video ram | |
US5724560A (en) | Display graphics adapter for processing different pixel sizes in a windowing system | |
US5719598A (en) | Graphics processor for parallel processing a plurality of fields of view for multiple video displays | |
JPS60191293A (en) | High-speed linear interpolation circuit for CRT display devices | |
JPH08106521A (en) | Graphic data processing method and graphic data processing device | |
JPH06223099A (en) | Signal processing system provided with reduced memory space | |
US5535315A (en) | Graphic coloring system in a graphic-display system having separately stored shape/positional data and color data selectively combinable to form desired images of differing shapes and colors | |
US6563507B1 (en) | Storage circuit control device and graphic computation device | |
US6476818B1 (en) | Storage circuit control device and graphic computation device | |
JP2677954B2 (en) | Memory system | |
US4291306A (en) | Figure displaying device | |
JPS6292070A (en) | Memory system for picture data | |
JPS5967587A (en) | Color overlapped graphic generator | |
US6054994A (en) | Process for depicting objects using an image reproduction device | |
JPH0752468B2 (en) | Multiprocessor for line drawing display | |
JPS6069756A (en) | Data storage device | |
JPS63168749A (en) | Three-dimensional data storage device | |
JPS63318682A (en) | Vertical/horizontal converting method for image data | |
JPH06168323A (en) | Image data reducing display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20020115 |