JPH0283670A - Double precision graphic computing system - Google Patents
Double precision graphic computing systemInfo
- Publication number
- JPH0283670A JPH0283670A JP23597988A JP23597988A JPH0283670A JP H0283670 A JPH0283670 A JP H0283670A JP 23597988 A JP23597988 A JP 23597988A JP 23597988 A JP23597988 A JP 23597988A JP H0283670 A JPH0283670 A JP H0283670A
- Authority
- JP
- Japan
- Prior art keywords
- precision
- transformation matrix
- segment transformation
- segment
- double
- 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.)
- Pending
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要〕
図形にセグメント変換行列を演算して拡大/縮小・移動
などを行う倍精度図形演算方式に関し、変形要素の人力
に対応した倍精度および単精度のセグメント変換行列を
作成して内部テーブルに格納しておき、応用プログラム
からの単精度のセグメント変換行列の指定に対応して内
部的に倍精度で座標計算することを目的とし、
変形要素の人力に対応した倍精度および単精度のセグメ
ント変換行列を作成して内部テーブルに格納するセグメ
ント変換行列作成部と、パラメータとして単精度で指定
されたセグメント変換行列が上記内部テーブルに格納さ
れているS精度のセグメント変換行列と一致した場合に
この内部テーブルに格納されている倍精度のセグメント
変換行列を適用して演算処理するセグメント変換行列適
用部とを備え、このセグメント変換行列適用部によって
倍精度/単精度のセグメント変換行列を適用して演算結
果を出力するように構成する。[Detailed Description of the Invention] [Summary] Regarding a double-precision figure calculation method that calculates a segment transformation matrix on a figure to enlarge/reduce/move it, etc., double-precision and single-precision segment transformation matrices that correspond to the human power of deformation elements are provided. is created and stored in an internal table, and the coordinates are calculated internally in double precision in response to the specification of a single precision segment transformation matrix from an application program. A segment transformation matrix creation unit that creates precision and single-precision segment transformation matrices and stores them in an internal table; and an S-precision segment transformation matrix in which the segment transformation matrix specified as a parameter in single precision is stored in the internal table. and a segment transformation matrix application unit that applies the double-precision segment transformation matrix stored in this internal table and performs arithmetic processing when the segment transformation matrix matches the internal table, and the segment transformation matrix application unit performs double-precision/single-precision segment transformation. Configure it to apply a matrix and output the calculation result.
本発明は、図形にセグメント変換行列を演算して拡大/
縮小などを行う倍精度図形演算方式に関するものである
。The present invention calculates a segment transformation matrix on a figure to enlarge/enlarge it.
This relates to a double-precision graphic arithmetic method that performs reduction, etc.
[従来の技術と発明が解決しようとする課題]コンピュ
ータグラフィックスにおける国際標準i格G K S
(Graphical Kernel System)
は、応用プログラムと図形プログラムとの間のインフッ
ニス(パラメタ数、パラメタ順序、パラメータのデータ
形式など)を規定している。このうちで、図形の拡大/
縮小、回転移動、平行移動させるだめのセグメント変換
行列は、実数型の単精度の2×3のマトリックスとして
規定している。このため、単精度のセグメント変換行列
を用いて拡大/縮小などの図形処理を行ったのでは、構
造解析などの結果を微細な図形として表示しようとして
も、従来の噴積度では不七分であるという問題があった
。[Prior art and problems to be solved by the invention] International standards for computer graphics
(Graphical Kernel System)
defines the information (number of parameters, parameter order, parameter data format, etc.) between an application program and a graphics program. Among these, enlarge the shape/
The segment transformation matrix for reduction, rotation, and translation is defined as a real-number type single-precision 2×3 matrix. For this reason, if you use a single-precision segment transformation matrix to perform graphical processing such as enlarging/reducing, even if you try to display the results of structural analysis as a fine graphic, it will not be possible to display the result using the conventional eruption rate. There was a problem.
以下第6図従来の処理フローを用いて節華に説明する。A detailed explanation will be given below using the conventional processing flow shown in FIG.
第6図(イ)において、■は、セグメント変換行列を単
精度で求め、応用プログラムのパラメタに設定する。こ
れは、処理対象のセグメント(図形)について、指示さ
れた拡大/縮小などに対応した2×3マトリツクスのセ
グメント変換行列(単精度)を作成し、応用プログラム
のパラメタとしてこれを設定することを意味している。In FIG. 6(a), (2) calculates a segment transformation matrix in single precision and sets it as a parameter of the application program. This means creating a 2x3 matrix segment transformation matrix (single precision) corresponding to the specified enlargement/reduction for the segment (figure) to be processed, and setting this as a parameter for the application program. are doing.
第6図(ロ)において、■は、処理対象のセグメンi・
から図形オーダの読み出しを行う。In FIG. 6 (b), ■ indicates the segment i to be processed.
Read the figure order from .
■は、セグメント変換行列(単精度)と、図形オーダと
をもとに、座標計算を行う。(2) Calculates coordinates based on the segment transformation matrix (single precision) and the figure order.
@は、計算結果を表示する。@ displays the calculation result.
■は、セグメントが終わりか否かを判別する。(2) determines whether the segment is the end or not.
YESの場合には、終わる。NOの場合には、■で次の
図形オーダを読み出して@、@を繰り返し実行する。If YES, it ends. If NO, read out the next graphic order with ■ and repeat @ and @.
以上のように、従来は、GKSのインタフェースがh′
L精度と規定され、これに対応して図形プログラム内で
単精度のセグメント変換行列を用いて座標計lγを行っ
ていたため、倍精度で座標計算し得なかった。As mentioned above, conventionally, the GKS interface was
It was defined as L precision, and correspondingly, the coordinate meter lγ was performed using a single precision segment transformation matrix within the graphics program, so it was not possible to calculate coordinates with double precision.
本発明は、変形要素の人力に対応した倍精度および単精
度のセグメント変換行列を作成して内部テーブルに格納
しておき、応用プログラムからの単精度のセグメント変
換行列の指定に対応して内部的に倍精度で座標計算する
ことを目的としている。The present invention creates double-precision and single-precision segment transformation matrices corresponding to the human power of the deformation element, stores them in an internal table, and internally stores them in an internal table in response to the specification of the single-precision segment transformation matrix from an application program. The purpose is to calculate coordinates in double precision.
[、f!題を解決する手段〕 第1図を参照して課題を解決する手段を説明する。[, f! means to solve the problem] Means for solving the problem will be explained with reference to FIG.
第1図において、セグメント変換行列作成部1は、変形
要素の入力に対応した倍精度および単精度のセグメント
変換行列を作成して内部テーブルに格納するものである
。In FIG. 1, a segment transformation matrix creation section 1 creates double-precision and single-precision segment transformation matrices corresponding to the input of transformation elements and stores them in an internal table.
セグメント変換行列適用部2は、パラメータとして単精
度で指定されたセグメント変換17列が内部テーブルに
格納されている単精度のセグメント変換行列と一致した
場合にこの内部テーブルに+δ納されている倍精度のセ
グメント変換行列を適用して演算処理などするものであ
る。Segment transformation matrix application unit 2 converts the segment transformation matrix specified in single precision as a parameter to the double precision stored in +δ in this internal table when the 17 columns of segment transformation specified as parameters match the single precision segment transformation matrix stored in the internal table. The segment transformation matrix is applied to perform arithmetic processing.
本発明は、第1図に示すように、セグメント変換行列作
成部1が変形要素の人力に対応した倍精度および単精度
のセグメント変換行列を作成して内部テーブルに格納し
ておき、応用プログラムからパラメータとして単精度で
指定されたセグメント変換行列が内部テーブルに格納さ
れている単精度のセグメント変換行列と一致した場合に
この内部テーブルに格納されている倍精度のセグメント
変換行列を適用して演算処理して拡大/縮小、移動など
を行うようにしている。一方、一致しない場合、単精度
のセグメント変換行列を通用して演算処理するようにし
ている。As shown in FIG. 1, in the present invention, a segment transformation matrix creation unit 1 creates double-precision and single-precision segment transformation matrices corresponding to the human power of deformation elements, stores them in an internal table, and uses the application program to create double-precision and single-precision segment transformation matrices. If the segment transformation matrix specified in single precision as a parameter matches the single precision segment transformation matrix stored in the internal table, the double precision segment transformation matrix stored in this internal table is applied for calculation processing. Then, you can enlarge/reduce, move, etc. On the other hand, if they do not match, arithmetic processing is performed using a single-precision segment transformation matrix.
従って、セグメント変換行列の作成時に倍精度および単
精度のものを作成して内部テーブルに格納しておくこと
により、応用プログラムからパラメータとして単精度で
1旨定されたことに対応して、(B精度のセグメント変
換行列を内部的に適用して座標計算を高精度に行うこと
が可能となる。Therefore, by creating double-precision and single-precision matrices when creating a segment transformation matrix and storing them in an internal table, in response to the fact that single-precision is specified as a parameter from the application program, (B It becomes possible to perform coordinate calculations with high precision by internally applying a high-precision segment transformation matrix.
(実施例〕
まず、第1図を用いて本発明の全体の構成および動作を
説明する。(Example) First, the overall configuration and operation of the present invention will be explained using FIG.
第1図において、■は、セグメントの作成(円)を行う
。これは、右側に示すように拡大/縮小、移動、回転な
どを行う対象図形として円を作成することを意味してい
る。In FIG. 1, ■ creates a segment (circle). This means that a circle is created as a target figure to be enlarged/reduced, moved, rotated, etc. as shown on the right.
■は、変形要素(スケーリング、回転、ソフト)の入力
を行う。これは、右側の点線の枠内に示すように、スケ
ール(拡大/縮小)、回転、シフト(移動)の入力を行
うことを意味している。■ Inputs the transformation elements (scaling, rotation, soft). This means inputting scale (enlargement/reduction), rotation, and shift (movement) as shown in the dotted line frame on the right.
■は、セグメント変換行列の作成を行う。これは、右側
に示すように、2×3マトリツクスからなる倍精度およ
び単精度のセグメント変換行列を作成して内部テーブル
に格納することを意味している。(2) Creates a segment transformation matrix. This means that double-precision and single-precision segment transformation matrices consisting of 2×3 matrices are created and stored in an internal table, as shown on the right.
■は、セグメント変換行列の適用を行う。これは、応用
プログラムがパラメータで指定したΦ積度のセグメント
変換行列と一致するものが内部テーブルに格納されてい
ると、セグメント変換行列適用部2が判別した場合に該
当する倍精度のセグメント変換行列をセグメントに適用
して座標計算全行い、例えば右端に示すように変形した
円の各セグメントの座標値を高精度(倍精度)に生成4
゛ることを行味している。−力、セグメント変(負行列
適用部2が内部テーブルに格納されていないと判別した
場合に単精度のセグメント変換行列をセグメントに適用
して座標計算を行うようにしている。(2) applies a segment transformation matrix. This is a double-precision segment transformation matrix that is applied when the segment transformation matrix application unit 2 determines that the internal table stores a segment transformation matrix that matches the Φ product segment transformation matrix specified by the application program as a parameter. Perform all coordinate calculations by applying to the segments, for example, generate coordinate values of each segment of the deformed circle with high precision (double precision) as shown on the right end 4
I am trying to do that. - Force, segment transformation (When the negative matrix application unit 2 determines that the segment transformation matrix is not stored in the internal table, coordinate calculation is performed by applying a single-precision segment transformation matrix to the segment.
■は、図形は完成か否かを↓′11別する。はいの場合
には終わる。いいえの場合には、■以降を繰り返し実行
する。↓'11 determines whether the figure is complete or not. If yes, end. If no, repeat steps after ■.
次に、第2図フローチャートを用いて第1図セグメント
変換行列作成部1の動作を詳細に説明す第2図において
、■は、セグメント変換行列を倍精度で求め、内部テー
ブルに設定する。これは、第1図■で人力された変形要
素に対応した2×3マトリツクスのセグメント変換行列
(第4図参照)を倍精度で求めることを意味している。Next, in FIG. 2, which describes in detail the operation of the segment transformation matrix creation unit 1 in FIG. 1 using the flowchart in FIG. 2, (2) calculates a segment transformation matrix in double precision and sets it in an internal table. This means that the 2×3 matrix segment transformation matrix (see FIG. 4) corresponding to the deformation element manually inputted in FIG. 1 (2) is obtained in double precision.
■は、求めた倍精度の値を単精度に落として、内部テー
ブルに設定する。(2) converts the obtained double precision value to single precision and sets it in the internal table.
■は、単精度に落としたセグメント変換行列を応用プロ
グラムのパラメータに設定する。これは、後述する第3
図■、■で倍精度のセグメント変換行列を適用させるた
めである。(2) Set the segment transformation matrix reduced to single precision as a parameter of the application program. This is explained in the third section below.
This is to apply the double-precision segment transformation matrix in Figures ■ and ■.
以上によって、内部テーブルに倍精度および単精度のセ
グメント変換行列が設定される。As described above, double-precision and single-precision segment conversion matrices are set in the internal table.
第3図フローチャートを用いて第1図セグメント変換行
列適用部2の動作を詳細に説明する。The operation of the segment transformation matrix application unit 2 in FIG. 1 will be explained in detail using the flowchart in FIG. 3.
第3図において、■は、指定されたセグメント変換行列
と、内部テーブル中の単精度のセグメント変換行列とが
一致するか否かを判別する。はいの場合には、■で内部
テーブルの倍精度のセグメント変換行列を変数に設定す
る。いいえの場合には、■で指定されたセグメント変換
行列を変数に設定する。In FIG. 3, ■ determines whether the specified segment transformation matrix and the single-precision segment transformation matrix in the internal table match. If yes, set the double-precision segment transformation matrix of the internal table to a variable using ■. If no, set the segment transformation matrix specified by ■ to the variable.
■は、セグメントから図形オーダを読み込む。■Reads the figure order from the segment.
[相]は、変数に代入したセグメント変換行列(倍精度
あるいはQj−+R度)と、図形オーダとをもとに、座
標計算を行う。[Phase] calculates coordinates based on the segment transformation matrix (double precision or Qj-+R degrees) substituted into variables and the graphic order.
[相]は、計算結果を表示する。[Phase] displays the calculation result.
■は、セグメントの終わりか否かを判別する。(2) determines whether it is the end of the segment.
はいの場合には、終わる。いいえの場合には、[相]以
降を繰り返し実行する。If yes, end. If no, repeat the steps after [phase].
以−トによって、第2図で内部テーブルに単精度/倍精
度のセグメント変換行列が格納されていた場合には、応
用プログラムからたとえ単精度で指定されても内部的に
倍精度のセグメント変換行列を適用し7て座標計算を倍
精度で行うことが可能となる。一方、内部テーブルにf
IL精度のセグメント変換行列が格納されていない場合
には、指定された単精度のセグメント変換行列を適用し
て座標計算をQL精度で行う。As a result, if a single-precision/double-precision segment conversion matrix is stored in the internal table in Figure 2, even if single-precision is specified from the application program, the double-precision segment conversion matrix will be internally stored. By applying 7, it is possible to perform coordinate calculations in double precision. On the other hand, in the internal table f
If an IL precision segment transformation matrix is not stored, coordinate calculation is performed in QL precision by applying the specified single precision segment transformation matrix.
第4図は、セグメント変換行列作成ルーチン例を示す。FIG. 4 shows an example of a segment transformation matrix creation routine.
ここで、入力パラメータとして、図示のように、セグメ
ント変換行列として2×3マトリツクの単位行列、固定
点、シフトレベル、回転角度(ラジアン)、スケーリン
グファクタ(X方向、Y方向)、座標スイッチを与える
。出力パラメータとして、2×3マトリツクスの図示セ
グメント変換行列が得られる。このセグメント変換行列
の各要素M11、M12、M21、M22は図示のよう
に拡大、縮小、回転移動量を表す。各要素M13、M2
Sは図示のように平行移動量を表す。Here, as input parameters, as shown in the figure, a 2×3 matrix unit matrix as a segment transformation matrix, a fixed point, a shift level, a rotation angle (radian), a scaling factor (X direction, Y direction), and a coordinate switch are given. . As an output parameter, a 2×3 matrix of illustrated segment transformation matrices is obtained. Each element M11, M12, M21, and M22 of this segment transformation matrix represents an amount of enlargement, reduction, and rotational movement as shown in the figure. Each element M13, M2
S represents the amount of parallel movement as shown.
第5図は、セグメント変換行列適用例を示す。FIG. 5 shows an example of application of the segment transformation matrix.
ここで、入力パラメータとして、図示のように、セグメ
ント名、セグメント変換行列(単精度)の指定を行う。Here, as shown in the figure, a segment name and a segment transformation matrix (single precision) are specified as input parameters.
これに対応して、既述したように、内部テーブルに当該
セグメント変換行列(単精度)と一致するものが格納さ
れていた場合には内部テーブル中の倍精度のセグメント
変換行列を適用して倍精度で座標計算を行い、その結果
を画面上に表示する。一方、−敗するものが格納されて
いなかった場合には、単精度のセグメント変換テーブル
を適用して単精度で座標計算を行い、その結果を画面上
に表示する。Correspondingly, as mentioned above, if the internal table stores a segment transformation matrix that matches the segment transformation matrix (single precision), the double precision segment transformation matrix in the internal table is applied. Calculates coordinates with precision and displays the results on the screen. On the other hand, if a negative result is not stored, a single-precision segment conversion table is applied to calculate coordinates in single-precision, and the results are displayed on the screen.
以上説明したように、本発明によれば、セグメント変換
行列の作成時に倍精度および単精度のものを作成して内
部テーブルに格納しておき、応用プログラムからパラメ
ータとして単精度で指定されたセグメント変換行列と一
廠するものが内部テーブルに格納されていた場合に倍精
度のセグメント変換行列を適用して座標計算を行う構成
を採用しているため、単精度の指定、例えば国際標〈V
規格のGKSインタフェースに従った単精度の指定に対
応して、内部的に倍精度のセグメント変換行列を適用し
て座標計算を倍精度で行い、図形の1算精度を向上させ
ることができる。As explained above, according to the present invention, when creating a segment transformation matrix, double precision and single precision are created and stored in an internal table, and the segment transformation matrix specified in single precision as a parameter from the application program is generated. If a matrix is stored in an internal table, a double-precision segment transformation matrix is applied to calculate the coordinates.
Corresponding to the specification of single precision according to the standard GKS interface, a double precision segment transformation matrix is internally applied to perform coordinate calculations in double precision, thereby improving the single precision of graphics.
第1図は本発明の1実施例構成および動作説明図、第2
図はセグメント変換行列作成フローチャト、第3図はセ
グメント変換行列適用フローチャート、第4図はセグメ
ント変換行列作成ルーチン例、第5図はセグメント変換
行列適用例、第6図は従来技術の説明図を示す。
図中、■はセグメント変換行列作成部、1−1はセグメ
ンl−変換テーブル、2はセグメント変換行列適用部を
表す。FIG. 1 is an explanatory diagram of the configuration and operation of one embodiment of the present invention, and FIG.
The figure shows a flowchart for creating a segment transformation matrix, Figure 3 shows a flowchart for applying a segment transformation matrix, Figure 4 shows an example of a segment transformation matrix creation routine, Figure 5 shows an example of applying a segment transformation matrix, and Figure 6 shows an explanatory diagram of the prior art. . In the figure, ■ represents a segment transformation matrix creation unit, 1-1 represents a segment l-conversion table, and 2 represents a segment transformation matrix application unit.
Claims (1)
などを行う図形演算方式において、変形要素の入力に対
応した倍精度および単精度のセグメント変換行列を作成
して内部テーブルに格納するセグメント変換行列作成部
(1)と、パラメータとして単精度で指定されたセグメ
ント変換行列が上記内部テーブルに格納されている単精
度のセグメント変換行列と一致した場合にこの内部テー
ブルに格納されている倍精度のセグメント変換行列を適
用して演算処理するセグメント変換行列適用部(2)と
を備え、 このセグメント変換行列適用部(2)によって倍精度/
単精度のセグメント変換行列を適用して演算結果を出力
するように構成したことを特徴とする倍精度図形演算方
式。[Claims] In a graphic operation method that calculates a segment transformation matrix on a figure to enlarge/reduce/move it, etc., double-precision and single-precision segment transformation matrices corresponding to the input of transformation elements are created and an internal table is created. When the segment transformation matrix specified in single precision as a parameter matches the single precision segment transformation matrix stored in the above internal table, the segment transformation matrix is stored in this internal table. The segment transformation matrix application unit (2) performs calculation processing by applying a double-precision segment transformation matrix.
A double-precision graphic calculation method characterized by being configured to output calculation results by applying a single-precision segment transformation matrix.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23597988A JPH0283670A (en) | 1988-09-20 | 1988-09-20 | Double precision graphic computing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23597988A JPH0283670A (en) | 1988-09-20 | 1988-09-20 | Double precision graphic computing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0283670A true JPH0283670A (en) | 1990-03-23 |
Family
ID=16994026
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23597988A Pending JPH0283670A (en) | 1988-09-20 | 1988-09-20 | Double precision graphic computing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0283670A (en) |
-
1988
- 1988-09-20 JP JP23597988A patent/JPH0283670A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2006106863A1 (en) | Image processing system and program | |
| JPS61276053A (en) | Electronic calculator equipped with graph-display function | |
| JPH0283670A (en) | Double precision graphic computing system | |
| JP2938909B2 (en) | Curved surface generation method and device | |
| JPH03123902A (en) | Hybrid controller | |
| JPH10207694A (en) | Digital power arithmetic device and graphics system using the same | |
| JPS62229362A (en) | character processing device | |
| JPH04188278A (en) | Shape design device | |
| JP3280160B2 (en) | Document processing apparatus and document processing method | |
| JP3823596B2 (en) | Data compression method for motion simulation | |
| JP3147391B2 (en) | Method and apparatus for setting curved surface in three-dimensional boundary fitting mesh division | |
| JPH04175883A (en) | Cad device | |
| JPS6394115A (en) | Process data display device | |
| JP2669366B2 (en) | Line-symmetric figure input device | |
| JPH01295372A (en) | Feature display method for three-dimensional pattern | |
| JPH0476722A (en) | Method for inputting time series data | |
| JPS6289114A (en) | Numerical control device | |
| JP2746980B2 (en) | Figure generation method | |
| JPH02230379A (en) | Mesh generating system by mapping method | |
| JPH0283589A (en) | Character size representation system for display device | |
| JPS61170866A (en) | Drawing system of cad | |
| JPS63103365A (en) | Desk-top electronic calculator | |
| JPH08138072A (en) | Data processor for preparating statement of calculation | |
| JPS62157089A (en) | Generation of vector character | |
| JPS61276056A (en) | Electronic calculator equipped with graph-display function |