JPH044628B2 - - Google Patents

Info

Publication number
JPH044628B2
JPH044628B2 JP59110735A JP11073584A JPH044628B2 JP H044628 B2 JPH044628 B2 JP H044628B2 JP 59110735 A JP59110735 A JP 59110735A JP 11073584 A JP11073584 A JP 11073584A JP H044628 B2 JPH044628 B2 JP H044628B2
Authority
JP
Japan
Prior art keywords
data
triangle
closed
vertex
vertices
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
JP59110735A
Other languages
Japanese (ja)
Other versions
JPS60256874A (en
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 filed Critical
Priority to JP59110735A priority Critical patent/JPS60256874A/en
Publication of JPS60256874A publication Critical patent/JPS60256874A/en
Publication of JPH044628B2 publication Critical patent/JPH044628B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、計算機による図形処理技術に係り、
特に3次元図形処理システムに好適な、表示図形
定義方式に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to graphic processing technology using a computer,
In particular, the present invention relates to a display figure definition method suitable for a three-dimensional figure processing system.

〔発明の背景〕[Background of the invention]

従来の閉図形データは第1図に示すように、い
くつかの頂点座標の連続で表現されていたので、
自分自信と交差する閉図形(第2図a)、凸でな
い閉図形(第2図b)、及び3次元閉図形の場合
には、全頂点が同一平面上に存在しない閉図形が
データとしてあり得ることになり、これらは各々
図形処理時のアルゴリズムが異なつており、ひと
つの閉図形が上記いずれの分類にあるのかを判定
するにも繁雑なな演算を要し、処理時間が大きい
という欠点があつた。
Conventional closed figure data was expressed as a series of several vertex coordinates, as shown in Figure 1.
In the case of a closed figure that intersects with itself (Figure 2 a), a closed figure that is not convex (Figure 2 b), and a three-dimensional closed figure, the data includes closed figures whose vertices do not lie on the same plane. Each of these uses a different algorithm for figure processing, and it requires complicated calculations to determine which of the above classifications a single closed figure falls into, which has the disadvantage of taking a long processing time. It was hot.

また、閉図形をあらかじめいくつかの三角形に
分割して記憶する方式も知られている。三角形は
自分自身と交差することもなく、3頂点が一直線
上にある場合を除いては常に凸図形であり、全頂
点は必ず同一平面上に存在する。3頂点が一直線
上にある場合の判定も比較的容易である。しか
し、三角形として閉図形を記憶すると、データ量
の増加が起こるという欠点があつた。8角形の例
では最低6個の三角形に分割しなければならず、
記憶すべき頂点は18個となる(第3図)。
A method is also known in which a closed figure is divided into several triangles and stored in advance. A triangle never intersects with itself, and is always a convex figure except when three vertices are in a straight line, and all vertices are always on the same plane. It is also relatively easy to determine when the three vertices are on a straight line. However, storing closed figures as triangles has the disadvantage that the amount of data increases. In the octagon example, it must be divided into at least 6 triangles,
The number of vertices to be memorized is 18 (Figure 3).

〔発明の目的〕[Purpose of the invention]

本発明の目的は、閉図形データの記憶データ量
を増加させることなく実施可能な表示図形定義方
式を提供することにある。
An object of the present invention is to provide a display graphic definition method that can be implemented without increasing the amount of stored closed graphic data.

〔発明の概要〕[Summary of the invention]

閉図形を三角形に分割し記憶する場合、記憶さ
れたメモリ上で隣接する三角形同士は図形として
も隣接し、1辺を共有することが多い。このよう
な場合には、これらの三角形は3頂点のうちの2
頂点が同一であり、従つてメモリ上で下位にある
三角形の3頂点のうち2頂点に対応するデータは
省略することができる。本発明では、連続した三
角形であることを示すコマンドと、1頂点により
ひとつの三角形を表現する方式を考案した。
When a closed figure is divided into triangles and stored, adjacent triangles in the stored memory are also adjacent as figures and often share one side. In such a case, these triangles have two of their three vertices.
The vertices are the same, and therefore data corresponding to two of the three vertices of the lower triangle in the memory can be omitted. In the present invention, we have devised a command that indicates that a triangle is a continuous triangle, and a method that expresses one triangle using one vertex.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を第4図から第6図に
より説明する。第4図に図形処理システムの全体
図を示す。図形データは図形データフアイル1に
格納されている。オペレータが入力装置5を通じ
て、図形の表示を要求すると計算機3が入力装置
5からの信号を解釈し、図形データフアイル1を
アクセスする。図形データはバス2を通じて計算
機3に入力される。計算機3は図形データを解釈
し表示用の画素データに変換して表示装置4に出
力する。表示装置4はその画面上に画素データを
配置する。
An embodiment of the present invention will be described below with reference to FIGS. 4 to 6. FIG. 4 shows an overall diagram of the graphic processing system. Graphic data is stored in a graphic data file 1. When an operator requests display of a graphic through the input device 5, the computer 3 interprets the signal from the input device 5 and accesses the graphic data file 1. Graphic data is input to the computer 3 via the bus 2. The computer 3 interprets the graphic data, converts it into pixel data for display, and outputs it to the display device 4. The display device 4 arranges pixel data on its screen.

第5図に図形フアイル1に格納される閉図形デ
ータの一例を示す。閉図形10は5個の三角形1
1〜15に分割されている。三角形11は3頂点
21〜23を有しており三角形12は3頂点22
〜24を三角形13は3頂点23〜25を三角形
14は3頂点24〜26を三角形15は3頂点2
5〜27を各々有している。閉図形10は図形フ
アイル1のメモリ上では以下のような順序で記憶
されている。三角形11の始まりを示すコマンド
31、頂点21の座標41、頂点22の座標4
2、頂点23の座標43、連続した三角形12の
始まりを示すコマンド32、頂点24の座標4
4、連続した三角形13の始まりを示すコマンド
33、頂点25の座標45、連続した三角形14
の始まりを示すコマンド34、頂点26の座標4
6、連続した三角形15の始まりを示すコマンド
35、頂点27の座標47。
FIG. 5 shows an example of closed graphic data stored in the graphic file 1. Closed figure 10 has 5 triangles 1
It is divided into 1 to 15. Triangle 11 has three vertices 21 to 23, and triangle 12 has three vertices 22.
~24 Triangle 13 has 3 vertices 23-25 Triangle 14 has 3 vertices 24-26 Triangle 15 has 3 vertices 2
5 to 27, respectively. The closed figures 10 are stored in the memory of the figure file 1 in the following order. Command 31 indicating the start of triangle 11, coordinates 41 of vertex 21, coordinates 4 of vertex 22
2, coordinates 43 of vertex 23, command 32 indicating the start of continuous triangle 12, coordinates 4 of vertex 24
4. Command 33 indicating the start of continuous triangle 13, coordinates 45 of vertex 25, continuous triangle 14
Command 34 indicating the start of , coordinate 4 of vertex 26
6. Command 35 indicating the start of the continuous triangle 15; coordinates 47 of the vertex 27;

第6図にコマンドの形式を示す。コマンドは16
ビツト長で0番〜2番ビツト50〜52は三角形
の連続状態を示すフラグであり、3番〜7番ビツ
ト53は未使用、8番〜15番ビツト54は三角形
であることを示すオペコードである。
Figure 6 shows the format of the command. command is 16
In the bit length, the 0th to 2nd bits 50 to 52 are flags indicating the continuous state of a triangle, the 3rd to 7th bits 53 are unused, and the 8th to 15th bits 54 are an operation code indicating that it is a triangle. be.

フラグ50は1である時、メモリ上で直前にあ
る三角形の最初の頂点はこのコマンドで示す三角
形にとつても最初の頂点である事を示す。フラグ
51は1である時、メモリ上で直前にある三角形
の2番目の頂点はこのコマンドで示す三角形にと
つても2番目の頂点である事を示す。フラグ52
は1である時、メモリ上で直前にある三角形の3
番目の頂点はこのコマンドで示す三角形にとつて
も3番目の頂点であることを示す。
When flag 50 is 1, it indicates that the first vertex of the immediately preceding triangle in memory is also the first vertex of the triangle indicated by this command. When the flag 51 is 1, it indicates that the second vertex of the immediately preceding triangle on the memory is also the second vertex of the triangle indicated by this command. flag 52
When is 1, 3 of the triangle immediately before in memory
The 3rd vertex indicates the 3rd vertex of the triangle indicated by this command.

最初に三角形を定義とするコマンド(例:31)
ではフラグ50〜52はすべて0であり、直前の
三角形と2頂点(1辺)を共有している三角形を
定義するコマンド(例:32〜35)ではフラグ
50〜52のいずれか二つが1で他のひとつは0
である。直前の三角形と1頂点を共有している三
角形を定義するコマンドではフラグ50〜52の
いずれかひとつが1で他の二つは0である。この
ようなコマンドを用いると自分自身と交差する閉
図形も含めて、最小のデータ量での記憶が可能と
なる。
Commands that define a triangle first (e.g. 31)
In this case, flags 50 to 52 are all 0, and in a command (e.g. 32 to 35) that defines a triangle that shares two vertices (one side) with the previous triangle, any two of flags 50 to 52 are 1. the other one is 0
It is. In a command that defines a triangle that shares one vertex with the immediately preceding triangle, one of flags 50 to 52 is 1 and the other two are 0. By using such a command, it is possible to store a minimum amount of data, including closed figures that intersect with itself.

本実施例によれば、データの転送量を消滅でき
るのでオペレーターに対する応答時間を短縮でき
る効果がある。
According to this embodiment, since the amount of data transferred can be eliminated, there is an effect that the response time for the operator can be shortened.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、閉図形の三角形分割を分割し
ない場合とほぼ同量の記憶領域で記憶できるので
メモリの節減、データ転送性能が向上する効果が
ある。一般にn頂点閉図形の場合は、 従来方式……3(n−2)頂点 本方式……n頂点 のデータ量となる。コマンドを含めて、n=20、
16ビツト座標値、3次元の閉図形例では、 従来方式……180ワード(1ワード=16ビツト) 本方式 ……78ワード(1ワード=16ビツト) 約57%の削減となつた。
According to the present invention, triangulation of a closed figure can be stored in approximately the same amount of storage space as when it is not divided, resulting in memory savings and improved data transfer performance. Generally, in the case of a closed figure with n vertices, the amount of data is the conventional method...3(n-2) vertices and the present method...n vertices. Including commands, n=20,
In the example of a three-dimensional closed figure with 16-bit coordinate values, the conventional method: 180 words (1 word = 16 bits) The present method: 78 words (1 word = 16 bits), a reduction of approximately 57%.

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

第1図は、閉図形の例、第2図は、処理困難な
閉図形の例、第3図は、閉図形の三角形分割の
例、第4図は、図形処理システムの例、第5図
は、本発明による閉図形の三角形分割の例、第6
図は、三角形を示すコマンドの形状の例。 11〜15……閉図形を分割した三角形、31
〜35……三角形を示すコマンド、50〜52…
…三角形の連続状態を示すフラグ。
Figure 1 is an example of a closed figure, Figure 2 is an example of a closed figure that is difficult to process, Figure 3 is an example of triangulation of a closed figure, Figure 4 is an example of a figure processing system, and Figure 5 is an example of a closed figure. is an example of triangulation of a closed figure according to the present invention, No. 6
The figure shows an example of a command shape that shows a triangle. 11-15...Triangles that divide closed figures, 31
~35...Command showing a triangle, 50~52...
...Flag indicating the continuous state of the triangle.

Claims (1)

【特許請求の範囲】 1 表示すべき閉図形を定義するデータを記憶す
る記憶手段と、該記憶手段に対して該データを入
出力する手段と、該入出力手段によつて得た前記
データに相応する図形を表示する表示手段とから
なる図形処理装置における表示図形定義方式にお
いて、 前記表示すべき閉図形を三角形に分割し、複数
の該三角形の配列で前記定義データを作成し前記
記憶手段に記憶すると共に、定義されるべき一つ
の前記三角形が先に定義した三角形の前記定義デ
ータである頂点データを共有する場合は、該先の
三角形で定義した該共有する頂点データを共用
し、該頂点データを共有しない場合は、新たに前
記定義データとして頂点データを作成し前記記憶
手段に記憶することを特徴とする表示図形定義方
式。
[Scope of Claims] 1. Storage means for storing data defining a closed figure to be displayed, means for inputting and outputting the data to the storage means, and means for inputting and outputting the data to the storage means, In a display figure definition method in a figure processing device comprising a display means for displaying a corresponding figure, the closed figure to be displayed is divided into triangles, the definition data is created by an array of a plurality of the triangles, and the definition data is stored in the storage means. When one of the triangles to be stored and defined shares the vertex data that is the definition data of the previously defined triangle, the shared vertex data defined by the previous triangle is shared, and the vertex A display figure definition method characterized in that when data is not shared, vertex data is newly created as the definition data and stored in the storage means.
JP59110735A 1984-06-01 1984-06-01 Triangle dividing system of closed pattern Granted JPS60256874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59110735A JPS60256874A (en) 1984-06-01 1984-06-01 Triangle dividing system of closed pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59110735A JPS60256874A (en) 1984-06-01 1984-06-01 Triangle dividing system of closed pattern

Publications (2)

Publication Number Publication Date
JPS60256874A JPS60256874A (en) 1985-12-18
JPH044628B2 true JPH044628B2 (en) 1992-01-28

Family

ID=14543187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59110735A Granted JPS60256874A (en) 1984-06-01 1984-06-01 Triangle dividing system of closed pattern

Country Status (1)

Country Link
JP (1) JPS60256874A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62145381A (en) * 1985-12-19 1987-06-29 Fujitsu Ltd Division system for surface coated polygon
JPH02103687A (en) * 1988-10-12 1990-04-16 Matsushita Electric Ind Co Ltd Method and device for processing three-dimensional pattern
JPH07160899A (en) * 1993-12-07 1995-06-23 Fujitsu Ltd Method and device for drawing divisionally polygon

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5390817A (en) * 1977-01-21 1978-08-10 Hitachi Ltd Pattern generating method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5390817A (en) * 1977-01-21 1978-08-10 Hitachi Ltd Pattern generating method

Also Published As

Publication number Publication date
JPS60256874A (en) 1985-12-18

Similar Documents

Publication Publication Date Title
US6642928B1 (en) Multi-processor graphics accelerator
US5638503A (en) Method and apparatus for generating bitmaps from outlines containing bezier curves
EP0240246A2 (en) Apparatus and method for filling complex polygons
KR850004826A (en) Shape processing device
JP4061697B2 (en) Image display method and image display apparatus for executing the same
US6181346B1 (en) Graphics system
JPH056160A (en) Graphic-processor
US6215501B1 (en) Method and filling a polygon and recording medium
US4748442A (en) Visual displaying
JPH044628B2 (en)
JPS6318756B2 (en)
JP2000011190A (en) Image processor
US5895502A (en) Data writing and reading method for a frame memory having a plurality of memory portions each having a plurality of banks
JPH0120748B2 (en)
JP2679344B2 (en) How to rotate blocks and display mirrors
JP2009020364A (en) Map display device and map display method
JPS59188761A (en) Write system of picture memory
JPH02270082A (en) Equipment for comparing coordinate pair of x-coordinate y-coordinate of object displayed by graphics subsystem
JPH0228869B2 (en) GURAFUITSUKUDEISUPUREISOCHINONYURYOKUFUIIRUDOSEIGYOHOSHIKI
JPH11339062A (en) System for compositing image
US20030076333A1 (en) Drawing device and information processing apparatus
JPS6258509B2 (en)
JPS63223886A (en) Three-dimensional display device
JPH0346826B2 (en)
JPS63208978A (en) Image processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term