JP4573971B2 - Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus - Google Patents

Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus Download PDF

Info

Publication number
JP4573971B2
JP4573971B2 JP2000261616A JP2000261616A JP4573971B2 JP 4573971 B2 JP4573971 B2 JP 4573971B2 JP 2000261616 A JP2000261616 A JP 2000261616A JP 2000261616 A JP2000261616 A JP 2000261616A JP 4573971 B2 JP4573971 B2 JP 4573971B2
Authority
JP
Japan
Prior art keywords
graphic
display
shortest distance
dimensional
display means
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
JP2000261616A
Other languages
Japanese (ja)
Other versions
JP2002074373A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2000261616A priority Critical patent/JP4573971B2/en
Publication of JP2002074373A publication Critical patent/JP2002074373A/en
Application granted granted Critical
Publication of JP4573971B2 publication Critical patent/JP4573971B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は図形処理装置及び該装置における図形要素間最短距離算出方法に関し、特に、CADシステム等において、ユーザが必要とする方向へ投影した図形要素間の最短距離の算出に関するものである。
【0002】
【従来の技術】
近年、コンピュータの性能が飛躍的に向上し、様々な処理をコンピュータ上で行えるようになっている。例えば、コンピュータ上でデザインを様々な面からシミュレートするCADも、従来はミニコン等の高価なコンピュータを必要としていたが、近年はパーソナルコンピュータ上で実現できるものが多い。
【0003】
CADシステムは、図形要素(点、稜線、面など)の組合わせでデザインを表現するものが一般的であるが、この場合図形要素間の距離を求めることが必要となる。
【0004】
図形要素間の最短距離を求める方法としては、従来以下のような方法が知られている。
【0005】
(1)測定したい3Dモデルをコンピュータディスプレイ上に表示しながら、マウスなどの入力手段により、ユーザが望む点、稜線、面などの測定対象となる2つの要素を連続して指示し、この2要素間の3次元空間上の最短距離を算出し、別途用意された結果表示手段を用いて算出された最短距離を表示する方法。
【0006】
(2)測定したい3Dモデルをコンピュータディスプレイ上に表示しながら、マウスなどの入力手段により、ユーザが望む点、稜線、面などの測定対象となる2つの要素の近傍までポインタなどの位置指示手段を移動し、ディスプレイ上の図形要素とポインタ間の距離があらかじめ設定されている距離内に入れば、ディスプレイに表示されている図形要素の色が変更され、測定対象となる要素をユーザが確認しながら、3次元空間上の最短距離を算出し、別途用意された結果表示手段を用いて算出された最短距離を表示する方法。
【0007】
(3)測定したい3Dモデルをコンピュータディスプレイ上に表示しながら、マウスなどの入力手段により、ユーザが望む点、稜線、面などの測定対象となる2つの要素の近傍までポインタなどの位置指示手段を移動し、ユーザが確定した場所であらかじめ設定されている表示装置上の距離内にクリッピングされる図形要素の中から3次元空間の視点に一番近い、すなわち表示装置上で一番手前に表示されている要素を測定対象要素とし、3次元空間上の最短距離を算出し、別途用意された結果表示手段を用いて算出された最短距離を表示する方法。
【0008】
(4)上記従来技術(1)で述べた方法において更に、最短距離となる線分のベクトルを算出し、このベクトルとユーザが望む方向を示す平面の内積を算出することにより、3次元空間上の要素間の投影最短距離を算出する方法。
【0009】
(5)上記従来技術(2)で述べた方法において更に、最短距離となる線分のベクトルを算出し、このベクトルとユーザが望む方向を示す平面の内積を算出することにより、3次元空間上の要素間の投影最短距離を算出する方法。
【0010】
(6)上記従来技術(3)で述べた方法において更に、最短距離となる線分のベクトルを算出し、前記ベクトルとユーザが望む方向を示す平面の内積を算出することにより、3次元空間上の要素間の投影最短距離を算出する方法。
【0011】
(7)特開平10−31757号公報に記載されている図形処理装置および要素間最短距離算出方法のように、3次元空間を表示しているディスプレイの視線方向を考慮した要素間最短距離算出方法。
【0012】
【発明が解決しようとする課題】
しかしながら、これら従来の方法は、それぞれ以下に述べるような課題を有している。
【0013】
上記(1)、(2)および(3)の方法は、単純な3次元空間上の最短距離を算出するものである。しかしながら、3DCADなどの装置においてオペレータが要素間の測定を行う場合、ユーザが指定した平面へ要素を投影した結果の最短距離を必要とする場合が多く、その距離の測定を行うことが不可能である。
【0014】
また、(2)および(5)の方法のように、対象となる要素の色(表示)が変わるような方法においては、要素の数が多くなると細かい部分を拡大表示させる必要があり、要素選択時の作業効率を低下させることとなる。
【0015】
更に、(1)から(7)の方法では、ディスプレイ上に表示している部品点数が多くなった場合、手前に表示されている部品が視界を妨げ、その結果、部品が隠線表示されている場合などにおいて、視界から見えない要素間の測定が不可能である。
【0016】
本発明は以上のような従来技術の様々な問題を解決するためになされたものであり、ユーザーの作業効率を低下させずに、ユーザが必要とする方向へ投影した図形要素間の最短距離を算出することができる図形処理装置及び該装置における図形要素間最短距離算出方法を提供することを目的とする。
【0017】
【課題を解決するための手段】
上記目的を達成するために本発明の図形処理装置は、複数の図形要素からなる立体図形を3次元グラフィックで表示する表示手段と、所定の演算及び前記表示手段における前記立体図形の表示の変更に関する指示や操作を入力するためのポインティングデバイスとを有する図形処理装置であって、
前記表示手段の表示状態に関するパラメータを記憶する手段と、
前記表示手段に表示されている立体図形から図形要素間の最短距離の算出対象となる2つの立体図形が前記ポインティングデバイスによってそれぞれ選択されたときに、該立体図形のみを前記表示手段に表示させる手段と、
前記選択された立体図形の図形要素の選択を容易とするように、前記表示手段の表示状態に関するパラメータを変更する手段と、
前記算出対象となる2つの立体図形それぞれの図形要素が選択されたときに、これら2つの立体図形を前記記憶されたパラメータに基づいて前記表示手段に表示させる手段と、
前記2つの立体図形の選択された図形要素から最短距離を算出する投影方向を求める手段と、
前記求められた投影方向における図形要素間の最短距離を算出する手段と、を備え
前記図形要素を選択するときに、対象とする図形要素を特定する範囲の大きさを変更する手段を更に備えている。
【0018】
また、上記目的を達成する本発明の図形処理装置における図形要素間最短距離算出方法は、複数の図形要素からなる立体図形を3次元グラフィックで表示する表示手段と、所定の演算及び前記表示手段における前記立体図形の表示の変更に関する指示や操作を入力するためのポインティングデバイスとを有する図形処理装置における図形要素間最短距離算出方法であって、
前記表示手段の表示状態に関するパラメータを記憶する工程と、
前記表示手段に表示されている立体図形から図形要素間の最短距離の算出対象となる2つの立体図形が前記ポインティングデバイスによってそれぞれ選択されたときに、該立体図形のみを前記表示手段に表示させる工程と、
前記選択された立体図形の図形要素の選択を容易とするように、前記表示手段の表示状態に関するパラメータを変更する工程と、
前記算出対象となる2つの立体図形それぞれの図形要素が選択されたときに、これら2つの立体図形を前記記憶されたパラメータに基づいて前記表示手段に表示させる工程と、
前記2つの立体図形の選択された図形要素から最短距離を算出する投影方向を求める工程と、
前記求められた投影方向における図形要素間の最短距離を算出する工程と、を備え
前記図形要素を選択するときに、対象とする図形要素を特定する範囲の大きさを変更する工程を更に備えている。
【0019】
すなわち、本発明では、複数の図形要素からなる立体図形を3次元グラフィックで表示する表示手段と、所定の演算及び前記表示手段における前記立体図形の表示の変更に関する指示や操作を入力するためのポインティングデバイスとを有する図形処理装置において図形要素間の最短距離を算出するときに、表示手段の表示状態に関するパラメータを記憶し、表示手段に表示されている立体図形から図形要素間の最短距離の算出対象となる2つの立体図形がポインティングデバイスによってそれぞれ選択されたときに、該立体図形のみを表示手段に表示させ、選択された立体図形の図形要素の選択を容易とするように、表示手段の表示状態に関するパラメータを変更し、算出対象となる2つの立体図形それぞれの図形要素が選択されたときに、これら2つの立体図形を記憶されたパラメータに基づいて表示手段に表示させ、2つの立体図形の選択された図形要素から最短距離を算出する投影方向を求め、求められた投影方向における図形要素間の最短距離を算出する。さらに、図形要素を選択するときに、対象とする図形要素を特定する範囲の大きさを変更する。
【0020】
これにより、表示手段に表示されている立体図形の数が多い場合においても、測定対象となる立体図形を選択した後に該立体図形のみが表示され、更に表示方向や縮尺などの表示パラメータを変更して図形要素を選択する操作が容易に行える。
【0021】
従って、2つの図形要素間の距離の測定を行う場合、ユーザが指定した平面へ2つの図形要素を投影した結果における最短距離を簡単な操作で求めることができる。
【0022】
【発明の実施の形態】
以下、本発明の図形処理装置に係る実施の形態を図面に基づき説明する。
【0023】
[第1の実施形態]
図1は本発明の図形処理装置の第1の実施の形態の構成を示すブロック図であり、同図中、1は制御線、データ線及びアドレス線を含むバスである。このバスには、中央処理装置(CPU)2、リードオンリメモリ(ROM)3、ランダムアクセスメモリ(RAM)4がそれぞれ接続されている。また、バス1には入力インターフェース5を介してキーボード、タブレット及びマウス等の入力装置6、出力インターフェース7を介して出力装置8及び外部記憶装置10がそれぞれ接続されている。出力装置8はCRT,LCD等の表示装置8a及びプリンタ、プロッタ等の印字装置8bからなる。外部記憶装置10はハードディスク(HD)、フロッピーディスク(FD)、CD−ROM、ミニディスク(MD)などの光/磁気ディスク及び磁気テープ等からなる。
【0024】
CPU2は本装置全体の制御を司るものである。ROM3には処理プログラム3a及びパラメータ3b、投影方向算出基準データ3cが格納されている。RAM4は、図形要素格納領域4a、処理対象部品識別子格納領域4b、視点及び視線方向格納領域4c、測定結果格納領域4d、を有している。そして、ROM3に格納された処理プログラムに応じてRAM4を一時記憶装置として様々の処理及び制御、たとえば図形入力制御、図形表示処理、ピック処理、距離算出等を行う。表示装置8aは必要に応じて複数のビットマッププレーン等を含んでおり、図形を表示する。
【0025】
図3は、表示装置8aに表示される画像の例を表しており、82は第1ボタン、83はマウスポインタ、84は第1情報出力エリア、85はパネル上の第2ボタン、86はパネル上の第2情報出力エリア2、87はパネル、88は3D図形(以下部品とも称する)である。これら図3に示されたボタン82および85は、全てソフトキーである
この表示装置8aを参照して、キーボードやマウスなどの入力装置6を操作することによって、図示されているような3D図形88の要素間の最短距離算出が対話的に行われる。またマウスポインタ83と入力装置6を使用して、第1ボタン82の適切な位置を選択することにより、図形間最短距離を算出するモードに入ることができる。
【0026】
以下においては、図4に881〜884で示すような4つの3D図形が表示装置8aに表示されていると仮定して、これら図形の要素間の最短距離を算出する場合の処理について説明する。
【0027】
図2A及び図2Bに示したフローチャートを参照して、本実施形態における図形要素間の最短距離を算出する処理について説明する。
【0028】
最初にステップS1000ではパネル87、第1情報出力エリア84を介してユーザに投影面の入力を自動あるいは手動で行うのかを選択させる。ユーザの選択はマウスやキーボードなどの入力装置6を介して、パネル87上のボタン86にマウスポインタ83を合わせることによって入力される。
【0029】
ステップS1000において、ユーザが手動を選択した場合、ステップS1001に進み、マウスやキーボードなどの入力装置8を介して、マウスポインタ83を操作し、表示装置8に表示されている3D図形88の平面を選択することより、図形が投影されるべき投影平面が決定される。投影方向が定まった後、ステップS1002において、その瞬間における表示装置8に表示されている3D図形の視線方向及び視点位置がランダムアクセスメモリ4内にある視線方向・視点状態格納領域4cに「状態1」として格納される。
【0030】
図5は、投影平面選択時に表示装置8aの画面に3D図形881〜884及びマウスポインタ83が表示されている一例を示している。
【0031】
次にステップS1003において、マウスポインタ83、マウスやキーボードなどの入力装置6を介してユーザが測定したい図形要素が所属する部品を選択する。この時、選択対象となる部品が表示装置上で見にくい位置に配置されている場合、ユーザはマウスなどの入力装置を使用し、視点の位置、視線方向を自由に変えられる。
【0032】
図6は、このような選択時の表示装置8aの画面表示の一例を示している。ユーザが部品を選択しやすい視線の位置、視線方向が定まったら、ステップS1004において、その視線の位置、視線方向をランダムアクセスメモリ4内にある視線方向・視点状態格納領域4cに「状態2」として格納する。このとき、ユーザが選択した部品の識別子をランダムアクセスメモリ4内にある処理対象部品識別子格納領域4bに、部品1として格納する。そしてステップS1005で、この識別子を表示装置8上に表示されているパネル87上の情報出力エリア86に出力する。
【0033】
次にステップS1006において、現在、表示装置8aに表示されている全部品の識別子をランダムアクセスメモリ4内の処理対象部品識別子格納領域4bに「状態1リスト」として格納する。
【0034】
次にステップS1007において、表示装置8aに表示されている選択された部品以外の全ての部品を非表示状態にする。図7は、この状態での表示装置8aの画面表示の例を示している。
【0035】
次にステップS1008において、選択された部品のみが表示装置8aに表示されている状態で、選択された部品内の測定対象となる図形要素を、ユーザが選択する。この時、図形要素の選択を容易にするため、ユーザが部品を選択しやすい視点の位置、視線方向へ変更することができる。図8は、図7の表示状態から測定対象となる部品内の稜線を選択し易いように視点・視線方向を変更した例を示している。
【0036】
次にステップS1009において、ランダムアクセスメモリ4内の視点・視線方向格納領域4cに格納した「状態2」に表示状態を設定する。図9は、表示状態を状態2に設定した画面表示の例を示している。
【0037】
次にステップS1010において、ランダムアクセスメモリ4内の処理対象部品識別子格納領域4bに格納してある「状態1リスト」を取り出し、「状態1リスト」に基づいて表示装置8aに表示するべき部品のリストを表示する。
【0038】
次にステップS1011において、マウスポインタ83、マウスやキーボードなどの入力装置6を介してユーザが測定したいもう一方の図形要素が所属する部品を選択する。ステップS1011において選択された部品を部品2として識別する。この時、選択対象となる部品が表示装置上で見にくい位置に配置されている場合、ユーザはマウスなどの入力装置を使用し、視点の位置、視線方向を自由に変えられるものとする。
【0039】
またユーザが選択した部品2の識別子をランダムアクセスメモリ4内にある処理対象部品識別子格納領域4bに、部品2として格納する。そしてステップS1102で、この識別子を表示装置8上に表示されているパネル87上の第2情報出力エリア86に出力する。
【0040】
次にステップS1013において、表示装置8aの画面上に表示されている選択された部品2以外の全ての部品を非表示状態にする。図10は、この状態での表示装置の画面表示の例を示している。
【0041】
次にステップS1014において、選択された部品2のみが表示装置8に表示されている状態で、選択された部品2内の測定対象となる図形要素を、ユーザが選択する。この時、図形要素の選択を容易にするため、ユーザが部品を選択しやすい視点の位置、視線方向へ変更することができる。
【0042】
次にステップS1015において、ランダムアクセスメモリ4内の処理対象部品織別子格納領域4bに格納されている部品1及び部品2を取り出し、それら2つの部品のみを表示装置8の画面に表示させる。
【0043】
次にステップS1016において、ステップS1000で自動選択が設定された場合、ステップS1017で投影面算出処理を行う。ステップS1000で手動選択が設定された場合にはステップステップ1019に進む。ステップS1017では、部品1内の該当図形要素と、部品2内の該当図形要素間の関係から投影方向の算出を行う。例えば部品1の図形要素が円柱面である場合、円柱面の軸方向を投影方向とする。
【0044】
次にステップS1019において、ステップS1001またはステップS1017で算出された方向に対し、投影面を作成し、この投影面上に選択された測定対象となる2つの図形の投影図形を作成する。
【0045】
更にステップS1020において、ステップ31019において算出された2つの投影図形間の最短距離を算出する。
【0046】
次にステップS1021において、ステップS1020において算出された最短距離を表示装置8内の第2情報出力エリア86に出力する。
【0047】
次にステップS1022において、ランダムアクセスメモリ4内の視線方向・視点位置格納領域4cに格納されている「状態1」を取り出し、表示装置8に表示されている3D図形のビューに対し、視点・視線方向を「状態1」に設定する。
【0048】
そしてステップS1023において、部品1、部品2を除く全ての部品を非表示状態に設定し、ステップS1020で算出された最短距離の情報に基づいて、最短距離を表す線分を描画する。
【0049】
以上説明したように本実施形態によれば、2つの図形要素間の距離の測定を行う場合、ユーザが指定した平面へ2つの図形要素を投影した結果における最短距離を簡単な操作で求めることができる。
【0050】
また、図形要素の数が多くなっても、細かい部分を拡大表示する必要がなくなり、要素選択時の作業効率の低下を防止することができる。
【0051】
更に、表示装置上に表示されている部品点数が多くなり、画面の手前に表示されている部品がユーザが望む部品の視界を妨げている場合でも、所望する部品の選択が容易に行える。
【0052】
[第2の実施形態]
次に、本発明の図形処理装置の第2の実施の形態について説明する。本実施形態の構成および処理の概略は上記第1の実施形態と同様であり、以下では第1の実施形態と異なる部分について説明する。
【0053】
図12A及び図12Bは本実施形態における要素間の最短距離を算出する処理を示すフローチャートである。本実施形態では第1の実施形態にない以下の処理が追加されている。
【0054】
ステップS1007の後に、ステップS1007bにおいて、表示装置8内に表示されているマウスポインタ83を用いて図形を選択する場合、ある一定の表示装置上の距離(ピクセル数)内に図形があれば、その図形を選択候補とする。
その時、基準となる表示装置上の距離(ピクセル数)をキャッチパラメータと称するが、この値の設定・変更を行う。
【0055】
図13は、このキャッチパラメータを説明するための図である。図中dで示されている距離を本明細書ではキャッチパラメータとして定義する。本実施形態では、リードオンリメモリ3内のパラメータ格納領域3bにキャッチパラメータの値としてeasy mode及びassembly modeに対応して2つの値を格納している。easy modeではassembly modeより値が大きく設定されており、処理対象候補とする図形の選択がより容易となる反面、より多くの図形が対象とされやすいため、assembly modeより誤った図形が選択されやすい。ステップS1007bでは、キャッチパラメータの設定値を、リードオンリメモリ3内のパラメータ格納領域3bに格納されているeasy modeに変更する。
【0056】
また、ステップS1008bにおいて、ステップS1007bにおいてeasy modeに設定したキャッチパラメータをassembly modeに変更する。
【0057】
ステップS1013bにおいて、ステップS1008−2においてassembly modeに設定したキャッチパラメータを再度easy modeに変更する。
【0058】
そしてステップS1014bにおいては、ステップS1013bにおいてeasy modeに設定したキャッチパラメータを再度assembly modeに変更する。
【0059】
図13は、assembly modeにおけるキャッチパラメータの限界の例を示している。図13におけるdの値がこれ以上大きくなる、すなわちマウスポインタ83が図形881から図に示す距離d以上離れると、太い線分は選択候補として見なさなくなる。
【0060】
図14は、easy modeにおけるキャッチパラメータの限界の例を示している。図14におけるdの値がこれ以上大きくなる、すなわちマウスポインタ83が図形881から図に示す距離d以上離れると、太い線分は選択候補として見なさなくなる。
【0061】
以上説明したように本実施形態によれば、キャッチパラメータの異なる2つのモードを有し、全部品表示状態と1つの部品を単独で表示している場合とを認識し、表示状態に応じてモードを自動的に変要することにより、ユーザが所望する図形要素の選択を容易にすることが可能になった。
【0062】
[第3の実施形態]
次に、本発明の図形処理装置の第3の実施の形態について説明する。本実施形態の構成および処理の概略は上記第1及び第2の実施形態と同様であり、以下では第1及び第2の実施形態と異なる部分について説明する。
【0063】
図15A及び図15Bは本実施形態における要素間の最短距離を算出する処理を示すフローチャートである。本実施形態では第1及び第2の実施形態にない以下の処理が追加されている。
【0064】
ステップS1008bのキャッチパラメータの変更後に、ステップS1008cにおいて、リードオンリメモリ3内のパラメータ格納領域3bに格納されているウェイトパラメータ(ウェイト時間)に基づいて、ウェイト処理を行う。
【0065】
また、ステップS10014bのキャッチパラメータの変更後に、ステップS1014cにおいても、リードオンリメモリ3内のパラメータ格納領域3bに格納されているウェイトパラメータに基づいて、ウェイト処理を行う。
【0066】
これは、表示装置8aに表示されている視点・視線方向が変わる前に適切なウェイト処理を行うことにより、ユーザが選択した図形要素を確認することを容易とするものである。
【0067】
[他の実施形態]
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、スタンドアロン型のコンピュータなど)に適用してもよい。
【0068】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0069】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0070】
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明した(図2A、図2B、図12A、図12B、図15Aおよび/または図15Bに示す)フローチャートに対応するプログラムコードが格納されることになる。
【0071】
【発明の効果】
以上説明したように本発明によれば、表示手段に表示されている立体図形の数が多い場合においても、測定対象となる立体図形を選択した後に該立体図形のみが表示され、更に表示方向や縮尺などの表示パラメータを変更して図形要素を選択する操作が容易に行える。
【0072】
従って、2つの図形要素間の距離の測定を行う場合、ユーザが指定した平面へ2つの図形要素を投影した結果における最短距離を簡単な操作で求めることができる。
【図面の簡単な説明】
【図1】本発明の図形処理装置の第1の実施形態の構成を示すブロック図である。
【図2A】図1の図形処理装置における図形要素間の最短距離算出動作を示すフローチャートである。
【図2B】図1の図形処理装置における図形要素間の最短距離算出動作を示すフローチャートである。
【図3】図1の表示装置に表示される画面の例を示す図である。
【図4】本発明の実施形態で使用される3D図形の例を示す図である。
【図5】投影面を選択する際の各3D図形の配置例を示す図である。
【図6】処理対象部品1を選択する際の表示画面の例を示す図である。
【図7】処理対象部品1を選択した後の表示画面の例を示す図である。
【図8】処理対象部品1内の処理対象図形を選択する際の表示画面の例を示す図である。
【図9】処理対象部品2を選択する際の表示画面の例を示す図である。
【図10】処理対象部品2を選択した後の表示画面の例を示す図である。
【図11】処理対象図形間及びそれらの投影最短距離を表す線分の表示画面の例を示す図である。
【図12A】第2の実施形態における図形要素間の最短距離算出動作を示すフローチャートである。
【図12B】第2の実施形態における図形要素間の最短距離算出動作を示すフローチャートである。
【図13】第2の実施形態において、キャッチパラメータをassembly modeに設定した場合の表示画面の例を示す図である。
【図14】第2の実施形態において、キャッチパラメータをeasy modeに設定した場合の表示画面の例を示す図である。
【図15A】第3の実施形態における図形要素間の最短距離算出動作を示すフローチャートである。
【図15B】第3の実施形態における図形要素間の最短距離算出動作を示すフローチャートである。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a graphic processing apparatus and a method for calculating the shortest distance between graphic elements in the apparatus, and more particularly to calculation of the shortest distance between graphic elements projected in a direction required by a user in a CAD system or the like.
[0002]
[Prior art]
In recent years, the performance of computers has dramatically improved, and various processes can be performed on computers. For example, CAD for simulating a design from various aspects on a computer has conventionally required an expensive computer such as a minicomputer, but in recent years there are many that can be realized on a personal computer.
[0003]
A CAD system generally expresses a design by a combination of graphic elements (points, ridge lines, surfaces, etc.). In this case, it is necessary to obtain a distance between the graphic elements.
[0004]
Conventionally, the following methods are known as methods for obtaining the shortest distance between graphic elements.
[0005]
(1) While displaying a 3D model to be measured on a computer display, two elements to be measured such as a point, a ridgeline, and a surface desired by a user are sequentially indicated by an input unit such as a mouse. A method for calculating the shortest distance in a three-dimensional space between the two and displaying the shortest distance calculated using a result display means prepared separately.
[0006]
(2) While displaying a 3D model to be measured on a computer display, a position indicating means such as a pointer is provided by an input means such as a mouse to the vicinity of two elements to be measured such as points, ridge lines, and surfaces desired by the user. If the object moves and the distance between the graphic element on the display and the pointer falls within the preset distance, the color of the graphic element displayed on the display is changed and the user confirms the element to be measured. A method of calculating the shortest distance in a three-dimensional space and displaying the calculated shortest distance using separately prepared result display means.
[0007]
(3) While displaying a 3D model to be measured on a computer display, a position indicating means such as a pointer is provided by an input means such as a mouse to the vicinity of two elements to be measured such as points, ridge lines, and surfaces desired by the user. It is the closest to the viewpoint of the 3D space from among the graphic elements that are moved and clipped within the preset distance on the display device at the place determined by the user, that is, displayed on the front side on the display device. A method of calculating the shortest distance in a three-dimensional space and displaying the calculated shortest distance using separately prepared result display means.
[0008]
(4) In the method described in the above prior art (1), a vector of a line segment having the shortest distance is further calculated, and an inner product of the vector and a plane indicating a direction desired by the user is calculated, thereby obtaining a three-dimensional space. To calculate the shortest projection distance between elements.
[0009]
(5) In the method described in the above prior art (2), a vector of a line segment having the shortest distance is further calculated, and an inner product of the vector and a plane indicating a direction desired by the user is calculated, thereby obtaining a three-dimensional space. To calculate the shortest projection distance between elements.
[0010]
(6) In the method described in the above prior art (3), a vector of a line segment having the shortest distance is further calculated, and an inner product of the vector and a plane indicating a direction desired by the user is calculated. To calculate the shortest projection distance between elements.
[0011]
(7) A method for calculating the shortest distance between elements in consideration of the line-of-sight direction of a display displaying a three-dimensional space, like the graphic processing apparatus and the method for calculating the shortest distance between elements described in Japanese Patent Laid-Open No. 10-31757 .
[0012]
[Problems to be solved by the invention]
However, each of these conventional methods has the following problems.
[0013]
The above methods (1), (2), and (3) calculate the shortest distance in a simple three-dimensional space. However, when an operator performs measurement between elements in an apparatus such as 3D CAD, the shortest distance as a result of projecting the element onto a plane designated by the user is often required, and it is impossible to measure the distance. is there.
[0014]
Further, in the method in which the color (display) of the target element is changed as in the methods (2) and (5), it is necessary to enlarge and display a fine part as the number of elements increases. The work efficiency at the time will be reduced.
[0015]
Further, in the methods (1) to (7), when the number of parts displayed on the display increases, the part displayed in the foreground obstructs the field of view, and as a result, the part is displayed as a hidden line. Measurement between elements that are not visible from view is impossible.
[0016]
The present invention has been made to solve the various problems of the prior art as described above, and the minimum distance between the graphic elements projected in the direction required by the user can be obtained without deteriorating the user's work efficiency. It is an object of the present invention to provide a graphic processing apparatus capable of calculating and a method for calculating the shortest distance between graphic elements in the apparatus.
[0017]
[Means for Solving the Problems]
In order to achieve the above object, a graphic processing apparatus according to the present invention relates to display means for displaying a three-dimensional figure composed of a plurality of graphic elements as a three-dimensional graphic, predetermined calculation, and change of display of the three-dimensional figure on the display means. A graphics processing apparatus having a pointing device for inputting instructions and operations,
Means for storing parameters relating to the display state of the display means;
Means for causing the display means to display only the three-dimensional figure when two pointing figures for calculation of the shortest distance between the graphic elements from the three-dimensional figure displayed on the display means are selected by the pointing device . When,
Means for changing a parameter relating to a display state of the display means so as to facilitate selection of a graphic element of the selected solid figure;
Means for displaying the two solid figures on the display means based on the stored parameters when the graphic elements of the two solid figures to be calculated are selected;
Means for obtaining a projection direction for calculating a shortest distance from selected graphic elements of the two three-dimensional figures;
Means for calculating the shortest distance between graphic elements in the obtained projection direction ,
The apparatus further includes means for changing the size of a range for specifying the target graphic element when selecting the graphic element .
[0018]
Further, the method for calculating the shortest distance between graphic elements in the graphic processing apparatus of the present invention that achieves the above object includes a display means for displaying a three-dimensional graphic consisting of a plurality of graphic elements as a three-dimensional graphic, a predetermined calculation, and the display means. A method for calculating the shortest distance between graphic elements in a graphic processing apparatus having a pointing device for inputting instructions and operations relating to changes in the display of the three-dimensional graphic,
Storing parameters relating to the display state of the display means;
A step of displaying only the three-dimensional figure on the display means when two pointing figures for calculation of the shortest distance between graphic elements from the three-dimensional figure displayed on the display means are selected by the pointing device , respectively. When,
Changing parameters relating to the display state of the display means so as to facilitate selection of the graphic elements of the selected three-dimensional figure;
A step of displaying the two solid figures on the display means based on the stored parameters when the graphic elements of the two solid figures to be calculated are selected;
Obtaining a projection direction for calculating a shortest distance from selected graphic elements of the two three-dimensional figures;
Calculating the shortest distance between graphic elements in the determined projection direction ,
The method further includes a step of changing a size of a range for specifying a target graphic element when selecting the graphic element .
[0019]
That is, in the present invention, display means for displaying a three-dimensional graphic composed of a plurality of graphic elements as a three-dimensional graphic, and pointing for inputting instructions and operations related to a predetermined calculation and display change of the three-dimensional graphic on the display means When calculating the shortest distance between graphic elements in a graphic processing apparatus having a device, it stores parameters related to the display state of the display means, and calculates the shortest distance between graphic elements from the solid figure displayed on the display means respectively when selected, is displayed on the display means only stereo figure, so as to facilitate the selection of the graphic elements of the solid figure is selected, a display state of the display means by two solid figures pointing device as the When the parameters related to two solid figures to be calculated are selected These two three-dimensional figures are displayed on the display means based on the stored parameters, the projection direction for calculating the shortest distance from the selected figure elements of the two three-dimensional figures is obtained, and between the figure elements in the obtained projection direction Calculate the shortest distance. Further, when selecting a graphic element, the size of the range for specifying the target graphic element is changed.
[0020]
As a result, even when the number of solid figures displayed on the display means is large, only the solid figure is displayed after selecting the solid figure to be measured, and the display parameters such as the display direction and scale are changed. This makes it easy to select graphic elements.
[0021]
Therefore, when measuring the distance between two graphic elements, the shortest distance in the result of projecting the two graphic elements onto the plane designated by the user can be obtained by a simple operation.
[0022]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the graphic processing apparatus of the present invention will be described below with reference to the drawings.
[0023]
[First Embodiment]
FIG. 1 is a block diagram showing a configuration of a first embodiment of a graphic processing apparatus according to the present invention. In FIG. 1, reference numeral 1 denotes a bus including control lines, data lines, and address lines. A central processing unit (CPU) 2, a read only memory (ROM) 3, and a random access memory (RAM) 4 are connected to the bus. Further, an input device 6 such as a keyboard, a tablet, and a mouse is connected to the bus 1 via an input interface 5, and an output device 8 and an external storage device 10 are connected via an output interface 7. The output device 8 includes a display device 8a such as a CRT or LCD and a printing device 8b such as a printer or plotter. The external storage device 10 includes an optical / magnetic disk such as a hard disk (HD), a floppy disk (FD), a CD-ROM, a mini disk (MD), and a magnetic tape.
[0024]
The CPU 2 controls the entire apparatus. The ROM 3 stores a processing program 3a, parameters 3b, and projection direction calculation reference data 3c. The RAM 4 includes a graphic element storage area 4a, a processing target component identifier storage area 4b, a viewpoint and line-of-sight direction storage area 4c, and a measurement result storage area 4d. Various processes and controls such as graphic input control, graphic display processing, pick processing, distance calculation, and the like are performed using the RAM 4 as a temporary storage device in accordance with a processing program stored in the ROM 3. The display device 8a includes a plurality of bitmap planes as necessary, and displays a figure.
[0025]
FIG. 3 shows an example of an image displayed on the display device 8a, in which 82 is a first button, 83 is a mouse pointer, 84 is a first information output area, 85 is a second button on the panel, and 86 is a panel. Upper second information output areas 2 and 87 are panels, and 88 is a 3D figure (hereinafter also referred to as a component). These buttons 82 and 85 shown in FIG. 3 refer to the display device 8a, which are all soft keys, and operate the input device 6 such as a keyboard and a mouse to thereby display a 3D figure 88 as shown in the figure. The shortest distance between elements is interactively calculated. In addition, by selecting an appropriate position of the first button 82 using the mouse pointer 83 and the input device 6, a mode for calculating the shortest distance between figures can be entered.
[0026]
Hereinafter, assuming that four 3D graphics as indicated by reference numerals 881 to 884 in FIG. 4 are displayed on the display device 8a, processing in the case of calculating the shortest distance between elements of these graphics will be described.
[0027]
With reference to the flowcharts shown in FIGS. 2A and 2B, processing for calculating the shortest distance between graphic elements in the present embodiment will be described.
[0028]
First, in step S1000, the user selects whether to input the projection plane automatically or manually via the panel 87 and the first information output area 84. The user's selection is input by placing the mouse pointer 83 on the button 86 on the panel 87 via the input device 6 such as a mouse or a keyboard.
[0029]
In step S1000, if the user selects manual, the process proceeds to step S1001, and the mouse pointer 83 is operated via the input device 8 such as a mouse or a keyboard, and the plane of the 3D figure 88 displayed on the display device 8 is displayed. By selecting, the projection plane on which the figure is to be projected is determined. After the projection direction is determined, in step S1002, the line-of-sight direction and viewpoint position of the 3D figure displayed on the display device 8 at that moment are stored in the line-of-sight / point-state storage area 4c in the random access memory 4. Is stored as.
[0030]
FIG. 5 shows an example in which 3D graphics 881 to 884 and a mouse pointer 83 are displayed on the screen of the display device 8a when a projection plane is selected.
[0031]
In step S1003, the part to which the graphic element that the user wants to measure belongs is selected via the mouse pointer 83 and the input device 6 such as a mouse or a keyboard. At this time, if the part to be selected is arranged at a position that is difficult to see on the display device, the user can freely change the position of the viewpoint and the direction of the line of sight using an input device such as a mouse.
[0032]
FIG. 6 shows an example of the screen display of the display device 8a at the time of such selection. When the line-of-sight position and line-of-sight direction are determined so that the user can easily select a part, the line-of-sight position and line-of-sight direction are set as “state 2” in the line-of-sight direction / viewpoint state storage area 4c in the random access memory 4 in step S1004. Store. At this time, the identifier of the component selected by the user is stored as the component 1 in the processing target component identifier storage area 4 b in the random access memory 4. In step S1005, the identifier is output to the information output area 86 on the panel 87 displayed on the display device 8.
[0033]
In step S1006, the identifiers of all components currently displayed on the display device 8a are stored in the processing target component identifier storage area 4b in the random access memory 4 as a “state 1 list”.
[0034]
Next, in step S1007, all components other than the selected component displayed on the display device 8a are hidden. FIG. 7 shows an example of screen display of the display device 8a in this state.
[0035]
In step S1008, the user selects a graphic element to be measured in the selected component while only the selected component is displayed on the display device 8a. At this time, in order to facilitate the selection of the graphic element, it is possible to change the viewpoint position and the line-of-sight direction in which the user can easily select a component. FIG. 8 shows an example in which the viewpoint / line-of-sight direction is changed so that the ridge line in the part to be measured can be easily selected from the display state of FIG.
[0036]
In step S1009, the display state is set to “state 2” stored in the viewpoint / gaze direction storage area 4c in the random access memory 4. FIG. 9 shows an example of a screen display in which the display state is set to state 2.
[0037]
In step S1010, the “state 1 list” stored in the processing target component identifier storage area 4b in the random access memory 4 is extracted, and a list of parts to be displayed on the display device 8a based on the “state 1 list”. Is displayed.
[0038]
In step S1011, the part to which the other graphic element the user wants to measure belongs is selected via the mouse pointer 83 and the input device 6 such as a mouse or a keyboard. The part selected in step S1011 is identified as part 2. At this time, when the part to be selected is arranged at a position that is difficult to see on the display device, the user can freely change the position of the viewpoint and the direction of the line of sight using an input device such as a mouse.
[0039]
The identifier of the component 2 selected by the user is stored as the component 2 in the processing target component identifier storage area 4 b in the random access memory 4. In step S1102, the identifier is output to the second information output area 86 on the panel 87 displayed on the display device 8.
[0040]
Next, in step S1013, all components other than the selected component 2 displayed on the screen of the display device 8a are hidden. FIG. 10 shows an example of the screen display of the display device in this state.
[0041]
In step S <b> 1014, the user selects a graphic element to be measured in the selected component 2 while only the selected component 2 is displayed on the display device 8. At this time, in order to facilitate the selection of the graphic element, it is possible to change the viewpoint position and the line-of-sight direction in which the user can easily select a component.
[0042]
Next, in step S1015, the components 1 and 2 stored in the processing target component weaving disc storage area 4b in the random access memory 4 are taken out, and only these two components are displayed on the screen of the display device 8.
[0043]
In step S1016, if automatic selection is set in step S1000, a projection plane calculation process is performed in step S1017. If manual selection is set in step S1000, the process proceeds to step 1019. In step S1017, the projection direction is calculated from the relationship between the corresponding graphic element in part 1 and the corresponding graphic element in part 2. For example, when the graphic element of the part 1 is a cylindrical surface, the axial direction of the cylindrical surface is the projection direction.
[0044]
Next, in step S1019, a projection plane is created in the direction calculated in step S1001 or step S1017, and projection figures of two figures to be measured on the projection plane are created.
[0045]
In step S1020, the shortest distance between the two projected figures calculated in step 31019 is calculated.
[0046]
In step S1021, the shortest distance calculated in step S1020 is output to the second information output area 86 in the display device 8.
[0047]
Next, in step S1022, “state 1” stored in the line-of-sight direction / viewpoint position storage area 4c in the random access memory 4 is extracted, and the viewpoint / line-of-sight is displayed on the view of the 3D figure displayed on the display device 8. Set the direction to “State 1”.
[0048]
In step S1023, all parts except the parts 1 and 2 are set in a non-display state, and a line segment representing the shortest distance is drawn based on the shortest distance information calculated in step S1020.
[0049]
As described above, according to the present embodiment, when the distance between two graphic elements is measured, the shortest distance in the result of projecting the two graphic elements onto the plane designated by the user can be obtained by a simple operation. it can.
[0050]
Further, even if the number of graphic elements increases, it is not necessary to enlarge and display fine portions, and it is possible to prevent a reduction in work efficiency when selecting elements.
[0051]
Furthermore, even when the number of parts displayed on the display device increases and the part displayed in front of the screen obstructs the view of the part desired by the user, the desired part can be easily selected.
[0052]
[Second Embodiment]
Next, a second embodiment of the graphic processing apparatus of the present invention will be described. The outline of the configuration and processing of the present embodiment is the same as that of the first embodiment, and the following description will be focused on differences from the first embodiment.
[0053]
12A and 12B are flowcharts showing processing for calculating the shortest distance between elements in this embodiment. In the present embodiment, the following processing that is not in the first embodiment is added.
[0054]
In step S1007b after step S1007, when selecting a figure using the mouse pointer 83 displayed in the display device 8, if there is a figure within a certain distance (number of pixels) on the display device, A figure is a selection candidate.
At this time, the reference distance (number of pixels) on the display device is called a catch parameter, and this value is set / changed.
[0055]
FIG. 13 is a diagram for explaining the catch parameter. In the present specification, the distance indicated by d in the figure is defined as a catch parameter. In the present embodiment, two values are stored in the parameter storage area 3b in the read-only memory 3 as catch parameter values corresponding to easy mode and assembly mode. In easy mode, the value is set to be larger than that in assemblly mode, and it becomes easier to select a figure to be processed. On the other hand, since more figures are likely to be targeted, it is easier to select an incorrect figure than in assemblly mode. . In step S1007b, the set value of the catch parameter is changed to the easy mode stored in the parameter storage area 3b in the read only memory 3.
[0056]
In step S1008b, the catch parameter set in easy mode in step S1007b is changed to assembly mode.
[0057]
In step S1013b, the catch parameter set in the assembly mode in step S1008-2 is changed to the easy mode again.
[0058]
Then, in step S1014b, the catch parameter set in easy mode in step S1013b is changed again to the assembly mode.
[0059]
FIG. 13 shows an example of the limit of the catch parameter in the assembly mode. When the value of d in FIG. 13 becomes larger than this, that is, when the mouse pointer 83 moves away from the figure 881 by the distance d or more shown in the figure, the thick line segment is not regarded as a selection candidate.
[0060]
FIG. 14 shows an example of the limit of the catch parameter in the easy mode. When the value of d in FIG. 14 becomes larger than this, that is, when the mouse pointer 83 moves away from the figure 881 by the distance d or more shown in the figure, the thick line segment is not regarded as a selection candidate.
[0061]
As described above, according to the present embodiment, there are two modes with different catch parameters, and it recognizes that all parts are displayed and one part is displayed independently, and the mode is set according to the display state. It is possible to easily select a graphic element desired by the user by automatically changing.
[0062]
[Third Embodiment]
Next, a third embodiment of the graphic processing apparatus of the present invention will be described. The outline of the configuration and processing of the present embodiment is the same as that of the first and second embodiments, and the following description will be focused on differences from the first and second embodiments.
[0063]
FIG. 15A and FIG. 15B are flowcharts showing processing for calculating the shortest distance between elements in this embodiment. In the present embodiment, the following processing that is not in the first and second embodiments is added.
[0064]
After the change of the catch parameter in step S1008b, weight processing is performed in step S1008c based on the wait parameter (wait time) stored in the parameter storage area 3b in the read-only memory 3.
[0065]
Further, after the change of the catch parameter in step S10014b, the weight process is also performed in step S1014c based on the weight parameter stored in the parameter storage area 3b in the read-only memory 3.
[0066]
This facilitates confirmation of the graphic element selected by the user by performing an appropriate weighting process before the viewpoint / line-of-sight direction displayed on the display device 8a changes.
[0067]
[Other Embodiments]
It should be noted that the present invention can be applied to an apparatus (for example, a stand-alone computer) including a single device even when applied to a system including a plurality of devices (for example, a host computer, interface device, reader, printer, etc.). You may apply.
[0068]
Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or CPU) of the system or apparatus Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0069]
Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
[0070]
When the present invention is applied to the above storage medium, the storage medium includes program code corresponding to the flowchart described above (shown in FIGS. 2A, 2B, 12A, 12B, 15A, and / or 15B). Will be stored.
[0071]
【The invention's effect】
As described above, according to the present invention, even when the number of three-dimensional figures displayed on the display means is large, only the three-dimensional figure is displayed after selecting the three-dimensional figure to be measured. The operation of selecting a graphic element by changing display parameters such as scale can be easily performed.
[0072]
Therefore, when measuring the distance between two graphic elements, the shortest distance in the result of projecting the two graphic elements onto the plane designated by the user can be obtained by a simple operation.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a first embodiment of a graphic processing apparatus of the present invention.
2A is a flowchart showing a shortest distance calculation operation between graphic elements in the graphic processing apparatus of FIG. 1;
FIG. 2B is a flowchart showing the shortest distance calculation operation between graphic elements in the graphic processing apparatus of FIG. 1;
3 is a diagram showing an example of a screen displayed on the display device of FIG. 1. FIG.
FIG. 4 is a diagram showing an example of a 3D graphic used in the embodiment of the present invention.
FIG. 5 is a diagram illustrating an arrangement example of each 3D figure when a projection plane is selected.
FIG. 6 is a diagram illustrating an example of a display screen when a processing target component 1 is selected.
FIG. 7 is a diagram showing an example of a display screen after selecting a processing target component 1;
FIG. 8 is a diagram illustrating an example of a display screen when a processing target graphic in the processing target component 1 is selected.
FIG. 9 is a diagram illustrating an example of a display screen when a processing target component 2 is selected.
FIG. 10 is a diagram showing an example of a display screen after selecting a processing target component 2;
FIG. 11 is a diagram illustrating an example of a display screen of line segments representing processing target figures and their shortest projection distances.
FIG. 12A is a flowchart showing the shortest distance calculation operation between graphic elements in the second embodiment.
FIG. 12B is a flowchart showing the shortest distance calculation operation between graphic elements in the second embodiment.
FIG. 13 is a diagram showing an example of a display screen when a catch parameter is set to assembly mode in the second embodiment.
FIG. 14 is a diagram showing an example of a display screen when a catch parameter is set to easy mode in the second embodiment.
FIG. 15A is a flowchart showing a shortest distance calculation operation between graphic elements according to the third embodiment.
FIG. 15B is a flowchart showing a shortest distance calculation operation between graphic elements according to the third embodiment.

Claims (2)

複数の図形要素からなる立体図形を3次元グラフィックで表示する表示手段と、所定の演算及び前記表示手段における前記立体図形の表示の変更に関する指示や操作を入力するためのポインティングデバイスとを有する図形処理装置であって、
前記表示手段の表示状態に関するパラメータを記憶する手段と、
前記表示手段に表示されている立体図形から図形要素間の最短距離の算出対象となる2つの立体図形が前記ポインティングデバイスによってそれぞれ選択されたときに、該立体図形のみを前記表示手段に表示させる手段と、
前記選択された立体図形の図形要素の選択を容易とするように、前記表示手段の表示状態に関するパラメータを変更する手段と、
前記算出対象となる2つの立体図形それぞれの図形要素が選択されたときに、これら2つの立体図形を前記記憶されたパラメータに基づいて前記表示手段に表示させる手段と、
前記2つの立体図形の選択された図形要素から最短距離を算出する投影方向を求める手段と、
前記求められた投影方向における図形要素間の最短距離を算出する手段と、を備え
前記図形要素を選択するときに、対象とする図形要素を特定する範囲の大きさを変更する手段を更に備えることを特徴とする図形処理装置。
Graphic processing comprising: display means for displaying a three-dimensional graphic composed of a plurality of graphic elements as a three-dimensional graphic; and a pointing device for inputting instructions and operations relating to a predetermined calculation and display change of the solid graphic on the display means A device,
Means for storing parameters relating to the display state of the display means;
Means for causing the display means to display only the three-dimensional figure when two pointing figures for calculation of the shortest distance between the graphic elements from the three-dimensional figure displayed on the display means are selected by the pointing device . When,
Means for changing a parameter relating to a display state of the display means so as to facilitate selection of a graphic element of the selected solid figure;
Means for displaying the two solid figures on the display means based on the stored parameters when the graphic elements of the two solid figures to be calculated are selected;
Means for obtaining a projection direction for calculating a shortest distance from selected graphic elements of the two three-dimensional figures;
Means for calculating the shortest distance between graphic elements in the obtained projection direction ,
Wherein when selecting a graphic element, the graphic processing apparatus according to claim Rukoto further comprising means for changing the size of the range for specifying a graphic element of interest.
複数の図形要素からなる立体図形を3次元グラフィックで表示する表示手段と、所定の演算及び前記表示手段における前記立体図形の表示の変更に関する指示や操作を入力するためのポインティングデバイスとを有する図形処理装置における図形要素間最短距離算出方法であって、
前記表示手段の表示状態に関するパラメータを記憶する工程と、
前記表示手段に表示されている立体図形から図形要素間の最短距離の算出対象となる2つの立体図形が前記ポインティングデバイスによってそれぞれ選択されたときに、該立体図形のみを前記表示手段に表示させる工程と、
前記選択された立体図形の図形要素の選択を容易とするように、前記表示手段の表示状態に関するパラメータを変更する工程と、
前記算出対象となる2つの立体図形それぞれの図形要素が選択されたときに、これら2つの立体図形を前記記憶されたパラメータに基づいて前記表示手段に表示させる工程と、
前記2つの立体図形の選択された図形要素から最短距離を算出する投影方向を求める工程と、
前記求められた投影方向における図形要素間の最短距離を算出する工程と、を備え
前記図形要素を選択するときに、対象とする図形要素を特定する範囲の大きさを変更する工程を更に備えることを特徴とする図形処理装置における図形要素間最短距離算出方法。
Graphic processing comprising: display means for displaying a three-dimensional graphic composed of a plurality of graphic elements as a three-dimensional graphic; and a pointing device for inputting instructions and operations relating to a predetermined calculation and display change of the solid graphic on the display means A method for calculating the shortest distance between graphic elements in a device,
Storing parameters relating to the display state of the display means;
A step of displaying only the three-dimensional figure on the display means when two pointing figures for calculation of the shortest distance between graphic elements from the three-dimensional figure displayed on the display means are selected by the pointing device , respectively. When,
Changing parameters relating to the display state of the display means so as to facilitate selection of the graphic elements of the selected three-dimensional figure;
A step of displaying the two solid figures on the display means based on the stored parameters when the graphic elements of the two solid figures to be calculated are selected;
Obtaining a projection direction for calculating a shortest distance from selected graphic elements of the two three-dimensional figures;
Calculating the shortest distance between graphic elements in the determined projection direction ,
Wherein when selecting a graphic element, the range of the graphic elements between the shortest distance calculation method in graphics processing apparatus further comprising wherein Rukoto the step of changing the magnitude of specifying a graphic element of interest.
JP2000261616A 2000-08-30 2000-08-30 Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus Expired - Fee Related JP4573971B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000261616A JP4573971B2 (en) 2000-08-30 2000-08-30 Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000261616A JP4573971B2 (en) 2000-08-30 2000-08-30 Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus

Publications (2)

Publication Number Publication Date
JP2002074373A JP2002074373A (en) 2002-03-15
JP4573971B2 true JP4573971B2 (en) 2010-11-04

Family

ID=18749427

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000261616A Expired - Fee Related JP4573971B2 (en) 2000-08-30 2000-08-30 Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus

Country Status (1)

Country Link
JP (1) JP4573971B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05189504A (en) * 1992-01-08 1993-07-30 Fanuc Ltd Graphic display system for cad system
JPH0765204A (en) * 1993-08-25 1995-03-10 Canon Inc Device and method for shape display
JPH0765201A (en) * 1993-08-25 1995-03-10 Canon Inc Device and method for shape modeling
JPH1031757A (en) * 1996-07-12 1998-02-03 Canon Inc Graphic processor and method for calculating shortest distance between elements
JPH11316635A (en) * 1998-02-18 1999-11-16 Seiko Epson Corp Portable information processor, control method and recording medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2619962B2 (en) * 1990-02-28 1997-06-11 株式会社日立製作所 Figure editing method and apparatus
JP2662539B2 (en) * 1992-09-22 1997-10-15 松下電器産業株式会社 3D graphics processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05189504A (en) * 1992-01-08 1993-07-30 Fanuc Ltd Graphic display system for cad system
JPH0765204A (en) * 1993-08-25 1995-03-10 Canon Inc Device and method for shape display
JPH0765201A (en) * 1993-08-25 1995-03-10 Canon Inc Device and method for shape modeling
JPH1031757A (en) * 1996-07-12 1998-02-03 Canon Inc Graphic processor and method for calculating shortest distance between elements
JPH11316635A (en) * 1998-02-18 1999-11-16 Seiko Epson Corp Portable information processor, control method and recording medium

Also Published As

Publication number Publication date
JP2002074373A (en) 2002-03-15

Similar Documents

Publication Publication Date Title
CN104011629A (en) Enhanced target selection for a touch-based input enabled user interface
JP4756899B2 (en) Information processing apparatus and information processing method
JP3862336B2 (en) Image editing method and apparatus
JP3186241B2 (en) Figure editing device
EP0640906B1 (en) Display apparatus
CN100511137C (en) Icon generating device, computer readable medium and method for generating icon
JP2006039872A (en) Information processing method and information processor
JP3369734B2 (en) Three-dimensional computer-aided design apparatus and method
JP3522505B2 (en) Window display
JP4573971B2 (en) Graphic processing apparatus and method for calculating shortest distance between graphic elements in the apparatus
US6392662B1 (en) Draw order preservation in a computer-implemented graphics system
JP7167489B2 (en) Analysis model display processing program, analysis model display processing method, and information processing device
JPH08255221A (en) Character graphic input editing device
JP3595060B2 (en) Graphic operation device
JP2001184373A (en) Method and system for generating drawing and computer readable recording medium stored with drawing generation program generating two-dimensional drawing from three-dimensional model data
JP6188365B2 (en) Information processing apparatus, control method for information processing apparatus, and computer program
JP4786486B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP2015007844A (en) User interface device, user interface method, and program
JP2009003566A (en) Window display device and window display method
JP3198754B2 (en) Graphic instruction receiving device for CAD system
JPH1097646A (en) Method and device for obtaining three dimensional space coordinate value in three-dimensional space display system
JP2798688B2 (en) Character processing apparatus and method
JPH07271998A (en) Method and device for three-dimensional display
JP2002023915A (en) Device and method for controlling display of tool button and recording medium
JP4707543B2 (en) Three-dimensional shape data conversion method, computer program describing the method, and three-dimensional shape data conversion device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070822

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20070822

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100528

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100722

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100809

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100818

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130827

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees