JP2662539B2 - 3D graphics processor - Google Patents

3D graphics processor

Info

Publication number
JP2662539B2
JP2662539B2 JP4276814A JP27681492A JP2662539B2 JP 2662539 B2 JP2662539 B2 JP 2662539B2 JP 4276814 A JP4276814 A JP 4276814A JP 27681492 A JP27681492 A JP 27681492A JP 2662539 B2 JP2662539 B2 JP 2662539B2
Authority
JP
Japan
Prior art keywords
graphic element
graphic
designated
dimensional
energy
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 - Fee Related
Application number
JP4276814A
Other languages
Japanese (ja)
Other versions
JPH06103362A (en
Inventor
隆正 小山
昌央 加藤
道雄 三輪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP4276814A priority Critical patent/JP2662539B2/en
Publication of JPH06103362A publication Critical patent/JPH06103362A/en
Application granted granted Critical
Publication of JP2662539B2 publication Critical patent/JP2662539B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ支援の下
に3次元の図形を作図する図形処理装置に関し、特に、
3次元的に表示された立体的図形の図形要素(頂点、稜
線、面)を簡単な操作で画面上で指定できるように構成
したものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing apparatus for drawing a three-dimensional graphic with the aid of a computer.
The configuration is such that graphic elements (vertexes, ridges, faces) of a three-dimensionally displayed three-dimensional figure can be specified on the screen by a simple operation.

【0002】[0002]

【従来の技術】コンピュータ支援による図形処理装置
は、図形のデータ処理を通じて効率的な作図が実行でき
るため、建築の設計や各種の映像、グラフィックの作成
等に盛んに利用されている。この図形処理装置では、コ
ンピュータが高速化し、記憶容量が増大したことに伴っ
て、表示画面上に立体的に図形を表示したり、その立体
図形を適宜変形加工したり、立体図形の投影図を画いた
りする等、種々の操作が可能になっている。
2. Description of the Related Art Computer-assisted graphic processing apparatuses are capable of performing efficient drawing through data processing of graphics, and are therefore widely used in architectural design and creation of various images and graphics. In this graphic processing device, as the computer speeds up and the storage capacity increases, a three-dimensional graphic is displayed on a display screen, the three-dimensional graphic is appropriately deformed, and a projection of the three-dimensional graphic is displayed. Various operations such as drawing can be performed.

【0003】画面上に表示した立体図形を変形したり移
動したりする場合には、先ず、カーソルで立体図形の図
形要素(頂点、稜線、面)を指定し、次いで、カーソル
を所望の方向に動かす。この操作によって指定した図形
要素の位置が移動し、この移動に伴って、立体図形が変
形し、あるいは移動する。
When deforming or moving a three-dimensional figure displayed on a screen, first, a graphic element (vertex, ridge line, surface) of the three-dimensional figure is designated by a cursor, and then the cursor is moved in a desired direction. move. The position of the designated graphic element is moved by this operation, and the three-dimensional figure is deformed or moved with this movement.

【0004】このように、3次元図形処理装置では、立
体図形の図形要素を指定することがいろいろの場合に必
要になってくるが、従来の図形処理装置においては、こ
の図形要素の指定動作を、図27の手順により行なって
いる。
As described above, in a three-dimensional graphic processing apparatus, it is necessary to specify a graphic element of a three-dimensional graphic in various cases. 27 is performed according to the procedure shown in FIG.

【0005】同図(a)に示すように、画面上には、立
体図形11と、マウス・カーソル12と、画面上部に図形要
素種別指定領域28とが表示される。操作者は、マウス13
を操作して、指定しようとする図形要素の種別(例え
ば、面)が表示されている領域28にカーソル12を合わ
せ、マウス・ボタン14をクリックする。この操作によ
り、「面」の文字が強調表示される(b)。次いで、カ
ーソル12を立体図形の指定すべき面に合わせ、マウス・
ボタン14をクリックする。この操作で、面の指定が完成
し、指定された面が強調表示される(c)。
As shown in FIG. 1A, a three-dimensional figure 11, a mouse cursor 12, and a graphic element type designation area 28 are displayed at the top of the screen. The operator uses the mouse 13
To move the cursor 12 to an area 28 displaying the type (for example, plane) of the graphic element to be designated, and click the mouse button 14. By this operation, the character of the "face" is highlighted (b). Next, position the cursor 12 on the surface to be specified of the three-dimensional figure, and
Click button 14. With this operation, the designation of the surface is completed, and the designated surface is highlighted (c).

【0006】指定図形要素を「稜線」に変更する場合
は、カーソルを「稜線」の図形要素種別領域に合わせて
マウス・ボタンをクリックし(このとき、「稜線」の文
字が強調表示される(d))、次いで、カーソルを立体
図形の指定すべき稜線に合わせてマウス・ボタンをクリ
ックする。こうして指定された稜線は、強調表示される
(e)。
To change the designated graphic element to "edge", place the cursor on the graphic element type area of "edge" and click the mouse button (at this time, the character of "edge" is highlighted ( d)) Then, position the cursor on the ridge to be specified of the three-dimensional figure and click the mouse button. The ridge line specified in this way is highlighted (e).

【0007】指定図形要素の種別を変えずに、指定する
稜線のみを変更するときは、カーソルを直に変更先の稜
線の位置に移してマウス・ボタンをクリックする。この
操作で新たに指定された稜線が、先の稜線に代わって強
調表示される(f)。
To change only the specified ridge line without changing the type of the specified graphic element, move the cursor directly to the position of the ridge line to be changed and click the mouse button. The edge line newly designated by this operation is highlighted instead of the previous edge line (f).

【0008】こうした動作を行なう従来の図形処理装置
は、図26に示すように、立体図形の図形データを提供
する立体図形生成部21と、その立体図形データを格納す
る立体図形データ記憶部22と、指定された図形要素の種
別を読み取る指定図形要素読取部23と、読み取った情報
を記憶する指定図形要素記憶部24と、カーソル位置を読
み取るマウス座標読取部26と、立体図形の指定された図
形要素を判別する指定図形要素判定部25と、指定図形要
素判定部25の結果に基づいて指定された図形要素に対し
て強調表示を行なう表示処理部27とを備えている。
As shown in FIG. 26, a conventional graphic processing apparatus which performs such an operation includes a three-dimensional graphic generating unit 21 for providing graphic data of a three-dimensional graphic, and a three-dimensional graphic data storage unit 22 for storing the three-dimensional graphic data. A designated graphic element reading unit 23 for reading the type of the designated graphic element; a designated graphic element storage unit 24 for storing the read information; a mouse coordinate reading unit 26 for reading the cursor position; A specified graphic element determining unit 25 for determining an element and a display processing unit 27 for highlighting a specified graphic element based on the result of the specified graphic element determining unit 25 are provided.

【0009】まず、初期画面には、表示処理部27が、立
体図形データ記憶部22に格納された図形データの立体図
形11を表示する。
First, on the initial screen, the display processing unit 27 displays the three-dimensional figure 11 of the figure data stored in the three-dimensional figure data storage unit 22.

【0010】操作者がマウス13によって図形要素種別領
域28の1つを選択すると、指定図形要素読取部23は、そ
の情報を読み取り、指定図形要素記憶部24に格納する。
When the operator selects one of the graphic element type areas 28 with the mouse 13, the designated graphic element reading section 23 reads the information and stores it in the specified graphic element storage section 24.

【0011】操作者がカーソル12を立体図形11の図形要
素に合わせると、マウス座標読取部26は、カーソル12の
座標を読み取って、そのデータを指定図形要素判定部25
に出力する。指定図形要素判定部25は、受信したデータ
と、立体図形データ記憶部22から読み出した立体図形11
の図形データと、指定図形要素記憶部24に格納された図
形要素種別に関する情報とを照合して、立体図形11の指
定された図形要素を判別する。
When the operator positions the cursor 12 on a graphic element of the three-dimensional figure 11, a mouse coordinate reading section 26 reads the coordinates of the cursor 12 and uses the data as a designated graphic element determining section 25.
Output to The designated graphic element determining unit 25 receives the received data and the three-dimensional graphic 11 read from the three-dimensional graphic data storage unit 22.
Then, the specified graphic element of the three-dimensional graphic 11 is determined by comparing the graphic data of the three-dimensional graphic 11 with the information on the graphic element type stored in the specified graphic element storage unit 24.

【0012】判別結果の情報は、表示処理部27に送ら
れ、表示処理部27は、指定された図形要素を強調して表
示する。
The information of the discrimination result is sent to the display processing section 27, and the display processing section 27 highlights and displays the designated graphic element.

【0013】[0013]

【発明が解決しようとする課題】しかし、従来の図形処
理装置における図形要素の指定の仕方は、図形要素の種
別を指定する操作と、立体図形の図形要素を指定する操
作との2種類の操作が必要であるため、図形要素の指定
に時間が掛かる欠点がある。殊に、操作の途中で、指定
する図形要素の種別を変更する場合には、改めて図形要
素種別の指定からやり直さなければならない。
However, there are two types of graphic element designation methods in the conventional graphic processing apparatus: an operation of designating the type of graphic element and an operation of designating a graphic element of a three-dimensional graphic. However, there is a drawback that it takes time to specify a graphic element. In particular, when the type of the specified graphic element is changed during the operation, it is necessary to start again from the specification of the graphic element type.

【0014】また、従来の図形処理装置による指定方式
では、立体図形の表面に現われてこない図形要素(例え
ば、裏側に隠れている面)については指定の対象に加え
ることができないという不便がある。
In addition, the conventional design method using the graphic processing apparatus has the inconvenience that a graphic element that does not appear on the surface of a three-dimensional graphic (for example, a surface hidden behind) cannot be added to the specified object.

【0015】本発明は、これらの従来の問題点を解決す
るものであり、簡単な、短時間の操作で立体図形の図形
要素を指定することができ、また、立体図形の陰に隠れ
ている図形要素についても指定の対象とすることができ
る図形処理装置を提供することを目的としている。
The present invention solves these problems in the prior art. It is possible to specify a graphic element of a three-dimensional figure by a simple and short operation, and it is hidden behind a three-dimensional figure. It is an object of the present invention to provide a graphic processing device capable of designating graphic elements.

【0016】[0016]

【課題を解決するための手段】そこで、本発明では、画
面に表示した立体図形の図形要素をカーソルによって指
定できる3次元図形処理装置において、カーソル位置と
各図形要素との距離に依存するエネルギを図形要素別に
計算するエネルギ計算手段と、図形要素を指定する操作
に応じてエネルギ計算値の大きい図形要素から順に指定
図形要素として表示する表示手段とを設けている。
SUMMARY OF THE INVENTION Therefore, according to the present invention, in a three-dimensional graphic processing apparatus capable of designating a graphic element of a three-dimensional graphic displayed on a screen with a cursor, an energy dependent on a distance between a cursor position and each graphic element is stored. There are provided energy calculation means for calculating each graphic element, and display means for displaying graphic elements in descending order of the calculated energy value as specified graphic elements in accordance with an operation for specifying a graphic element.

【0017】また、表示手段により指定図形要素として
表示される図形要素を、閾値以上のエネルギ計算値を持
つ図形要素のみに制限する指定図形要素候補生成手段を
設けている。
Further, there is provided a designated graphic element candidate generating means for restricting graphic elements displayed as specified graphic elements by the display means to graphic elements having an energy calculation value equal to or greater than a threshold value.

【0018】また、図形要素毎の重み付けデータを格納
する重み付けテーブルを設け、このデータをエネルギ計
算手段に提供するように構成している。
Further, a weighting table for storing weighting data for each graphic element is provided, and this data is provided to the energy calculating means.

【0019】さらに、この重み付けデータを図形要素が
指定されたときに更新する更新手段を設けている。
Further, an updating means for updating the weighting data when a graphic element is designated is provided.

【0020】[0020]

【作用】そのため、操作者がカーソルによって図形要素
を指定する操作を行なうと、カーソル位置と各図形要素
との間の距離の関数であるエネルギが計算され、このエ
ネルギの最も大きい図形要素が指定図形要素として最初
に表示される。この図形要素が指定を意図した図形と相
違するときは、操作者は、指定図形要素を変更する操作
を行ない、それに応じて、エネルギの大きい順に図形要
素が順次指定図形要素として表示される。
Therefore, when the operator performs an operation of designating a graphic element with the cursor, the energy which is a function of the distance between the cursor position and each graphic element is calculated, and the graphic element having the largest energy is the designated graphic element. First displayed as an element. When the graphic element is different from the graphic intended to be specified, the operator performs an operation of changing the specified graphic element, and accordingly, the graphic elements are sequentially displayed as the specified graphic elements in descending order of energy.

【0021】この指定図形要素として表示される図形要
素は、指定図形要素候補生成手段を設けることにより、
閾値以上のエネルギを持つ図形要素だけに限定される。
The graphic element displayed as the specified graphic element is provided with a specified graphic element candidate generating means.
Only graphic elements having energy equal to or higher than the threshold value are limited.

【0022】また、エネルギの計算に使用する重み付け
データを図形要素の指定に応じて更新することにより、
操作者の意図に沿ったエネルギの計算が可能になる。
Further, by updating the weighting data used for calculating the energy in accordance with the designation of the graphic element,
Energy can be calculated according to the operator's intention.

【0023】[0023]

【実施例】先ず、本発明の実施例の図形処理装置を用い
て、画面に表示した立体図形の図形要素を指定する操作
手順と、それに伴う図形処理装置の画面表示の変化につ
いて、図24を用いて説明する。
First, referring to FIG. 24, an operation procedure for designating a graphic element of a three-dimensional graphic displayed on a screen using the graphic processing apparatus according to the embodiment of the present invention and a change in the screen display of the graphic processing apparatus accompanying the operation procedure will be described. It will be described using FIG.

【0024】初期画面(a)には、立体図形11と、カー
ソル12とが表示されている。操作者は、マウス13を操作
して、指定しようとする稜線の位置にカーソル12を移動
し、マウス左ボタン14をクリックする(b)。この操作
によって稜線が指定され、この稜線は、強調表示される
(c)。次いで、マウス右ボタン15をクリックする
(d)と、この操作で指定図形要素が変わり、カーソル
位置を含む面が強調表示される(e)。
A three-dimensional figure 11 and a cursor 12 are displayed on the initial screen (a). The operator operates the mouse 13 to move the cursor 12 to the position of the ridge to be designated, and clicks the left mouse button 14 (b). By this operation, a ridge line is designated, and this ridge line is highlighted (c). Next, when the right mouse button 15 is clicked (d), the designated graphic element is changed by this operation, and the plane including the cursor position is highlighted (e).

【0025】このように、カーソル位置が、複数の図形
要素に含まれる場合、マウス左ボタン14のクリックで、
その図形要素の1つが第1の指定図形要素候補として表
示され、次いで、マウス右ボタン15をクリックすると、
次の図形要素が第2の指定図形要素候補として表示され
る。このマウス右ボタン15のクリックを続けると、クリ
ック回数に応じて、次々と指定図形要素候補が表示され
る。
As described above, when the cursor position is included in a plurality of graphic elements, clicking the left mouse button 14
One of the graphic elements is displayed as a first designated graphic element candidate, and then, when the right mouse button 15 is clicked,
The next graphic element is displayed as a second designated graphic element candidate. By continuing to click the right mouse button 15, the designated graphic element candidates are displayed one after another according to the number of clicks.

【0026】指定図形要素候補として表示される順番
は、そのカーソル位置から見て、最も指定される確度の
高い図形要素が第1順位となり、確度が下がるに連れ
て、表示の順位も後になる。
The order in which the designated graphic element candidates are displayed, as viewed from the cursor position, is the graphic element with the highest degree of probability of being specified, and the display order becomes lower as the degree of accuracy decreases.

【0027】また、カーソル位置を含まない図形要素で
あっても、カーソル位置の近傍にあるものは、指定図形
要素候補の1つに加えられる。
[0027] Even if the graphic element does not include the cursor position, the one near the cursor position is added to one of the designated graphic element candidates.

【0028】図25は、図形要素の指定操作における別
の例を示している。カーソル12を立体図形11の1つの面
に位置させて、マウス左ボタン14をクリックすると
(b)、その面が指定図形要素に選択されて強調表示さ
れる(c)。次いで、マウス右ボタン15をクリックする
と(d)、裏側の面が指定図形要素に選択されて、強調
表示される(e)。
FIG. 25 shows another example of the graphic element designating operation. When the cursor 12 is positioned on one surface of the three-dimensional graphic 11 and the left mouse button 14 is clicked (b), that surface is selected as a designated graphic element and highlighted (c). Next, when the right mouse button 15 is clicked (d), the back surface is selected as the designated graphic element and highlighted (e).

【0029】こうした動作を行なう実施例の図形処理装
置は、図1に示すように、立体図形の図形データおよび
立体図形の射影図形データを格納している立体・射影図
形データ記憶部1と、この記憶部1から表示に必要な立
体図形データを読み出す立体図形生成部2と、マウスか
らの入力情報を読み取るマウス入力情報読取部3と、マ
ウス入力情報読取部3の送出する情報を格納するマウス
入力記憶部4と、カーソルと各図形要素との位置関係に
基づいて各図形要素に対するエネルギ(このエネルギ
が、指定図形要素候補の選択におけるパラメータとな
る)を計算する図形要素別エネルギ計算部5と、このエ
ネルギの計算に使用する重み付けデータを格納する重み
付けテーブル記憶部6と、計算されたエネルギの大きさ
に基づいて指定図形要素の候補を決める指定図形要素候
補生成部7と、指定図形要素候補のデータを格納する指
定図形要素候補テーブル記憶部8と、マウスのクリック
に応じて指定図形要素を選択する指定図形要素選択部9
と、選択された指定図形要素を強調表示する表示処理部
10とを備えている。
As shown in FIG. 1, the graphic processing apparatus according to the embodiment which performs the above-mentioned operation includes a three-dimensional / projected graphic data storage unit 1 storing three-dimensional graphic data and three-dimensional graphic projected graphic data. A three-dimensional figure generating part 2 for reading out three-dimensional figure data necessary for display from a storage part 1, a mouse input information reading part 3 for reading input information from a mouse, and a mouse input for storing information transmitted by the mouse input information reading part 3. A storage unit 4, a graphic element-specific energy calculation unit 5 for calculating energy for each graphic element based on the positional relationship between the cursor and each graphic element (this energy is a parameter in selecting a designated graphic element candidate), A weighting table storage unit 6 for storing weighting data used for calculating the energy; The specified graphic element candidate generating unit 7 which determines the candidate, and specifies the graphic element candidate table storage unit 8 for storing the data of the specified graphic element candidates, designated selects specified graphic element in accordance with a mouse click graphic element selection unit 9
And a display processing unit for highlighting the selected designated graphic element
10 and are equipped.

【0030】この図形処理装置では、図2に示す順序で
全体の動作が実行される。図2のフローチャートには、
その動作の内容と共にその動作を実行するブロック名が
示してある。
In this graphic processing apparatus, the entire operation is performed in the order shown in FIG. In the flowchart of FIG.
The contents of the operation and the name of the block that executes the operation are shown.

【0031】ステップ1;立体図形生成部2は、立体・
射影図形データ記憶部1に格納されている図形データか
ら、立体図形データを読出し、これを表示処理部10に出
力して、画面上に立体図形を表示させる(初期画面の表
示)。
Step 1: The three-dimensional figure generation unit 2
The three-dimensional graphic data is read from the graphic data stored in the projected graphic data storage unit 1 and output to the display processing unit 10 to display the three-dimensional graphic on the screen (display of the initial screen).

【0032】なお、立体・射影図形データ記憶部1に格
納されている図形データは、図13に示すように、立体
図形を構成する各図形要素について、その図形要素に付
されている要素番号と、その図形要素の3次元空間にお
ける位置を特定するデータ(図形要素が頂点である場合
はその頂点の座標、図形要素が稜線である場合は、その
稜線の始点と終点の頂点の番号、図形要素が面である場
合は、その面を構成する頂点の番号)と、その図形要素
をx,y平面に投射したときの射影図形の位置を特定す
るデータとを規定している。この射影図形データは、立
体図形のCRT画面(2次元座標)上の位置を表してい
る(立体図形と射影図形との関係は、図17に示してい
る)。また、図形データには、立体図形の表面に現れて
いる図形要素だけでなく、陰に隠れている図形要素のデ
ータも含まれる。
As shown in FIG. 13, the graphic data stored in the three-dimensional / projected graphic data storage unit 1 includes, for each graphic element constituting the three-dimensional graphic, an element number assigned to the graphic element. , Data specifying the position of the graphic element in the three-dimensional space (the coordinates of the vertex if the graphic element is a vertex, the numbers of the vertices of the start and end points of the ridge if the graphic element is a ridge, Is a plane, the number of the vertex constituting the plane) and data specifying the position of the projected graphic when the graphic element is projected on the x, y plane. The projected figure data represents the position of the three-dimensional figure on the CRT screen (two-dimensional coordinates) (the relationship between the three-dimensional figure and the projected figure is shown in FIG. 17). The graphic data includes not only graphic elements appearing on the surface of the three-dimensional graphic but also data of graphic elements hidden behind.

【0033】ステップ2;操作者がマウス・ボタンをク
リック操作すると、マウス入力情報読取部3は、クリッ
クしたときのマウスの座標値(2次元の表示画面上にお
ける座標値)と、そのクリックがマウス・ボタンの右ま
たは左のいずれの種類で行なわれたかを読み取り、 ステップ3;読み取った情報に基づいて、マウス入力情
報記憶部4に格納されているマウス入力情報を更新す
る。
Step 2: When the operator clicks the mouse button, the mouse input information reading unit 3 displays the mouse coordinate value (coordinate value on the two-dimensional display screen) at the time of clicking and the mouse click. Reading the right or left type of button; Step 3: Update the mouse input information stored in the mouse input information storage unit 4 based on the read information.

【0034】マウス入力情報のデータ構造は、図14
(a)に示すように、新たに入力されたマウス座標値を
データとする「マウス入力座標」と、以前のマウス座標
値をデータとする「入力前のマウス座標」と、新たな入
力が行なわれたボタンの種類を表わす「マウス・ボタン
種類」と、クリックの回数を表示する「クリック回数」
とによって構成されている。
The data structure of the mouse input information is shown in FIG.
As shown in (a), “mouse input coordinates” using newly input mouse coordinate values as data, “mouse coordinates before input” using previous mouse coordinate values as data, and new input are performed. "Mouse button type" indicating the type of button pressed and "click count" indicating the number of clicks
And is constituted by.

【0035】マウス入力情報読取部3は、このマウス入
力情報の更新を図3のステップ30からステップ38ま
での手順で実行する。
The mouse input information reading unit 3 executes the updating of the mouse input information in the procedure from step 30 to step 38 in FIG.

【0036】ステップ30;マウス座標値とボタン種類
とを読取ったマウス入力読取部3は、そのボタン種類を
マウス入力情報の「マウス・ボタン種類」の欄に登録
し、 ステップ31;ボタン種類が左のときは、 ステップ32;マウス入力情報の「マウス入力座標」の
欄に記憶されていたデータを「入力前のマウス座標」の
欄に移送し、 ステップ33;読取ったマウス座標値を「マウス入力座
標」の欄に入力し、 ステップ34;「クリック回数」の数値を初期値1に変
える。
Step 30: The mouse input reading unit 3 which has read the mouse coordinate value and the button type registers the button type in the "mouse / button type" column of the mouse input information. Step 31; In step 32, the data stored in the column of "mouse input coordinates" of the mouse input information is transferred to the column of "mouse coordinates before input", and step 33; Step 34: Change the numerical value of "the number of clicks" to the initial value 1.

【0037】ステップ35;ステップ32において、登
録したボタンの種類が右のときは、クリック回数が0か
どうかを調べ、0のときは処理を終了する(したがっ
て、最初に右ボタンがクリックされたときは、一切の処
理をしない)。クリック回数が0以上のときは、 ステップ36;マウス入力情報の「マウス入力座標」の
欄に記憶されていたデータを「入力前のマウス座標」の
欄に移送し、 ステップ37;読取ったマウス座標値を「マウス入力座
標」の欄に入力し、 ステップ38;「クリック回数」の数値をインクリメン
トする。
Step 35: If the type of the registered button is right in step 32, it is checked whether the number of clicks is 0, and if it is 0, the process is terminated (thus, when the right button is first clicked) Does not do any processing). If the number of clicks is 0 or more, step 36: transfer the data stored in the column of “mouse input coordinates” of the mouse input information to the column of “mouse coordinates before input”, and step 37; read mouse coordinates. The value is entered in the field of "mouse input coordinates", and the value of step 38; "number of clicks" is incremented.

【0038】図14(b)には、マウスの入力に対応し
て、マウス入力情報の更新される様子を例示している。
FIG. 14B illustrates how the mouse input information is updated in response to a mouse input.

【0039】さて、マウス・ボタンの種類が左であると
きは、 ステップ4;図形要素別エネルギ計算部5は、マウス入
力情報記憶部4からマウス入力情報を受信すると、立体
・射影図形データ記憶部1から図形要素のデータを順番
に読み込み、また、重み付けテーブル記憶部6から重み
付けテーブル・データを読み込んで、 ステップ5;読み込んだ図形要素に対するマウス位置か
ら見たエネルギを順次計算し、計算結果を指定図形要素
候補生成部7に出力する。こうした一連の動作を、図形
要素別エネルギ計算部5は、図4のステップ50からス
テップ57までの手順で実行する。
When the type of the mouse button is left, step 4; upon receiving the mouse input information from the mouse input information storage unit 4, the energy calculation unit 5 for each graphic element stores the three-dimensional / projected figure data storage unit. Step 1: read energy of the graphic element from the mouse position for the read graphic element sequentially, and specify the calculation result Output to the graphic element candidate generation unit 7. Such a series of operations is performed by the graphic element-specific energy calculation unit 5 in the procedure from step 50 to step 57 in FIG.

【0040】ステップ50;立体・射影図形データ記憶
部1に立体図形データが存在する場合は、 ステップ51;その図形要素の1つを読み込み、 ステップ52;その図形要素の種類が、 ステップ53;頂点である場合は、頂点のエネルギを計
算し、 ステップ54;稜線である場合は、稜線のエネルギを計
算し、 ステップ55;面である場合は、面のエネルギを計算
し、 ステップ56;計算結果を指定図形要素候補テーブル記
憶部8のテーブルに格納する。1つの図形要素のエネル
ギ計算が終了すると、 ステップ57;次の図形要素を読み込んで、ステップ5
1以降の手順を繰り返す。この動作を全ての図形要素の
計算が終えるまで続ける。
Step 50: If three-dimensional graphic data is present in the three-dimensional / projected graphic data storage unit 1, Step 51: Read one of the graphic elements, Step 52; If it is, the energy of the vertex is calculated, Step 54; if it is an edge, the energy of the edge is calculated, Step 55; if it is a surface, the energy of the surface is calculated, Step 56; The specified graphic element candidate table is stored in the table of the storage unit 8. When the energy calculation of one graphic element is completed, step 57;
Step 1 and subsequent steps are repeated. This operation is continued until all the graphic elements have been calculated.

【0041】こうして、立体図形の表面に現れている図
形要素は素より、陰に隠れている図形要素についても、
エネルギが計算され、その結果が指定図形要素候補テー
ブルに格納される。
Thus, a graphic element appearing on the surface of a three-dimensional figure is more likely to be hidden than a primitive one.
The energy is calculated, and the result is stored in the designated graphic element candidate table.

【0042】ここで、エネルギの計算の方法について説
明する。
Here, a method of calculating energy will be described.

【0043】この計算では、先ず、2次元のu,v座標
空間におけるマウス入力座標値(u,v)が、立体図形
の置かれたx,y,z座標空間において、どのような座
標値になるかを求める。この座標値(x0,y0,z0
をクリッピング座標値と呼ぶことにするが、クリッピン
グ座標値は、図17に示すように、x0およびy0は、
u,vの値に、u,v座標とx、y座標との間の変換率
を乗じた値となり、z0は、u,v平面からx、y平面
までの距離となる。
In this calculation, first, the mouse input coordinate value (u, v) in the two-dimensional u, v coordinate space is changed to what coordinate value in the x, y, z coordinate space where the three-dimensional figure is placed. Ask if it will be. This coordinate value (x 0 , y 0 , z 0 )
The Although will be referred to as clipping coordinates, clipping coordinate values, as shown in FIG. 17, x 0 and y 0 are
The value of u, v is multiplied by the conversion ratio between the u, v coordinates and the x, y coordinates, and z 0 is the distance from the u, v plane to the x, y plane.

【0044】各図形要素のエネルギは、u,v座標空間
の下でのエネルギ1と、x,y,z座標空間の下でのエ
ネルギ2とを求め、このエネルギ1とエネルギ2の値を
乗算して算出される。
The energy of each graphic element is obtained by calculating the energy 1 under the u, v coordinate space and the energy 2 under the x, y, z coordinate space, and multiplying the energy 1 by the energy 2 value. Is calculated.

【0045】このエネルギ1およびエネルギ2の値は、
各座標空間におけるマウス入力座標位置と図形要素との
間の距離(この距離は、後述するように、図形要素の種
別毎に算出方法が決められている)をdとするとき、 重み最大値×exp(−d2/分散2) として計算される。ここで、「重み最大値」および「分
散」は、指定図形要素候補の優先順位を決めるためのパ
ラメータであり、重み付けテーブル記憶部6に記憶され
たテーブルの値を読み出して使用する。
The values of energy 1 and energy 2 are
When the distance between the mouse input coordinate position and the graphic element in each coordinate space (this distance is determined for each type of graphic element as described later) is d, the maximum weight value × It is calculated as exp (−d 2 / variance 2 ). Here, the “maximum weight” and “variance” are parameters for determining the priority of the designated graphic element candidate, and read and use the values of the table stored in the weighting table storage unit 6.

【0046】重み付けテーブルには、図15(a)に示
すように、各図形要素毎の「重み最大値」および「重み
分散」の値が格納され、また、これらの値の更新の際に
使用するデータとして、選択された指定図形要素とその
位置を特定するデータとが「選択履歴レコード」に格納
されている。なお、重み最大値および重み分散の更新に
ついては、後述する。
As shown in FIG. 15 (a), the weighting table stores the values of "maximum weight" and "weight variance" for each graphic element, and is used when these values are updated. As the data to be selected, the selected designated graphic element and data specifying the position thereof are stored in the “selection history record”. The updating of the maximum weight value and the weight variance will be described later.

【0047】重み付けテーブルの初期値は、図15
(b)に示すように、重み最大値に関しては、 (頂点重み)>(稜線重み)>(面重み) となるように設定され、また、重み分散に関しては、 (頂点分散)<(稜線分散)<(面分散) となるように設定されている。
The initial values of the weighting table are shown in FIG.
As shown in (b), the maximum weight is set so that (vertex weight)> (edge weight)> (face weight), and the weight variance is (vertex variance) <(edge variance) ) <(Plane dispersion).

【0048】図形要素別エネルギ計算部5では、それぞ
れの頂点のエネルギについて、図5のステップ530か
らステップ536までの手順で計算する。まず、 ステップ530;マウス入力座標(u,v)に対応する
クリッピング座標(x0,y0,z0)を計算し、 ステップ531;計算の対象となる頂点の射影図形上の
座標(uk,vk)と、マウス入力座標(u,v)との間
の距離(d1)を計算し、 ステップ532;重み付けテーブルの頂点の重み最大値
および重み分散を使って、エネルギ1=重み最大値×e
xp(−d1 2/分散2)により、エネルギ1を計算す
る。
The energy calculating section 5 for each graphic element calculates the energy of each vertex in the procedure from step 530 to step 536 in FIG. First, step 530; clipping coordinates corresponding to the mouse input coordinates (u, v) (x 0 , y 0, z 0) is calculated, and Step 531: coordinates on the projection figure of vertex to be the calculation of the target (u k , and v k), calculates the distance (d 1) between the mouse input coordinates (u, v), step 532; with a weight maximum and weight distribution of the vertices of the weighting table, energy 1 = weight maximum Value x e
The xp (-d 1 2 / dispersion 2), calculates the energy 1.

【0049】ステップ533;頂点の立体図形データの
座標(xk,yk,zk)と、クリッピング座標(x0,y
0,z0)との間の距離(d2)を計算し、 ステップ534;先の重み最大値および重み分散を使っ
て、エネルギ2=重み最大値×exp(−d2 2/分
2)によって、エネルギ2を計算し、 ステップ535;エネルギ1×エネルギ2によって対象
とする頂点のエネルギを求め、 ステップ536;その頂点を特定するデータと、エネル
ギ計算値とを指定図形要素候補テーブル記憶部8のテー
ブルに格納する。
Step 533: The coordinates (x k , y k , z k ) of the three-dimensional figure data of the vertex and the clipping coordinates (x 0 , y
0 , z 0 ), and calculate the distance (d 2 ) between them: Step 534; using the previous weight maximum value and weight variance, energy 2 = weight maximum value × exp (−d 2 2 / variance 2 ) Step 535: Calculate the energy of the target vertex by Energy 1 × Energy 2. Step 536: Specify the data specifying the vertex and the calculated energy value in the designated graphic element candidate table storage unit 8. In the table.

【0050】このときのデータのフローを図18に示し
ている。
FIG. 18 shows the data flow at this time.

【0051】また、稜線のエネルギについては、図6の
ステップ540からステップ547までの手順で計算す
る。まず、 ステップ540;マウス入力座標(u,v)に対応する
クリッピング座標(x0,y0,z0)を計算し、 ステップ541;対象となる稜線の2つの端点に関する
射影図形上の座標(uk,vk)、(uj,vj)から、射
影図形における稜線の中心を求め、この中心から端点ま
でを半径とする円を算出し、 ステップ542;稜線の2つの端点に関する立体図形デ
ータ(xk,yk,zk)、(xj,yj,zj)から、立体
図形における稜線の重心(xg,yg,zg)を計算し、 ステップ543;マウス入力座標(u,v)が前記円内
にあり、且つ、マウス入力座標から稜線までの距離が重
み分散の幅内にあるときは、 ステップ544;マウス入力座標(u,v)から射影図
形における稜線までの距離(d3)を計算し、エネルギ
1=稜線の重み最大値×exp(−d3 2/分散2)によ
ってエネルギ1を算出する。
The energy of the ridge is calculated by the procedure from step 540 to step 547 in FIG. First, step 540; clipping coordinates (x 0 , y 0 , z 0 ) corresponding to the mouse input coordinates (u, v) are calculated. Step 541; coordinates on the projected figure relating to the two end points of the target edge line ( u k, v k), ( u j, v from j), find the center of the ridge line in the projective geometry, to calculate a circle up to the end point and a radius from the center, step 542; solid figures for the two end points of the edge line From the data (x k , y k , z k ) and (x j , y j , z j ), the center of gravity (x g , y g , z g ) of the edge in the solid figure is calculated. If (u, v) is within the circle and the distance from the mouse input coordinates to the ridge is within the width of the weight distribution, step 544: from the mouse input coordinates (u, v) to the ridge in the projected figure and calculates the distance (d 3), energy Calculating the energy 1 by formic 1 = ridgeline weight maximum × exp (-d 3 2 / dispersion 2).

【0052】ステップ545;クリッピング座標
(x0,y0,z0)から立体図形の稜線の重心(xg,y
g,zg)までの距離(d4)を計算し、エネルギ2=稜
線の重み最大値×exp(−d4 2/分散2)によってエ
ネルギ2を算出し、 ステップ546;エネルギ1×エネルギ2によって対象
とする稜線のエネルギを求め、 ステップ547;その稜線を特定するデータと、エネル
ギ計算値とを指定図形要素候補テーブル記憶部8のテー
ブルに格納する。
Step 545: From the clipping coordinates (x 0 , y 0 , z 0 ), the center of gravity (x g , y
g, and calculates the distance (d 4) to z g), to calculate the energy 2 by the energy 2 = ridgeline weight maximum × exp (-d 4 2 / dispersion 2), step 546; energy 1 × energy 2 Step 547: Data for specifying the ridge line and the calculated energy value are stored in the table of the designated graphic element candidate table storage unit 8.

【0053】このときのデータのフローを図19に示し
ている。
FIG. 19 shows the data flow at this time.

【0054】また、面のエネルギについては、図7のス
テップ550からステップ559までの手順で計算す
る。まず、 ステップ550;マウス入力座標(u,v)に対応する
クリッピング座標(x0,y0,z0)を計算し、 ステップ551;射影図形上の面を構成する頂点の座標
から、面の辺を構成する稜線を計算し、 ステップ552;マウス入力座標点(u,v)を通り、
且つ、u軸に平行する直線が、マウス入力座標点の左右
において、これらの稜線と最初に交差する交点(α1
β1)、(α2,β2)を計算し、 ステップ553;その交点がマウス入力座標の左右にあ
る場合は、 ステップ554;左右の交点の中心点(αg,βg)を計
算し、この中心点とマウス入力座標との距離(d5)を
求め、 ステップ555;エネルギ1=面の重み最大値×exp
(−d5 2/分散2)によってエネルギ1を算出する。
The energy of the surface is calculated by the procedure from step 550 to step 559 in FIG. First, Step 550: Calculate clipping coordinates (x 0 , y 0 , z 0 ) corresponding to the mouse input coordinates (u, v). Step 551: From the coordinates of the vertices constituting the surface on the projected figure, Calculate the ridge line constituting the side, Step 552; Go through the mouse input coordinate point (u, v),
In addition, the intersection (α 1 , α 1) at which the straight line parallel to the u axis first intersects these ridge lines on the left and right of the mouse input coordinate point
β 1 ) and (α 2 , β 2 ) are calculated; Step 553; If the intersection is on the left and right of the mouse input coordinates, Step 554; The center point (α g , β g ) of the left and right intersections is calculated. The distance (d 5 ) between the center point and the mouse input coordinates is obtained. Step 555; Energy 1 = Maximum value of surface weight × exp
Calculating the energy 1 by (-d 5 2 / dispersion 2).

【0055】ステップ556;2つの交点(α1
β1)、(α2,β2)に対応する3次元立体図形上の点
(x1,y1,z1)、(x2,y2,z2)を計算し、その
2つの点の重心(xg,yg,zg)を求め、 ステップ557;クリッピング座標(x0,y0,z0
から重心(xg,yg,zg)までの距離(d6)を計算
し、エネルギ2=面の重み最大値×exp(−d6 2/分
2)によってエネルギ2を算出し、 ステップ559;エネルギ1×エネルギ2によって、対
象とする面のエネルギを求め、その面を特定するデータ
と、エネルギ計算値とを指定図形要素候補テーブル記憶
部8のテーブルに格納する。
Step 556: Two intersections (α 1 ,
beta 1), (alpha 2, points on three-dimensional figure corresponding to the β 2) (x 1, y 1, z 1), (x 2, y 2, z 2) was calculated, two points that Of the center of gravity (x g , y g , z g ) of step 557; clipping coordinates (x 0 , y 0 , z 0 )
From the center of gravity to calculate the (x g, y g, z g) distance to (d 6), to calculate the energy 2 by the energy 2 = surface weight maximum × exp (-d 6 2 / dispersion 2), a step 559: The energy of the target surface is determined by the energy 1 × energy 2, and the data specifying the surface and the calculated energy value are stored in the table of the designated graphic element candidate table storage unit 8.

【0056】ステップ558;ステップ553におい
て、交点がマウス入力座標の左右にない場合は、エネル
ギ計算値を−1.0とする。
Step 558: If the intersection is not on the left or right of the mouse input coordinates in step 553, the energy calculation value is set to -1.0.

【0057】このときのデータのフローを図20に示し
ている。
FIG. 20 shows the data flow at this time.

【0058】指定図形要素候補テーブル記憶部8は、図
16(a)に示すように、「順番」「図形要素」「図形
要素または座標のリスト」「エネルギ」「閾値」および
「選択番号」のデータを格納する指定図形要素候補テー
ブルを具備している。この内、「図形要素」「図形要素
または座標のリスト」および「エネルギ」に関するデー
タは、図形要素別エネルギ計算部5から送出され、ま
た、「閾値」は、重み付けテーブル6によって予め与え
られる。図16(b)は、指定図形要素候補テーブルの
初期値を示している。また、図21(a)には、指定図
形要素候補テーブルに図形要素別エネルギ計算部5から
送られたデータを格納した状態を表示している。
As shown in FIG. 16A, the designated graphic element candidate table storage section 8 stores the "order", "graphic element", "list of graphic elements or coordinates", "energy", "threshold" and "selection number". It has a designated graphic element candidate table for storing data. Among them, data relating to “graphic elements”, “list of graphic elements or coordinates”, and “energy” are sent from the energy calculating unit 5 for each graphic element, and the “threshold” is given in advance by the weighting table 6. FIG. 16B shows initial values of the designated graphic element candidate table. FIG. 21A shows a state in which the data transmitted from the graphic element-specific energy calculation unit 5 is stored in the designated graphic element candidate table.

【0059】ステップ6;指定図形要素生成部7は、指
定図形要素候補テーブル(図21(a))から指定図形
要素候補のレコードを読み込んで、テーブルの再調製を
行なう。この動作は、図8のステップ60からステップ
65の手順で行なわれ、 ステップ60;指定図形要素候補テーブルの「選択番
号」をリセットし、 ステップ61;指定図形要素候補レコードの1つを読み
込み、 ステップ62;それが存在するときは、 ステップ63;読み込んだ指定図形要素候補レコードの
エネルギと閾値との大小を比較し、 ステップ64;エネルギが閾値より小さいときは、その
指定図形要素候補のレコードを削除する。
Step 6: The designated graphic element generation unit 7 reads the record of the designated graphic element candidate from the designated graphic element candidate table (FIG. 21A) and re-prepares the table. This operation is performed according to the procedure from step 60 to step 65 in FIG. 8; step 60: resetting the “selection number” of the designated graphic element candidate table; step 61; reading one of the designated graphic element candidate records; 62; if it exists, step 63; compare the energy of the read designated graphic element candidate record with the threshold, and step 64; if the energy is smaller than the threshold, delete the record of the designated graphic element candidate. I do.

【0060】次いで、ステップ61に戻り、順次、指定
図形要素候補レコードのエネルギを閾値と比較する手順
を繰り返す。こうして、指定図形要素候補テーブルに格
納された全てのレコードに対して比較を行なった後、 ステップ65;削除されなかった指定図形要素候補レコ
ードについて、エネルギの大小の順にソーティングし、
「順番」を1から順に付け加える。
Next, returning to step 61, the procedure of sequentially comparing the energy of the designated graphic element candidate record with the threshold value is repeated. After comparing all the records stored in the designated graphic element candidate table in this way, step 65: sorting the designated graphic element candidate records that have not been deleted in the order of energy,
“Order” is added in order from 1.

【0061】このような手順で再調製された指定図形要
素候補テーブルを図21(b)に示している。
FIG. 21 (b) shows the designated graphic element candidate table re-prepared in such a procedure.

【0062】ステップ7;指定図形要素選択部9は、マ
ウス入力情報のクリック回数の値を指定図形要素候補テ
ーブルの選択番号としてセットする動作をしており、こ
のセットにより、選択番号に対応する順番の指定図形要
素候補が、後述する表示処理部10の動作により、指定図
形要素として表示されることになる。左ボタンのクリッ
ク操作が行なわれたときは、指定図形要素選択部9は、
指定図形要素候補テーブルの選択番号を常に1にセット
する。
Step 7: The designated graphic element selecting section 9 sets the value of the number of clicks of the mouse input information as the selection number of the designated graphic element candidate table, and the set corresponds to the order corresponding to the selected number. Are displayed as designated graphic elements by the operation of the display processing unit 10 described later. When the left button is clicked, the designated graphic element selecting unit 9
The selection number of the designated graphic element candidate table is always set to 1.

【0063】ステップ8;指定図形要素選択部9は、指
定図形要素を選択したときに、併せて、重み付けテーブ
ルの「重み最大値」および「重み分散」のデータの更新
を行なう。この更新は、指定図形要素の選択における操
作者のマウス操作の癖を吸収するためのもので、例え
ば、稜線を指定する場合に、稜線上の中央にカーソルを
位置させたり、または、稜線から僅かに離れた位置にカ
ーソルを置く傾向があるときに、そうした傾向を加味し
て以後の指定図形要素候補の選択ができるようにするた
めの措置である。
Step 8: When the designated graphic element is selected, the designated graphic element selecting section 9 also updates the data of "maximum weight" and "weight variance" of the weighting table. This update is to absorb the habit of the mouse operation of the operator in selecting the designated graphic element. For example, when specifying the ridge line, the cursor is positioned at the center on the ridge line, or slightly shifted from the ridge line. When there is a tendency to place the cursor at a position distant from the above, this is a measure for taking into account such tendency and allowing the subsequent selection of the designated graphic element candidate.

【0064】指定図形要素選択部9は、マウス左ボタン
のクリック操作に対応して、重み付けテーブルの更新を
図9のステップ80からステップ84の手順で行ない、 ステップ80;マウス入力情報(図14)における「マ
ウス入力座標」と「入力前のマウス座標」との距離を計
算し、この値が設定値δより小さいかどうかを判別す
る。δより大きいとき(初回の左ボタンのクリック操作
のときには、この距離はδより大きくなる)は、 ステップ84;指定図形要素候補テーブルの1番目の図
形要素候補レコードを重み付けテーブルの選択履歴レコ
ードに格納する。
The designated graphic element selecting section 9 updates the weighting table in accordance with the procedure from step 80 to step 84 in FIG. 9 in response to the clicking operation of the left mouse button. Step 80: mouse input information (FIG. 14) , The distance between the “mouse input coordinates” and the “mouse coordinates before input” is calculated, and it is determined whether or not this value is smaller than the set value δ. If it is larger than δ (the distance becomes larger than δ at the time of the first click operation of the left button), step 84; the first graphic element candidate record of the designated graphic element candidate table is stored in the selection history record of the weighting table. I do.

【0065】ステップ81;ステップ80において、
「マウス入力座標」と「入力前のマウス座標」との距離
が設定値δより小さいときは、重み付けテーブルの選択
履歴レコードと指定図形要素候補テーブルの1番目の指
定図形要素候補レコードとを比較し、 ステップ82;それらが同じであるときは、選択履歴レ
コードの図形要素の種別に対して設定されている重み最
大値を、決められた量だけ増やし、重み分散の値を決め
られた量だけ減らす。また、 ステップ83;それらが異なるときは、選択履歴レコー
ドの図形要素種別に対して設定されている重み最大値
を、決められた量だけ減らし、重み分散の値を決められ
た量だけ増やし、 ステップ84;重み付けテーブルの選択履歴レコードに
指定図形要素候補テーブルの1番目の図形要素候補レコ
ードを格納する。
Step 81: At step 80,
If the distance between the “mouse input coordinates” and the “mouse coordinates before input” is smaller than the set value δ, the selection history record of the weighting table is compared with the first designated graphic element candidate record of the designated graphic element candidate table. Step 82: If they are the same, increase the maximum weight value set for the type of the graphic element in the selection history record by the determined amount, and decrease the value of the weight variance by the determined amount . Step 83: If they are different, reduce the maximum weight value set for the graphic element type of the selection history record by the determined amount, and increase the value of the weight variance by the determined amount. 84: The first graphic element candidate record of the designated graphic element candidate table is stored in the selection history record of the weighting table.

【0066】こうして、左ボタンのクリックに伴って、
重み付けテーブルの更新が行なわれるが(このときの更
新を更新(1)という)、この場合のデータのフローを
図22(a)に示している。
In this way, when the left button is clicked,
The weighting table is updated (the update at this time is referred to as update (1)), and the data flow in this case is shown in FIG.

【0067】さて、マウスの右ボタンがクリックされる
と、 ステップ9;指定図形要素選択部9は、指定図形要素候
補テーブル記憶部8から指定図形要素候補テーブルを読
み込み、 ステップ10;テーブルの選択番号を右ボタンのクリッ
ク回数に応じた値にセットし、指定図形要素を順次選択
する。この動作は、図10のステップ100からステッ
プ102までの手順で行なわれ、 ステップ100;マウス右ボタンがクリックされると、
指定図形要素候補テーブルの選択番号を1つ増加し、 ステップ101;この選択番号に対応する順番の図形要
素候補レコードが格納されていないときは、 ステップ102;指定図形要素候補テーブルの選択番号
を1にセットする。
Now, when the right button of the mouse is clicked, Step 9; the designated graphic element selecting section 9 reads the designated graphic element candidate table from the designated graphic element candidate table storage section 8, and Step 10; Is set to a value corresponding to the number of times the right button is clicked, and the designated graphic elements are sequentially selected. This operation is performed according to the procedure from step 100 to step 102 in FIG. 10. Step 100: When the right mouse button is clicked,
The selection number of the designated graphic element candidate table is increased by one. Step 101: If the graphic element candidate records in the order corresponding to the selected number are not stored, Step 102; Set to.

【0068】ステップ11;指定図形要素選択部9は、
指定図形要素の選択に併せて、重み付けテーブルの「重
み最大値」および「重み分散」のデータの更新を行な
う。この動作は、図11のステップ110からステップ
113の手順で行なわれ、 ステップ110;重み付けテーブルの選択履歴レコード
と、指定図形要素候補テーブルの選択番号に対応する図
形要素候補レコードとを比較し、 ステップ111;それらが同じであるときは、重み付け
テーブルにおいて選択履歴レコードの図形要素の種別に
対して設定されいる重み最大値を、決められた量だけ増
やし、重み分散の値を決められた量だけ減らす。また、 ステップ112;それらが異なるときは、選択履歴レコ
ードの図形要素の種別に対して設定されいる重み最大値
を、決められた量だけ減らし、重み分散の値を決められ
た量だけ増やし、 ステップ113;重み付けテーブルの選択履歴レコード
に、指定図形要素候補テーブルの選択番号に対応する図
形要素候補レコードを格納する。
Step 11: The designated graphic element selecting section 9
In conjunction with the selection of the designated graphic element, the data of the “maximum weight” and the “weight variance” of the weight table are updated. This operation is performed according to the procedure from step 110 to step 113 in FIG. 11. Step 110: Compare the selection history record of the weighting table with the graphic element candidate record corresponding to the selection number of the designated graphic element candidate table. 111; If they are the same, increase the maximum weight value set for the type of the graphic element of the selected history record in the weighting table by a predetermined amount, and reduce the value of the weight variance by the predetermined amount . Step 112: if they are different, reduce the maximum weight value set for the type of the graphic element in the selection history record by a predetermined amount, and increase the value of the weight variance by a predetermined amount. 113: The graphic element candidate record corresponding to the selection number of the designated graphic element candidate table is stored in the selection history record of the weighting table.

【0069】この右ボタンのクリックに伴なう重み付け
テーブルの更新(このときの更新を更新(2)という)
の様子を図22(b)に示している。
Updating of the weighting table in response to the clicking of the right button (the updating at this time is referred to as updating (2))
Is shown in FIG. 22 (b).

【0070】ステップ12;指定図形要素候補の選択が
行なわれると、表示処理部10は、選ばれた図形要素を強
調表示する。この動作は、図12のステップ120から
ステップ124の手順で行なわれ、 ステップ120;指定図形要素候補テーブル記憶部8か
ら指定図形要素候補テーブルを読み込み、 ステップ121;テーブルの選択番号に対応する順番の
図形要素候補レコードを検索し、 ステップ122;検索されたレコードの図形要素の順番
が、同じ図形要素の種類の中で最小の番号であるとき
は、 ステップ123;その図形要素を点、実線または塗り潰
した不透明な面によって表示し、 ステップ124;検索されたレコードの図形要素の順番
が、同じ図形要素の種類の中で最小の番号でないとき
は、その図形要素を点、破線または塗り潰した半透明な
面で表示する。
Step 12: When a designated graphic element candidate is selected, the display processing unit 10 highlights the selected graphic element. This operation is performed according to the procedure from step 120 to step 124 in FIG. 12; step 120: read the designated graphic element candidate table from the designated graphic element candidate table storage unit 8; and step 121: determine the order corresponding to the table selection number. A graphic element candidate record is searched, step 122; if the graphic element order of the searched record is the smallest number among the same graphic element types, step 123; Step 124: If the order of the graphic elements of the retrieved record is not the smallest among the same graphic element types, the graphic element is indicated by a dot, a broken line, or a translucent solid. Display in plane.

【0071】このときのデータのフローを図23に例示
している。マウス左ボタンの操作で図形要素を選択した
ときは(a)、指定図形要素候補テーブルの1番目の図
形要素候補が選択されるため、図形要素は、常に実線で
表示される。マウス右ボタンの操作で3番目の図形要素
(稜線)を選択したときは(b)、1番目または2番目
のレコードに稜線のデータがある場合には、選択された
稜線は破線で表示される。
FIG. 23 shows an example of the data flow at this time. When a graphic element is selected by operating the left mouse button (a), the first graphic element candidate in the designated graphic element candidate table is selected, so that the graphic element is always displayed as a solid line. When the third graphic element (edge) is selected by operating the right mouse button (b), if there is edge data in the first or second record, the selected edge is displayed as a broken line. .

【0072】このように、実施例の図形処理装置では、
マウス左ボタンの操作によって指定する図形要素が選択
され、また、マウス右ボタンのクリックによって選択し
た図形要素の変更が行なわれる。そして、この指定図形
要素候補の1つとして、立体図形の陰に隠れている図形
要素がその対象に加えられる。
As described above, in the graphic processing device of the embodiment,
The graphic element to be specified is selected by operating the left mouse button, and the selected graphic element is changed by clicking the right mouse button. Then, as one of the designated graphic element candidates, a graphic element hidden behind a three-dimensional graphic is added to the target.

【0073】なお、実施例では、エネルギ算出にガウス
関数を使用したが、一般的には、距離について減少関
数、1/分散(重み分散)について増加関数となるもの
であるならば、他の関数系を用いることができる。
In the embodiment, the Gaussian function is used for energy calculation. However, in general, if the distance becomes a decreasing function and the 1 / variance (weight variance) becomes an increasing function, another function is used. A system can be used.

【0074】[0074]

【発明の効果】以上の実施例の説明から明らかなよう
に、本発明の図形処理装置は、短時間で図形要素を指定
することができ、その図形要素を変更する操作も簡単で
ある。また、立体図形の隠れた図形要素を指定すること
もできる。
As is apparent from the above description of the embodiment, the graphic processing apparatus of the present invention can specify a graphic element in a short time, and the operation of changing the graphic element is simple. It is also possible to designate a hidden graphic element of a three-dimensional graphic.

【0075】さらに、指定図形要素の選択に応じて、重
み付けデータを更新することにより、操作者が指定しよ
うとする図形要素が第1番に指定図形要素として表示さ
れる確立が高まり、迅速な図形要素の指定が可能にな
る。
Further, by updating the weighting data in accordance with the selection of the designated graphic element, the probability that the graphic element to be designated by the operator is displayed first as the designated graphic element is increased, and a rapid graphic The element can be specified.

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

【図1】本発明の図形処理装置の実施例における構成を
示すブロック図、
FIG. 1 is a block diagram showing a configuration in an embodiment of a graphic processing apparatus according to the present invention;

【図2】実施例の図形処理装置における全体的な動作を
示すフロー図、
FIG. 2 is a flowchart showing an overall operation in the graphic processing apparatus of the embodiment;

【図3】実施例の装置のマウス入力情報読取部における
動作を示すフロー図、
FIG. 3 is a flowchart showing an operation in a mouse input information reading unit of the apparatus according to the embodiment;

【図4】実施例の装置の図形要素別エネルギ計算部にお
ける動作を示すフロー図、
FIG. 4 is a flowchart showing the operation of a graphic element-based energy calculation unit of the apparatus according to the embodiment;

【図5】前記計算部における頂点のエネルギ計算の手順
を示すフロー図、
FIG. 5 is a flowchart showing a procedure of calculating energy of a vertex in the calculation unit;

【図6】前記計算部における稜線のエネルギ計算の手順
を示すフロー図、
FIG. 6 is a flowchart showing a procedure of calculating energy of a ridge line in the calculation unit.

【図7】前記計算部における面のエネルギ計算の手順を
示すフロー図、
FIG. 7 is a flowchart showing a procedure of surface energy calculation in the calculation unit;

【図8】実施例の装置の指定図形要素候補生成部の動作
を示すフロー図、
FIG. 8 is a flowchart showing an operation of a designated graphic element candidate generation unit of the apparatus according to the embodiment;

【図9】実施例の装置の指定図形要素候補選択部の動作
を示すフロー図、
FIG. 9 is a flowchart showing the operation of a designated graphic element candidate selection unit of the apparatus according to the embodiment;

【図10】前記選択部の右ボタンが操作されたときの動
作を示すフロー図、
FIG. 10 is a flowchart showing an operation when a right button of the selection unit is operated;

【図11】前記選択部の右ボタン操作に伴う重み付け更
新動作を示すフロー図、
FIG. 11 is a flowchart showing a weight update operation associated with a right button operation of the selection unit.

【図12】実施例の装置の表示処理部の動作を示すフロ
ー図、
FIG. 12 is a flowchart showing the operation of the display processing unit of the apparatus according to the embodiment;

【図13】実施例の装置の記憶部に格納される立体・射
影図形データの構成図、
FIG. 13 is a configuration diagram of three-dimensional / projected figure data stored in a storage unit of the apparatus according to the embodiment;

【図14】実施例の装置の記憶部に格納されるマウス入
力情報のデータ構成図、
FIG. 14 is a data configuration diagram of mouse input information stored in a storage unit of the device according to the embodiment;

【図15】実施例の装置の記憶部に格納される重み付け
テーブルのデータ構成図、
FIG. 15 is a data configuration diagram of a weighting table stored in a storage unit of the device according to the embodiment;

【図16】実施例の装置の記憶部に格納される指定図形
要素候補テーブルの構成図、
FIG. 16 is a configuration diagram of a designated graphic element candidate table stored in a storage unit of the apparatus according to the embodiment;

【図17】射影図形と立体図形との関係を説明する説明
図、
FIG. 17 is an explanatory diagram for explaining a relationship between a projected figure and a three-dimensional figure;

【図18】頂点のエネルギ計算におけるデータ・フロー
を示す図、
FIG. 18 is a diagram showing a data flow in energy calculation of a vertex;

【図19】稜線のエネルギ計算におけるデータ・フロー
を示す図、
FIG. 19 is a diagram showing a data flow in energy calculation of a ridge line;

【図20】面のエネルギ計算におけるデータ・フローを
示す図、
FIG. 20 is a diagram showing a data flow in surface energy calculation.

【図21】指定図形要素候補テーブルのデータ整理前
(a)と整理後(b)を示す図、
FIG. 21 is a diagram showing a designated graphic element candidate table before (a) and after (b) data arrangement;

【図22】重み付けデータの更新処理1(a)と更新処
理2(b)のフローを示す図、
FIG. 22 is a diagram showing a flow of update processing 1 (a) and update processing 2 (b) of weighting data;

【図23】表示処理におけるデータ・フローを示す図、FIG. 23 is a diagram showing a data flow in display processing.

【図24】実施例の装置を用いたときの図形要素指定操
作と表示画面とを示す図、
FIG. 24 is a diagram showing a graphic element designation operation and a display screen when the apparatus of the embodiment is used;

【図25】実施例の装置を用いて陰の面を指定するとき
の操作と表示画面とを示す図、
FIG. 25 is a diagram showing an operation and a display screen when specifying a hidden surface using the apparatus of the embodiment;

【図26】従来の図形処理装置の構成を示すブロック
図、
FIG. 26 is a block diagram showing a configuration of a conventional graphic processing apparatus;

【図27】従来の図形処理装置における表示画面を示す
図である。
FIG. 27 is a diagram showing a display screen in a conventional graphic processing device.

【符号の説明】 1 立体・射影図形データ記憶部 2、21 立体図形生成部 3 マウス入力情報読取部 4 マウス入力情報記憶部 5 図形要素別エネルギ計算部 6 重み付けテーブル記憶部 7 指定図形要素候補生成部 8 指定図形要素候補テーブル記憶部 9 指定図形要素選択部 10、27 表示処理部 11 立体図形 12 カーソル 13 マウス 14 マウス右ボタン 15 マウス左ボタン 22 立体図形データ記憶部 23 指定図形要素読取部 24 指定図形要素記憶部 25 指定図形要素判定部 26 マウス座標読取部[Description of Signs] 1 stereoscopic / projected graphic data storage unit 2, 21 solid graphic generation unit 3 mouse input information reading unit 4 mouse input information storage unit 5 energy calculation unit for each graphic element 6 weighting table storage unit 7 specified graphic element candidate generation Part 8 Specified graphic element candidate table storage part 9 Specified graphic element selection part 10, 27 Display processing part 11 Solid figure 12 Cursor 13 Mouse 14 Mouse right button 15 Mouse left button 22 Solid figure data storage part 23 Specified graphic element reading part 24 Specification Graphic element storage unit 25 Specified graphic element judgment unit 26 Mouse coordinate reading unit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−150968(JP,A) 特開 平1−112374(JP,A) 特開 平2−61774(JP,A) ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-2-150968 (JP, A) JP-A-1-112374 (JP, A) JP-A-2-61774 (JP, A)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画面に表示した立体図形の図形要素をカ
ーソルによって指定できる3次元図形処理装置におい
て、 カーソル位置と各図形要素との距離に依存するエネルギ
を図形要素別に計算するエネルギ計算手段と、図形要素
を指定する操作に応じて前記エネルギ計算値の大きい図
形要素から順に指定図形要素として表示する表示手段と
を設けたことを特徴とする3次元図形処理装置。
1. A three-dimensional graphic processing apparatus capable of designating a graphic element of a three-dimensional graphic displayed on a screen by a cursor, energy calculating means for calculating energy dependent on a distance between a cursor position and each graphic element for each graphic element, A three-dimensional graphic processing device comprising: a display unit for displaying graphic elements in descending order of the calculated energy value as specified graphic elements in accordance with an operation of specifying a graphic element.
【請求項2】 前記表示手段により指定図形要素として
表示される図形要素を、閾値以上の前記エネルギ計算値
を有する図形要素に制限する指定図形要素候補生成手段
を設けたことを特徴とする請求項1に記載の3次元図形
処理装置。
2. A designated graphic element candidate generating means for limiting a graphic element displayed as a specified graphic element by the display means to a graphic element having the calculated energy value equal to or larger than a threshold value is provided. 3. The three-dimensional graphic processing apparatus according to 1.
【請求項3】 前記エネルギ計算手段に提供される図形
要素毎の重み付けデータを格納する重み付けテーブルを
設けたことを特徴とする請求項1または2に記載の3次
元図形処理装置。
3. A three-dimensional graphic processing apparatus according to claim 1, further comprising a weighting table for storing weighting data for each graphic element provided to said energy calculating means.
【請求項4】 前記重み付けデータを図形要素が指定さ
れたときに更新する更新手段を設けたことを特徴とする
請求項3に記載の3次元図形処理装置。
4. The three-dimensional graphic processing apparatus according to claim 3, further comprising updating means for updating the weighting data when a graphic element is designated.
JP4276814A 1992-09-22 1992-09-22 3D graphics processor Expired - Fee Related JP2662539B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4276814A JP2662539B2 (en) 1992-09-22 1992-09-22 3D graphics processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4276814A JP2662539B2 (en) 1992-09-22 1992-09-22 3D graphics processor

Publications (2)

Publication Number Publication Date
JPH06103362A JPH06103362A (en) 1994-04-15
JP2662539B2 true JP2662539B2 (en) 1997-10-15

Family

ID=17574767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4276814A Expired - Fee Related JP2662539B2 (en) 1992-09-22 1992-09-22 3D graphics processor

Country Status (1)

Country Link
JP (1) JP2662539B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0863319A (en) * 1994-08-24 1996-03-08 Hitachi Ltd Information processor
JP4573971B2 (en) * 2000-08-30 2010-11-04 キヤノン株式会社 Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus
DE602004020969D1 (en) 2004-03-12 2009-06-18 Dassault Systemes Method for selecting and handling objects in a CAD system
JP2007249818A (en) * 2006-03-17 2007-09-27 Graduate School For The Creation Of New Photonics Industries Electronic medical chart system
JP6452014B1 (en) * 2018-03-09 2019-01-16 株式会社コナミデジタルエンタテインメント Display system, display control apparatus, and program
JP6439132B1 (en) * 2018-03-09 2018-12-19 株式会社コナミデジタルエンタテインメント Display system, display control apparatus, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07120440B2 (en) * 1987-10-26 1995-12-20 株式会社日立製作所 3D selection device
JPH0261774A (en) * 1988-08-26 1990-03-01 Nec Corp Indicating device for graphic element
JP2892360B2 (en) * 1988-12-02 1999-05-17 株式会社日立製作所 3D cursor control device

Also Published As

Publication number Publication date
JPH06103362A (en) 1994-04-15

Similar Documents

Publication Publication Date Title
US5010502A (en) Method and apparatus for generating representations of 3-dimensional objects
US6308144B1 (en) Method and apparatus for providing three-dimensional model associativity
US5371845A (en) Technique for providing improved user feedback in an interactive drawing system
US6411862B1 (en) Apparatus and method for managing and distributing design and manufacturing information throughout a sheet metal production facility
JP5466813B2 (en) A process for selecting an object in the PLM database and a device that implements this process
JP3025173B2 (en) Database search system
JP3803502B2 (en) Apparatus and method for distributing design and fabrication information throughout a sheet metal fabrication facility
EP0640906B1 (en) Display apparatus
JP2662539B2 (en) 3D graphics processor
JP3501456B2 (en) 3D figure editing device
JPH07111742B2 (en) Method and apparatus for transforming figure
US5649081A (en) Method and apparatus for pattern data processing
US6392648B1 (en) Three dimensional graphical display generating system and method
CN1618056A (en) Method of providing a display for a graphical user interface
JP3305395B2 (en) Figure division device
JP2623416B2 (en) 3D graphics processor
JPH0816805A (en) Graphic generation device
EP0393844A2 (en) Data processing system with graphics capability
JPH07271998A (en) Method and device for three-dimensional display
JP2755398B2 (en) Point inside / outside judgment processing method for solid model
JP3302455B2 (en) Information processing device
JP2786098B2 (en) Figure enlargement editing method
JP3142191B2 (en) Graphic processing unit
JP2571178B2 (en) 3D graphics processor
JP3000749B2 (en) Character editing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees