JP2614356B2 - Closed figure extraction method - Google Patents

Closed figure extraction method

Info

Publication number
JP2614356B2
JP2614356B2 JP2271664A JP27166490A JP2614356B2 JP 2614356 B2 JP2614356 B2 JP 2614356B2 JP 2271664 A JP2271664 A JP 2271664A JP 27166490 A JP27166490 A JP 27166490A JP 2614356 B2 JP2614356 B2 JP 2614356B2
Authority
JP
Japan
Prior art keywords
closed
line segments
extracting
coordinate point
line segment
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
JP2271664A
Other languages
Japanese (ja)
Other versions
JPH04147384A (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.)
Mutoh Industries Ltd
Original Assignee
Mutoh Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mutoh Industries Ltd filed Critical Mutoh Industries Ltd
Priority to JP2271664A priority Critical patent/JP2614356B2/en
Publication of JPH04147384A publication Critical patent/JPH04147384A/en
Application granted granted Critical
Publication of JP2614356B2 publication Critical patent/JP2614356B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、図面データ中の任意の閉図形を抽出する閉
図形抽出方式に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a closed figure extraction method for extracting an arbitrary closed figure in drawing data.

[従来の技術] CAD(Computer Aided Design)システム等の図面デー
タを取り扱うシステムでは、作成された図面データ又は
読み込まれた図面データのうちの特定の閉図形を指定し
て、その閉図形内の情報を抽出したり、その閉図形に対
してハッチング処理等の特定の処理を施すことが頻繁に
行われる。
2. Description of the Related Art In a system that handles drawing data such as a CAD (Computer Aided Design) system, a specific closed figure is specified in created drawing data or read drawing data, and information in the closed figure is specified. , Or performing a specific process such as hatching on the closed figure.

従来、このような閉図形を抽出する処理においては、
端点同士が連結された線分を順次サーチしていき、サー
チ開始点に辿り付くか否かで閉図形を認識するようにし
ている。
Conventionally, in such a process of extracting a closed figure,
Line segments in which end points are connected are sequentially searched, and a closed figure is recognized based on whether or not the search start point is reached.

[発明が解決しようとする課題] しかしながら、このような閉図形の抽出方式では、閉
図形を構成する線分の各端点が結合されていることが前
提となっている。このため、例えば、第4図に示すよう
に、端点A〜H同士は結合されていないが、複数の線分
L1〜L4が相互に交差することにより閉図形Sが生成され
る場合、この閉図形を抽出することができない。このた
め、従来は、このような閉図形Sを認識するために、新
たに各線分の交点の座標を入力し直す必要があり、操作
が煩雑になるという問題点がある。
[Problems to be Solved by the Invention] However, such a closed figure extraction method is based on the premise that the end points of the line segments constituting the closed figure are connected. For this reason, for example, as shown in FIG. 4, although the end points A to H are not connected to each other,
When the closed graphic S is generated by the intersection of L1 to L4, the closed graphic cannot be extracted. For this reason, conventionally, in order to recognize such a closed figure S, it is necessary to newly input the coordinates of the intersection of each line segment, and there is a problem that the operation becomes complicated.

本発明は、このような問題点を解決すべくなされたも
ので、線分の交差によって閉図形が生成される場合につ
いても、何ら煩雑な操作を必要とすることなしに任意の
閉図形を抽出することができる閉図形抽出方式を提供す
ることを目的とする。
The present invention has been made to solve such a problem, and even when a closed figure is generated by intersection of line segments, an arbitrary closed figure can be extracted without any complicated operation. It is an object of the present invention to provide a closed figure extraction method capable of performing a closed figure extraction.

[課題を解決するための手段] 本発明に係る閉図形抽出方式は、閉図形の内部を指定
する座標点を入力する座標入力手段と、この手段によっ
て入力された座標点を取り囲む複数の線分のうち前記入
力された座標点に最も近い最近接線分を検出し、この最
近接線分上でのサーチ方向に対する前記座標点の位置関
係を同一に保ちながら前記座標点を取り囲む複数の線分
の交点を順次抽出する外郭線分抽出手段と、この手段で
抽出された線分の交点の座標から閉図形を抽出する閉図
形抽出手段とを有することを特徴とする。
[Means for Solving the Problems] A closed figure extraction method according to the present invention comprises a coordinate input unit for inputting a coordinate point designating the inside of a closed figure, and a plurality of line segments surrounding the coordinate point input by the unit. Detecting the closest tangent to the input coordinate point and intersecting the plurality of line segments surrounding the coordinate point while maintaining the same positional relationship of the coordinate point with the search direction on the closest tangent. And a closed figure extracting means for extracting a closed figure from the coordinates of the intersections of the line segments extracted by this means.

[作用] 本発明においては、閉図形の内部を指定する座標点が
入力されると、外郭線分抽出手段が上記座標点を取り囲
む複数の線分を抽出し、更に閉図形抽出手段が前記抽出
された線分の交点の座標から閉図形を抽出する。
[Operation] In the present invention, when a coordinate point designating the inside of a closed figure is input, a contour segment extracting unit extracts a plurality of line segments surrounding the coordinate point, and further, the closed figure extracting unit extracts the line segment. A closed figure is extracted from the coordinates of the intersection of the line segments.

このため、本発明によれば、閉図形抽出の前提として
端点が連続する必要がなく、また、交点の座標値を改め
て入力する必要もないので、閉図形の内部の一点を指定
するという極めて簡単な操作で閉図形を抽出することが
できる。
Therefore, according to the present invention, the end points do not need to be continuous as prerequisites for extracting a closed figure, and it is not necessary to input the coordinate values of the intersections again. A simple operation can extract a closed figure.

[実施例] 以下、添付の図面に基づいて本発明の実施例について
説明する。
Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings.

第1図は本発明の実施例に係る閉図形抽出装置の構成
を示す機能ブロック図である。
FIG. 1 is a functional block diagram showing a configuration of a closed figure extracting apparatus according to an embodiment of the present invention.

第1図において、座標入力手段1は、マウス、キーボ
ード又はジョイスティック等のポインティングデバイス
からなり、閉図形の内部の一点を指定する手段である。
外郭線分抽出手段2は、図形データ中の線分からサーチ
に不要な線分を除去し、入力点の最近接線分を検出する
とともに、検出された最近接線分に結合される線分で最
小の一筆書きを構成する線分を検索する。閉図形抽出手
段3は、外郭線分抽出手段によって抽出された外郭線分
の交点の座標値から閉図形を認識し、これを抽出する。
In FIG. 1, a coordinate input means 1 comprises a pointing device such as a mouse, a keyboard or a joystick, and is a means for designating one point inside a closed figure.
The contour line segment extraction means 2 removes unnecessary line segments for search from the line segments in the graphic data, detects the closest line segment of the input point, and detects the smallest line segment connected to the detected closest line segment. Search for the line segments that make up a single stroke. The closed figure extracting means 3 recognizes the closed figure from the coordinate values of the intersections of the contour lines extracted by the contour line extracting means, and extracts this.

次に、このように構成された本実施例に係る閉図形抽
出装置の動作について説明する。
Next, the operation of the thus-configured closed figure extracting apparatus according to the present embodiment will be described.

第2図は、この閉図形抽出装置の動作を示す流れ図で
ある。
FIG. 2 is a flowchart showing the operation of the closed figure extracting apparatus.

オペレータが、図示しない手段を使用して閉図形の抽
出処理を指定すると、先ず、外郭線分抽出手段2は、図
形データ中からサーチに不要な線分を除去する(S1)。
When the operator designates a closed graphic extraction process using a means (not shown), first, the contour line extraction means 2 removes unnecessary line segments from the graphic data for search (S1).

例えば、第3図(a)において、線分L1〜L4は、全て
他の線分と交差しているので、このような線分は、検索
対象となるが、例えば線分LLのように、どの線分とも交
差していない線分は閉図形を構成し得ないので、このよ
うな線分を不要線分として除去する。これにより、検索
対象を絞り込んで検索時間の短縮を図ることができる。
For example, in FIG. 3 (a), since all the line segments L1 to L4 intersect with other line segments, such a line segment is a search target. For example, like the line segment LL, Since line segments that do not intersect with any line segment cannot form a closed figure, such line segments are removed as unnecessary line segments. Thus, the search time can be reduced by narrowing down the search targets.

次に、第3図(b)に示すように、オペレータが抽出
したい閉図形S内の一点Pを座標入力手段1を使用して
指定すると(S2)、外郭線分抽出手段2は、点Pから各
線分に下ろした垂直の長さを比較して最も近い最近接線
分を検出する(S3)。
Next, as shown in FIG. 3 (b), when the operator designates a point P in the closed figure S to be extracted using the coordinate input means 1 (S2), the contour line extracting means 2 sets the point P The closest nearest line segment is detected by comparing the vertical length dropped to each line segment from (S3).

ここで、線分A−Bが最近接線分であると、外郭線分
抽出手段2、先ず、線分A−Bの始点Aから終点Bに向
けてサーチを開始し、最初に検出された交点X1を始点に
設定し、次に交点X2が検出されたら、サーチ方向に対す
る点Pの位置関係を同一の位置関係に保ちながら、線分
G−Hの検索を開始する(S5)。このような検索を実行
して再び交点X1に辿り着いたら、処理は終了する(S
4)。
Here, if the line segment AB is the closest tangent line, the outer line segment extraction means 2 first starts a search from the start point A to the end point B of the line segment AB, and the first detected intersection point X1 is set as the start point, and when the intersection X2 is detected next, the search for the line segment GH is started while maintaining the same positional relationship of the point P with respect to the search direction (S5). When such a search is executed and the point of intersection X1 is reached again, the process ends (S
Four).

次に、閉図形出手段3は、上述した処理によって抽出
された交点X1〜X4をもとに閉図形を放出し、例えば第3
図(c)に示すようなハッチング処理や閉図形内の情報
抽出処理等の必要な処理を実行する。
Next, the closed figure output means 3 emits a closed figure based on the intersections X1 to X4 extracted by the above-described processing,
Necessary processes such as hatching and information extraction in a closed figure as shown in FIG.

このように、本実施例によれば、端点が連続しない閉
図形に対しても、その交点を順次検索していくことによ
り、閉図形認識処理を行うことができ、交点の座標入力
等の面倒な操作が必要ないという利点がある。
As described above, according to the present embodiment, even for a closed figure whose end points are not continuous, it is possible to perform a closed figure recognition process by sequentially searching for the intersection, and troublesome inputting the coordinates of the intersection. There is an advantage that no complicated operation is required.

なお、本発明は、上述した実施例に限定されるもので
はない。即ち、上記実施例では、最近接線分に交差する
交点を順次求めながら点Pを内部に含む外郭線分を検索
していったが、最近接線分と交差する線分及びこれらの
線分と更に交差する線分を全て求めると共に、それらの
相互の交点を求めておき、これらの線分と点Pとの位置
関係から、閉図形を構成する線分とその交点とを抽出す
るようにしてもよい。
Note that the present invention is not limited to the above-described embodiment. That is, in the above-described embodiment, the outer line segment including the point P is searched while sequentially finding the intersections that intersect the nearest tangent line segment. It is also possible to obtain all the intersecting line segments, obtain their intersections, and extract the line segments constituting the closed figure and their intersections from the positional relationship between these line segments and the point P. Good.

[発明の効果] 以上述べたように、本発明によれば、端点が連続しな
い複数の外郭線によって作成される閉図形についても、
その交点座標を入力することなしに閉図形の内部の一点
を指示するといった極めて簡単な操作で閉図形抽出処理
を行うことができる。
[Effects of the Invention] As described above, according to the present invention, a closed graphic created by a plurality of outlines whose end points are not continuous is also provided.
The closed figure extraction process can be performed by an extremely simple operation such as specifying a point inside the closed figure without inputting the intersection coordinates.

本発明は、特に地図データベース等において、格子に
よって区画された特定領域を抽出する等の用途において
は極めて有効である。
INDUSTRIAL APPLICABILITY The present invention is extremely effective particularly in applications such as extracting a specific region partitioned by a grid in a map database or the like.

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

