JP5982812B2 - Information processing apparatus, information processing apparatus control method, and program - Google Patents

Information processing apparatus, information processing apparatus control method, and program Download PDF

Info

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
Application number
JP2011278598A
Other languages
Japanese (ja)
Other versions
JP2013130941A5 (en
JP2013130941A (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 Marketing Japan Inc
Canon IT Solutions Inc
Original Assignee
Canon Marketing Japan Inc
Canon IT Solutions 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 Marketing Japan Inc, Canon IT Solutions Inc filed Critical Canon Marketing Japan Inc
Priority to JP2011278598A priority Critical patent/JP5982812B2/en
Publication of JP2013130941A publication Critical patent/JP2013130941A/en
Publication of JP2013130941A5 publication Critical patent/JP2013130941A5/ja
Application granted granted Critical
Publication of JP5982812B2 publication Critical patent/JP5982812B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開平6−274622号公報JP-A-6-274622

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.

本発明の実施形態におけるCADシステム100の一例を示す構成図である。It is a lineblock diagram showing an example of CAD system 100 in an embodiment of the present invention. 図1に示す情報処理装置101及びサーバ102のハードウェア構成の一例を示す構成図である。FIG. 2 is a configuration diagram illustrating an example of a hardware configuration of an information processing apparatus 101 and a server 102 illustrated in FIG. 1. 図1に示す情報処理装置101及びサーバ102のモジュール構成の一例を示す構成図である。It is a block diagram which shows an example of the module structure of the information processing apparatus 101 and the server 102 which are shown in FIG. 本発明の実施形態における一連の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a series of processes in embodiment of this invention. 図4のステップS106におけるポイント位置確定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the point position confirmation process in step S106 of FIG. 図4のステップS107における対象閉領域抽出処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the object closed region extraction process in step S107 of FIG. 図4のステップS113における最大閉領域特定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the maximum closed region specific process in step S113 of FIG. 情報処理装置101に記憶された各種テーブル構成の一例を示す構成図である。3 is a configuration diagram illustrating an example of various table configurations stored in an information processing apparatus 101. FIG. 本実施例における2次元CADデータ例と、特定したいターゲット範囲例を示す模式図である。It is a schematic diagram which shows the example of the two-dimensional CAD data in a present Example, and the target range example to specify. 図9に示す2次元CADデータ例において、範囲選択された場合の一例を示す模式図である。FIG. 10 is a schematic diagram illustrating an example when a range is selected in the two-dimensional CAD data example illustrated in FIG. 9. 図9に示す2次元CADデータ例において、非対象要素が選択された場合の一例を示す模式図である。FIG. 10 is a schematic diagram illustrating an example when a non-target element is selected in the two-dimensional CAD data example illustrated in FIG. 9. 図9に示す2次元CADデータ例において、複数の閉領域が抽出された場合の一例を示す模式図である。FIG. 10 is a schematic diagram illustrating an example when a plurality of closed regions are extracted in the two-dimensional CAD data example illustrated in FIG. 9. 本実施例における閉領域選択ダイアログ1300の一例を示す構成図である。It is a block diagram which shows an example of the closed area | region selection dialog 1300 in a present Example. 本実施例における開始点要素選択ダイアログ1400の一例を示す模式図である。It is a schematic diagram which shows an example of the starting point element selection dialog 1400 in a present Example. 図9に示す2次元CADデータ例において、非対象要素の端点、交点、中点を示す模式図である。FIG. 10 is a schematic diagram showing end points, intersections, and midpoints of non-target elements in the two-dimensional CAD data example shown in FIG. 9. 本実施例における閉領域の確定プロセスの一例を示す模式図である。It is a schematic diagram which shows an example of the determination process of the closed area | region in a present Example. 本実施例における閉領域の確定プロセスの一例を示す模式図である。It is a schematic diagram which shows an example of the determination process of the closed area | region in a present Example.

以下、図面を参照して、本発明の実施の形態の一例について説明する。   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 information processing apparatus 101 and a server 102 are installed in a CAD system 100 of the present invention, and these apparatuses are connected to each other via a network 103 such as a LAN (Local Area Network) so as to be able to perform data communication with each other. The configuration of various terminals or servers connected on the network 103 in FIG. 1 is an example, and it goes without saying that there are various configuration examples depending on the application and purpose.

情報処理装置101は、2次元CADアプリケーションを実行する装置である。2次元CADアプリケーションは後述する図2のROM202または外部メモリ211に記憶されており、設計者(以下、ユーザ)からの指示に応じて、CPU201がRAM203に読み出して各種動作を行う。   The information processing apparatus 101 is an apparatus that executes a two-dimensional CAD application. The two-dimensional CAD application is stored in the ROM 202 or the external memory 211 shown in FIG. 2 to be described later, and the CPU 201 reads out to the RAM 203 and performs various operations in accordance with instructions from a designer (hereinafter referred to as a user).

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 external memory 211 of the server 102 or in the external memory 211 of the information processing apparatus 101. In this embodiment, the following description will be made assuming that the information is stored in the external memory 211 of the information processing apparatus 101.

サーバ102は、情報処理装置101で作成された各種データを記憶管理する装置である。2次元CADデータは、複数のユーザによって作成される場合があり、その場合には1つのサーバ102に各ユーザの情報処理装置101で作成された2次元CADデータを一元管理する。   The server 102 is a device that stores and manages various data created by the information processing apparatus 101. In some cases, the two-dimensional CAD data is created by a plurality of users. In this case, the two-dimensional CAD data created by the information processing apparatus 101 of each user is centrally managed in one server 102.

尚、情報処理装置101が、サーバ102の構成を含んでもよいし、サーバ102が情報処理装置101の構成を含んでもよい。また、本実施例においては、情報処理装置101に各種データが記憶され、ユーザからの操作によって動作させる形態に基づいて説明を行う。   The information processing apparatus 101 may include the configuration of the server 102, or the server 102 may include the configuration of the information processing apparatus 101. Also, in the present embodiment, description will be made based on a form in which various data are stored in the information processing apparatus 101 and operated by an operation from a user.

図2は、本発明の実施形態における各種端末のハードウェア構成を示す図である。   FIG. 2 is a diagram illustrating a hardware configuration of various terminals according to the embodiment of the present invention.

CPU201は、システムバス204に接続される各デバイスやコントローラを統括的に制御する。   The CPU 201 comprehensively controls each device and controller connected to the system bus 204.

また、ROM202あるいは外部メモリ211には、CPU201の制御プログラムであるBIOS(Basic Input / OutputSystem)やオペレーティングシステムプログラム(以下、OS)や、各サーバ或いは各PCの実行する機能を実現するために必要な後述する各種プログラム等が記憶されている。RAM203は、CPU201の主メモリ、ワークエリア等として機能する。   Further, the ROM 202 or the external memory 211 is necessary to realize a BIOS (Basic Input / Output System), an operating system program (hereinafter referred to as OS), which is a control program of the CPU 201, and a function executed by each server or each PC. Various programs to be described later are stored. The RAM 203 functions as a main memory, work area, and the like for the CPU 201.

CPU201は、処理の実行に際して必要なプログラム等をRAM203にロードして、プログラムを実行することで各種動作を実現するものである。   The CPU 201 implements various operations by loading a program necessary for execution of processing into the RAM 203 and executing the program.

また、入力コントローラ(入力C)205は、キーボード209や不図示のマウス等のポインティングデバイスからの入力を制御する。   An input controller (input C) 205 controls input from a pointing device such as a keyboard 209 or a mouse (not shown).

ビデオコントローラ(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 external memory 211 such as a card-type memory connected via an adapter.

通信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 CPU 201 can perform display on the CRT 210 by executing outline font rasterization processing on a display information area in the RAM 203. In addition, the CPU 201 enables a user instruction with a mouse cursor (not shown) on the CRT 210.

本発明の情報処理装置101が後述する各種処理を実行するために用いられる各種プログラム等は外部メモリ211に記録されており、必要に応じてRAM203にロードされることによりCPU201によって実行されるものである。さらに、本発明に係わるプログラムが用いる定義ファイルや各種情報テーブルは外部メモリ211に格納されている。   Various programs used by the information processing apparatus 101 of the present invention to execute various processes described later are recorded in the external memory 211 and are executed by the CPU 201 by being loaded into the RAM 203 as necessary. is there. Furthermore, definition files and various information tables used by the program according to the present invention are stored in the external memory 211.

次に、情報処理装置101及びサーバ102のモジュール構成を示す機能構成図について、図3を用いて説明する。尚、図3の各種端末あるいはサーバのモジュール構成は一例であり、用途や目的に応じて様々な構成例があることは言うまでもない。   Next, a functional configuration diagram showing module configurations of the information processing apparatus 101 and the server 102 will be described with reference to FIG. Note that the module configurations of the various terminals or servers in FIG. 3 are merely examples, and it goes without saying that there are various configuration examples depending on applications and purposes.

情報処理装置101は、CADデータ記憶モジュール301、画面表示モジュール302、テーブル管理モジュール303、閉領域特定モジュール304、面積計算モジュール305を備える。   The information processing apparatus 101 includes a CAD data storage module 301, a screen display module 302, a table management module 303, a closed region specifying module 304, and an area calculation module 305.

CADデータ記憶モジュール301は、2次元CADアプリケーションによって作成された2次元CADデータを記憶するモジュールである。CADデータ記憶モジュール301によって記憶された2次元CADデータは、情報処理装置101の外部メモリ211等に記憶され、必要に応じて、CADデータ記憶モジュール301によって読みだされる。   The CAD data storage module 301 is a module for storing two-dimensional CAD data created by a two-dimensional CAD application. The two-dimensional CAD data stored by the CAD data storage module 301 is stored in the external memory 211 or the like of the information processing apparatus 101, and is read by the CAD data storage module 301 as necessary.

画面表示モジュール302は、各種情報を情報処理装置101のCRT210に表示させるためのモジュールである。画面表示モジュール302は各種画面を表示させ、必要に応じてユーザからの選択や入力を受け付ける。また、2次元CADデータを表示させ、必要に応じて識別可能に表示させる。   The screen display module 302 is a module for displaying various information on the CRT 210 of the information processing apparatus 101. The screen display module 302 displays various screens and accepts selections and inputs from the user as necessary. Further, two-dimensional CAD data is displayed and displayed so as to be identifiable as necessary.

テーブル管理モジュール303は、後述する図8の各種テーブルの記憶や更新等を行うためのモジュールである。各種テーブルは、外部メモリ211に記憶され、必要に応じてRAM203に読み出す。   The table management module 303 is a module for storing and updating various tables shown in FIG. Various tables are stored in the external memory 211 and read out to the RAM 203 as necessary.

閉領域特定モジュール304は、2次元CADデータによって表現される線要素で構成される閉じられた領域である閉領域(平面領域)を特定するためのモジュールである。当該閉領域を特定するために後述する端点や交点、中点を特定して、それらに基づいて閉領域を囲む線要素である外形線を特定し、閉領域を抽出する。   The closed region specifying module 304 is a module for specifying a closed region (planar region) that is a closed region composed of line elements expressed by two-dimensional CAD data. In order to specify the closed region, end points, intersections, and midpoints, which will be described later, are specified. Based on these, an outline that is a line element surrounding the closed region is specified, and the closed region is extracted.

面積計算モジュール305は、閉領域の面積を計算するためのモジュールである。本実施例では、面積の計算方法については、従来技術を利用するものとする。   The area calculation module 305 is a module for calculating the area of the closed region. In the present embodiment, the conventional technique is used for the area calculation method.

サーバ102は、CADデータ記憶モジュール307を備える。CADデータ記憶モジュール307は、前述した情報処理装置101のCADデータ記憶モジュール301と同様である。情報処理装置101に2次元CADデータを記憶管理させる場合には情報処理装置101のCADデータ記憶モジュール301を利用し、サーバ102に2次元CADデータを記憶管理させる場合にはサーバ102のCADデータ記憶モジュール307を利用する。本実施例では、情報処理装置101のCADデータ記憶モジュール301を利用するものとして説明を行う。   The server 102 includes a CAD data storage module 307. The CAD data storage module 307 is the same as the CAD data storage module 301 of the information processing apparatus 101 described above. When the information processing apparatus 101 stores and manages two-dimensional CAD data, the CAD data storage module 301 of the information processing apparatus 101 is used. When the server 102 stores and manages two-dimensional CAD data, the CAD data storage of the server 102 is stored. Module 307 is used. In the present embodiment, description will be made assuming that the CAD data storage module 301 of the information processing apparatus 101 is used.

次に、本発明の実施例における情報処理装置101によって行われる一連の処理について、図4に示すフローチャートを用いて説明する。尚、S101乃至S118の各ステップは情報処理装置101におけるCPU201の制御の下、処理が行われる。   Next, a series of processing performed by the information processing apparatus 101 in the embodiment of the present invention will be described using the flowchart shown in FIG. Note that steps S101 to S118 are performed under the control of the CPU 201 in the information processing apparatus 101.

尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。   Note that a program for causing the information processing apparatus 101 to execute this processing may be prepared as a part of a two-dimensional CAD application installed in the information processing apparatus 101 or as an add-on program, or a two-dimensional CAD application. Alternatively, it may be prepared as a program installed separately.

まず、ステップS101では、情報処理装置101はユーザによる2次元CADアプリケーションの操作により、任意の2次元CADデータを読み込み、2次元CADアプリケーションに表示する。本実施例では、図9に示す2次元CADデータ(以下、モデルA)を用いて以下説明を行う。   First, in step S101, the information processing apparatus 101 reads arbitrary two-dimensional CAD data by a user's operation of the two-dimensional CAD application and displays it on the two-dimensional CAD application. In the present embodiment, the following description will be made using two-dimensional CAD data (hereinafter referred to as model A) shown in FIG.

ステップS102では、情報処理装置101は、ユーザによる閉領域計算プログラムの起動指示を受け付けると、外部メモリ211から閉領域計算プログラムを読み出して起動する。   In step S <b> 102, when the information processing apparatus 101 receives an instruction to start the closed area calculation program from the user, the information processing apparatus 101 reads the closed area calculation program from the external memory 211 and starts it.

ステップS103では、情報処理装置101は、ユーザからのKB209による操作により、ユーザが閉領域計算の対象としたい閉領域を含む大まかな範囲を選択する。そして、選択された範囲に含まれる線要素を候補要素としてそれぞれ閉領域候補要素テーブル800のNo801、要素ID802、要素タイプ803に登録する。この際、候補要素と非対象要素を区別するため、判別フラグ804を用意し本ステップの段階では0を登録する。図10は、図9に示すモデルAを矩形選択範囲1001で選択した場合を示す。線要素のうち、破線で表現されている線が選択された線要素である。   In step S <b> 103, the information processing apparatus 101 selects a rough range including a closed region that the user wants to calculate for the closed region by an operation with the KB 209 from the user. Then, the line elements included in the selected range are registered as candidate elements in No. 801, element ID 802, and element type 803 of the closed region candidate element table 800, respectively. At this time, in order to distinguish the candidate element from the non-target element, a determination flag 804 is prepared, and 0 is registered in this step. FIG. 10 shows a case where the model A shown in FIG. 9 is selected in the rectangular selection range 1001. Among the line elements, a line represented by a broken line is a selected line element.

閉領域候補要素テーブル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 element ID 802 assigned by the two-dimensional CAD application for each line element, an element type 803 indicating whether the line element is a straight line or an arc, It comprises a discrimination flag 804 indicating whether or not it is a non-target element, which will be described later. The determination flag is a non-target element when “1” is stored.

ステップS117では、情報処理装置101は、抽出したい閉領域をまたぐ線要素である非対象要素の選択の解除をするか否かを判定する。具体的には、非対象要素の選択の解除が行える機能の実行命令がなされたか否かで判定する。抽出したい閉領域は複数の閉領域の組み合わせであることが多い。複数の閉領域から成る閉領域は、閉領域同士の境界には線要素がまたがっているはずである。よって、この線要素の選択を解除することで当該線要素が含まれる閉領域を複数抽出するようにすれば、ユーザの手間を軽減できる。非対象要素の選択をすると判定された場合には、ステップS104に処理を進め、そうでない場合には、ステップS105に処理を進める。   In step S117, the information processing apparatus 101 determines whether or not to cancel selection of a non-target element that is a line element straddling a closed region to be extracted. Specifically, the determination is made based on whether or not an execution command for a function that can cancel the selection of the non-target element has been issued. The closed region to be extracted is often a combination of a plurality of closed regions. A closed region composed of a plurality of closed regions should have a line element straddling the boundary between the closed regions. Therefore, by canceling the selection of the line element and extracting a plurality of closed regions including the line element, the user's trouble can be reduced. If it is determined to select a non-target element, the process proceeds to step S104, and if not, the process proceeds to step S105.

ステップS104では、情報処理装置101は、ステップS103で選択した線要素のうち、大きな閉領域を分断している線要素をユーザによる任意選択によって受け付ける(選択受付手段)。そして、選択された線要素の判別フラグ804を「1」に変更する。非対象要素の解除が指示されると、画面上では図11に示すような状態になる。破線で示されている線要素が非対象要素として選択を解除された線要素である。   In step S104, the information processing apparatus 101 receives a line element that divides a large closed region among the line elements selected in step S103 by a user's arbitrary selection (selection receiving unit). Then, the determination flag 804 of the selected line element is changed to “1”. When cancellation of the non-target element is instructed, the screen is in a state as shown in FIG. A line element indicated by a broken line is a line element whose selection is canceled as a non-target element.

ステップS105では、情報処理装置101は、非対象要素があるか否かを判定する。具体的には、閉領域候補要素テーブル800の判別フラグ804の値に「1」があるか否かで判定する。非対象要素があると判定された場合には、ステップS106に処理を進め、非対象要素がない場合には、ステップS111に処理を進める。   In step S105, the information processing apparatus 101 determines whether there is a non-target element. Specifically, the determination is made based on whether or not the value of the determination flag 804 in the closed region candidate element table 800 is “1”. If it is determined that there is a non-target element, the process proceeds to step S106. If there is no non-target element, the process proceeds to step S111.

ステップS106では、情報処理装置101は、ポイント位置特定処理を行う。ポイント位置特定処理は、ステップS104で選択された非対象要素の端点と、当該非対象要素と他の線要素とが重なる交点の2つに基づいて、端点から交点または交点から交点までの真ん中の点である中点を特定する処理である。ポイント位置特定処理の詳細は、後述する図5に示す。   In step S106, the information processing apparatus 101 performs a point position specifying process. The point location specifying process is based on the end point of the non-target element selected in step S104 and the intersection point where the non-target element and another line element overlap, and the middle point from the end point to the intersection point or the intersection point to the intersection point. This is processing for specifying a midpoint as a point. Details of the point position specifying process are shown in FIG.

ステップS107では、情報処理装置101は、対象閉領域抽出処理を行う(特定手段)。対象閉領域抽出処理は、ステップS106で特定された中点に基づいて、非対象要素が含まれる閉領域の抽出を行う。対象閉領域抽出処理の詳細は、後述する図6に示す。   In step S107, the information processing apparatus 101 performs target closed region extraction processing (specifying means). In the target closed region extraction process, a closed region including a non-target element is extracted based on the midpoint specified in step S106. Details of the target closed region extraction processing are shown in FIG.

ステップS108では、情報処理装置101は、ステップS107で抽出された対象閉領域があるか否かを判定する。具体的には、ステップS107で作成される閉領域の面積テーブル850にレコードが存在するかどうかにより判定する。閉領域が存在すると判定された場合には、ステップS109に処理を進め、そうでない場合には、選択された非対象要素が含まれる閉領域が存在しない旨をユーザに通知し、本一連の処理を終了する。   In step S108, the information processing apparatus 101 determines whether there is a target closed region extracted in step S107. Specifically, the determination is made based on whether or not a record exists in the area table 850 of the closed region created in step S107. If it is determined that there is a closed region, the process proceeds to step S109. If not, the user is notified that there is no closed region including the selected non-target element, and this series of processes is performed. Exit.

面積テーブル850(図8参照)は、一意に割り振られるNo851、ステップS107において抽出された閉領域に対して割り振られた要素ID852、当該閉領域の面積を示す面積853から構成される。ステップS107において抽出された閉領域の面積を格納するためのテーブルとなっている。   The area table 850 (see FIG. 8) includes No 851 that is uniquely allocated, an element ID 852 that is allocated to the closed region extracted in step S107, and an area 853 that indicates the area of the closed region. This is a table for storing the area of the closed region extracted in step S107.

ステップS109では、情報処理装置101は、ステップS107にて抽出した閉領域を面積テーブル850よりレコードを取得し、算出対象とする閉領域を選択するための閉領域選択ダイアログ1300(図13参照)で一覧表示する(表示手段)。この画面に表示する閉領域は、図12に示すように各閉領域に対して番号が振られ、当該番号に対応するように該当閉領域一覧1301に表示を行う。   In step S109, the information processing apparatus 101 acquires a record of the closed region extracted in step S107 from the area table 850, and uses a closed region selection dialog 1300 (see FIG. 13) for selecting a closed region to be calculated. List display (display means). As shown in FIG. 12, closed areas displayed on this screen are numbered with respect to each closed area, and are displayed in the corresponding closed area list 1301 so as to correspond to the numbers.

ステップS118では、情報処理装置101は、閉領域選択ダイアログ1300の該当閉領域一覧1301に表示された閉領域がユーザから選択され、計算ボタン1303が押下されたか否かを判定する。つまり、ユーザが求める閉領域の選択を閉領域選択ダイアログ1300で受け付け、計算ボタンを押下することで、複数の閉領域の面積の計算を行うことができるようになっている。計算ボタン1303が押下されたと判定された場合には、ステップS110に処理を進め、そうでない場合には、計算ボタン1303が押下されるまで待機する。   In step S118, the information processing apparatus 101 determines whether the closed area displayed in the corresponding closed area list 1301 of the closed area selection dialog 1300 is selected by the user and the calculation button 1303 is pressed. That is, the closed area selection dialog 1300 requested by the user is received in the closed area selection dialog 1300, and the area of a plurality of closed areas can be calculated by pressing the calculation button. If it is determined that the calculation button 1303 has been pressed, the process proceeds to step S110. If not, the process waits until the calculation button 1303 is pressed.

ステップS110では、情報処理装置101は、ステップS109で選択された閉領域の面積を合計し、面積合計値1304に表示する(面積計算手段)。この合計面積は面積テーブル850より該当レコードの面積853を基に算出する。OKボタン1305の押下を受け付けると、処理をステップS115に進める。   In step S110, the information processing apparatus 101 totals the areas of the closed regions selected in step S109 and displays the total area value 1304 (area calculation means). This total area is calculated from the area table 850 based on the area 853 of the corresponding record. If the pressing of the OK button 1305 is accepted, the process proceeds to step S115.

一方、ステップ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 information processing apparatus 101 selects a line element serving as a starting point for specifying the maximum closed region among the line elements selected in range in step S103, as a starting point element selection dialog 1400 (see FIG. 14). Accept. Specifically, No 861 and element ID 862 are stored in the maximum closed region candidate table 860 (see FIG. 8) in the order of the closest line element from the rectangular start point (mouse cursor drag selection start point) selected in step S103. The element type 863 is registered. The registered data is displayed in the order of the position closest to the coordinate value of the rectangular start point, and the selection from the user is accepted on the start point element selection dialog 1400. In the present embodiment, line elements are extracted in the order from the start point of the range-searched rectangle. However, the present invention is not limited to this as long as the line elements can be extracted. It is only necessary to select a line element for display. When a line element is selected in the start point element selection dialog 1400, the corresponding line element is highlighted so that it can be identified on the two-dimensional CAD data. If the pressing of the next button 1403 is detected, the process proceeds to step S112.

最大閉領域候補テーブル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 element ID 802 of a line element that forms the closed region, and an element type 863 that indicates whether the line element is a straight line or an arc. Consists of

ステップ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 information processing apparatus 101 determines the coordinate value of the end point closer to the rectangle start point from the two ends of the line element selected in step S111, and the coordinate value of the intersection point of the element intersecting the line element. Are acquired by the two-dimensional CAD application. The acquired coordinate values are stored in No 811, Element ID 812, X coordinate 813, and Y coordinate 814 of the end point table 810 (see FIG. 8) as the end point, and No 821 in the reference point table 840 (see FIG. 8) as the intersection point. And element ID 822, X coordinate 823, and Y coordinate 824. The reference point is a goal point when specifying the maximum closed region.

端点テーブル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 element ID 812 assigned by the two-dimensional CAD application for each end point, an X coordinate 813 indicating the X coordinate and Y coordinate of the end point, and a Y coordinate 814. The

また、基準点テーブル840は、一意に割り振られる841、基準点ごとに2次元CADアプリケーションによって割り振られた要素ID842、当該基準点のX座標とY座標を示すX座標843、Y座標844から構成される。   The reference point table 840 includes a uniquely assigned 841, an element ID 842 assigned by the two-dimensional CAD application for each reference point, an X coordinate 843 indicating the X and Y coordinates of the reference point, and a Y coordinate 844. The

次に、ステップS113では、情報処理装置101は、最大閉領域特定処理を行う。ステップS112で特定した基準点に基づいて最大閉領域を特定し、面積の算出を行う。最大閉領域特定処理の詳細は、後述する図7に示す。   Next, in step S113, the information processing apparatus 101 performs a maximum closed region specifying process. The maximum closed region is specified based on the reference point specified in step S112, and the area is calculated. Details of the maximum closed region specifying process are shown in FIG.

ステップS114では、情報処理装置101は、ステップS108と同様に閉領域が存在するか否かを判定する。閉領域が存在する場合には、ステップS115に処理を進め、存在しなかった場合には、閉領域が存在しない旨をユーザに通知し、本一連の処理を終了する。   In step S114, the information processing apparatus 101 determines whether or not a closed region exists as in step S108. If the closed area exists, the process proceeds to step S115. If the closed area does not exist, the user is notified that the closed area does not exist, and the series of processes ends.

ステップS115では、情報処理装置101は、特定した閉領域に対してハッチング表示を施す。ハッチング表示とは、ある面を斜線や特定の模様で埋めることを言う。特定した閉領域が識別可能に表示できるのであれば、ハイライト表示でもよいし、他の表示方法でもよい。   In step S115, the information processing apparatus 101 performs hatching display on the identified closed region. Hatch display means filling a certain surface with diagonal lines or a specific pattern. As long as the identified closed region can be displayed in an identifiable manner, highlight display or other display methods may be used.

ステップS116では、情報処理装置101は、ステップS115で閉領域の面積の算出対象となっている閉領域をハッチング表示にて明示した画面に重ねて、面積の算出結果の値を画面上に表示する。こうすることで、閉領域の特定を容易にし、更に当該閉領域の面積を計算して表示させることができる。   In step S116, the information processing apparatus 101 displays the value of the area calculation result on the screen by superimposing the closed area, which is the calculation target of the area of the closed area in step S115, on the screen clearly indicated by hatching display. . By doing so, it is possible to easily identify the closed region and to calculate and display the area of the closed region.

次に、ポイント位置特定処理について図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 CPU 201 in the information processing apparatus 101.

尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。   Note that a program for causing the information processing apparatus 101 to execute this processing may be prepared as a part of a two-dimensional CAD application installed in the information processing apparatus 101 or as an add-on program, or a two-dimensional CAD application. Alternatively, it may be prepared as a program installed separately.

ステップS201では、情報処理装置101は、ステップS104にて選択された非対象要素を閉領域候補要素テーブル800の判別フラグ804に基づいて、特定する。   In step S201, the information processing apparatus 101 identifies the non-target element selected in step S104 based on the determination flag 804 in the closed region candidate element table 800.

ステップS202では、情報処理装置101は、ステップS201で特定された非対象要素の両端点の座標値を2次元CADアプリケーションに表示されている2次元CADデータ上より取得し、端点テーブル810(図8参照)のNo811、要素ID812、X座標813、Y座標814に格納する。   In step S202, the information processing apparatus 101 acquires the coordinate values of the end points of the non-target element identified in step S201 from the two-dimensional CAD data displayed in the two-dimensional CAD application, and the end point table 810 (FIG. 8). No) 811, element ID 812, X coordinate 813, and Y coordinate 814.

ステップS203では、情報処理装置101は、非対象要素となっている線要素と当該非対象要素とは他の線要素との交点があるか否かを判定する。交点があると判定された場合には、ステップS204に処理を進め、そうでない場合には、ステップS206に処理を進める。の座標値を2次元CADアプリケーションにて算出し、記憶する。   In step S203, the information processing apparatus 101 determines whether there is an intersection between the line element that is a non-target element and the non-target element of another line element. If it is determined that there is an intersection, the process proceeds to step S204. If not, the process proceeds to step S206. Are calculated and stored in a two-dimensional CAD application.

ステップS204では、情報処理装置101は、ステップS203で特定された交点の座標値を2次元CADアプリケーションで算出し、算出された交点の座標値を交点テーブル820(図8参照)のNo821、要素ID822、X座標823、Y座標824に格納する。   In step S204, the information processing apparatus 101 calculates the coordinate value of the intersection specified in step S203 by a two-dimensional CAD application, and the calculated coordinate value of the intersection is No. 821, element ID 822 in the intersection table 820 (see FIG. 8). , X coordinate 823, and Y coordinate 824.

交点テーブル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 element ID 822 assigned by the two-dimensional CAD application for each intersection, an X coordinate 823 that indicates the X and Y coordinates of the intersection, and a Y coordinate 824. The

ステップ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 information processing apparatus 101 calculates, based on the coordinate value of the intersection acquired in step S204, the midpoint between the end points and the intersection, and the midpoint between the intersection and the intersection using a two-dimensional CAD application. This is stored in No 831, element ID 832, X coordinate 833, and Y coordinate 834 of the point table 830 (see FIG. 8). In addition, the element IDs of the end points and the intersections referred to when calculating the midpoint are stored in the element IDa835 and element IDb836 for each record. At this time, the value of the discrimination flag 837 is set to “0” in the case of the midpoint between the end points and the intersection, and the same value is stored as “1” in the case of the midpoint between the intersection and the intersection. When end points, intersections, and midpoints are specified for the non-target elements of the model A in the present embodiment, a portion as shown in FIG. 15 corresponds. Both ends of the non-target element are end points, points that intersect other line elements are intersection points, and points that are located between end points and end points or between end points and intersection points are midpoints.

中点テーブル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 element ID 832 assigned by the two-dimensional CAD application for each midpoint, an X coordinate 833 indicating the X and Y coordinates of the midpoint, a Y coordinate 834, Consists of an end point and an intersection constituting the midpoint, or an element IDa835 and element IDb836 for storing the element ID of the intersection and the intersection, and a determination flag 837 indicating whether the midpoint is an endpoint or an intersection or an intersection and an intersection Is done.

ステップS206では、情報処理装置101は、閉領域候補要素テーブル800の判別フラグの値を参照して、未処理のレコードがあるか否かを判定する。未処理のレコードがあると判定された場合には、ステップS201に処理を戻し、ない場合にはポイント位置特定処理を終了し、呼び出し元に処理を戻す。これらの処理によって、選択された非対象要素の端点と交点と中点を特定し、後述する図6の対象閉領域抽出処理の準備を行う。   In step S206, the information processing apparatus 101 refers to the value of the determination flag in the closed region candidate element table 800 and determines whether there is an unprocessed record. If it is determined that there is an unprocessed record, the process returns to step S201, and if not, the point position specifying process ends, and the process returns to the caller. Through these processes, the end points, intersections, and midpoints of the selected non-target elements are specified, and preparation for target closed region extraction processing in FIG. 6 described later is performed.

次に、対象閉領域抽出処理について図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 information processing apparatus 101. FIG.

尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。   Note that a program for causing the information processing apparatus 101 to execute this processing may be prepared as a part of a two-dimensional CAD application installed in the information processing apparatus 101 or as an add-on program, or a two-dimensional CAD application. Alternatively, it may be prepared as a program installed separately.

ステップS301では、情報処理装置101は、ステップS205で取得した中点を中点テーブル830より取得する。対象閉領域抽出処理では、この中点を基に閉領域を抽出する。閉領域の抽出は閉領域を構成する外周の線要素を、基準点テーブル840の基準点に基づいて走査することで抽出する。基準点からの走査方法は、スタート点である中点が端点と交点の中点である場合と、交点と交点の中点である場合の2つがある。以下、まずは図16に示す端点と交点の中点をスタート点とする場合を例にとって説明を行っていく。   In step S301, the information processing apparatus 101 acquires the midpoint acquired in step S205 from the midpoint table 830. In the target closed region extraction process, a closed region is extracted based on this midpoint. The closed region is extracted by scanning the outer peripheral line elements constituting the closed region based on the reference point of the reference point table 840. There are two scanning methods from the reference point: the middle point that is the start point is the midpoint of the end point and the intersection point, and the middle point of the intersection point and the intersection point. In the following, description will be given by taking as an example the case where the start point is the midpoint between the end point and the intersection shown in FIG.

ステップS302では、情報処理装置101は、ステップS301で取得した中点から走査をスタートし、最初に見つかった交点を走査のゴール点である基準点に決定する。具体的には、まず中点テーブル830より取得した中点の判別フラグ837が「0」である場合、つまり端点と交点の中点である場合には、図16の<ステップ1>に示すように、取得した中点から端点とは反対の方向、つまりは交点の座標(中点テーブル830の要素IDa835、要素IDb836を交点テーブル820と突き合わせた結果の座標値)に向かって走査を開始する。そして、最初に遭遇した交点を基準点に決定し、基準点テーブル840のNo841、要素ID842、X座標843、Y座標844に格納する。   In step S302, the information processing apparatus 101 starts scanning from the midpoint acquired in step S301, and determines the first intersection found as a reference point that is a goal point for scanning. Specifically, when the midpoint determination flag 837 acquired from the midpoint table 830 is “0”, that is, when it is the midpoint of the intersection with the end point, as shown in <Step 1> of FIG. In addition, scanning is started from the acquired middle point in the direction opposite to the end point, that is, the coordinates of the intersection (coordinate values resulting from matching the element IDa 835 and element IDb 836 of the middle point table 830 with the intersection table 820). Then, the first encounter point is determined as a reference point, and stored in No 841, element ID 842, X coordinate 843, and Y coordinate 844 of the reference point table 840.

ステップS303では、情報処理装置101は、基準点まで走査してきた線要素から反時計回り(左回り)で次の走査対象である線要素を探し、該当する線要素に走査する。次に走査すべき線要素の候補がいくつか存在する場合は、走査してきた方向から左方向へ走査の進路をとる。この左方向というのは、走査してきた線要素から左回りで角度を測定したときに最も角度が大きくなる線要素を左方向の線要素とする。走査候補が円弧の場合は交点からの接線に基づいて角度を判断する。また、2つの円弧に正接な接線と、走査してきた直線とが一致してしまう場合がある。こうなると、2つの円弧の接線と走査してきた直線との角度は同じであるので判断ができない。よって、この場合には、円弧の向きが左回りか右回りかの情報を2次元CADアプリケーションより取得することでより左方向に向かう線要素を選択する。   In step S303, the information processing apparatus 101 searches for a line element that is the next scanning target counterclockwise (counterclockwise) from the line elements scanned up to the reference point, and scans the corresponding line element. If there are several line element candidates to be scanned next, the scanning path is taken from the scanned direction to the left. This left direction means that the line element having the largest angle when the angle is measured counterclockwise from the scanned line element is the left line element. If the scanning candidate is an arc, the angle is determined based on the tangent from the intersection. In addition, a tangent line tangent to two arcs may coincide with a scanned straight line. In this case, the angle between the tangent line of the two arcs and the scanned straight line is the same, and thus cannot be determined. Therefore, in this case, a line element that goes in the left direction is selected by acquiring information about whether the direction of the arc is counterclockwise or clockwise from the two-dimensional CAD application.

図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 information processing apparatus 101 determines whether the reached point is an intersection, an end point, or a reference point. First, it is determined with reference to the coordinate values registered in the reference point table 840 whether the coordinate value of the reached point is a reference point. Next, when it is not a reference point, it is determined whether it is an intersection or an end point depending on whether or not there is a line element to be scanned next from the reached point. If it is determined that it is a reference point, the process proceeds to step S306. If it is determined that it is an intersection, the process returns to step S303. If it is determined that it is an end point, step S305 is performed. Proceed with the process.

尚、交点だと判定した場合、閉領域を構成する要素として辿ってきた線要素を図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, element ID 882 and element type 883 of the closed area component table 880 in FIG. The element is stored in No. 891, element ID 892, element type 893, and intersection No. 894 of the scan target element table 890. The intersection number 894 of the scanning target element table 890 is grouped by assigning the same number to the scanning target line elements extending from the same intersection point. The scanning target element table 890 is a table for returning to the previous intersection and restarting scanning when a dead end is reached at the end point. Therefore, the line elements that are candidates for resumption need to be grouped at each intersection.

閉領域構成要素テーブル880(図8参照)は、一意に割り振られるNo881、閉領域を構成する線要素の要素ID802を格納する要素ID882、当該線要素が直線なのか、円弧なのかを示す要素タイプ883から構成される。   The closed region component table 880 (see FIG. 8) is No881 that is uniquely assigned, an element ID 882 that stores an element ID 802 of a line element that forms the closed region, and an element type that indicates whether the line element is a straight line or an arc. 883.

また、走査対象要素テーブル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 element ID 892 that stores the element ID 802 of the line element that is the scanning target candidate, and an element that indicates whether the line element is a straight line or an arc. Type 893, intersection No. 894 assigned to each intersection obtained by extracting line elements to be scanned, intersection X coordinate 895 indicating the X coordinate and Y coordinate of the intersection, and intersection Y coordinate 896.

ステップS305では、情報処理装置101は、端点であると判定されたので、別の走査線があるか否かを判定する。具体的には、走査対象要素テーブル890を参照して、当該端点に到達する前に格納された交点から伸びる他の線要素がないか判定する。要は、走査してきた線要素を交点まで逆走して、そこから更に走査を再開できる線要素があるか否かを判定するということである。別の走査線があると判定された場合には、ステップS303に処理を戻し、そうでない場合には、ステップS310に処理を進める。   In step S305, since it is determined that the information processing apparatus 101 is an end point, the information processing apparatus 101 determines whether there is another scanning line. Specifically, with reference to the scanning target element table 890, it is determined whether there is any other line element extending from the stored intersection before reaching the end point. The point is that the line element that has been scanned runs backward to the intersection and it is then determined whether there is a line element that can resume scanning from there. If it is determined that there is another scanning line, the process returns to step S303, and if not, the process proceeds to step S310.

このようにステップ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 information processing apparatus 101 determines that the process has returned to the reference point in the process of step S304, the information processing apparatus 101 uses the two-dimensional CAD application based on the line elements stored in the closed region component table 880 in FIG. Create the face of the closed region to be constructed.

ステップS307では、情報処理装置101は、ステップS306で作成された閉領域の面に基づいて、2次元CADアプリケーションの機能により面積を算出する(面積計算手段)。   In step S307, the information processing apparatus 101 calculates an area by the function of the two-dimensional CAD application based on the surface of the closed region created in step S306 (area calculation unit).

ステップS308では、情報処理装置101は、ステップS307で算出された閉領域の面積が既に面積テーブル850に格納済みであるか否かを判定する。つまり、二重登録しないための処理である。面積テーブル850に格納済みであると判定された場合には、ステップS310に処理を進め、そうでない場合には、ステップS309に処理を進める。   In step S308, the information processing apparatus 101 determines whether the area of the closed region calculated in step S307 has already been stored in the area table 850. In other words, this is a process for avoiding double registration. If it is determined that it has been stored in the area table 850, the process proceeds to step S310, and if not, the process proceeds to step S309.

ステップS309では、情報処理装置101は、面積テーブル850のNo851と要素ID852と面積853に作成した閉領域の面積を格納する。   In step S309, the information processing apparatus 101 stores the area of the closed region created in No 851, element ID 852, and area 853 of the area table 850.

ステップS310では、情報処理装置101は、未処理の他の中点(スタート点)があるか否かを判定する。本実施例におけるモデルAでは、端点と交点の中点が2つ、交点と交点の中点が1つ存在するため、これらすべてについてステップS301乃至ステップS309の処理を行う。未処理の他の中点があると判定された場合には、ステップS301に処理を戻して新しい中点を取得し、すべて処理したと判定された場合には、閉領域抽出処理を終了し、呼び出し元に処理を戻す。   In step S310, the information processing apparatus 101 determines whether there is another unprocessed midpoint (start point). In the model A in the present embodiment, there are two midpoints of the end points and the intersection points, and one midpoint of the intersection points and the intersection points. Therefore, the processes of steps S301 to S309 are performed for all of them. If it is determined that there is another unprocessed midpoint, the process returns to step S301 to obtain a new midpoint. If it is determined that all the midpoints have been processed, the closed region extraction process is terminated. Return processing to the caller.

次に、最大閉領域特定処理について図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 CPU 201 in the information processing apparatus 101.

尚、この処理を情報処理装置101に実行させるためのプログラムは、情報処理装置101にインストールされている2次元CADアプリケーションの一部、若しくはアドオンプログラムとして用意されていてもよいし、2次元CADアプリケーションとは別にインストールされたプログラムとして用意されていてもよい。   Note that a program for causing the information processing apparatus 101 to execute this processing may be prepared as a part of a two-dimensional CAD application installed in the information processing apparatus 101 or as an add-on program, or a two-dimensional CAD application. Alternatively, it may be prepared as a program installed separately.

ステップS401では、情報処理装置101は、ステップS112で端点テーブル810に格納された端点を取得する。   In step S401, the information processing apparatus 101 acquires the end points stored in the end point table 810 in step S112.

ステップS402では、情報処理装置101は、ステップS112で格納された基準点を基準点テーブル840から取得する。   In step S402, the information processing apparatus 101 acquires the reference point stored in step S112 from the reference point table 840.

ステップ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 CAD system 101 Information processing apparatus 102 Server 103 Network 201 CPU
202 RAM
203 ROM
204 System Bus 205 Input Controller 206 Video Controller 207 Memory Controller 208 Communication I / F (Interface) Controller 209 Input Device 210 Display Device 211 External Memory

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 .
前記外形線特定手段は、前記第一の点と前記第二の点とをそれぞれ起点とした共通の抽出方法を用いて閉領域の外形線を抽出することを特徴とする請求項に記載のプログラム。 The outline specifying means, according to claim 1, characterized in that extracting the outline of a closed region by using a common extraction method as a starting point the first point and the second point and the respective program. 前記外形線特定手段は、前記選択受付手段で選択を受け付けた前記線要素の少なくとも一部を含む閉領域の外形線も前記閉領域の外形線として特定することを特徴とする請求項1または2に記載のプログラム。 The outline specifying means, according to claim 1 or 2, characterized in that identifying the outline of the closed area also outline of a closed region including at least a part of the wire element receives the selection by the selection receiving means The program described in. 前記外形線特定手段で特定した外形線で構成される閉領域を識別表示する表示制御手段を更に備えることを特徴とする請求項乃至のいずれか1項に記載のプログラム。 The program according to any one of claims 1 to 3 , further comprising display control means for identifying and displaying a closed region constituted by the outline specified by the outline specification means. 複数の線要素を含むデータを記憶する記憶手段を備える情報処理装置であって、
前記記憶手段に記憶された前記複数の線要素から、線要素の選択を受け付ける選択受付手段と、
前記選択受付手段によって選択を受け付けた前記線要素と交わる線要素を一部とする、閉領域の外形線を特定する外形線特定手段と、
前記選択受付手段によって選択を受け付けた前記線要素と他の線要素とが交差する交点と、前記線要素の端点とを特定する点特定手段とを備え、
前記外形線特定手段は、前記点特定手段で特定された前記交点のうち隣接する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 .
JP2011278598A 2011-12-20 2011-12-20 Information processing apparatus, information processing apparatus control method, and program Expired - Fee Related JP5982812B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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