JP5982812B2 - Information processing apparatus, information processing apparatus control method, and program - Google Patents
Information processing apparatus, information processing apparatus control method, and program Download PDFInfo
- Publication number
- JP5982812B2 JP5982812B2 JP2011278598A JP2011278598A JP5982812B2 JP 5982812 B2 JP5982812 B2 JP 5982812B2 JP 2011278598 A JP2011278598 A JP 2011278598A JP 2011278598 A JP2011278598 A JP 2011278598A JP 5982812 B2 JP5982812 B2 JP 5982812B2
- Authority
- JP
- Japan
- Prior art keywords
- point
- outline
- information processing
- processing apparatus
- closed region
- 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
Links
Images
Description
本発明は、CADデータの領域特定に関し、特に複数の線要素からなる領域の特定を支援する情報処理装置、情報処理装置の制御方法、及びプログラムに関する。 The present invention relates to CAD data area specification, and more particularly to an information processing apparatus that supports specification of an area composed of a plurality of line elements, a control method for the information processing apparatus, and a program.
従来、製品の設計を行う際には、正投影法によって正面、平面、右側面から見た場合の製品の形状を設計図に記載して設計が行われていた。情報処理技術の発達により、このような製品の設計は、CAD(computer aided design)システム(特に2次元CAD)によって、情報処理装置内で設計が可能となっている。 Conventionally, when designing a product, the shape of the product when viewed from the front, the plane, and the right side by an orthographic projection method is described in a design drawing. With the development of information processing technology, such a product can be designed in an information processing apparatus using a CAD (computer aided design) system (particularly a two-dimensional CAD).
特に2次元CADデータを扱うCADアプリケーションでは、直線や円弧といった線要素がいくつも組み合わせることで、1つの図面を表現している。よって、線要素によって構成される閉じられた領域(閉領域)は、その閉領域を構成する線要素を特定することではじめてその閉領域が特定できるような仕組みとなっている。 In particular, in a CAD application that handles two-dimensional CAD data, a single drawing is expressed by combining a number of line elements such as straight lines and arcs. Therefore, the closed region (closed region) constituted by the line elements has a mechanism in which the closed region can be specified only by specifying the line element constituting the closed region.
特に、鍛造工程を必要とする製造現場において、鍛造荷重を計算するため製品のパーチ面(型鍛造品の上下の金型の合わせ面のこと)の面積を算出する必要がある。2次元CADデータからパーチ面の面積を算出する場合、2次元CADデータ上の閉領域の面積の算出を行うことになる。閉領域を構成する要素は一見すると、ある程度の長さを持った直線や円弧の組み合わせに見えるものの、実際は作業の過程においてCADの仕様やデータ変換の過程により、線要素が細分化されている場合がある。このような細分化された微細な要素によって閉じられた領域は図面上に数多く存在し、またその閉領域を構成している線要素は時に数百以上の線要素にも上るため、それらすべてを手作業で1つずつ選択して閉領域を特定するのは非常に困難な作業となっている。 In particular, in a manufacturing site that requires a forging process, it is necessary to calculate the area of the perch surface of the product (the mating surfaces of the upper and lower molds of the die forging product) in order to calculate the forging load. When calculating the area of the perch surface from the two-dimensional CAD data, the area of the closed region on the two-dimensional CAD data is calculated. Although the elements that make up the closed area seem to be a combination of straight lines and arcs with a certain length at first glance, the line elements are actually subdivided in the work process due to the CAD specifications and the data conversion process There is. There are many regions in the drawing that are closed by such subdivided fine elements, and the line elements that make up the closed regions sometimes reach several hundreds of line elements. It is very difficult to manually select one by one and specify the closed region.
例えば下記の特許文献1には円弧を含むような設計図の図形データから、近似する図形を使用せずに自動的に面積を算出する仕組みが開示されている。 For example, Patent Document 1 below discloses a mechanism for automatically calculating an area from graphic data of a design drawing including an arc without using an approximate graphic.
CADアプリケーションには、基本機能として、指定閉領域の面積を自動算出する機能は備わっている。しかしながら、その機能を使用するために閉領域を構成する線要素を、目視かつ手動にてもれなく一つ一つ選択する必要がある。 The CAD application has a function of automatically calculating the area of the designated closed region as a basic function. However, in order to use the function, it is necessary to select the line elements constituting the closed region one by one without any visual or manual operation.
閉領域面積の算出を実行するにあたって、閉領域を構成する線要素の総数が数百を超える場合、その構成要素の選択作業量は作業者にとって大きな負担であり、微細な線要素の選択作業効率(速さと正確さ)には熟練者と一般作業者とで隔たりがある。さらに、その基本機能では処理を実行しなければ計算可能(選択した線要素にて閉領域が構成可能)であるかどうかを識別する機能が備わっていないにもかかわらず、一度実行すると選択した要素が開放されてしまうため、再度全ての作業を繰り返さなければならなくなり、作業ロスの一因となっている。 When calculating the area of the closed region, if the total number of line elements constituting the closed region exceeds several hundred, the amount of work for selecting the components is a heavy burden on the operator, and the selection work efficiency for fine line elements There is a gap between skilled and general workers in (speed and accuracy). In addition, even if the basic function does not have a function to identify whether it can be calculated without executing processing (closed area can be configured with the selected line element), the element selected once is executed. Will be released, so that all work must be repeated again, which causes work loss.
そこで、本発明の目的は、データ上の閉領域を構成する外形線を容易に特定することの可能な仕組みを提供することである。 Accordingly, an object of the present invention is to provide a mechanism capable of easily specifying an outline forming a closed region on data .
上記の目的を達成するために、本発明のプログラムは、複数の線要素を含むデータを記憶する記憶手段を備える情報処理装置で実行可能なプログラムであって、前記情報処理装置を、前記記憶手段に記憶された前記複数の線要素から、線要素の選択を受け付ける選択受付手段と、前記選択受付手段によって選択を受け付けた前記線要素と交わる線要素を一部とする、閉領域の外形線を特定する外形線特定手段と、前記選択受付手段によって選択を受け付けた前記線要素と他の線要素とが交差する交点と、前記線要素の端点とを特定する点特定手段として機能させ、前記外形線特定手段は、前記点特定手段で特定された前記交点のうち隣接する2つの交点の間の第一の点と、前記点特定手段で特定された前記端点と当該端点に最も近い交点との間の第二の点とをそれぞれ起点として走査をすることで閉領域の外形線を抽出することを特徴とする。 In order to achieve the above object, a program according to the present invention is a program that can be executed by an information processing apparatus including a storage unit that stores data including a plurality of line elements, and the information processing apparatus includes the storage unit. A selection receiving means for receiving a selection of a line element from the plurality of line elements stored in the line, and an outline of a closed region including a part of the line element intersecting with the line element received by the selection receiving means. The outer shape specifying means for specifying, the intersection where the line element received by the selection receiving means intersects with another line element, and the point specifying means for specifying the end point of the line element, The line specifying means includes a first point between two adjacent intersections of the intersection specified by the point specifying means, and the end point specified by the point specifying means and the intersection closest to the end point. Characterized by second point and the extracted outline of the closed region by each scanning starting.
本発明によれば、データ上の閉領域を構成する外形線を容易に特定することの可能な仕組みを提供することのできる効果を奏する。 According to the present invention, an effect capable of providing a possible mechanism for easily identifying the outline constituting the closed region on the data.
以下、図面を参照して、本発明の実施の形態の一例について説明する。 Hereinafter, an example of an embodiment of the present invention will be described with reference to the drawings.
図1は、本発明のCADシステム100のシステム構成の一例を示す図である。本発明のCADシステム100は、情報処理装置101、サーバ102が設置されており、それら装置はLAN(Local Area Network)等のネットワーク103を介して相互にデータ通信可能に接続されている。図1のネットワーク103上に接続される各種端末あるいはサーバの構成は一例であり、用途や目的に応じて様々な構成例があることは言うまでもない。
FIG. 1 is a diagram illustrating an example of a system configuration of a CAD system 100 according to the present invention. An
情報処理装置101は、2次元CADアプリケーションを実行する装置である。2次元CADアプリケーションは後述する図2のROM202または外部メモリ211に記憶されており、設計者(以下、ユーザ)からの指示に応じて、CPU201がRAM203に読み出して各種動作を行う。
The
2次元CADアプリケーションは、ユーザからの操作に応じて、設計物の平面形状を示す2次元CADデータの作成を行う。本実施例においては、2次元CADアプリケーションで作成された2次元CADデータに基づいて立体データを作成する。尚、2次元CADデータはサーバ102の外部メモリ211に記憶されても、情報処理装置101の外部メモリ211に記憶されてもよい。本実施例では、情報処理装置101の外部メモリ211に記憶されているものとして、以下説明を行う。
The two-dimensional CAD application creates two-dimensional CAD data indicating the planar shape of the design object in accordance with an operation from the user. In this embodiment, three-dimensional data is created based on two-dimensional CAD data created by a two-dimensional CAD application. Note that the two-dimensional CAD data may be stored in the
サーバ102は、情報処理装置101で作成された各種データを記憶管理する装置である。2次元CADデータは、複数のユーザによって作成される場合があり、その場合には1つのサーバ102に各ユーザの情報処理装置101で作成された2次元CADデータを一元管理する。
The
尚、情報処理装置101が、サーバ102の構成を含んでもよいし、サーバ102が情報処理装置101の構成を含んでもよい。また、本実施例においては、情報処理装置101に各種データが記憶され、ユーザからの操作によって動作させる形態に基づいて説明を行う。
The
図2は、本発明の実施形態における各種端末のハードウェア構成を示す図である。 FIG. 2 is a diagram illustrating a hardware configuration of various terminals according to the embodiment of the present invention.
CPU201は、システムバス204に接続される各デバイスやコントローラを統括的に制御する。
The
また、ROM202あるいは外部メモリ211には、CPU201の制御プログラムであるBIOS(Basic Input / OutputSystem)やオペレーティングシステムプログラム(以下、OS)や、各サーバ或いは各PCの実行する機能を実現するために必要な後述する各種プログラム等が記憶されている。RAM203は、CPU201の主メモリ、ワークエリア等として機能する。
Further, the
CPU201は、処理の実行に際して必要なプログラム等をRAM203にロードして、プログラムを実行することで各種動作を実現するものである。
The
また、入力コントローラ(入力C)205は、キーボード209や不図示のマウス等のポインティングデバイスからの入力を制御する。
An input controller (input C) 205 controls input from a pointing device such as a
ビデオコントローラ(VC)206は、CRTディスプレイ(CRT)210等の表示器への表示を制御する。表示器はCRTだけでなく、液晶ディスプレイでも構わない。これらは必要に応じて管理者が使用するものである。 A video controller (VC) 206 controls display on a display device such as a CRT display (CRT) 210. The display device may be a liquid crystal display as well as a CRT. These are used by the administrator as needed.
メモリコントローラ(MC)207は、ブートプログラム、ブラウザソフトウエア、各種のアプリケーション、フォントデータ、ユーザファイル、編集ファイル、各種データ等を記憶するハードディスク(HD)やフロッピーディスク(登録商標 FD)或いはPCMCIAカードスロットにアダプタを介して接続されるカード型メモリ等の外部メモリ211へのアクセスを制御する。
A memory controller (MC) 207 is a hard disk (HD), floppy disk (registered trademark FD) or PCMCIA card slot for storing boot programs, browser software, various applications, font data, user files, editing files, various data, and the like. Controls access to an
通信I/Fコントローラ(通信I/FC)208は、ネットワークを介して、外部機器と接続・通信するものであり、ネットワークでの通信制御処理を実行する。例えば、TCP/IPを用いたインターネット通信等が可能である。 A communication I / F controller (communication I / FC) 208 is connected to and communicates with an external device via a network, and executes communication control processing in the network. For example, Internet communication using TCP / IP is possible.
尚、CPU201は、例えばRAM203内の表示情報用領域へアウトラインフォントの展開(ラスタライズ)処理を実行することにより、CRT210上での表示を可能としている。また、CPU201は、CRT210上の不図示のマウスカーソル等でのユーザ指示を可能とする。
For example, the
本発明の情報処理装置101が後述する各種処理を実行するために用いられる各種プログラム等は外部メモリ211に記録されており、必要に応じてRAM203にロードされることによりCPU201によって実行されるものである。さらに、本発明に係わるプログラムが用いる定義ファイルや各種情報テーブルは外部メモリ211に格納されている。
Various programs used by the
次に、情報処理装置101及びサーバ102のモジュール構成を示す機能構成図について、図3を用いて説明する。尚、図3の各種端末あるいはサーバのモジュール構成は一例であり、用途や目的に応じて様々な構成例があることは言うまでもない。
Next, a functional configuration diagram showing module configurations of the
情報処理装置101は、CADデータ記憶モジュール301、画面表示モジュール302、テーブル管理モジュール303、閉領域特定モジュール304、面積計算モジュール305を備える。
The
CADデータ記憶モジュール301は、2次元CADアプリケーションによって作成された2次元CADデータを記憶するモジュールである。CADデータ記憶モジュール301によって記憶された2次元CADデータは、情報処理装置101の外部メモリ211等に記憶され、必要に応じて、CADデータ記憶モジュール301によって読みだされる。
The CAD
画面表示モジュール302は、各種情報を情報処理装置101のCRT210に表示させるためのモジュールである。画面表示モジュール302は各種画面を表示させ、必要に応じてユーザからの選択や入力を受け付ける。また、2次元CADデータを表示させ、必要に応じて識別可能に表示させる。
The
テーブル管理モジュール303は、後述する図8の各種テーブルの記憶や更新等を行うためのモジュールである。各種テーブルは、外部メモリ211に記憶され、必要に応じてRAM203に読み出す。
The
閉領域特定モジュール304は、2次元CADデータによって表現される線要素で構成される閉じられた領域である閉領域(平面領域)を特定するためのモジュールである。当該閉領域を特定するために後述する端点や交点、中点を特定して、それらに基づいて閉領域を囲む線要素である外形線を特定し、閉領域を抽出する。
The closed
面積計算モジュール305は、閉領域の面積を計算するためのモジュールである。本実施例では、面積の計算方法については、従来技術を利用するものとする。
The
サーバ102は、CADデータ記憶モジュール307を備える。CADデータ記憶モジュール307は、前述した情報処理装置101のCADデータ記憶モジュール301と同様である。情報処理装置101に2次元CADデータを記憶管理させる場合には情報処理装置101のCADデータ記憶モジュール301を利用し、サーバ102に2次元CADデータを記憶管理させる場合にはサーバ102のCADデータ記憶モジュール307を利用する。本実施例では、情報処理装置101のCADデータ記憶モジュール301を利用するものとして説明を行う。
The
次に、本発明の実施例における情報処理装置101によって行われる一連の処理について、図4に示すフローチャートを用いて説明する。尚、S101乃至S118の各ステップは情報処理装置101におけるCPU201の制御の下、処理が行われる。
Next, a series of processing performed by the
尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。
Note that a program for causing the
まず、ステップS101では、情報処理装置101はユーザによる2次元CADアプリケーションの操作により、任意の2次元CADデータを読み込み、2次元CADアプリケーションに表示する。本実施例では、図9に示す2次元CADデータ(以下、モデルA)を用いて以下説明を行う。
First, in step S101, the
ステップS102では、情報処理装置101は、ユーザによる閉領域計算プログラムの起動指示を受け付けると、外部メモリ211から閉領域計算プログラムを読み出して起動する。
In step S <b> 102, when the
ステップS103では、情報処理装置101は、ユーザからのKB209による操作により、ユーザが閉領域計算の対象としたい閉領域を含む大まかな範囲を選択する。そして、選択された範囲に含まれる線要素を候補要素としてそれぞれ閉領域候補要素テーブル800のNo801、要素ID802、要素タイプ803に登録する。この際、候補要素と非対象要素を区別するため、判別フラグ804を用意し本ステップの段階では0を登録する。図10は、図9に示すモデルAを矩形選択範囲1001で選択した場合を示す。線要素のうち、破線で表現されている線が選択された線要素である。
In step S <b> 103, the
閉領域候補要素テーブル800(図8参照)は、一意に割り振られるNo801、線要素ごとに2次元CADアプリケーションによって割り振られた要素ID802、当該線要素が直線なのか円弧なのかを示す要素タイプ803、後述する非対象要素であるか否かを示す判別フラグ804から構成される。判別フラグは、「1」が格納されていると非対象要素である。
The closed region candidate element table 800 (see FIG. 8) includes a uniquely assigned No 801, an
ステップS117では、情報処理装置101は、抽出したい閉領域をまたぐ線要素である非対象要素の選択の解除をするか否かを判定する。具体的には、非対象要素の選択の解除が行える機能の実行命令がなされたか否かで判定する。抽出したい閉領域は複数の閉領域の組み合わせであることが多い。複数の閉領域から成る閉領域は、閉領域同士の境界には線要素がまたがっているはずである。よって、この線要素の選択を解除することで当該線要素が含まれる閉領域を複数抽出するようにすれば、ユーザの手間を軽減できる。非対象要素の選択をすると判定された場合には、ステップS104に処理を進め、そうでない場合には、ステップS105に処理を進める。
In step S117, the
ステップS104では、情報処理装置101は、ステップS103で選択した線要素のうち、大きな閉領域を分断している線要素をユーザによる任意選択によって受け付ける(選択受付手段)。そして、選択された線要素の判別フラグ804を「1」に変更する。非対象要素の解除が指示されると、画面上では図11に示すような状態になる。破線で示されている線要素が非対象要素として選択を解除された線要素である。
In step S104, the
ステップS105では、情報処理装置101は、非対象要素があるか否かを判定する。具体的には、閉領域候補要素テーブル800の判別フラグ804の値に「1」があるか否かで判定する。非対象要素があると判定された場合には、ステップS106に処理を進め、非対象要素がない場合には、ステップS111に処理を進める。
In step S105, the
ステップS106では、情報処理装置101は、ポイント位置特定処理を行う。ポイント位置特定処理は、ステップS104で選択された非対象要素の端点と、当該非対象要素と他の線要素とが重なる交点の2つに基づいて、端点から交点または交点から交点までの真ん中の点である中点を特定する処理である。ポイント位置特定処理の詳細は、後述する図5に示す。
In step S106, the
ステップS107では、情報処理装置101は、対象閉領域抽出処理を行う(特定手段)。対象閉領域抽出処理は、ステップS106で特定された中点に基づいて、非対象要素が含まれる閉領域の抽出を行う。対象閉領域抽出処理の詳細は、後述する図6に示す。
In step S107, the
ステップS108では、情報処理装置101は、ステップS107で抽出された対象閉領域があるか否かを判定する。具体的には、ステップS107で作成される閉領域の面積テーブル850にレコードが存在するかどうかにより判定する。閉領域が存在すると判定された場合には、ステップS109に処理を進め、そうでない場合には、選択された非対象要素が含まれる閉領域が存在しない旨をユーザに通知し、本一連の処理を終了する。
In step S108, the
面積テーブル850(図8参照)は、一意に割り振られるNo851、ステップS107において抽出された閉領域に対して割り振られた要素ID852、当該閉領域の面積を示す面積853から構成される。ステップS107において抽出された閉領域の面積を格納するためのテーブルとなっている。
The area table 850 (see FIG. 8) includes No 851 that is uniquely allocated, an
ステップS109では、情報処理装置101は、ステップS107にて抽出した閉領域を面積テーブル850よりレコードを取得し、算出対象とする閉領域を選択するための閉領域選択ダイアログ1300(図13参照)で一覧表示する(表示手段)。この画面に表示する閉領域は、図12に示すように各閉領域に対して番号が振られ、当該番号に対応するように該当閉領域一覧1301に表示を行う。
In step S109, the
ステップS118では、情報処理装置101は、閉領域選択ダイアログ1300の該当閉領域一覧1301に表示された閉領域がユーザから選択され、計算ボタン1303が押下されたか否かを判定する。つまり、ユーザが求める閉領域の選択を閉領域選択ダイアログ1300で受け付け、計算ボタンを押下することで、複数の閉領域の面積の計算を行うことができるようになっている。計算ボタン1303が押下されたと判定された場合には、ステップS110に処理を進め、そうでない場合には、計算ボタン1303が押下されるまで待機する。
In step S118, the
ステップS110では、情報処理装置101は、ステップS109で選択された閉領域の面積を合計し、面積合計値1304に表示する(面積計算手段)。この合計面積は面積テーブル850より該当レコードの面積853を基に算出する。OKボタン1305の押下を受け付けると、処理をステップS115に進める。
In step S110, the
一方、ステップS105で、非対象要素が選択されていないと判定した場合、ステップS111に処理を進める。つまり、ステップS103において範囲選択された線要素が構成する最も大きな閉領域(最大閉領域)を特定するために、ステップS111乃至ステップS114の処理を行う。 On the other hand, if it is determined in step S105 that the non-target element has not been selected, the process proceeds to step S111. That is, the processing from step S111 to step S114 is performed in order to specify the largest closed region (maximum closed region) formed by the line element whose range is selected in step S103.
ステップS111では、情報処理装置101は、ステップS103で範囲選択された線要素のうち、最大閉領域を特定するための開始点となる線要素の選択を開始点要素選択ダイアログ1400(図14参照)で受け付ける。具体的には、ステップS103で範囲選択した矩形の開始点(マウスカーソルのドラッグ選択開始点)から、最も近い位置の線要素の順に最大閉領域候補テーブル860(図8参照)にNo861、要素ID862、要素タイプ863を登録する。この登録したデータを、矩形開始点の座標値から最も近い位置の順に表示し、開始点要素選択ダイアログ1400上でユーザからの選択を受け付ける。本実施例では、範囲詮索された矩形の開始点から近い順に線要素を抽出しているが、線要素が抽出できれば、これに限らない。表示についても、線要素が選択できればよい。開始点要素選択ダイアログ1400で線要素が選択された場合には、対応する線要素を2次元CADデータ上で識別可能にハイライト表示する。次へボタン1403の押下を検知するとステップS112に処理を進める。
In step S111, the
最大閉領域候補テーブル860(図8参照)は、一意に割り振られるNo861、閉領域を構成する線要素の要素ID802を格納する要素ID、当該線要素が直線なのか円弧なのかを示す要素タイプ863から構成される。
The maximum closed region candidate table 860 (see FIG. 8) includes No 861 that is uniquely assigned, an element ID that stores an
ステップS112では、情報処理装置101は、ステップS111にて選択された線要素の両端のうち、矩形開始点から近い方の端点の座標値と、その線要素と交差する要素との交点の座標値とを、2次元CADアプリケーションにてそれぞれ取得する。取得した座標値を、端点は端点テーブル810(図8参照)のNo811と要素ID812とX座標813とY座標814に格納し、また交点は基準点として基準点テーブル840(図8参照)のNo821と要素ID822とX座標823とY座標824に格納する。基準点とは、最大閉領域を特定する際のゴール地点である。
In step S112, the
端点テーブル810(図8参照)は、一意に割り振られるNo811、端点ごとに2次元CADアプリケーションによって割り振られた要素ID812、当該端点のX座標とY座標を示すX座標813、Y座標814から構成される。
The end point table 810 (see FIG. 8) is composed of No 811, which is uniquely assigned, an
また、基準点テーブル840は、一意に割り振られる841、基準点ごとに2次元CADアプリケーションによって割り振られた要素ID842、当該基準点のX座標とY座標を示すX座標843、Y座標844から構成される。
The reference point table 840 includes a uniquely assigned 841, an
次に、ステップS113では、情報処理装置101は、最大閉領域特定処理を行う。ステップS112で特定した基準点に基づいて最大閉領域を特定し、面積の算出を行う。最大閉領域特定処理の詳細は、後述する図7に示す。
Next, in step S113, the
ステップS114では、情報処理装置101は、ステップS108と同様に閉領域が存在するか否かを判定する。閉領域が存在する場合には、ステップS115に処理を進め、存在しなかった場合には、閉領域が存在しない旨をユーザに通知し、本一連の処理を終了する。
In step S114, the
ステップS115では、情報処理装置101は、特定した閉領域に対してハッチング表示を施す。ハッチング表示とは、ある面を斜線や特定の模様で埋めることを言う。特定した閉領域が識別可能に表示できるのであれば、ハイライト表示でもよいし、他の表示方法でもよい。
In step S115, the
ステップS116では、情報処理装置101は、ステップS115で閉領域の面積の算出対象となっている閉領域をハッチング表示にて明示した画面に重ねて、面積の算出結果の値を画面上に表示する。こうすることで、閉領域の特定を容易にし、更に当該閉領域の面積を計算して表示させることができる。
In step S116, the
次に、ポイント位置特定処理について図5を用いて説明する。尚、S201乃至S206の各ステップは情報処理装置101おけるCPU201の制御の下、処理が行われる。
Next, the point position specifying process will be described with reference to FIG. Note that steps S201 to S206 are performed under the control of the
尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。
Note that a program for causing the
ステップS201では、情報処理装置101は、ステップS104にて選択された非対象要素を閉領域候補要素テーブル800の判別フラグ804に基づいて、特定する。
In step S201, the
ステップS202では、情報処理装置101は、ステップS201で特定された非対象要素の両端点の座標値を2次元CADアプリケーションに表示されている2次元CADデータ上より取得し、端点テーブル810(図8参照)のNo811、要素ID812、X座標813、Y座標814に格納する。
In step S202, the
ステップS203では、情報処理装置101は、非対象要素となっている線要素と当該非対象要素とは他の線要素との交点があるか否かを判定する。交点があると判定された場合には、ステップS204に処理を進め、そうでない場合には、ステップS206に処理を進める。の座標値を2次元CADアプリケーションにて算出し、記憶する。
In step S203, the
ステップS204では、情報処理装置101は、ステップS203で特定された交点の座標値を2次元CADアプリケーションで算出し、算出された交点の座標値を交点テーブル820(図8参照)のNo821、要素ID822、X座標823、Y座標824に格納する。
In step S204, the
交点テーブル820(図8参照)は、一意に割り振られるNo821、交点ごとに2次元CADアプリケーションによって割り振られた要素ID822、当該交点のX座標とY座標を示すX座標823、Y座標824から構成される。
The intersection table 820 (see FIG. 8) includes No 821 that is uniquely assigned, an
ステップS205では、情報処理装置101は、ステップS204で取得した交点の座標値をもとに、両端点と交点との中点、交点と交点との中点を2次元CADアプリケーションで算出し、中点テーブル830(図8参照)のNo831、要素ID832、X座標833、Y座標834に格納する。また、中点を算出する際に参照した端点と交点の要素IDをレコード毎に要素IDa835、要素IDb836に格納する。このとき両端点と交点との中点の場合は、判別フラグ837の値を「0」にし、交点と交点との中点の場合は、同値を「1」で格納する。本実施例におけるモデルAの非対象要素に対して端点、交点、中点を特定すると、図15に示すような部分が該当する。非対象要素の両端が端点、他の線要素と交差する点が交点、端点と端点または端点と交点の間に位置する点が中点である。
In step S205, the
中点テーブル830(図8参照)は、一意に割り振られるNo831、中点ごとに2次元CADアプリケーションによって割り振られる要素ID832、当該中点のX座標とY座標を示すX座標833、Y座標834、中点を構成する端点と交点、または交点と交点の要素IDを格納する要素IDa835、要素IDb836、中点を構成するのが端点と交点なのか、交点と交点なのかを示す判別フラグ837から構成される。
The midpoint table 830 (see FIG. 8) includes a uniquely assigned No 831, an
ステップS206では、情報処理装置101は、閉領域候補要素テーブル800の判別フラグの値を参照して、未処理のレコードがあるか否かを判定する。未処理のレコードがあると判定された場合には、ステップS201に処理を戻し、ない場合にはポイント位置特定処理を終了し、呼び出し元に処理を戻す。これらの処理によって、選択された非対象要素の端点と交点と中点を特定し、後述する図6の対象閉領域抽出処理の準備を行う。
In step S206, the
次に、対象閉領域抽出処理について図6を用いて説明する。尚、S301乃至S310の各ステップは情報処理装置101おけるCPU201の制御の下、処理が行われる。
Next, the target closed region extraction process will be described with reference to FIG. In addition, each step of S301 thru | or S310 is processed under control of CPU201 in the
尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。
Note that a program for causing the
ステップS301では、情報処理装置101は、ステップS205で取得した中点を中点テーブル830より取得する。対象閉領域抽出処理では、この中点を基に閉領域を抽出する。閉領域の抽出は閉領域を構成する外周の線要素を、基準点テーブル840の基準点に基づいて走査することで抽出する。基準点からの走査方法は、スタート点である中点が端点と交点の中点である場合と、交点と交点の中点である場合の2つがある。以下、まずは図16に示す端点と交点の中点をスタート点とする場合を例にとって説明を行っていく。
In step S301, the
ステップS302では、情報処理装置101は、ステップS301で取得した中点から走査をスタートし、最初に見つかった交点を走査のゴール点である基準点に決定する。具体的には、まず中点テーブル830より取得した中点の判別フラグ837が「0」である場合、つまり端点と交点の中点である場合には、図16の<ステップ1>に示すように、取得した中点から端点とは反対の方向、つまりは交点の座標(中点テーブル830の要素IDa835、要素IDb836を交点テーブル820と突き合わせた結果の座標値)に向かって走査を開始する。そして、最初に遭遇した交点を基準点に決定し、基準点テーブル840のNo841、要素ID842、X座標843、Y座標844に格納する。
In step S302, the
ステップS303では、情報処理装置101は、基準点まで走査してきた線要素から反時計回り(左回り)で次の走査対象である線要素を探し、該当する線要素に走査する。次に走査すべき線要素の候補がいくつか存在する場合は、走査してきた方向から左方向へ走査の進路をとる。この左方向というのは、走査してきた線要素から左回りで角度を測定したときに最も角度が大きくなる線要素を左方向の線要素とする。走査候補が円弧の場合は交点からの接線に基づいて角度を判断する。また、2つの円弧に正接な接線と、走査してきた直線とが一致してしまう場合がある。こうなると、2つの円弧の接線と走査してきた直線との角度は同じであるので判断ができない。よって、この場合には、円弧の向きが左回りか右回りかの情報を2次元CADアプリケーションより取得することでより左方向に向かう線要素を選択する。
In step S303, the
図16の<ステップ1>を例にとって説明すると、ステップS301で取得された中点から走査をスタートし、最初の交点である基準点に到着する。ここは十字路となっているが、走査してきた線要素から左回りで最も角度が大きくなる線要素は上方向に伸びる線要素であるので、この線要素に沿って走査を再開する。 To explain by taking <Step 1> in FIG. 16 as an example, scanning starts from the midpoint acquired in Step S301 and arrives at the reference point which is the first intersection. Although this is a crossroad, the line element whose angle is the largest counterclockwise from the scanned line element is the line element extending upward, and therefore scanning is resumed along this line element.
ステップS304では、情報処理装置101は、到達した点が交点なのか、端点なのか、基準点なのかを判定する。まず到達した点の座標値が基準点かどうかを基準点テーブル840に登録されている座標値を参照して判定する。次に基準点でなかった場合に、到達した点から次に走査すべき線要素が存在するかどうかによって、交点なのか端点なのかを判定する。基準点であると判定された場合には、ステップS306に処理を進め、交点であると判定された場合には、ステップS303に処理を戻し、端点であると判定された場合には、ステップS305に処理を進める。
In step S304, the
尚、交点だと判定した場合、閉領域を構成する要素として辿ってきた線要素を図8の閉領域構成要素テーブル880のNo881、要素ID882、要素タイプ883に格納し、次に走査すべき線要素を走査対象要素テーブル890のNo891、要素ID892、要素タイプ893、交点No894に格納する。この走査対象要素テーブル890の交点No894には、同じ交点から延びる走査対象の線要素に対しては同じ番号を振ることで、グルーピングしておく。走査対象要素テーブル890は、端点で行き止まりになった場合に1つ前の交点に戻って、走査を再開するためのテーブルである。よって、再開する候補となる線要素は1つの交点ごとにグルーピングしておく必要がある。
If it is determined that it is an intersection, the line element traced as an element constituting the closed area is stored in No. 881,
閉領域構成要素テーブル880(図8参照)は、一意に割り振られるNo881、閉領域を構成する線要素の要素ID802を格納する要素ID882、当該線要素が直線なのか、円弧なのかを示す要素タイプ883から構成される。
The closed region component table 880 (see FIG. 8) is No881 that is uniquely assigned, an
また、走査対象要素テーブル890(図8参照)は、一意に割り振られるNo891、走査対象候補である線要素の要素ID802を格納する要素ID892、当該線要素が直線なのか、円弧なのかを示す要素タイプ893、走査対象の線要素を抽出した交点ごとに割り振られる交点No894、当該交点のX座標とY座標を示す交点X座標895、交点Y座標896から構成される。
Further, the scanning target element table 890 (see FIG. 8) includes No 891 that is uniquely assigned, an
ステップS305では、情報処理装置101は、端点であると判定されたので、別の走査線があるか否かを判定する。具体的には、走査対象要素テーブル890を参照して、当該端点に到達する前に格納された交点から伸びる他の線要素がないか判定する。要は、走査してきた線要素を交点まで逆走して、そこから更に走査を再開できる線要素があるか否かを判定するということである。別の走査線があると判定された場合には、ステップS303に処理を戻し、そうでない場合には、ステップS310に処理を進める。
In step S305, since it is determined that the
このようにステップS303乃至ステップS305を繰り返して、ゴールである基準点まで走査を行う。基準点まで到達すれば、1つの閉領域が完成する。尚、本実施例ではこのような走査方法で閉領域を特定しているが、これに限らない。 In this way, the steps S303 to S305 are repeated until the reference point which is the goal is scanned. When the reference point is reached, one closed region is completed. In this embodiment, the closed region is specified by such a scanning method, but the present invention is not limited to this.
図16の<ステップ2>を例にとって説明する。基準点から次の交点に到達すると、ステップS303における判定の結果、走査の進行方向を上方向にとる。直進方向に走査が進むと今回の場合は端点に到達する。端点は次に走査を進める方向が存在しないため、処理をステップS305に進め、1つ前の交点から進行可能な他の線要素があるかどうか判定する。走査対象要素テーブル890には、当該1つ前の交点から進行可能な線要素の情報が格納されているので、当該交点に向かって走査する。 An explanation will be given by taking <Step 2> in FIG. 16 as an example. When the next intersection is reached from the reference point, the direction of scanning is set upward as a result of the determination in step S303. When scanning proceeds in the straight direction, the end point is reached in this case. Since the end point does not have a direction in which scanning is performed next, the process proceeds to step S305, and it is determined whether there is another line element that can proceed from the previous intersection. Since the scanning target element table 890 stores information on line elements that can proceed from the previous intersection, the scanning is performed toward the intersection.
次に図16の<ステップ3>に説明を移す。交点に到達したところで処理をステップS303に戻し、次の走査要素を前述した条件に基づいて判断し、次の走査方向に走査する。<ステップ3>に示すように、円弧の部分を進むことになる。そして、次に走査するべき線要素がなくなるか、または基準点の交点に戻ってくるまで処理を繰り返すと、本実施例におけるモデルAでは、図16の<ステップ4>に示すような閉領域を抽出する。 Next, the description shifts to <Step 3> in FIG. When the intersection is reached, the process returns to step S303, the next scanning element is determined based on the above-described conditions, and scanning is performed in the next scanning direction. As shown in <Step 3>, the arc portion is advanced. Then, when the process is repeated until there is no line element to be scanned next or until the intersection of the reference points returns, the model A in this embodiment has a closed region as shown in <Step 4> in FIG. Extract.
次に、図17を用いて、交点と交点の中点をスタート点とする場合を例にとって説明を行う。ステップS302では、中点テーブル830より取得した中点が交点と交点の中点だった場合、図17の<ステップ1>のように取得した中点から双方向へそれぞれ走査を開始し、双方向それぞれについて最初の交点を基準点に決定する。その後の処理は前述した同様の処理を繰り返し、閉領域を確定する。こちらの閉領域は、端点と交点の中点をスタート点とした場合とは異なり、図17の<ステップ2>に示すような閉領域が抽出される。つまり、スタート点が異なると抽出される閉領域も異なることになる。 Next, with reference to FIG. 17, the case where the intersection and the middle point of the intersection are used as a start point will be described as an example. In step S302, when the midpoint acquired from the midpoint table 830 is the intersection and the midpoint of the intersection, scanning is started in both directions from the acquired midpoint as shown in <Step 1> in FIG. For each, the first intersection is determined as the reference point. Subsequent processing repeats the same processing described above to determine the closed region. Unlike the case where the end point and the midpoint of the intersection point are used as the start point, the closed region is extracted as shown in <Step 2> in FIG. That is, when the start point is different, the extracted closed region is also different.
ステップS306では、情報処理装置101は、ステップS304の処理にて、基準点に戻ってきたと判定すると、2次元CADアプリケーションにより、図8の閉領域構成要素テーブル880に格納された線要素に基づいて構成される閉領域の面を作成する。
In step S306, when the
ステップS307では、情報処理装置101は、ステップS306で作成された閉領域の面に基づいて、2次元CADアプリケーションの機能により面積を算出する(面積計算手段)。
In step S307, the
ステップS308では、情報処理装置101は、ステップS307で算出された閉領域の面積が既に面積テーブル850に格納済みであるか否かを判定する。つまり、二重登録しないための処理である。面積テーブル850に格納済みであると判定された場合には、ステップS310に処理を進め、そうでない場合には、ステップS309に処理を進める。
In step S308, the
ステップS309では、情報処理装置101は、面積テーブル850のNo851と要素ID852と面積853に作成した閉領域の面積を格納する。
In step S309, the
ステップS310では、情報処理装置101は、未処理の他の中点(スタート点)があるか否かを判定する。本実施例におけるモデルAでは、端点と交点の中点が2つ、交点と交点の中点が1つ存在するため、これらすべてについてステップS301乃至ステップS309の処理を行う。未処理の他の中点があると判定された場合には、ステップS301に処理を戻して新しい中点を取得し、すべて処理したと判定された場合には、閉領域抽出処理を終了し、呼び出し元に処理を戻す。
In step S310, the
次に、最大閉領域特定処理について図7を用いて説明する。尚、S401乃至S407の各ステップは情報処理装置101おけるCPU201の制御の下、処理が行われる。
Next, the maximum closed region specifying process will be described with reference to FIG. Note that steps S401 to S407 are performed under the control of the
尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。
Note that a program for causing the
ステップS401では、情報処理装置101は、ステップS112で端点テーブル810に格納された端点を取得する。
In step S401, the
ステップS402では、情報処理装置101は、ステップS112で格納された基準点を基準点テーブル840から取得する。
In step S402, the
ステップS403乃至ステップS407は、前述したステップS303乃至ステップS307と同様であるので説明を省略する。複数の閉領域が存在する可能性のある対象閉領域特定処理とは異なり、最大となる閉領域のみを算出するため、図7のステップS401からステップS407までの処理フローには複数の閉領域をテーブルへ登録するフローは存在しない。ステップS407にて最大閉領域の面積が確定するか、若しくは走査の途中にて閉領域が確定されなかった場合に最大閉領域確定処理を終了する。 Steps S403 to S407 are the same as steps S303 to S307 described above, and thus the description thereof is omitted. Unlike the target closed region specifying process in which a plurality of closed regions may exist, only the maximum closed region is calculated. Therefore, the processing flow from step S401 to step S407 in FIG. There is no flow to register in the table. In step S407, when the area of the maximum closed region is determined, or when the closed region is not determined in the middle of scanning, the maximum closed region determination process ends.
以上、説明したように、本実施形態によれば、2次元図面上で特定したい閉領域をまたぐ線要素を指定することで、指定された線要素が含まれる閉領域を特定することが可能となるので、効率的にユーザが望む閉領域を特定できる。 As described above, according to the present embodiment, it is possible to specify a closed region including a specified line element by specifying a line element that crosses the closed region to be specified on the two-dimensional drawing. Therefore, the closed region desired by the user can be identified efficiently.
本発明は、例えば、システム、装置、方法、プログラム若しくは記憶媒体等としての実施形態も可能であり、具体的には、複数の機器から構成されるシステムに適用してもよいし、また、1つの機器からなる装置に適用してもよい。 The present invention can be implemented as a system, apparatus, method, program, storage medium, or the like, and can be applied to a system including a plurality of devices. You may apply to the apparatus which consists of one apparatus.
なお、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラムを、システム或いは装置に直接、或いは遠隔から供給するものを含む。そして、そのシステム或いは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合も本発明に含まれる。 Note that the present invention includes a software program that implements the functions of the above-described embodiments directly or remotely from a system or apparatus. The present invention also includes a case where the system or the computer of the apparatus is achieved by reading and executing the supplied program code.
したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。 Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であってもよい。 In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, and the like.
プログラムを供給するための記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RWなどがある。また、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などもある。 Examples of the recording medium for supplying the program include a flexible disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, and CD-RW. In addition, there are magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD-R), and the like.
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続する。そして、前記ホームページから本発明のコンピュータプログラムそのもの、若しくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。 As another program supply method, a browser on a client computer is used to connect to an Internet home page. The computer program itself of the present invention or a compressed file including an automatic installation function can be downloaded from the homepage by downloading it to a recording medium such as a hard disk.
また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。 It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせる。そして、ダウンロードした鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。 In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. Let It is also possible to execute the encrypted program by using the downloaded key information and install the program on a computer.
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される。その他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部又は全部を行い、その処理によっても前述した実施形態の機能が実現され得る。 Further, the functions of the above-described embodiments are realized by the computer executing the read program. In addition, based on the instructions of the program, an OS or the like running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments can also be realized by the processing.
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部又は全部を行い、その処理によっても前述した実施形態の機能が実現される。 Further, the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiments are realized by the processing.
なお、前述した実施形態は、本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。即ち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。 Note that the above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed in a limited manner. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.
100 CADシステム
101 情報処理装置
102 サーバ
103 ネットワーク
201 CPU
202 RAM
203 ROM
204 システムバス
205 入力コントローラ
206 ビデオコントローラ
207 メモリコントローラ
208 通信I/F(インターフェース)コントローラ
209 入力装置
210 ディスプレイ装置
211 外部メモリ
100
202 RAM
203 ROM
204
Claims (6)
前記情報処理装置を、
前記記憶手段に記憶された前記複数の線要素から、線要素の選択を受け付ける選択受付手段と、
前記選択受付手段によって選択を受け付けた前記線要素と交わる線要素を一部とする、閉領域の外形線を特定する外形線特定手段と、
前記選択受付手段によって選択を受け付けた前記線要素と他の線要素とが交差する交点と、前記線要素の端点とを特定する点特定手段として機能させ、
前記外形線特定手段は、前記点特定手段で特定された前記交点のうち隣接する2つの交点の間の第一の点と、前記点特定手段で特定された前記端点と当該端点に最も近い交点との間の第二の点とをそれぞれ起点として走査をすることで閉領域の外形線を抽出すること
を特徴とするプログラム。 A program that can be executed by an information processing apparatus including a storage unit that stores data including a plurality of line elements,
The information processing apparatus;
From the stored plurality of line elements in said storage means, a selection accepting means for accepting a selection of a line element,
A part of the line elements intersecting the line element selection of which is accepted by the selection accepting means, and outline specifying means for specifying the outline of the closed region,
Function as point specifying means for specifying the intersection of the line element that has received selection by the selection receiving means and another line element, and the end point of the line element,
The outline specifying means includes a first point between two adjacent intersections of the intersection specified by the point specifying means, the end point specified by the point specifying means, and an intersection closest to the end point. The outline of the closed region is extracted by scanning with the second point between and as the starting point .
前記記憶手段に記憶された前記複数の線要素から、線要素の選択を受け付ける選択受付手段と、
前記選択受付手段によって選択を受け付けた前記線要素と交わる線要素を一部とする、閉領域の外形線を特定する外形線特定手段と、
前記選択受付手段によって選択を受け付けた前記線要素と他の線要素とが交差する交点と、前記線要素の端点とを特定する点特定手段とを備え、
前記外形線特定手段は、前記点特定手段で特定された前記交点のうち隣接する2つの交点の間の第一の点と、前記点特定手段で特定された前記端点と当該端点に最も近い交点との間の第二の点とをそれぞれ起点として走査をすることで閉領域の外形線を抽出すること
を特徴とする情報処理装置。 An information processing apparatus comprising storage means for storing data including a plurality of line elements,
Selection accepting means for accepting selection of a line element from the plurality of line elements stored in the storage means;
An outline specifying means for specifying an outline of a closed region, part of which is a line element that intersects the line element received by the selection receiving means;
A point specifying means for specifying an intersection where the line element received by the selection receiving means and another line element intersect, and an end point of the line element;
The outline specifying means includes a first point between two adjacent intersections of the intersection specified by the point specifying means, the end point specified by the point specifying means, and an intersection closest to the end point. An outline information of a closed region is extracted by scanning with a second point between and as a starting point .
前記情報処理装置が、
前記記憶手段に記憶された前記複数の線要素から、線要素の選択を受け付ける選択受付工程と、
前記選択受付工程によって選択を受け付けた前記線要素と交わる線要素を一部とする、閉領域の外形線を特定する外形線特定工程と、
前記選択受付工程によって選択を受け付けた前記線要素と他の線要素とが交差する交点と、前記線要素の端点とを特定する点特定工程とを備え、
前記外形線特定工程は、前記点特定工程で特定された前記交点のうち隣接する2つの交点の間の第一の点と、前記点特定工程で特定された前記端点と当該端点に最も近い交点との間の第二の点とをそれぞれ起点として走査をすることで閉領域の外形線を抽出すること
を特徴とする情報処理装置の制御方法。 A method for controlling an information processing apparatus including a storage unit that stores data including a plurality of line elements,
The information processing apparatus is
A selection receiving step for receiving selection of a line element from the plurality of line elements stored in the storage unit;
An outline specifying step for specifying an outline of a closed region, part of which is a line element that intersects with the line element that has been selected by the selection receiving process;
A point specifying step for specifying an intersection where the line element and the other line element that have received the selection in the selection receiving step intersect, and an end point of the line element;
The outline identifying step includes a first point between two adjacent intersections among the intersections identified in the point identification step, the end point identified in the point identification step, and an intersection closest to the end point. A control method for an information processing apparatus, wherein a contour of a closed region is extracted by scanning with a second point between and as a starting point .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011278598A JP5982812B2 (en) | 2011-12-20 | 2011-12-20 | Information processing apparatus, information processing apparatus control method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011278598A JP5982812B2 (en) | 2011-12-20 | 2011-12-20 | Information processing apparatus, information processing apparatus control method, and program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2013130941A JP2013130941A (en) | 2013-07-04 |
JP2013130941A5 JP2013130941A5 (en) | 2015-09-03 |
JP5982812B2 true JP5982812B2 (en) | 2016-08-31 |
Family
ID=48908467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011278598A Expired - Fee Related JP5982812B2 (en) | 2011-12-20 | 2011-12-20 | Information processing apparatus, information processing apparatus control method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5982812B2 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2548037B2 (en) * | 1989-06-20 | 1996-10-30 | 武藤工業株式会社 | Automatic contour tracking method in CAD |
JP3305395B2 (en) * | 1993-03-02 | 2002-07-22 | 大日本印刷株式会社 | Figure division device |
JPH06301736A (en) * | 1993-04-19 | 1994-10-28 | Fujitsu Ltd | Closed area calculating method |
JP3209003B2 (en) * | 1994-08-04 | 2001-09-17 | 日産自動車株式会社 | Method and apparatus for automatically generating a three-dimensional shape |
JP4641001B2 (en) * | 2006-04-25 | 2011-03-02 | シャープ株式会社 | Schematic drawing program |
-
2011
- 2011-12-20 JP JP2011278598A patent/JP5982812B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2013130941A (en) | 2013-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20090052787A1 (en) | Image search apparatus, image search method, and storage medium storing a program for causing a search apparatus to execute a search method | |
JP4681527B2 (en) | Height-restricted area information creation device, height-restricted area information creation method, and height-restricted area information creation program | |
JP6544407B2 (en) | INFORMATION PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM | |
US8149239B2 (en) | Image processing apparatus, image processing method, and storage medium storing a program for causing an image processing apparatus to execute an image processing method | |
JP4809683B2 (en) | Analysis model generation apparatus, analysis model generation method, and analysis model generation program | |
JP5982812B2 (en) | Information processing apparatus, information processing apparatus control method, and program | |
JP6817520B2 (en) | Programs, information processing devices, and their processing methods | |
JP6304339B2 (en) | Information processing apparatus, control method thereof, and program | |
JP5644452B2 (en) | Information processing apparatus, control method thereof, and program | |
JP6571218B2 (en) | Information processing apparatus, information processing method, and program | |
JP5178483B2 (en) | Program, information processing apparatus and display method | |
JP6908852B2 (en) | Programs, information processing devices and their processing methods | |
JP2020201654A (en) | Operation manual creation support device and operation manual creation support method | |
JP6282973B2 (en) | Information processing apparatus program, information processing apparatus control method, and information processing apparatus | |
JP2018045465A (en) | Information processing device, information processing system, control method thereof, and program | |
JP6024087B2 (en) | Information processing apparatus, information processing apparatus control method, and program | |
JP7322355B2 (en) | CURVE GENERATION METHOD, APPARATUS, AND PROGRAM | |
JP6094024B2 (en) | I / O device, information processing system, control method, and program | |
JP4847087B2 (en) | Three-dimensional shape body decomposition line display method, apparatus and program | |
JP2017182802A (en) | Information processing device, information processing system, and control method and program thereof | |
JP4774911B2 (en) | Drawing processing program, recording medium recording the drawing processing program, drawing processing method, and drawing processing system | |
JP2018106548A (en) | Program, information processing device, and processing method | |
CN106909721B (en) | Editable section obtaining method and device | |
JP6197433B2 (en) | Information processing apparatus, and control method and program thereof. | |
JP2021108032A (en) | Information processing device and its processing method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20130531 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20130531 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20141209 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20150410 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150721 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160128 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160209 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160316 |
|
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: 20160705 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160718 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5982812 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |