JPH0822315A - Method for correcting plate material machining graphic data - Google Patents

Method for correcting plate material machining graphic data

Info

Publication number
JPH0822315A
JPH0822315A JP18066094A JP18066094A JPH0822315A JP H0822315 A JPH0822315 A JP H0822315A JP 18066094 A JP18066094 A JP 18066094A JP 18066094 A JP18066094 A JP 18066094A JP H0822315 A JPH0822315 A JP H0822315A
Authority
JP
Japan
Prior art keywords
end point
continuous
line segment
data
line
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.)
Granted
Application number
JP18066094A
Other languages
Japanese (ja)
Other versions
JP2661554B2 (en
Inventor
Kazuo Okumura
一夫 奥村
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP18066094A priority Critical patent/JP2661554B2/en
Publication of JPH0822315A publication Critical patent/JPH0822315A/en
Application granted granted Critical
Publication of JP2661554B2 publication Critical patent/JP2661554B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To automatically correct a CAD figure which has the overlap of segments or a distinctively unnatural projection line into graphic data which can be utilized as an NC data given figure. CONSTITUTION:In an input figure 10 consisting of a group of line data showing segments AB, CD...HA as graphic elements, the end points A, B, C, D... of the successive segments AB, CD, DE... are searched for and traced (S4 and S9) in order. In this tracing process, it is decided whether or not a successive tip point has plural branches (S5) and when branches are decided like the end points C and D, and G and H, an optional end point is selected out of those choice end points to search a successive tip point succeeding to the choice end point (S6, S7, and S4). For example, when there is no successive tip end points like the end points C and G, a return to the branch source end point B or F is made and a tracing process is continued from another choice end point; and the segment parts CB and GF within the ranges of the returns to the branch source end point are deleted (S10).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、一般の自動製図シス
テムで作成したいわゆるCAD図形を、CAM過程の前
処理として、NCデータの自動作成が行い易い図形デー
タに自動修正する板材加工図形データの修正方法に関す
る。
BACKGROUND OF THE INVENTION The present invention relates to a plate material processing graphic data for automatically correcting a so-called CAD graphic created by a general automatic drafting system into graphic data which facilitates automatic creation of NC data as a pre-process of a CAM process. About the correction method.

【0002】[0002]

【従来の技術と発明が解決しようとする課題】従来、パ
ンチプレスやレーザ加工機等による板材加工において、
CAD/CAMシステムの統合化を図り、CAD(コン
ピュータ支援設計)による図形データを、NC工作機械
の加工プログラムの作成用データとしてそのまま利用で
きるようにしたシステムが開発されている。しかし、こ
のようにCAD図形をそのままNCデータ付与図形とし
て利用できるのは、CAD/CAM統合システムを構成
するCADシステムに直接に入力した場合に限られる。
一般の単なる自動製図用のCADシステムで作成したC
AD図形は、外見では正確に作成されていても、図形の
正確度が悪く、NCデータ付与図形として利用すること
ができない。
2. Description of the Related Art Conventionally, in the processing of a sheet material by a punch press, a laser processing machine, or the like,
A system has been developed in which a CAD / CAM system is integrated so that graphic data by CAD (computer-aided design) can be used as it is as data for creating a machining program for an NC machine tool. However, such a CAD figure can be used as it is as an NC data added figure only when it is directly input to a CAD system constituting a CAD / CAM integrated system.
C created by a general CAD system for automatic drawing
Although the AD figure is accurately created in appearance, the accuracy of the figure is poor and cannot be used as the NC data added figure.

【0003】例えば、図6(イ)に示す図形では、線分
PQと線分RSとが重なり部分RQを生じている。この
ような図形は、画面上やプロッタ出力図面上では、1本
の線分PSと同じに見えるが、NCデータへの変換が行
えない。また、図6(ロ)に示す図形では、線分TUの
一部VUが線分WVから突出しているが、このような突
出は、通常の板金加工では明らかに正しくない。しか
し、このような突出部分VUも一般のCAD図形では多
く生じている。そのため従来は、NCデータに変換する
前にCAD図形をオペレータの手動入力で入念に修正し
ており、この修正処理に非常に手間がかかっている。
For example, in the figure shown in FIG. 6A, a line segment PQ and a line segment RS overlap each other to generate a portion RQ. Such a figure looks the same as one line segment PS on a screen or a plotter output drawing, but cannot be converted to NC data. Further, in the graphic shown in FIG. 6B, a part VU of the line segment TU protrudes from the line segment WV, but such a protrusion is clearly not correct in ordinary sheet metal processing. However, such a protruding portion VU often occurs in a general CAD figure. For this reason, conventionally, CAD graphics are carefully corrected by manual input of an operator before conversion into NC data, and this correction processing is extremely troublesome.

【0004】この発明の目的は、線分の重複や、明らか
に不自然な線が突出している図形をNCデータ付与図形
として利用できる図形データに自動修正できる板材加工
図形データの修正方法を提供することである。
An object of the present invention is to provide a plate material machining figure data correction method capable of automatically correcting a figure in which line segments are overlapped or a figure in which an apparently unnatural line is projected is converted into figure data which can be used as an NC data added figure. That is.

【0005】[0005]

【課題を解決するための手段】この発明の板材加工図形
データの修正方法を、実施例に対応する図1を参照して
説明する。この修正方法では、図形要素となる線分(A
B,CD,……HA)を各々示す線データ群からなる入
力図形(10)につき、連続する線分(AB,CD,D
E……)の端点(A,B,C,D……)を順に探索して
辿る(ステップS3,S9)。この辿り過程で、連続先
端点が複数に分岐されているか否かを判定し(S5)、
分岐されている場合に、これら複数の選択枝端点のうち
の任意の端点を選択(S6)してその選択端点の次に連
続する連続先端点を探索する(S4)。連続先端点がな
いときは、分岐元端点に戻って他の選択枝端点へ辿り処
理を続けると共に、前記分岐元端点への戻り範囲の線分
部分を削除する(S10)。
A method of correcting plate material processed graphic data according to the present invention will be described with reference to FIG. 1 corresponding to an embodiment. In this correction method, a line segment (A
B, CD,..., HA), a continuous line segment (AB, CD, D)
...) Are sequentially searched and traced (steps S3, S9). In this tracing process, it is determined whether or not the continuous point is branched into a plurality (S5).
If there is a branch, an arbitrary end point is selected from the plurality of selected end points (S6), and a continuous end point following the selected end point is searched (S4). When there is no continuous end point, the process returns to the branch source end point and continues to the other selected branch end point, and the line segment part of the return range to the branch source end point is deleted (S10).

【0006】この修正方法において、連続元線分(A
B)と連続先線分(CD)とが重複部分(CB)を有し
ている場合は、連続元線分(AB)の連続先側端点
(B)の次に、連続先線分(CD)の両側の端点
(C),(D)を探索する。この両側の端点(C),
(D)のうちの次に連続する連続先端点がない端点
(C)から、分岐元端点である前記連続元線分(AB)
の連続先側端点(B)までの戻り範囲の線分部分(C
B)を削除する。線分部分(CB)の削除は、連続元線
分(AB)と連続先線分(CD)のいずれについて行っ
ても良いが、通常は連続先線分(CD)につき削除す
る。また、前記の修正方法において、連続元線分(E
F)の連続先側端点(F)から連続先線分(GH)が突
出部分(FG)を有して連続している場合は、連続元線
分(EF)の連続先側端点(F)の次に、連続先線分
(GH)の両側の端点(G),(H)を探索し、この両
側の端点(G),(H)のうちの次に連続する連続先端
点がない端点(G)から、分岐元端点である連続元線分
(EF)の連続先側端点(F)までの戻り範囲の線分部
分(GF)を削除する。
In this correction method, a continuous original line segment (A
B) and the continuous front line segment (CD) have an overlapping portion (CB), the continuous front line segment (CD) is next to the continuous front end point (B) of the continuous base line segment (AB). End points (C) and (D) on both sides of () are searched. These two end points (C),
(D) from the end point (C) where there is no next continuous continuous end point, to the continuous original line segment (AB) which is a branch source end point
Of the line segment (C
B) is deleted. The line segment portion (CB) may be deleted for either the continuous original line segment (AB) or the continuous forward line segment (CD), but is usually deleted for the continuous forward line segment (CD). Further, in the above-mentioned correction method, the continuous original line segment (E
When the continuous front line segment (GH) is continuous from the continuous front end point (F) of FIG. F) with a protruding portion (FG), the continuous front end point (F) of the continuous original line segment (EF). , The end points (G) and (H) on both sides of the continuous front segment (GH) are searched, and the end point having no next continuous end point among the end points (G) and (H) on both sides is searched. The line segment (GF) in the return range from (G) to the continuous destination end point (F) of the continuous original line segment (EF), which is the branch source end point, is deleted.

【0007】[0007]

【作用】この修正方法によると、連続元線分(AB)と
連続先線分(CD)とが重複部分(CB)を有している
場合や、連続先線分(GH)が突出部分(FG)を有し
て連続している場合も、このような重複部分(CB)や
突出部分(FG)を無くす処理が、自動的に行える。
According to this correction method, the continuous original line segment (AB) and the continuous forward line segment (CD) have an overlapping portion (CB), or the continuous forward line segment (GH) has a protruding portion (CB). Even in the case of being continuous with FG), the processing for eliminating such an overlapping portion (CB) and a protruding portion (FG) can be automatically performed.

【0008】[0008]

【実施例】この発明の一実施例を図1ないし図5に基づ
いて説明する。図2はこの板材加工図形データの変換方
法を使用するCAD/CAM/CAEシステムの概念図
である。ホストコンピュータ1から通信回線を介して、
このデータ修正方法を採用するデータ変換手段2にCA
D図形のデータを入力する。その変換した図形出力をC
AM手段3に入力する。データ変換手段2はコンピュー
タシステムからなる。データ変換手段2への入力は、プ
ロッピーディスク等の記録媒体を介して行っても良い。
CAM手段3は、データ変換手段2から入力された図形
データを基にして工具配置等を自動的に演算し、NCデ
ータを作成する。作成したNCデータは、通信回線によ
りNC工作機械4に入力する。NC工作機械4は、タレ
ットパンチプレスやレーザ加工機等の板材加工機であ
る。データ変換手段2では、図1に手順を示す図形デー
タの修正と、その前処理や後処理等を行う。前処理とし
ては、全ての円データに対する処理済みフラグ設定等を
行う。後処理としては、例えば、複数の線分が連続する
線データを一つの連続線データとしてデータ形式を変換
する処理や、オペレータの入力操作による外抜き・内抜
きの区別指示付与等を必要に応じて行う。前記連続線化
の変換処理としては、本出願人が提案した板材加工図形
データの変換方法(特願平3−152353)等が採用
できる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a conceptual diagram of a CAD / CAM / CAE system that uses this method of converting plate material processed graphic data. From the host computer 1 via a communication line,
The data conversion means 2 adopting this data correction method includes a CA
Enter the data of the D figure. The converted graphic output is C
Input to AM means 3. The data conversion means 2 comprises a computer system. The input to the data conversion means 2 may be performed via a recording medium such as a Proppy disk.
The CAM unit 3 automatically calculates a tool arrangement and the like based on the graphic data input from the data conversion unit 2 and creates NC data. The created NC data is input to the NC machine tool 4 via a communication line. The NC machine tool 4 is a plate material processing machine such as a turret punch press or a laser processing machine. The data converting means 2 corrects the graphic data whose procedure is shown in FIG. 1 and performs pre-processing and post-processing thereof. As pre-processing, processing completion flag setting and the like are performed on all the circle data. As the post-processing, for example, a process of converting the data format of line data in which a plurality of line segments are continuous as one continuous line data, an instruction of distinguishing between outside and inside by an operator's input operation, and the like are given as necessary. Do it. As the conversion processing of the continuous linearization, a conversion method of plate material processing graphic data proposed by the present applicant (Japanese Patent Application No. 3-152353) can be adopted.

【0009】以下、この板材加工図形データの修正方法
を説明する。図1(イ)はこの実施例の修正方法を示す
流れ図である。図1(ロ)は、修正するCAD図形の一
例を示し、図1(ハ)はその端点辿り過程の例を示す。
図1(ロ)には1つの閉図形のみを示したが、通常は多
数の閉図形や開図形を構成する各線データや単独線の線
データが順不同で同じファイルに存在する。また、CA
D図形における各線データの内部構造は、例えば図3に
示す構造とする。直線の場合は、線データD1のように
始点の座標データ部d11と終点の座標データ部d12とを
有する。円弧の場合は、線データD2のように始点の座
標データ部d21と、終点の座標データ部d22と、中心角
のデータ部d23とを有する。
Hereinafter, a method of correcting the plate material processed graphic data will be described. FIG. 1A is a flowchart showing a correction method of this embodiment. FIG. 1B shows an example of a CAD figure to be corrected, and FIG. 1C shows an example of an end point tracing process.
Although only one closed figure is shown in FIG. 1B, usually, line data of a large number of closed figures and open figures and line data of a single line exist in the same file in no particular order. Also, CA
The internal structure of each line data in the D figure is, for example, the structure shown in FIG. In the case of a straight line, it has a start point coordinate data part d11 and an end point coordinate data part d12 like line data D1. In the case of a circular arc, like a line data D2, it has a start point coordinate data section d21, an end point coordinate data section d22, and a central angle data section d23.

【0010】次に、図1(ロ)のCAD図形10を例に
とって、図1(イ)に示す修正方法を説明する。この図
形10は、図形要素となる線分AB,CD,DE,E
F,GH,HAからなる閉図形とする。線分DEは円弧
であり、他の線分は全て直線である。線分ABは線分C
Dと一部が重なり、線分GHは線分EFから一部が突出
している。図1(イ)は、一つの閉図形分の処理を示
し、この処理を、図形データファイル中の全ての線デー
タが処理済みとなるまで繰り返す。この修正方法は、図
形の連続する線分の端点を順に探索して辿る過程で、前
記のような線分の重なり部分BCや突出部分FGを削除
する方法である。まず、辿り処理を開始する任意の端点
を線データファイルから選んで設定し(ステップS
1)、かつ辿り方向を設定する(S2)。辿り方向は、
例えば前記の開始端点の選択に選んだ線分の他端側へ辿
るように設定する。図形10を時計回りに辿るか、また
は反時計回りに辿るかの設定によって辿り方向を設定し
ても良い。この例では開始端点をAとし、線分AB側に
辿るように設定している。辿り方向の設定後、通過済み
の判定(S3)をした後、連続先端点の探索(S4)を
行う。通過済みの判定(S3)は、一つの閉図形に対す
る最後の処理に必要となる判定であり、その内容は後に
説明する。
Next, the correction method shown in FIG. 1A will be described by taking the CAD figure 10 of FIG. 1B as an example. This figure 10 is composed of line segments AB, CD, DE, E
A closed figure consisting of F, GH, and HA is assumed. The line segment DE is an arc, and all other line segments are straight lines. Line segment AB is line segment C
A part of D overlaps with the line segment GH, and a part of the line segment GH protrudes from the line segment EF. FIG. 1A shows processing for one closed figure, and this processing is repeated until all the line data in the figure data file have been processed. This correction method is a method of deleting the overlapping portion BC or the protruding portion FG as described above in the process of sequentially searching and tracing end points of continuous line segments of the figure. First, an arbitrary end point for starting the tracing process is selected from the line data file and set (step S).
1) And a tracing direction is set (S2). The tracing direction is
For example, a setting is made so as to follow the other end of the line segment selected for selecting the start end point. The tracing direction may be set by setting whether to trace the figure 10 clockwise or counterclockwise. In this example, the start end point is set to A, and it is set to follow the line segment AB. After the tracing direction is set, it is determined that the object has passed (S3), and then the continuous leading end point is searched (S4). The judgment of passing through (S3) is a judgment necessary for the last processing for one closed figure, and the content will be described later.

【0011】連続先端点の探索過程(S4)は、大別し
て3種類の探索方法を含み、処理経過等に応じて対応す
る方法が選択され実行される。その第1の探索方法は、
一端の端点が連続元端点(開始端点を含む)として設定
されている辿り中の線分につき、その線データに基づ
き、中間に他の線分の端点または他の線分との交点があ
るか否かの探索を行い、中間に端点または交点が有る場
合は、その端点または交点を連続先端点とし、無い場合
は他端の端点を連続先端点とする方法である。ただし、
辿り中の線分と一部が重なり状態にある線分は無視す
る。第2,第3の探索方法は、後に、該当する図形部分
と共に説明する。いまは、第1の探索方法が実行され、
線分ABの線データから、他端の端点である端点Bが連
続先端点として探索される。
The search process (S4) for continuous leading end points roughly includes three kinds of search methods, and a corresponding method is selected and executed according to the processing progress and the like. The first search method is
For a tracing line segment whose end point is set as a continuous source end point (including the start end point), based on the line data, is there an end point of another line segment or an intersection with another line segment in the middle based on the line data? A search is performed to determine whether or not there is an end point or intersection in the middle, and that end point or intersection is set as a continuous end point. If there is no end point or intersection, the end point of the other end is set as a continuous end point. However,
Line segments that partially overlap with the line segment being traced are ignored. The second and third search methods will be described later together with the corresponding graphic part. Now the first search method is being executed,
From the line data of the line segment AB, an end point B which is the other end point is searched for as a continuous end point.

【0012】ついで、このようにして探索された端点が
複数あるか否か、すなわち端点を選択する選択枝がある
か否かを判定する(S5)。いまは、選択された端点が
端点Bの一つであるため、選択枝無しであり、ステップ
S8へ進む。ステップS8では、前記の探索(S4)の
結果、連続先端点が有ったか否かを判定する。いまは端
点Bが探索できたため、連続先端点有りであり、ステッ
プS9に進んで、その連続先端点Bが連続元端点として
設定される。このように連続元端点が新たに設定される
と、ステップS3に戻り、ステップS4で次の連続先端
点の探索を行う。今回は第2の探索方法が実行される。
第2の探索方法は、まず連続元端点を通る別の線分を探
索し、その探索された線分の線データから端点を選ぶ処
理である。別の線分の一端に連続元端点が位置するとき
は、その別の線分の他端が連続先端点とされ、別の線分
の中間に連続元端点が位置するときは、その別の線分の
両端が各々連続先端点とされる。なお、前記の別の線分
を探索する過程において、直前に辿った線分は探索対象
から除外する。また、第2の探索方法においても、探索
された線分の端点を直ちに連続先端点とせずに、その探
索された線分につき、前記第1の探索方法と同様に、中
間にさらに他の線分の端点または交点があるか否かを探
索し、そのような点がある場合は、その点を連続先端点
としても良い。いまは、連続元端点Bを通る線分CDが
探索され、この線分CDの両端の端点である二つの端点
C,Dが探索されることになる。したがって、次の選択
枝有無の判定過程(S5)では、「有り」となってステ
ップS6へ進み、端点Cと端点Dのいずれか一つの端点
が選択される。選択は任意に行えば良いが、処理の便利
のために適宜の基準を定めておく。この選択過程(S
6)で、いま端点Cが選択されたとすると、その選択さ
れた端点Cを、次の連続元端点の設定過程(S7)で連
続元端点として設定する。
Then, it is judged whether or not there are a plurality of end points thus searched, that is, whether or not there is a selection branch for selecting the end points (S5). Now, since the selected end point is one of the end points B, there is no selection, and the process proceeds to step S8. In step S8, it is determined whether or not there is a continuous tip point as a result of the search (S4). Since the end point B can now be searched, there is a continuous front end point, and the process proceeds to step S9, where the continuous front end point B is set as the continuous base end point. When the continuous source end point is newly set as described above, the process returns to step S3, and a search for the next continuous end point is performed in step S4. This time, the second search method is executed.
The second search method is a process of first searching for another line segment passing through the continuation source end points and selecting the end point from the line data of the searched line segment. When the continuous original end point is located at one end of another line segment, the other end of the other line segment is regarded as a continuous distal end point, and when the continuous original end point is located in the middle of another line segment, the other original end point is located. Both ends of the line segment are set as continuous tip points. In the process of searching for another line segment, the line segment traced immediately before is excluded from the search target. Also, in the second search method, the end point of the searched line segment is not immediately set as a continuous end point, and the searched line segment is further interposed in the same manner as in the first search method. It is searched whether there is an end point or an intersection point of the minute, and if there is such a point, that point may be set as a continuous front end point. Now, a line segment CD passing through the continuous original end point B is searched, and two end points C and D which are both end points of the line segment CD are searched. Therefore, in the next step of determining the presence / absence of the selection branch (S5), the result is "present" and the process proceeds to step S6, and either one of the endpoints C and D is selected. The selection may be made arbitrarily, but an appropriate criterion is determined for the convenience of the processing. This selection process (S
In step 6), assuming that the end point C has been selected, the selected end point C is set as a continuous original end point in the next process of setting a continuous original end point (S7).

【0013】この後、再びステップS3に戻り、ステッ
プS4の探索過程で端点Cに対する連続先端点を探索す
る。なお、ステップ3の判定過程において、直前に探索
した線分または端点は判断対象から除外する。そのた
め、図10の例では、端点Cが通過済みの線分AB上に
あっても、「否」と判定され、ステップ4へ進む。ま
た、図形10の例では、直前に辿った線分ABを除く
と、端点Cを通る線分がなく、したがって端点Cに対す
る連続先端点はないため、この探索過程(S4)では連
続先端点が見つからず、選択枝有無の判定過程(S5)
では無し側へ進み、連続先端点有無の判定過程(S8)
においても無しと判定される。このように連続先端点が
無い場合は、ステップS10の削除過程へ進み、この過
程で分岐元端点である直前の連続元端点まで戻り、その
戻り範囲の線分部分を削除する。この戻り処理は、連続
元端点を再び直前の連続元端点に設定し直す処理とな
る。この例では端点Bへ戻り、線分CBの範囲を削除す
ることになる。この削除は、連続元と連続先の両方の線
分AB,CDにつき行うのではなく、いずれか一方の線
分AB,CDにつき行う。いずれにつき削除するかは予
め所定の基準で定めておく。この実施例では、連続先側
の線分CDにつき削除を行うように設定してある。線分
部分CBの削除は、線分CDの線データにおける一方の
端点Cの座標値を端点Bの値に変更することで行っても
良く、また線分CDの線データを削除し、新たに線分B
Dの線データをファイルに登録しても良い。
Thereafter, the flow returns to step S3, and a continuous leading point with respect to the end point C is searched for in the search process of step S4. In the determination process of step 3, the line segment or the end point searched immediately before is excluded from the determination target. Therefore, in the example of FIG. 10, even if the end point C is on the line segment AB that has passed, it is determined to be “No” and the process proceeds to Step 4. Also, in the example of FIG. 10, there is no line segment passing through the end point C except for the line segment AB traced immediately before, and thus there is no continuous end point with respect to the end point C. Therefore, in this search process (S4), the continuous end point is Not found, process of determining the presence / absence of selection (S5)
Then, the process proceeds to the non-existence side, and the process of determining the presence or absence of the continuous leading end point (S8)
Is determined to be none. If there is no continuous leading end point, the process proceeds to the deleting step of step S10. In this step, the process returns to the immediately preceding continuous starting end point which is the branching end point, and the line segment portion in the return range is deleted. This return process is a process of resetting the continuation source endpoint to the immediately preceding continuation source endpoint. In this example, returning to the end point B, the range of the line segment CB is deleted. This deletion is not performed for both the line segments AB and CD of the continuous source and the continuous destination, but is performed for one of the line segments AB and CD. Which is to be deleted is determined in advance by a predetermined standard. In this embodiment, it is set so that the line segment CD on the continuation destination side is deleted. The line segment CB may be deleted by changing the coordinate value of one end point C in the line data of the line segment CD to the value of the end point B. Alternatively, the line data of the line segment CD may be deleted and newly deleted. Line segment B
The line data of D may be registered in a file.

【0014】直前の連続元端点Bまで戻ると、再度ステ
ップS3を経て、連続先端点の探索(S4)を行う。こ
の場合の探索過程(S4)は、第3の探索方法、すなわ
ち前回の複数探索された端点のうちの残りの端点を選択
する方法が採られる。いまは端点Dが探索されることに
なる。この端点Dの探索の後、探索端点は一つであるた
め、選択枝有無の判断過程(S5)からステップS8,
S9へと進み、連続元端点をDに設定して(S9)、ス
テップS3,S4の過程を繰り返し、次の連続先端点の
探索(S4)を行う。図形10では、このときに線分D
Eが探索されて1個の端点Eが探索されることになり、
ステップS5,S8の各判定過程を経て、この端点Eを
連続元端点に設定し(S9)、次の辿り処理が続けられ
る。
When returning to the immediately preceding continuation end point B, the step S3 is performed again to search for the continuation end point (S4). In the search step (S4) in this case, a third search method, that is, a method of selecting the remaining end point from the last plurality of searched end points is adopted. Now, the end point D is searched. After the search for the end point D, there is only one search end point.
Proceeding to S9, the continuous original end point is set to D (S9), and the processes of steps S3 and S4 are repeated to search for the next continuous end point (S4). In figure 10, at this time the line segment D
E is searched to find one end point E,
After the respective determination processes in steps S5 and S8, the end point E is set as the continuous original end point (S9), and the next tracing process is continued.

【0015】前記の分岐元端点Bから二つの端点C,D
が探索されたときに、正しい端点Dを選択(S6)した
場合は、その端点Dを連続元端点に設定(S7)して次
の連続先端点の探索(S4)を行ったときに、端点Eが
見つかることになる。この場合はそのまま端点Eを連続
元端点に設定して辿り処理を続ける。線分の重複範囲B
Cの削除は、後述のように一つの閉図形の処理の最後の
過程(S13)で行う。いずれの場合も、図1の図形1
0では、端点Eが探索されて連続元端点に設定された
後、次の連続先端点の探索過程(S4)で線分EFが探
索され、その線データから一つの端点Fが探索されるこ
とになる。探索された端点Fは、ステップS5,S8を
経て、連続元端点として設定される(S9)。
From the branch source end point B, two end points C and D
When the correct end point D is selected (S6) when is searched, the end point D is set as the continuous original end point (S7), and when the next continuous end point is searched (S4), the end point is determined. E will be found. In this case, the end point E is directly set as the continuation source end point and the tracing process is continued. Line segment overlap range B
The C is deleted in the final step (S13) of the processing of one closed figure, as described later. In either case, figure 1 in Figure 1
In the case of 0, after the end point E is searched and set as the continuous end point, the line segment EF is searched in the search process of the next continuous front end point (S4), and one end point F is searched from the line data. become. The searched end point F is set as a continuous original end point through steps S5 and S8 (S9).

【0016】この後、ステップS3に戻り、次の探索過
程(S4)で連続元端点Fに対して探索したときは、端
点Fを通る線分GHが探索され、この線分GHの両端の
端点である二つの端点G,Hが探索されることになる。
この場合は、次の選択枝有無の判定過程(S5)では、
「有り」となって選択過程(S6)へ進み、端点Gと端
点Hのいずれか一つの端点が選択される。このとき、端
点Gが選択されたとすると、その選択された端点Gを連
続元端点として設定し(S7)、ステップS3に戻っ
て、次の探索過程(S4)で端点Gに続く連続先端点を
探索する。このとき、端点Gに続く端点はないため、S
5,S8の各判定過程から削除過程(S10)に進み、
分岐元端点である直前の連続元端点Fまで戻ると共に、
その戻り範囲の線分部分GFを削除する。この削除も、
線分GHの線データにおける一方の端点Gの座標値を端
点Fの値に変更することで行っても良く、また線分GH
の線データを削除し、新たに線分FHの線データをファ
イルに登録しても良い。
Thereafter, returning to step S3, when a search is made for the continuous source end point F in the next search step (S4), a line segment GH passing through the end point F is searched, and the end points at both ends of this line segment GH are searched. Are searched for the two end points G and H.
In this case, in the next step (S5) of determining the presence or absence of the option,
"Yes" and the process proceeds to the selection process (S6), and one of the end points G and H is selected. At this time, assuming that the end point G is selected, the selected end point G is set as a continuous original end point (S7), and the process returns to step S3, where the continuous end point following the end point G is set in the next search process (S4). Explore. At this time, since there is no end point following the end point G, S
From each determination process of S5 and S8, the process proceeds to the deletion process (S10),
While returning to the immediately preceding continuous endpoint F which is the branch source endpoint,
The line segment GF in the return range is deleted. This deletion is also
This may be performed by changing the coordinate value of one end point G in the line data of the line segment GH to the value of the end point F.
May be deleted and new line data of the line segment FH may be registered in the file.

【0017】直前の連続元端点Fまで戻ると、再度ステ
ップS3を経て、端点Fに続く連続先端点の探索(S
4)を行う。この場合の探索処理(S4)は、前回の複
数探索された端点のうちの残りの端点を選択する処理と
なり、いまは端点Hが探索されることになる。この端点
Hの探索の後、探索端点は一つであるため、選択枝有無
の判定過程(S5)からステップS8,S9へと進み、
連続元端点をHに設定して(S9)、ステップS3,S
4の過程を繰り返し、次の連続先端点の探索(S4)を
行う。図形10では、このときに線分HAが探索されて
1個の端点Aが探索されることになり、ステップS5,
S8の判定過程を経て、この端点Aが連続元端点に設定
される。前記の端点G,Hの選択過程(S6)で正しい
端点Hが選択された場合は、そのまま辿り処理が続けら
れ、この場合も、線分HAが探索されて端点Aが連続元
端点に設定される。
When the process returns to the immediately preceding continuation source end point F, the process goes through step S3 again to search for a continuation front end point following the end point F (S10).
Perform 4). The search process (S4) in this case is a process of selecting the remaining end point from the previously searched end points, and the end point H is now searched. After the search for the end point H, since there is only one search end point, the process proceeds to steps S8 and S9 from the step (S5) of determining whether or not there is a selection.
The continuous source end point is set to H (S9), and steps S3 and S
The process of 4 is repeated to search for the next continuous front end point (S4). In the figure 10, at this time, the line segment HA is searched, and one end point A is searched.
Through the determination process of S8, this endpoint A is set as the continuation source endpoint. If the correct end point H is selected in the end point G and H selection process (S6), the tracing process is continued, and in this case also, the line segment HA is searched and the end point A is set as the continuous original end point. You.

【0018】いずれの場合も、今回設定された連続元端
点Aは開始端点であるため、ステップS3の判定過程で
通過済みの端点と判定され、ステップS11の判定過程
に進む。すなわち、辿り処理により閉図形10を1周し
て通過済みの線分または端点に戻ると、辿り処理を終
え、所定の後処理(S11〜S14)の後、一つの閉図
形に対する修正が終了する。ステップS3は、この辿り
完了の判定のために、連続元端点が通過済みの線分また
は端点に連続するか否かの判定を行う。なお、辿りの通
過済みの線分には、その線データに適宜の過程で通過済
みフラグを設定しておくことで、通過済みの線分または
端点であることが区別できる。
In any case, since the continuation source end point A set this time is the starting end point, it is determined that the end point has already passed in the determination process of step S3, and the process proceeds to the determination process of step S11. That is, when the tracing process returns to the passed line segment or the end point after making one round of the closed graphic 10, the tracing process is completed, and after a predetermined post-process (S11 to S14), the correction for one closed graphic is completed. . In step S3, in order to determine the completion of the tracing, it is determined whether or not the continuation source endpoint is continuous with the passed line segment or endpoint. It should be noted that by setting a passed flag in the line data of a line segment that has been passed through in an appropriate process, it is possible to distinguish a line segment that has passed or an end point.

【0019】ステップS11以降の後処理には、未通過
部分の削除(S13)と、後述の始端部削除(S14)
の処理が含まれる。図1の図形10の場合は、処理開始
端点Aに戻るため、始端部削除(S14)の処理は不要
であり、直接にステップS12へ進む。ステップS12
では、いままで端点が探索された線分のうち、未通過部
分が有るか否かが判定され、未通過部分がある場合は、
次のステップの削除過程(S13)で、その未通過部分
が削除される。すなわち、線分の未通過部分は端点の選
択枝があるときに、選択過程(S6)で正しい端点を選
んだ場合に生じる。例えば、端点C,Dのいずれかを選
ぶときに端点Dを選んだときは線分部分BCが未通過部
分となり、また端点G,Hのいずれかを選択するときに
端点Hを選択したときは、線分部分FGが未通過部分と
なる。このような未通過の線分部分BCや線分部分FG
が、ステップS13の処理で削除される。この削除処理
の後、一つの閉図形に対する図1(イ)の流れ図の方法
による修正が終了する。ステップS12の判定過程で、
未通過部分が無いと判定されたときは、そのまま図1
(イ)処理を終える。例えば、端点の選択枝があるとき
に、選択過程(S6)でいずれも誤った選択をしたとき
は、既に重複部分や突出部分が削除されているため、未
通過部分が無く、また図形が正確に描かれていた場合も
未通過部分が生じず、これらの場合は、未通過部分有無
の判定過程(S12)の後、そのまま同図の処理を終え
る。
In the post-processing after step S11, a part that has not passed through is deleted (S13), and a starting end part described later (S14).
Is included. In the case of the graphic 10 in FIG. 1, since the process returns to the processing start end point A, the process of the start end deletion (S14) is unnecessary, and the process proceeds directly to step S12. Step S12
Then, it is determined whether or not there is an unpassed portion of the line segments for which the endpoints have been searched.
In the deletion step (S13) of the next step, the unpassed portion is deleted. That is, the non-passing portion of the line segment occurs when a correct end point is selected in the selection process (S6) when there is a selection of the end point. For example, when the end point D is selected when selecting one of the end points C and D, the line segment BC becomes a non-passing part. When the end point H is selected when selecting one of the end points G and H, , The line segment portion FG becomes a non-passing portion. Such a non-passed line segment BC or line segment FG
Are deleted in the process of step S13. After this deletion process, the correction of one closed figure by the method of the flowchart of FIG. In the determination process of step S12,
When it is determined that there is no unpassed portion, FIG.
(B) Finish the process. For example, if there is a choice of end points and any of the wrong choices are made in the selection process (S6), the overlapping portion or the protruding portion has already been deleted, so there is no unpassed portion and the figure is accurate. No unpassed portion is generated even in the case of drawing in this case, and in these cases, the process of FIG.

【0020】ステップS14の始端部削除の処理は、例
えば、図5(イ),(ロ)に示す図形のように、閉図形
から突出した線分部分ABがある場合や、図5(ハ)に
示す図形のように重複部分AFがある場合に、その突出
した部分や重複部分から辿りを開始したときの処理を示
す。この処理では、辿ってきた線分の端点が、通過済み
の線分または端点に戻った場合に、その戻り点から開始
端点までの線分部分を削除する処理を行う。例えば、図
5(イ)に示す線分AC,CD,DE,EBからなる図
形では、処理開始端点Aから端点C,D,E,Bと辿っ
たとき、連続元端点に設定(S9)されている端点Bは
通過済みの線分AC上の点であるため、通過済みの判定
過程(S3)で通過済みと判定されてステップS11へ
進む。ここで、端点Bは処理開始端点ではないため、ス
テップS14に進み、線分ACのうちの線分部分ABが
削除される。すなわち、戻り点である端点Bと処理開始
端点Aとの間の線分部分ABを削除する。図5(ロ)
は、線分AB,BC,CD,DE,EBからなる図形で
あり、この例の場合は端点Eの次に通過済みの端点Bに
戻ることになる。端点Bは処理開始端点ではないため、
この場合も始端部削除過程(S14)で戻り点である端
点Bと処理開始端点Aまでの線分部分ABを削除する。
図5(ハ)は、線分AB,BC,CD,DE,EFから
なる図形であり、この例の場合は、重複部分上の端点A
から辿りを開始した場合に、端点Eの次に通過済みの線
分AB上の点Fに戻ることになる。この戻り点Fは処理
開始端点ではないため、この場合も始端部削除過程(S
14)で戻り点である端点Fと処理開始端点Aまでの線
分部分AFを削除する。このように削除した後、前記の
未通過部分の有無の判定過程(S12)へ進む。
The start end deletion process in step S14 is performed, for example, when there is a line segment AB protruding from the closed figure as shown in FIGS. 5A and 5B, or in FIG. In the case where there is an overlapping portion AF as in the graphic shown in FIG. In this process, when the end point of the traced line segment returns to the line segment or end point that has already passed, the line segment part from the return point to the start end point is deleted. For example, in the figure composed of the line segments AC, CD, DE, and EB shown in FIG. 5A, when the process starts from the processing end point A to the end points C, D, E, and B, it is set to the continuous source end point (S9). Since the end point B is a point on the line segment AC that has passed, it is determined that passing has been completed in the passing determination step (S3), and the process proceeds to step S11. Here, since the end point B is not the processing start end point, the process proceeds to step S14, and the line segment portion AB of the line segment AC is deleted. That is, the line segment portion AB between the return point B and the processing start endpoint A is deleted. Fig. 5 (b)
Is a figure composed of line segments AB, BC, CD, DE, and EB, and in the case of this example, it returns to the end point B which has passed after the end point E. Since the end point B is not the processing start end point,
Also in this case, the line segment AB between the end point B, which is the return point, and the processing start end point A is deleted in the start end deletion step (S14).
FIG. 5C is a figure composed of line segments AB, BC, CD, DE, and EF. In this example, an end point A on the overlapping portion is shown.
When the tracing is started from, the point returns to the point F on the line segment AB which has passed after the end point E. Since the return point F is not the processing start end point, the start end part deletion process (S
In step 14), the line segment AF between the end point F which is the return point and the processing start end point A is deleted. After the deletion, the process proceeds to the step of determining the presence or absence of the unpassed portion (S12).

【0021】このようにして、1つの閉図形に対する修
正処理が完了すると、その閉図形の各線データに処理済
みフラグを設定し、次の各閉図形の修正処理を前記と同
様に順次繰り返す。この場合、処理済みフラグの設定さ
れた線データは、連続先端点の探索過程(S4)や、開
始端点の設定過程(S1)における探索や設定の対象か
ら除外する。この図形データの修正方法によると、この
ように連続する端点を順次辿る過程で、不適切な選択枝
端点を選んだ場合に、戻り処理、いわゆるバックトラッ
クを行ってその戻り部分の削除を行うようにしたため、
線分の一部重複等のように、見かけからは何処に問題が
あるかわからない図形や、明らかに不自然な線の突出が
生じている図形を、そのような重複部分や突出部分のな
い図形に自動修正できる。すなわち、NCデータ付与図
形として利用し易いCAM用の図形データとすることが
できる。また、修正対象となる図形は、円弧等の曲線を
含む図形でも良く、円弧の重なり部分等も前記と同様に
して除去できる。
When the correction processing for one closed figure is completed in this way, a processed flag is set for each line data of the closed figure, and the correction processing for the next closed figure is repeated in the same manner as described above. In this case, the line data for which the processed flag is set is excluded from the search and setting targets in the process of searching for the continuous end point (S4) and the process of setting the start end point (S1). According to this method of correcting graphic data, when an inappropriate selection branch end point is selected in the process of sequentially tracing consecutive end points in this way, return processing, so-called backtracking, is performed to delete the return portion. Because
Figures with no apparent problem, such as partially overlapping line segments, or figures with apparently unnatural line protrusions, are drawn without such overlapping or protruding parts. Can be automatically corrected. That is, CAM graphic data that can be easily used as the NC data added graphic can be obtained. Further, the graphic to be corrected may be a graphic including a curve such as an arc, and the overlapping portion of the arc can be removed in the same manner as described above.

【0022】なお、前記の連続先端点の探索過程(S
4)において、連続元端点を通る線分とは、完全な通過
に限らず、図4に拡大して示すように、連続元端点Lか
ら僅かな距離の所定範囲α内に連続先線分nの端点P′
や連続先線分m,rの中間部分がある場合も含む。所定
範囲は加工種類等に応じて適宜設定しておくことが好ま
しい。このように設定しておくことで、例えば図1
(ロ)の線分ABが端点Cから少しだけ離れている場合
(線分CDが端点Bから少しだけ離れている場合)、す
なわち線分ABと線分CDとが完全に重複していない場
合でも、線分の重複とみなし、その重複部分を削除する
処理が行える。その場合、線分ABを端点Cを通過する
ように移動させるか、線分CDを端点Bを通過するよう
に移動させるかの処理を行うが、いずれの線分を移動さ
せるかは、これらの線分に付された寸法線(図示せず)
の記入に基づき定めることが望ましい。また、前記の探
索過程(S4)で、連続元の線分上に他の線分の端点が
あるか否かを探索するときも、連続元線分から僅かに離
れた所定幅内に端点がある場合は、連続元線分上に他の
線分の端点があるとする。
It should be noted that the process of searching for the above continuous tip (S
In 4), the line segment passing through the continuous source end point is not limited to the complete passage, and as shown in an enlarged view in FIG. End point P '
And the case where there is an intermediate portion between the continuous front line segments m and r. It is preferable that the predetermined range is appropriately set according to the type of processing or the like. By setting in this way, for example, FIG.
(B) When the line segment AB is slightly away from the end point C (when the line segment CD is slightly away from the end point B), that is, when the line segment AB and the line segment CD do not completely overlap. However, it can be considered that the line segment is an overlap, and a process of deleting the overlap portion can be performed. In this case, a process of moving the line segment AB so as to pass through the end point C or moving the line segment CD so as to pass through the end point B is performed. Dimension line attached to line segment (not shown)
It is desirable to determine based on the entry. Also, in the search process (S4), when searching for the end points of other line segments on the line segment of the continuation element, the end points are within a predetermined width slightly apart from the continuation source line segment. In this case, it is assumed that there is an end point of another line segment on the continuous original line segment.

【0023】次に、同実施例の図1(イ)に示す修正方
法を実施するにつき、辿り方向や、図形例を前記と変え
た場合の各例につき説明する。図1(ロ)の図形10を
前記と逆方向に辿った場合、端点Hを連続元端点に設定
して線分HG上を辿って探索(S4)するときに、途中
で他の線分FEの一つの端点Fが探索される。このとき
は、ステップS5,S8の判定の後、端点Fを連続元端
点として設定し(S9)、ステップS3に戻った後、次
の連続先端点の探索過程(S4)で、端点Gと端点Eの
二つの端点が探索されることになる。したがって、前記
の各場合と同様に、選択枝有無の判定過程(S5)か
ら、ステップS6に進んで選択枝のうちの任意の端点G
またはEが選択されることになる。端点Gを選択した場
合は、連続先端点がないため、次の連続先端点の探索過
程(S4)の後、判定過程S5,S8を経て、削除過程
(S10)に進み、直前の連続元端点Fまで戻ると共
に、戻り部分である線分部分GFを削除する。端点G,
Eのうち、端点Eを選択した場合は、そのまま辿り処理
が続けられ、辿り処理の終了後に前記と同様に削除過程
(S13)で線分部分GFが削除される。
Next, a description will be given of each example in the case where the tracing direction and the graphic example are changed from those described above in implementing the correction method shown in FIG. When the figure 10 of FIG. 1B is traced in the opposite direction to the above, when the end point H is set to the continuous original end point and the search is performed by tracing the line segment HG (S4), another line segment FE is in the middle. Is searched for one end point F. At this time, after the determinations in steps S5 and S8, the end point F is set as the continuous original end point (S9), and after returning to step S3, the end point G and the end point are searched in the next continuous end point search process (S4). The two end points of E will be searched. Therefore, as in the above-described cases, the process proceeds to step S6 from the step (S5) of determining the presence / absence of a selected branch, and proceeds to an arbitrary end point G of the selected branch.
Or E will be selected. When the end point G is selected, there is no continuous end point, and therefore, after the next continuous end point search process (S4), the determination process S5 and S8 are performed, and then the deletion process (S10) is performed. While returning to F, the line segment part GF which is the return part is deleted. End point G,
When the end point E is selected from E, the tracing process is continued, and after the tracing process is completed, the line segment GF is deleted in the deletion process (S13) as described above.

【0024】図5(ニ)は、線分AB,BC,CD,D
E,EAからなる閉図形に、不要な線分FG,GH,D
J,IK,KMが書き添えられた図形の例である。この
図形では、端点Aから線分ABの方向へ辿りを開始した
ときに、図1の探索過程(S4)でまず端点Fが探索さ
れ、次に二つの端点B,Gが探索される。このとき、選
択過程(S6)で端点Gを選択したとすると、端点Hま
で辿られ、ここで連続する端点が無くなる。この場合
は、まず探索過程(S4)からステップS5,S8を経
て、削除過程(S10)で、端点Gまで戻ると共に、戻
り範囲の線分GHが削除される。次に、端点Gを連続元
端点として探索(S4)した後、再度連続先端点が無い
としてステップS5,S8から削除過程(S10)で端
点Fまで戻り、戻り範囲の線分GFが削除される。この
後、端点B側へ辿りが続けられる。なお、ステップS3
の通過済みの判定過程は、戻り時は全て未通過と判定さ
れるものとしておく。前記の端点Bと端点Gとの選択過
程(S6)で端点Bを選んだ場合は、そのまま辿り処理
が続けられ、最後の削除過程(S13)で未通過の線分
FG等が削除されることになる。端点Dから端点Jや端
点Mまで辿りを続けた場合も、前記と同様に戻りを繰り
返され、最後の削除過程(S13)で、不要な線分D
J,IK,KMが削除される。
FIG. 5D shows the line segments AB, BC, CD, D
Unnecessary line segments FG, GH, and D are added to a closed figure composed of E and EA.
It is an example of a figure to which J, IK, and KM are added. In this figure, when tracing from the end point A to the direction of the line segment AB is started, the end point F is searched first in the search process (S4) in FIG. 1, and then the two end points B and G are searched. At this time, if the end point G is selected in the selection process (S6), the end point H is traced to the end point H, and there is no continuous end point. In this case, first, through the search process (S4), through steps S5 and S8, and in the deletion process (S10), the line segment GH in the return range is deleted while returning to the end point G. Next, after the end point G is searched as the continuous original end point (S4), it is determined that there is no continuous end point again, and the process returns from steps S5 and S8 to the end point F in the deletion process (S10), and the line segment GF in the return range is deleted. . After this, the tracing to the end point B side is continued. Note that step S3
In the determination process of passing, all are determined to be unpassed when returning. When the end point B is selected in the step of selecting the end point B and the end point G (S6), the tracing process is continued as it is, and the unpassed line segment FG or the like is deleted in the last deleting step (S13). become. When the tracing is continued from the end point D to the end point J or the end point M, the return is repeated in the same manner as described above, and in the last deletion process (S13), the unnecessary line segment D
J, IK, and KM are deleted.

【0025】図5(ホ)は、線分AB,BC,CD,D
Aからなる閉図形の線分ABに対して、線分EFが中間
部同志で交差する図形である。この図形の場合、開始端
点をAとして辿り処理を行うと、まず交点Gが探索さ
れ、次に3個の選択枝端点B,E,Fが探索されること
になる。この場合も、端点B,E,Fから任意の端点を
選択し(図1(S6))、次の連続先端点の探索(S
4)を順次行って戻り処理および戻り部分の削除処理
(S10)を行い、辿りを続ける。なお、図1の探索過
程(S4)では、必ずしもこのような交点Gの探索を行
わなくても良い。その場合、線分EFが残ることになる
が、線分EFは、各閉図形の処理済みフラグの設定の結
果、最後に単独線として残ることになる。したがって、
単独線を削除する過程を設けておくことで、余分な線分
EFが削除できる。また、前記実施例では辿りの開始点
を線分の端点に設定したが、線分上の途中の点を辿りの
開始点としても良い。その場合、図1の流れ図とは若干
異なる方法となるが、基本的には図1の流れ図と同様な
方法で行え、この発明を適用することができる。
FIG. 5E shows the line segments AB, BC, CD, D
A line segment EF intersects with a line segment AB of a closed figure composed of A in the middle part. In the case of this figure, when the tracing process is performed with the starting end point as A, the intersection G is searched first, and then the three selection end points B, E, and F are searched. Also in this case, an arbitrary end point is selected from the end points B, E, and F (FIG. 1 (S6)), and the search for the next continuous end point (S6).
4) is sequentially performed to perform return processing and return portion deletion processing (S10), and the tracing is continued. In the search process (S4) in FIG. 1, it is not always necessary to search for such an intersection G. In that case, the line segment EF remains, but the line segment EF finally remains as a single line as a result of setting the processed flag of each closed figure. Therefore,
An extra line segment EF can be deleted by providing a process for deleting a single line. Further, in the above embodiment, the tracing start point is set to the end point of the line segment, but a point on the line segment may be set as the tracing start point. In that case, the method is a little different from the flowchart of FIG. 1, but basically the same method as the flowchart of FIG. 1 can be used, and the present invention can be applied.

【0026】[0026]

【発明の効果】この発明の板材加工図形データの修正方
法は、図形要素となる線分を各々示す線データ群からな
る入力図形の連続する線分の端点を順に探索して辿る過
程で、連続先端点が複数に分岐されている場合に、これ
ら複数の選択枝端点のうちの任意の端点を選択してその
選択端点の次に連続する連続先端点を探索し、連続先端
点がないときは、分岐元端点に戻って他の選択枝端点へ
辿り処理を続けると共に、前記分岐元端点への戻り範囲
の線分部分を削除する方法であるため、線分の一部重複
や、明らかに不自然な線の突出が生じている図形を、そ
のような重複部分や突出部分のない図形に自動修正し、
NCデータ付与図形として利用し易い図形データとする
ことができる。
According to the method of correcting plate material processed graphic data of the present invention, the end point of a continuous line segment of an input graphic composed of line data groups each representing a line segment serving as a graphic element is sequentially searched and traced. When the end point is branched into a plurality of points, an arbitrary end point is selected from the plurality of selected end points, and a continuous end point subsequent to the selected end point is searched. This is a method of returning to the branch source end point and continuing the tracing process to another selected branch end point, and deleting the line segment part of the return range to the branch source end point. Automatically corrects shapes with natural line protrusions to shapes without such overlaps or protrusions,
The graphic data can be easily used as the NC data-added graphic.

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

【図1】(イ)はこの発明の一実施例における図形デー
タの修正方法を示す流れ図、(ロ)は修正対象の図形例
の説明図、(ハ)は辿り過程の説明図である。
FIG. 1A is a flowchart showing a method of correcting graphic data according to an embodiment of the present invention, FIG. 1B is an explanatory diagram of a graphic example to be corrected, and FIG. 1C is an explanatory diagram of a tracing process.

【図2】同実施例のデータ修正方法を適用するシステム
の概念図である。
FIG. 2 is a conceptual diagram of a system to which the data correction method of the embodiment is applied.

【図3】線データのデータ構造の説明図である。FIG. 3 is an explanatory diagram of a data structure of line data.

【図4】線分の連続判定の説明図である。FIG. 4 is an explanatory diagram of line segment continuity determination.

【図5】修正対象の各種図形例の説明図である。FIG. 5 is an explanatory diagram of examples of various figures to be corrected.

【図6】従来のCAD図形の問題を示す説明図である。FIG. 6 is an explanatory diagram showing a problem of a conventional CAD figure.

【符号の説明】[Explanation of symbols]

1…ホストコンピュータ、2…データ変換手段、3…C
AM手段、4…NC工作機械、10…図形、A〜L…端
点、D1,D2…線データ
DESCRIPTION OF SYMBOLS 1 ... Host computer, 2 ... Data conversion means, 3 ... C
AM means, 4 NC machine tools, 10 figures, A to L end points, D1, D2 line data

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 図形要素となる線分を各々示す線データ
群からなる入力図形の連続する線分の端点を順に探索し
て辿る過程で、連続先端点が複数に分岐されている場合
に、これら複数の選択枝端点のうちの任意の端点を選択
してその選択端点の次に連続する連続先端点を探索し、
連続先端点がないときは、分岐元端点に戻って他の選択
枝端点へ辿り処理を続けると共に、前記分岐元端点への
戻り範囲の線分部分を削除する板材加工図形データの修
正方法。
1. In a process of sequentially searching for and tracing the end points of a continuous line segment of an input graphic composed of line data groups each representing a line segment to be a graphic element, when a continuous front end point is branched into a plurality of points, An arbitrary end point is selected from the plurality of selection end points, and a continuous end point following the selected end point is searched for.
If there is no continuous end point, the method returns to the branch source end point, continues the tracing process to another selected branch end point, and deletes the line segment portion of the return range to the branch source end point.
【請求項2】 連続元線分と連続先線分とが重複部分を
有している場合に、連続元線分の連続先側端点の次に、
連続先線分の両側の端点を探索し、この両側の端点のう
ちの次に連続する連続先端点がない端点から、分岐元端
点である前記連続元線分の連続先側端点までの戻り範囲
の線分部分を削除する請求項1記載の板材加工図形デー
タの修正方法。
2. In a case where a continuous original line segment and a continuous forward line segment have an overlapping portion, next to the continuous forward end point of the continuous original line segment,
Search for end points on both sides of the continuous front line segment, and a return range from an end point without a next continuous continuous end point of the end points on both sides to a continuous destination side end point of the continuous base line segment that is a branch source end point The method for correcting plate material processed figure data according to claim 1, wherein the line segment part of is deleted.
【請求項3】 連続元線分の連続先側端点から連続先線
分が突出部分を有して連続している場合に、連続元線分
の連続先側端点の次に、連続先線分の両側の端点を探索
し、この両側の端点のうちの次に連続する連続先端点が
ない端点から、分岐元端点である前記連続元線分の連続
先側端点までの戻り範囲の線分部分を削除する請求項1
記載の板材加工図形データの修正方法。
3. A continuous front line segment following a continuous front end point of a continuous original line segment when the continuous front line segment is continuous with a protruding portion from the continuous front line end point of the continuous original line segment. A line segment portion of a return range from an end point having no next continuous continuous end point to a continuous destination end point of the continuous original line which is a branch source end point. Claim 1
Method for correcting the described plate material processing figure data.
JP18066094A 1994-07-07 1994-07-07 Correction method of plate material processing figure data Expired - Fee Related JP2661554B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18066094A JP2661554B2 (en) 1994-07-07 1994-07-07 Correction method of plate material processing figure data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18066094A JP2661554B2 (en) 1994-07-07 1994-07-07 Correction method of plate material processing figure data

Publications (2)

Publication Number Publication Date
JPH0822315A true JPH0822315A (en) 1996-01-23
JP2661554B2 JP2661554B2 (en) 1997-10-08

Family

ID=16087093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18066094A Expired - Fee Related JP2661554B2 (en) 1994-07-07 1994-07-07 Correction method of plate material processing figure data

Country Status (1)

Country Link
JP (1) JP2661554B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316589A (en) * 2004-04-27 2005-11-10 Brother Ind Ltd Cutting data editing device and cutting data editing program
WO2008096847A1 (en) * 2007-02-09 2008-08-14 Mori Seiki Co., Ltd. Automatic programming method and automatic programming device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316589A (en) * 2004-04-27 2005-11-10 Brother Ind Ltd Cutting data editing device and cutting data editing program
WO2008096847A1 (en) * 2007-02-09 2008-08-14 Mori Seiki Co., Ltd. Automatic programming method and automatic programming device
JP5140003B2 (en) * 2007-02-09 2013-02-06 株式会社森精機製作所 Automatic programming equipment
US8594831B2 (en) 2007-02-09 2013-11-26 Mori Seiki Co., Ltd. Automatic programming method and automatic programming device

Also Published As

Publication number Publication date
JP2661554B2 (en) 1997-10-08

Similar Documents

Publication Publication Date Title
US5689435A (en) Systems and methods for automated bracket design
JP4390093B2 (en) Automatic programming and simulation equipment
JP2857540B2 (en) CAD / CAM method and apparatus for automatically re-creating a cutter path
JP3593137B2 (en) Area processing method
JPH09190551A (en) Drawing method for three-dimensional shape
JP2661554B2 (en) Correction method of plate material processing figure data
JP2663786B2 (en) Automatic programming device
JPH05297923A (en) Tool path data creating device
JP2836217B2 (en) Parametric figure registration processing method
JP3201829B2 (en) Figure extraction device in CAD system
JPH1153561A (en) Device and method for searching route, generating contour curve as well as editing contour curve, and storage medium with recorded program
JPH06301763A (en) Selection method for graphic data and device therefor
JPH0589210A (en) Cad/cam device
JP3000625B2 (en) External character editing device
JPH0744606A (en) One-side parallel line automatic preparation system
JPH07121219A (en) Numerical control information generating method
JPH07191721A (en) Device for preparing nc data for sheet metal working
JPH0643924A (en) Unit and device for controlling nc machine tool
JPH09204457A (en) Display graphic editing system
JPH10187424A (en) Correct and error judgement result display system for graphical editing program
JPH07271419A (en) Cad/cam device
JPH05333919A (en) Program conversion device for cad system
JPH06282642A (en) Generation method for offset graphic
JPH05333920A (en) Program conversion device for cad system
JPH0746286B2 (en) NC command information creation device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20110613

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

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20110613

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

Year of fee payment: 15

Free format text: PAYMENT UNTIL: 20120613

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 15

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

Year of fee payment: 16

Free format text: PAYMENT UNTIL: 20130613

LAPS Cancellation because of no payment of annual fees