第1図は本発明の実施例に係る閉図形抽出装置の機能ブ
ロック図、第2図は同装置における外郭線分抽出処理の
流れ図、第3図は同装置の動作を説明するための模式
図、第4図は従来の問題点を説明するための模式図であ
る。 1……座標入力手段、2……外郭線分抽出手段、3……
閉図形抽出手段。
FIG. 1 is a functional block diagram of a closed figure extracting apparatus according to an embodiment of the present invention, FIG. 2 is a flowchart of an outline segment extracting process in the apparatus, and FIG. 3 is a schematic diagram for explaining the operation of the apparatus. FIG. 4 is a schematic view for explaining a conventional problem. 1 ... Coordinate input means, 2 ... Outline segment extraction means, 3 ...
Closed figure extraction means.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】閉図形の内部を指定する座標点を入力する
座標入力手段と、 この手段によって入力された座標点を取り囲む複数の線
分のうち前記入力された座標点に最も近い最近接線分を
検出し、この最近接線分上でのサーチ方向に対する前記
座標点の位置関係を同一に保ちながら前記座標点を取り
囲む複数の線分の交点を順次抽出する外郭線分抽出手段
と、 この手段で抽出された線分の交点の座標から閉図形を抽
出する閉図形抽出手段と を有することを特徴とする閉図形抽出方式。
1. Coordinate input means for inputting a coordinate point designating the inside of a closed figure, and a closest tangent line segment to the input coordinate point among a plurality of line segments surrounding the coordinate point input by this means. Contour line extraction means for sequentially extracting intersections of a plurality of line segments surrounding the coordinate point while maintaining the same positional relationship of the coordinate point with the search direction on the nearest tangent line segment; A closed figure extracting means for extracting a closed figure from the coordinates of the intersection of the extracted line segments.
JP2271664A 1990-10-09 1990-10-09 Closed figure extraction method Expired - Fee Related JP2614356B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2271664A JP2614356B2 (en) 1990-10-09 1990-10-09 Closed figure extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2271664A JP2614356B2 (en) 1990-10-09 1990-10-09 Closed figure extraction method

Publications (2)

Publication Number Publication Date
JPH04147384A JPH04147384A (en) 1992-05-20
JP2614356B2 true JP2614356B2 (en) 1997-05-28

Family

ID=17503171

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2271664A Expired - Fee Related JP2614356B2 (en) 1990-10-09 1990-10-09 Closed figure extraction method

Country Status (1)

Country Link
JP (1) JP2614356B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61221968A (en) * 1985-03-28 1986-10-02 Fuji Electric Co Ltd Drawing reader

Also Published As

Publication number Publication date
JPH04147384A (en) 1992-05-20

Similar Documents

Publication Publication Date Title
JP2559792B2 (en) CAD sketch input drawing method
US5068802A (en) Graphic drawing method and system with input coordinates automatically adjustable
JP2614356B2 (en) Closed figure extraction method
JP2005208740A (en) Sub-image search apparatus and sub-image search program
JPH08194716A (en) Picture processing method and its device
JP2644735B2 (en) Drawing information management method
JP3353212B2 (en) Leader automatic creation method and leader automatic creation system
JP2590327B2 (en) How to manage drawing information
JPH04246785A (en) Graphic preparing device
JPS6344278A (en) Semi-automatic drawing input system
JPH0561924A (en) Retrieval system
JP2977360B2 (en) Ruled line selection method
JP3000749B2 (en) Character editing device
JPH01173178A (en) Extracting system for broken/dotted line string area
JPH09160952A (en) Automatically recognizing method for topography/ equipment symbol
JPH09128126A (en) Controller for field specification
JP2000020558A (en) Interactive constituting components linkage method among plural drawings, interactive automatic design cad system and interactive automatic cad system network
JPS62107378A (en) Drawing data managing system
JPH04372065A (en) Interactive cad device
JPH0644274B2 (en) Arbitrary angle segment recognition system
Gardan et al. Dialogue techniques
JPH09160626A (en) Nc data generation system
JPH0855244A (en) Stereographic data input method
JPS63229568A (en) Moving method for display picture
JPH043274A (en) Vector piece number reduction processing system

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20080227

Year of fee payment: 11

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20080227

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090227

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100227

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees