JPH03257683A - Three-dimensionally analyzed figure drawing device - Google Patents
Three-dimensionally analyzed figure drawing deviceInfo
- Publication number
- JPH03257683A JPH03257683A JP2057099A JP5709990A JPH03257683A JP H03257683 A JPH03257683 A JP H03257683A JP 2057099 A JP2057099 A JP 2057099A JP 5709990 A JP5709990 A JP 5709990A JP H03257683 A JPH03257683 A JP H03257683A
- Authority
- JP
- Japan
- Prior art keywords
- drawing data
- data
- dimensional
- max
- comparator
- 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
- Controls And Circuits For Display Device (AREA)
- Image Generation (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は、3次元の座標データをCRTや液晶画面のよ
うな表示手段に解析図として作図するための3次元解析
図作図装置に関し、更に詳しくは、自然な3次元解析図
を作図することができるようにした3次元解析図作図装
置に関する。[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a three-dimensional analytical drawing drawing device for drawing three-dimensional coordinate data as an analytical drawing on a display means such as a CRT or a liquid crystal screen, and further relates to More specifically, the present invention relates to a three-dimensional analytical drawing drawing device that is capable of drawing natural three-dimensional analytical drawings.
〈従来の技術〉
第4図は、従来の3次元解析図作図装置の−例を示す構
成ブロック図である。<Prior Art> FIG. 4 is a configuration block diagram showing an example of a conventional three-dimensional analytical drawing device.
図において、1は3次元座標データが格納されたメモリ
、2はこのメモリ1から座標データ(Xs、Ys、Zs
)、 (Xe、Ye、Ze)を作図順に読み出す3次
元座標データ読み出し手段、3は3次元座標から投影図
を作図するための2次元座標に変換する座標変換手段で
ある。In the figure, 1 is a memory in which three-dimensional coordinate data is stored, and 2 is a memory that stores coordinate data (Xs, Ys, Zs) from this memory 1.
), (Xe, Ye, Ze) in the drawing order, and 3 is a coordinate conversion means that converts the three-dimensional coordinates into two-dimensional coordinates for drawing a projection view.
4は座標変換手段3からの2次元座標データを入力する
描画データ生成手段、5は第1の比較器、6は座標の最
大値が格納されるMAXバッファである。第1の比較器
5は、MAXバッファ6の内容と描画データ生成手段4
からの描画データとを比較し、その比較結果に応じてス
イッチSWを駆動し、描画データ生成手段4からの描画
データの表示手段8への印加を制御している。Reference numeral 4 designates a drawing data generation means for inputting the two-dimensional coordinate data from the coordinate conversion means 3, 5 a first comparator, and 6 a MAX buffer in which the maximum value of coordinates is stored. The first comparator 5 compares the contents of the MAX buffer 6 with the drawing data generating means 4.
The drawing data from the drawing data generating means 4 is compared with the drawing data from the drawing data generating means 4, and the switch SW is driven according to the comparison result to control the application of the drawing data from the drawing data generating means 4 to the display means 8.
7は第2の比較器で、表示手段8に印加される描画デー
タとMAXバッファ6の内容を比較し、その比較結果に
応じてMAXバッファ6の内容を更新する。A second comparator 7 compares the drawing data applied to the display means 8 with the contents of the MAX buffer 6, and updates the contents of the MAX buffer 6 according to the comparison result.
〈発明が解決しようとする課題〉
このように構成された従来の作図装置は、隠線処理の手
法が描画したい線分の両端が手前の線に隠れない場合の
みの描画するように構成されているもので、このために
急峻な変化、具体的には一単位画素の間に線分が隠れて
しまう場合、断線を生ずるという問題点かあった。<Problems to be Solved by the Invention> In conventional drawing devices configured in this way, the hidden line processing method is configured to draw only when both ends of the line segment to be drawn are not hidden by the line in front. For this reason, there was a problem in that when there is a sudden change, specifically when a line segment is hidden between one unit pixel, a disconnection occurs.
第5図は、従来装置による3次元解析図の表示例を示し
ている。FIG. 5 shows an example of a three-dimensional analysis diagram displayed by a conventional device.
本発明は、前記した問題点に鑑みてなされたもので、表
示に要する時間をあまり増加させず、断線の無い線分で
3次元解析図を描画できる作図装置を提供することを目
的とする。The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide a drawing device that can draw a three-dimensional analysis diagram using line segments without disconnections without significantly increasing the time required for display.
く課題を解決するための手段〉
前記した課題を解決する本発明は、
3次元座標データが格納されたメモリと、このメモリか
ら座標データ(Xs、Ys、Zs)(Xe、Ye、Ze
)を作図順に読み出す3次元座標データ読みだし手段と
、
3次元座標から投影図を作図するための2次元座標に変
換する座標変換手段と、
座標変換手段からの2次元座標データを入力する描画デ
ータ生成手段と、
描画データ生成手段で生成した描画データを表示する表
示手段と、
座標の最大値が格納されるMAXバッファと、MAXバ
ッファの内容と前記描画データ生成手段からの描画デー
タとを比較し、その比較結果に応じて描画データ生成手
段から表示手段に印加される描画データの送出を制御す
る第1の比較器と、表示手段に印加される描画データと
MAXバッファの内容を比較し、その比較結果に応じて
MAXバッファの内容を更新する第2の比較器と、座標
変換手段からの2次元座標データと、MAXバッファか
らのデータを入力し、線分が隠れる部分の描画データを
生成する高分解能描画データ生成手段とで構成される。Means for Solving the Problems> The present invention for solving the above problems includes a memory in which three-dimensional coordinate data is stored, and coordinate data (Xs, Ys, Zs) (Xe, Ye, Ze) from this memory.
) in the order of drawing; a coordinate conversion means that converts the three-dimensional coordinates into two-dimensional coordinates for drawing a projection diagram; and drawing data that inputs the two-dimensional coordinate data from the coordinate conversion means. a generating means; a display means for displaying the drawing data generated by the drawing data generating means; a MAX buffer in which a maximum value of coordinates is stored; and comparing the contents of the MAX buffer with the drawing data from the drawing data generating means. , a first comparator that controls the sending of the drawing data applied from the drawing data generation means to the display means according to the comparison result, compares the drawing data applied to the display means with the contents of the MAX buffer, and A second comparator updates the contents of the MAX buffer according to the comparison result, inputs two-dimensional coordinate data from the coordinate conversion means, and data from the MAX buffer, and generates drawing data for the portion where the line segment is hidden. It consists of a high-resolution drawing data generation means.
〈作用〉
本発明において、新しく追加された高分解能描画データ
生成手段は、座標変換手段からの2次元座標データとM
AXバッファからのデータを入力し、線分が隠れる部分
の描画データを生成する。<Operation> In the present invention, the newly added high-resolution drawing data generation means combines two-dimensional coordinate data from the coordinate conversion means and M
Input data from the AX buffer and generate drawing data for the portion where the line segment is hidden.
そして、ここで生成された描画データは、第1の比較器
の出力に応じて表示手段に印加され、線分が手前の線分
に隠れる部分について、内部的画素より分解能を上げて
表示される。The drawing data generated here is applied to the display means according to the output of the first comparator, and the portion where the line segment is hidden by the line segment in the foreground is displayed with higher resolution than the internal pixels. .
〈実施例〉 以下図面を用いて、本発明の実施例を詳細に説明する。<Example> Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図は、本発明の一実施例を示す構成ブロック図であ
る。図において、第4図の各部分に対応するものには同
一符号を付して示し、その動作説明を省略する。FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, parts corresponding to those in FIG. 4 are denoted by the same reference numerals, and explanations of their operations will be omitted.
本発明の装置においては、座標変換手段3から出力され
る2次元座標データ(Xs、Ys)(Xe、Ye)と、
MAXバッファ6からのデータとを入力する高分解能描
画データ生成手段9を設け、ここで生成した描画データ
を第1の比較器5の出力に応じて制御されるスイッチS
W2を介して表示手段8に印加するように構成したもの
である。In the apparatus of the present invention, two-dimensional coordinate data (Xs, Ys) (Xe, Ye) output from the coordinate conversion means 3,
A high-resolution drawing data generation means 9 is provided which inputs data from the MAX buffer 6, and the drawing data generated here is sent to a switch S controlled according to the output of the first comparator 5.
The signal is configured to be applied to the display means 8 via W2.
このように構成した装置の動作を説明すれば、以下の通
りである。The operation of the device configured as described above will be explained as follows.
はじめに、MAXバッファ6の初期化が行われる。この
MAXバッファ6は、作図領域のX軸方向の計算上の画
素数、例えば1024点の要素を持つメモリで構成され
ていて、初期値としては、作図領域のy座標軸最小値よ
り小さな値が入力される。First, the MAX buffer 6 is initialized. This MAX buffer 6 is composed of a memory having elements of the calculated number of pixels in the X-axis direction of the drawing area, for example 1024 points, and as an initial value, a value smaller than the minimum value of the y-coordinate axis of the drawing area is input. be done.
次に、座標読み出し手段2は、3次元座標データ記憶手
段1に記憶されている3次元座標(通常X座標とy座標
は等間隔)データ(Xs、Ys。Next, the coordinate reading means 2 reads the three-dimensional coordinate (usually the X and Y coordinates are equally spaced) data (Xs, Ys) stored in the three-dimensional coordinate data storage means 1.
Zs)、 (Xe、Ye、Ze)を作図順に読み出す
。読み出す順番は、作図したとき手前になる線分のデー
タから順番に読み出される。これらの3次元座標データ
は、座標変換手段3で投影図を作図するための2次元座
標データ(Xs、Ys)。Zs), (Xe, Ye, Ze) are read out in the drawing order. The data is read out in order, starting from the line segment data at the front when drawing. These three-dimensional coordinate data are two-dimensional coordinate data (Xs, Ys) for drawing a projection diagram by the coordinate conversion means 3.
(Xe、Ye)に変換される。(Xe, Ye).
描画データ生成手段4.第1.第2の比較器5゜7、M
AXバッファ6及び高分解能描画データ生成手段って構
成される回路は、描画データの分類と、この分類に応じ
た描画処理を行う。Drawing data generation means 4. 1st. Second comparator 5°7, M
A circuit constituted by the AX buffer 6 and high-resolution drawing data generation means performs classification of drawing data and drawing processing according to this classification.
いま、描画しようとする線分の両端点の座標(計算上の
画素番号)を、(ixl、1yl)。Now, the coordinates (calculated pixel numbers) of both end points of the line segment to be drawn are (ixl, 1yl).
(Lx2,1y2)とし、MAXバッファ6の内容を、
max (n)(nは画素番号)で表すものとすれば、
比較器5により、次の3つの場合に分類される。(Lx2, 1y2), and the contents of MAX buffer 6 are
If it is expressed as max (n) (n is the pixel number),
The comparator 5 classifies the following three cases.
A)iyl≧max(ixl)。A) iyl≧max(ixl).
iy2≧max(Lx2) ・・両端が見える場合 B)iyl<max (ixl)。iy2≧max(Lx2) ・If both ends are visible B) iyl<max (ixl).
i y2<max (i x2)
・・・両端が見えない場合
C)iyl≧max (ixl)+
iy2<max (Lx2)
または
i yl<max (ixl)+
iy2≧max(Lx2)
・・・片方の端だけが見える場合
そして、これらの各場合に応じて、以下のような描画処
理が行われる。i y2<max (i x2) ...if both ends are not visible C) iyl≧max (ixl)+ iy2<max (Lx2) or i yl<max (ixl)+ iy2≧max (Lx2) ...one side If only the edges of the image are visible, then the following drawing process is performed depending on each of these cases.
A)の場合二線骨をそのまま描画する。In case A), the two-line bone is drawn as is.
B)の場合二線骨を描画しない。In case of B), no double-line bones are drawn.
C)の場合:高分解能描画データ生成手段9を用いて、
見えるほうの片方の端点か
らこの線分をmaxにより描かれる
線分の交点(この交点の計算手法は
後で説明する)までを描画する。In the case of C): Using the high-resolution drawing data generation means 9,
This line segment is drawn from one visible end point to the intersection of the line segments drawn by max (the method for calculating this intersection will be explained later).
ここで、第2の比較器7は、描画した線分の通る座標を
MAXバッファ6の内容と比較し、MAXバッファ6の
内容の方が小さい場合、MAX/<ッファ6の内容を更
新する。Here, the second comparator 7 compares the coordinates of the drawn line segment with the contents of the MAX buffer 6, and if the contents of the MAX buffer 6 are smaller, updates the contents of the MAX/< buffer 6.
前記(C)の場合の交点を求める計算は、次の通りであ
る。The calculation for finding the intersection in case (C) is as follows.
(a)交差する2線分の端点座標(計算上の画素番号)
を求める。(a) End point coordinates of two intersecting line segments (calculated pixel number)
seek.
ixl≦i x< i x2の範囲で
((ly2−iyl)/(1x2−ixl))(Lx−
ixl)”iyl a*ax(ix) 。In the range of ixl≦i x<i x2, ((ly2-iyl)/(1x2-ixl))(Lx-
ixl)”iyl a*ax(ix).
1(1y2−iyl)/(ix2−1xl)l (ix
+1−1xl)+iyl < saw(lx+1〉
または、
((iy2−1yl)/(Lx2−1xl)l(ix+
1−1xl)+iyl〈wax(lx) 。1(1y2-iyl)/(ix2-1xl)l (ix
+1-1xl)+iyl <saw(lx+1>) or ((iy2-1yl)/(Lx2-1xl)l(ix+
1-1xl)+iyl<wax(lx).
t(1y2−1yl)/(ix2−1xl)l (Ix
+1−1xl)+lyl≧wax (i x村〉
を満たすixを求める。t(1y2-1yl)/(ix2-1xl)l (Ix
+1-1xl)+lyl≧wax (i x village) Find ix that satisfies the following.
このとき、
1xcl=ix
ixc2−ix+1
iycl= 1(iy2−iyl)/ (Lx2−ix
l)) (Ixcl−1xi)+1yliyc2= 1
(iy2−iyl)/ (Lx2−ixl)l (Ix
c2−ixl)+iyLiyg+l−wax(ixcl
)
iyw2=s+ax(ixc2)
とする。At this time, 1xcl=ix ixc2-ix+1 iycl= 1(iy2-iyl)/(Lx2-ix
l)) (Ixcl-1xi)+1yliyc2= 1
(iy2-iyl)/ (Lx2-ixl)l (Ix
c2-ixl)+iyLiyg+l-wax(ixcl
) iyw2=s+ax(ixc2).
(b)次に交点の座標(計算上の画素番号を実数値とし
て扱った座標)の計算を行う。交点の座標(x c、
y c)は基本的には、次式で与えられる。(b) Next, calculate the coordinates of the intersection (coordinates where the calculated pixel number is treated as a real value). Coordinates of the intersection (x c,
y c) is basically given by the following equation.
xc−(c*b−b*f)/Δ
yc−(a*f−c*d)/Δ
Δ−a*b−b*d
a”tyc2−tyct
b=ixcl−1xc2
c=(fy*2−2−1y本1xcl−(ixc2−L
xcl)+fymld−jy厘2−2−1y
ただし、
Δくε εは計算精度で決まる小さな定数あるいは、
xc5ixclまたはxc≧1xc2
のとき、
xc”(fxcl+fxc2)/2
yc−(iyml+iym2)/2
とする。xc-(c*b-b*f)/Δ yc-(a*f-c*d)/Δ Δ-a*b-b*d a”tyc2-tyct b=ixcl-1xc2 c=(fy* 2-2-1y book 1xcl-(ixc2-L
xcl) + fymld-jy厘2-2-1y However, Δ ε ε is a small constant determined by calculation accuracy, or when xc5ixcl or xc≧1xc2, xc”(fxcl+fxc2)/2 yc-(iyml+iym2)/2 .
前記の(C)の場合の処理は、この様な計算が高分解能
描画データ生成手段9で行われる。このため、(A)の
場合に比べて計算時間を要するが、第1の比較器5に因
って分類される(C)の条件の場合だけ計算を行えばよ
いので、変化の非常に多いデータでなければ、大幅な計
算時間の増加はない。In the process in case (C) above, such calculations are performed by the high-resolution drawing data generation means 9. Therefore, calculation time is required compared to case (A), but calculations only need to be performed for condition (C), which is classified according to the first comparator 5, so there are many changes. If it is not data, there will be no significant increase in calculation time.
なお、上記の実施例では隠線処理をMAXバッファ6を
用いて行うものであるが、同様な手法により、MINバ
ッファを同時に用いて手前に表示された下側から線分が
見えるような描画を行うようにしてもよい。In the above embodiment, the hidden line processing is performed using the MAX buffer 6, but by using a similar method, the MIN buffer is also used to draw a line segment that is visible from the bottom displayed in the foreground. You may also do so.
第2図及び第3図は、本発明によって作図された解析図
の一例を示す図である。従来例に見られたような不自然
な断線は生じておらず、解析しやすい図が得られている
。FIGS. 2 and 3 are diagrams showing examples of analytical diagrams drawn according to the present invention. There are no unnatural disconnections as seen in the conventional example, and a diagram that is easy to analyze is obtained.
〈発明の効果〉
以上詳細に説明したように、本発明によれば、描画しよ
うとする線分が、手前の線に隠れる付近のみ高分解能で
計算して、隠線処理を行うようにしたもので、大幅な計
算時間の増加を来すことなく、自然で解析しやすい3次
元解析図を描画することができる。<Effects of the Invention> As explained in detail above, according to the present invention, hidden line processing is performed by calculating with high resolution only the vicinity where the line segment to be drawn is hidden by the line in the foreground. It is possible to draw a natural and easy-to-analyze 3D analysis diagram without significantly increasing calculation time.
第1図は本発明の一実施例を示す構成ブロック図、
第2図及び第3図は本発明によって作図された解析図の
一例を示す図、
第4図は従来の3次元解析図作図装置の一例を示す構成
ブロック図、
第5図は従来装置による3次元解析図の表示例を示す図
である。
第1図
1・・・3次元座標データ格納メモリ
2・・・3次元座標データ読み出し手段3・・・座標変
換手段
4・・・描画データ生成手段
5・・・第1の比較器
6・・・MAXバッファ
7・・・第2の比較器
8・・・表示手段
9・・・高分解能描画データ生成手段Figure 1 is a configuration block diagram showing an embodiment of the present invention, Figures 2 and 3 are diagrams showing an example of an analytical diagram drawn by the present invention, and Figure 4 is a conventional three-dimensional analytical diagram drawing device. FIG. 5 is a diagram showing an example of a display of a three-dimensional analysis diagram by a conventional device. FIG. 1 1...Three-dimensional coordinate data storage memory 2...Three-dimensional coordinate data reading means 3...Coordinate conversion means 4...Drawing data generation means 5...First comparator 6...・MAX buffer 7...Second comparator 8...Display means 9...High resolution drawing data generation means
Claims (1)
e、Ye、Ze)を作図順に読み出す3次元座標データ
読み出し手段と、 3次元座標から投影図を作図するための2次元座標に変
換する座標変換手段と、 座標変換手段からの2次元座標データを入力する描画デ
ータ生成手段と、 描画データ生成手段で生成した描画データを表示する表
示手段と、 座標の最大値が格納されるMAXバッファと、MAXバ
ッファの内容と前記描画データ生成手段からの描画デー
タとを比較し、その比較結果に応じて描画データ生成手
段から表示手段に印加される描画データの送出を制御す
る第1の比較器と、表示手段に印加される描画データと
MAXバッファの内容を比較し、その比較結果に応じて
MAXバッファの内容を更新する第2の比較器と、座標
変換手段からの2次元座標データと、MAXバッファか
らのデータを入力し、線分が隠れる部分の描画データを
生成する高分解能描画データ生成手段とからなり、 高分解能描画データ生成手段で生成された描画データを
第1の比較器の比較結果に応じて表示手段に印加し、線
分が手前の線分に隠れる部分について高い分解能で描画
を行うようにしたことを特徴とする3次元解析図作図装
置。[Claims] A memory storing three-dimensional coordinate data, and coordinate data (Xs, Ys, Zs), (X
e, Ye, Ze) in the order of drawing; a coordinate conversion means that converts the three-dimensional coordinates into two-dimensional coordinates for drawing a projection view; and a coordinate conversion means that reads out the two-dimensional coordinate data from the coordinate conversion means. A drawing data generation means to be input; a display means for displaying the drawing data generated by the drawing data generation means; a MAX buffer in which the maximum value of the coordinates is stored; and the contents of the MAX buffer and the drawing data from the drawing data generation means. a first comparator that compares the drawing data to be applied to the display means and controls the sending of the drawing data applied to the display means from the drawing data generation means according to the comparison result; A second comparator that compares and updates the contents of the MAX buffer according to the comparison result, inputs two-dimensional coordinate data from the coordinate conversion means, and data from the MAX buffer, and draws the part where the line segment is hidden. The drawing data generated by the high-resolution drawing data generation means is applied to the display means according to the comparison result of the first comparator, and the line segment is A three-dimensional analytical diagram drawing device characterized in that it draws with high resolution parts that are hidden within minutes.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2057099A JPH03257683A (en) | 1990-03-08 | 1990-03-08 | Three-dimensionally analyzed figure drawing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2057099A JPH03257683A (en) | 1990-03-08 | 1990-03-08 | Three-dimensionally analyzed figure drawing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03257683A true JPH03257683A (en) | 1991-11-18 |
Family
ID=13046060
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2057099A Pending JPH03257683A (en) | 1990-03-08 | 1990-03-08 | Three-dimensionally analyzed figure drawing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03257683A (en) |
-
1990
- 1990-03-08 JP JP2057099A patent/JPH03257683A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0360155A2 (en) | Image transformation method and device | |
| US5325446A (en) | Apparatus for image transformation | |
| US4852024A (en) | Picture processing apparatus | |
| JPH11120371A (en) | Outline graphic display device, outline graphic display method, and medium recording outline graphic display device control program | |
| US5563995A (en) | Method and system for directly drawing a convex polygon having a given number of vertices with high speed | |
| JPH0353668B2 (en) | ||
| JPH03257683A (en) | Three-dimensionally analyzed figure drawing device | |
| JP3154741B2 (en) | Image processing apparatus and system | |
| JPS59214944A (en) | Terminal equipment for outputting graphic | |
| JP2001319225A (en) | Three-dimensional input device | |
| JPH01200481A (en) | Picking method for three-dimensional graphic | |
| US6489967B1 (en) | Image formation apparatus and image formation method | |
| JP4214643B2 (en) | Two-dimensional pattern generation method and apparatus | |
| JP3311905B2 (en) | Image processing device | |
| JPS61159688A (en) | 3D cursor display circuit for CRT display device | |
| JPS6315288A (en) | 3-d graphic display unit | |
| JP2690385B2 (en) | Enlarged display method of arc | |
| JP2787497B2 (en) | Graphic drawing method and apparatus | |
| JPH01244584A (en) | Graphic display device | |
| JP2001209813A (en) | Method and device for generating two-dimensional pattern | |
| EP0293698A2 (en) | Graphic controller having function of painting designated area | |
| JP2001109911A (en) | 3D graphic display method and apparatus | |
| JPS63241625A (en) | Line drawing input device | |
| JPS62126477A (en) | Image display device | |
| JPH07118022B2 (en) | Image display device |