JPH03230201A - Method and device for compression processing for machining shape data - Google Patents

Method and device for compression processing for machining shape data

Info

Publication number
JPH03230201A
JPH03230201A JP2504890A JP2504890A JPH03230201A JP H03230201 A JPH03230201 A JP H03230201A JP 2504890 A JP2504890 A JP 2504890A JP 2504890 A JP2504890 A JP 2504890A JP H03230201 A JPH03230201 A JP H03230201A
Authority
JP
Japan
Prior art keywords
points
point
data
straight line
machining shape
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.)
Pending
Application number
JP2504890A
Other languages
Japanese (ja)
Inventor
Shigeki Kobayashi
栄貴 小林
Toru Inamasu
稲益 亨
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.)
Amada Co Ltd
Original Assignee
Amada Co 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 Amada Co Ltd filed Critical Amada Co Ltd
Priority to JP2504890A priority Critical patent/JPH03230201A/en
Publication of JPH03230201A publication Critical patent/JPH03230201A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To decrease the amount of data by deleting loops which are less than a preset number of points as necessary loops, deleting points which are considered as noise around one point, and limiting points which determine a straight part or curved part to points which are sufficient to determine one straight line or one curved line. CONSTITUTION:The path of input data is searched to delete loops consisting of points which are less than the preset number and other points in an extremely small area determined around one point are deleted; and segments connecting two points at the straight part are traced in order, successive segments which are on one straight line are replaced with one segment, and arcs set by three points of the curved part are traced in order to delete unnecessary points so that respective points for arc determination are arranged at distances larger than a constant interval. Consequently, unnecessary points are deleted including noise of machining shape vector data read by an image scanner and data can be compressed properly for an automatic programming device.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分野) 本発明は、レーザ加工や放電加工などの形状(従来の技
術) レーザ加工や放電加工などの形状加工においては、形状
設定された図面をイメージスキャナで読み取り、ベクト
ルデータに変換して自動プログラミング装置に提供し、
ここでNCプログラムに変換して各加工機に提供するこ
とか行われる。
[Detailed Description of the Invention] [Purpose of the Invention (Industrial Application Field) The present invention relates to shape processing such as laser machining and electrical discharge machining (prior art). The generated drawings are read by an image scanner, converted to vector data, and provided to an automatic programming device.
Here, the program is converted into an NC program and provided to each processing machine.

イメージスキャナで読み取られたベクトルデータは、絵
、文字などの輪郭データを細かい線分またはスプライン
曲線で表わしている。線分は両端点で、スプライン曲線
は始点及び終点並びに複数の中間点で表わされている。
Vector data read by an image scanner represents outline data of pictures, characters, etc. as fine line segments or spline curves. A line segment is represented by both end points, and a spline curve is represented by a starting point, an ending point, and a plurality of intermediate points.

自動プログラミング装置は、これら多数の点で表わされ
た線分及びスプライン曲線のベクトルデータを解析し、
各点を各線分またはスプライン曲線で定められる経路を
通って加工するよう、加工機制御のためのNCプログラ
ムデータを自動生成する。
The automatic programming device analyzes vector data of line segments and spline curves represented by these many points,
NC program data for controlling the processing machine is automatically generated so that each point is processed along a path defined by each line segment or spline curve.

従来、この種形状データの処理方式にあっては、イメー
ジスキャナで読み取られたデータをベクトルデータに変
換し、これをそのまま自動プログラム装置に提供し、ま
た他の装置に提供していた。
Conventionally, in a method for processing this type of shape data, data read by an image scanner is converted into vector data, and this data is provided as is to an automatic programming device or to other devices.

(発明が解決しようとする課題) しかしながら、上記の如くイメージスキャナで読み取ら
れたままのベクトルデータをそのまま利用する場合には
、ノイズによって得られた点を含めて絵、文字、曲線を
そのまま再現するよう多数の点が生成されるのでデータ
が冗長なものとなっているという問題点かある。
(Problem to be solved by the invention) However, when using the vector data as it is read by an image scanner as described above, pictures, characters, and curves are reproduced as they are, including points obtained due to noise. The problem is that the data becomes redundant because a large number of points are generated.

加工形状データが冗長な場合には、データ記憶容量が増
すのみならず、自動プログラミング装置で生成されたN
Cプログラムデータも冗長なものとなるという問題点か
ある。
If the machining shape data is redundant, not only the data storage capacity increases, but also the N
There is also a problem that the C program data becomes redundant.

また、例えば直線部において、実際には1本の直線を傾
斜が稀かに異なる多数の線分の結合で表現し、これをN
Cプログラムデータとした場合には、その途中で制御の
誤差が重なって、製品精度が余計悪くなることかあると
いう問題点がある。
In addition, for example, in a straight line, one straight line is actually expressed as a combination of many line segments with rarely different slopes, and this is expressed as N
If C program data is used, there is a problem in that control errors may overlap during the process, resulting in further deterioration of product accuracy.

そこで、本発明は、イメージスキャナで読み取られた加
工形状のベクトルデータのノイズを含めて不要点を削除
し、自動プログラミング装置に対してほどよく圧縮する
ことを目的とする。
Therefore, an object of the present invention is to remove unnecessary points including noise from vector data of a machined shape read by an image scanner, and to compress the vector data appropriately for an automatic programming device.

[発明の構成] (課題を解決するための手段) 上記目的を達成するための本発明は、イメージスキャナ
で読み取られた加工形状のベクトルデータにつき不要の
点を削除してデータ圧縮する加工形状データの圧縮処理
方法において、入力データについて経路を探索し予め設
定した点数以下の点で構成されるループを削除し、一つ
の点の回りに定められる微小領域につき、この領域に含
まれる他の点を削除し、 直線部につき、2点を結ぶ線分を順次追跡し、連続した
複数線分について一直線上にあると認めることかできる
線分を一つの線分に置き換え、曲線部につき、3点で設
点される円弧を順次追跡し、円弧決定用の各点が一定間
隔以上の距離を置いて配置されるよう余計な点を削除す
ることを特徴とする。
[Structure of the Invention] (Means for Solving the Problems) To achieve the above object, the present invention provides processing shape data that compresses data by deleting unnecessary points from vector data of a processing shape read by an image scanner. In the compression processing method, a path is searched for the input data, loops consisting of points less than a preset number are deleted, and for a minute area defined around one point, other points included in this area are For straight parts, line segments connecting two points are sequentially traced, and for multiple consecutive line segments, line segments that can be recognized to be on a straight line are replaced with one line segment, and for curved parts, line segments connecting two points are replaced with one line segment. It is characterized by sequentially tracing the arcs that are set and removing unnecessary points so that the points for arc determination are arranged at a distance of at least a certain interval.

また、イメージスキャナで読み取られた加工形状のベク
トルデータにつき不要の点を削除してデータ圧縮する加
工形状データの圧縮処理装置において、 入力データについてループを探索し予め設定した点数以
下の点で構成されるループを削除する不要ループ削除処
理部と、 一つの点の回りに定められる微小領域につき、この領域
に含まれる他の点をノイズとして削除する微小区間ノイ
ズ削除処理部と、 直線部につき、2点間で結ばれる線分を順次追跡し、連
続した複数線分について一直線上にあると認めることが
できる線分を1つの線分に置き換える直線追跡処理部と
、 曲線部につき、3点で決定される円弧を順次追跡し、円
弧決定用の各点が一定距離を置いて配置されるよう余計
な点を削除する曲線追跡処理部とを備えたことを特徴と
する。
In addition, in a processing shape data compression processing device that deletes unnecessary points from vector data of a processed shape read by an image scanner and compresses the data, a loop is searched for the input data and the data is composed of points that are less than or equal to a preset number of points. An unnecessary loop deletion processing unit that deletes loops that occur in the area, a minute section noise deletion processing unit that deletes other points included in this area as noise for a minute area defined around one point, and 2 for each straight line section. A straight line tracing processing unit that sequentially traces line segments connected between points and replaces multiple consecutive line segments that can be recognized as being on a straight line into one line segment, and a curved part is determined by three points. The present invention is characterized by comprising a curve tracing processing unit that sequentially traces the circular arcs to be determined and deletes unnecessary points so that the points for determining the circular arc are arranged at a constant distance.

では、イメージスキャナで読み取られたベクトルデータ
を処理して、予め設定した点数以下のループを不要のル
ープとして削除し、一つの点の回りのノイズと考えられ
る点を削除し、直線部または曲線部を定める点を一直線
または一曲線を定めるのに十分な点に制限して他の点を
削除する。
Now, we will process the vector data read by the image scanner, delete loops with less than a preset number of points as unnecessary loops, delete points that are considered to be noise around one point, and remove straight or curved sections. Limit the points that define the point to enough points to define a straight line or curve, and delete other points.

(実施例) 以下、本発明の詳細な説明する。(Example) The present invention will be explained in detail below.

第1図は本発明の一実施例に係る加工形状データの圧縮
処理装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a compression processing device for processed shape data according to an embodiment of the present invention.

図示のように、本例の圧縮処理装置1は、読み取りX、
Yベクトルデータを記憶する記憶部2を有している。
As shown in the figure, the compression processing device 1 of this example reads X,
It has a storage section 2 that stores Y vector data.

読み取りX、Yベクトルデータとは、イメージスキャナ
で読み取った絵、文字等の輪郭データをこまかい線分ま
たはスプライン曲線で表わしたものであり、線分ては両
端点、スプライン曲線では始点、終点と中間に複数の点
が存在し、これらの点かXY平面におけ−る座標値X、
Yの数値で表わされている。
Read X, Y vector data is the outline data of pictures, characters, etc. read by an image scanner, expressed as fine line segments or spline curves. Line segments have both end points, and spline curves have starting points, end points, and intermediate points. There are multiple points on the XY plane, and the coordinates of these points are X,
It is expressed by the value of Y.

このデータは人力装置であるイメージスキャナから送ら
れてくるものとする。
It is assumed that this data is sent from an image scanner, which is a human-powered device.

前記記憶部2は、データ圧縮処理部3と接続され、圧縮
された結果は圧縮データ記憶部4に記憶されるようにな
づている。
The storage section 2 is connected to a data compression processing section 3, and the compressed results are stored in a compressed data storage section 4.

前記データ圧縮処理部3′は、圧縮制御部5が設けられ
、これに不要ループ処理部6と、°微小区間ノイズ削除
処理部7と、直線追跡処理部8と、曲線追跡処理部9が
接続されている。
The data compression processing section 3' is provided with a compression control section 5, to which are connected an unnecessary loop processing section 6, a small section noise removal processing section 7, a straight line tracing processing section 8, and a curve tracing processing section 9. has been done.

また、データ圧縮処理部3にはキーボードなどにより構
成されるパラメータ設定部10が接続され、パラメータ
として、 “経路単位”A “ノイズ”B “直線距離”C “直線幅゛D “曲線距離°E “曲線幅”F が数値設定されるようになっている。各パラメータの内
容については後述する。
In addition, a parameter setting unit 10 composed of a keyboard or the like is connected to the data compression processing unit 3, and the parameters include “route unit” A “noise” B “straight line distance” C “straight line width”D “curved distance °E” The “curve width” F is set numerically. The contents of each parameter will be described later.

第2図は、上記データ圧縮処理部の処理方式を示すメイ
ンフローである。
FIG. 2 is a main flow showing the processing method of the data compression processing section.

本例では、ステップ201でイメージスキャナで読み取
られたベクトルデータが記憶部2に入力設定されるとス
テップ202に移行し、ステップ202でまず不要ルー
プ削除処理が実行され、次いでステップ203で微小区
間ノイズ削除処理が実行され、その後ステップ204,
205以下で直線部及び曲線部の追跡を行いつつ、ステ
ップ206及び207で直線部及び曲線部についての不
要点の除去処理が実行される。
In this example, when the vector data read by the image scanner is input and set in the storage unit 2 in step 201, the process moves to step 202, in which unnecessary loop deletion processing is first performed, and then in step 203, minute section noise The deletion process is performed, and then steps 204,
While tracking the straight line portion and curved line portions in steps 205 and below, unnecessary point removal processing for the straight line portions and curved portions is executed in steps 206 and 207.

ステップ208で全ループについての処理の終了が判断
されればこれで全処理を終了し、圧縮処理された加工形
状データを圧縮データ記憶部4に記憶する。ステップ2
09ではループ終了を判別し、ループ終了するまで処理
をステップ204へ返す。ステップ210ではループ終
了につき次のループを設定する。
If it is determined in step 208 that the processing for all loops has been completed, the entire processing is completed and the compressed machining shape data is stored in the compressed data storage section 4. Step 2
In step 09, it is determined that the loop has ended, and the process returns to step 204 until the loop ends. At step 210, the next loop is set upon completion of the loop.

第3図〜第5図にループ削除処理、微小区間ノイズ削除
処理、直線部及び曲線部の不要点削除処理を示す。
3 to 5 show loop deletion processing, minute section noise deletion processing, and unnecessary point deletion processing on straight and curved sections.

第3図のループ削除処理では、ステップ301で全ルー
プの終了が判別されるまでステップ302てループ探索
し、ステップ303で探索したループを構成する点の数
A′をカウントする。
In the loop deletion process shown in FIG. 3, a loop search is performed in step 302 until it is determined in step 301 that all loops have ended, and the number A' of points constituting the searched loop is counted in step 303.

次いで、ステップ304ではカウント数A′と設定数A
を比較し、A′≦Aならステップ305へ移行してここ
で当該ループを削除する。ステップ304てA−>Aが
判別されるか、またはステップ305でループ削除され
たのちはステップ301以下の処理へ返る。
Next, in step 304, the count number A' and the set number A
If A'≦A, the process moves to step 305 and the loop is deleted. After A->A is determined in step 304 or the loop is deleted in step 305, the process returns to step 301 and subsequent steps.

ループとは、−筆でかけ、最低2点で構成される開ルー
プまたは閉ループをいう。
Loop refers to an open or closed loop made with a brush and consisting of at least two points.

この処理において、“経路単位”としての設定値Aは、
これ以下の構成点数のループはあり得ない、または加工
しないとして設定された値である。
In this process, the setting value A as a “route unit” is
This value is set so that a loop with a number of constituent points less than this is impossible or will not be processed.

したがって、本例では、加工すべき図面としての、不要
のループが削除され、その分データ圧縮することができ
る。例えば、4角以上の多角形を加工の対象とする加工
機では、設定数を3として、ノイズを含めて不要の線分
、円、3角形が除去される。
Therefore, in this example, unnecessary loops as drawings to be processed are deleted, and data can be compressed accordingly. For example, in a processing machine that processes polygons with four or more sides, the set number is set to three, and unnecessary line segments, circles, and triangles, including noise, are removed.

第4図に示す微小区間ノイズ削除処理では、ステップ4
01で全ループ終了するまでステップ402へ移行して
ループ探索し、ステップ403で探索されたループ上の
任意の点を開始点に設定し、ステップ404で、その点
の回りの“ノイズBの領域内に含まれる点を削除する。
In the minute section noise removal process shown in FIG.
Step 402 searches for a loop until all loops are completed at step 01. Step 403 sets an arbitrary point on the searched loop as a starting point, and step 404 searches for a "noise B area" around that point. Delete points contained within.

例えば、第6図に示すように、始点poに対し、その遅
行方向11より前方側で右側に1辺の長さBの正方形を
設定し、この内部に含まれる点を削除する。
For example, as shown in FIG. 6, a square with one side length B is set on the front side and to the right of the starting point po in the delay direction 11, and points included within this square are deleted.

次に、経路上を一定の方向に従って進行しステップ40
5で次の点P1をサーチし、同様な正方形を考え、その
中に含まれる点を削除する。ステップ406で開始点か
判別されるまでこれを繰り返し1ループのすべての点に
対して行う。ステップ407ては次のループへ移行する
Next, proceed along the route in a certain direction and step 40
5, the next point P1 is searched, a similar square is considered, and the points included in it are deleted. This is repeated for all points in one loop until the starting point is determined in step 406. In step 407, the process moves to the next loop.

ここに、“ノイズ゛として設定される値Bは、加工内容
を考慮して、加工精度近辺の値として設定してもよく、
また絵、文字などを含まない多角形の図形では、あり得
ない点として、これより太き目の値、例えば0.1〜0
.5mm程度に設定されるものである。
Here, the value B set as "noise" may be set as a value close to the machining accuracy, taking into consideration the machining content.
In addition, for polygonal figures that do not include pictures or characters, it is impossible to have a value thicker than this, for example 0.1 to 0.
.. It is set to about 5 mm.

したがって、本例の微小区間ノイズ削除処理では、一つ
の点の回りのノイズが除去される。
Therefore, in the minute section noise removal process of this example, noise around one point is removed.

第5図に示す直線部の不要点削除処理では、ステップ5
01で第8図に示すように1経路内の任意の1点を始点
poとし、始点poから経路上を一定方向にパラメータ
の“直線距離°C以上離れたもっとも近い点PIをサー
チし、2点Pa、P間に直線部0を引く。
In the unnecessary point deletion process of the straight line section shown in FIG.
In step 01, as shown in Fig. 8, any one point on one route is set as the starting point po, and the nearest point PI that is more than the parameter "straight line distance °C" is searched in a certain direction on the route from the starting point po. Draw a straight line 0 between points Pa and P.

次いで、ステップ502ては、この直線ioからパラメ
ータの“直線中”Dの半分だけ左右に平行移動させた2
直線交+ 、(A2を考え、ステップ505で、この2
直線間(lb、(A2に含まれる点を削除する。
Next, in step 502, 2 is translated from this straight line io to the left and right by half of the parameter "in the straight line" D.
Linear intersection + , (Considering A2, in step 505, this 2
Between the straight lines (lb, (delete the points included in A2.

次にステップ506で削除した点の中で始点POからも
っとも遠くにあるP2を復活させ、その点P2を始点と
して同様な処理を繰り返し、1経路のすべての点に対し
て行う。ただし、第9図に示すように始点poから復活
させた点P2の途中に2直線11.(A2間に含まれな
い点P3が存在する場合は、これをステップ503では
み出し点と判別してステップ504へ移行し、その点P
 3を始点としてステップ501以下の処理を行う。
Next, among the points deleted in step 506, P2, which is the farthest from the starting point PO, is restored, and the same process is repeated using that point P2 as the starting point, and is performed for all points on one route. However, as shown in FIG. 9, two straight lines 11. (If there is a point P3 that is not included between A2, this is determined as a protruding point in step 503, and the process moves to step 504, and the point P3 is
3 as the starting point, the processing from step 501 onwards is performed.

ここに、“直線距離“Cは、各点間の距離の最小値とし
て、例えば1mmの如く設定され、“直線幅”Dは加工
精度の許容範囲程度に設定されるものである。
Here, the "straight line distance" C is set to, for example, 1 mm as the minimum value of the distance between each point, and the "straight line width" D is set to about the allowable range of processing accuracy.

したがって、第8図に示す点の削除は、加工精度上何ら
問題とならない範囲で各点間を結ぶ複数の線分を1本の
線分に置換したことになる。
Therefore, the deletion of the points shown in FIG. 8 is equivalent to replacing a plurality of line segments connecting each point with one line segment within a range that does not cause any problem in processing accuracy.

一方、曲線部の処理を示す第6図のステップ601では
、第10図に示すように、1経路内に存在する曲線部の
端点を始点POとし、始点POから曲線上を一定方向に
パラメータの“曲線距離”E以上離れたもっとも近い点
P1をサーチし中間点とする。
On the other hand, in step 601 of FIG. 6, which shows the processing of a curved section, as shown in FIG. The closest point P1, which is more than the "curve distance" E, is searched and set as the intermediate point.

次いで、ステップ602で、中間点PIから曲線上を同
一方向に“曲線距離”E以上離れた点でもっとも近い点
P2をサーチし終了点とする。
Next, in step 602, a search is made for the closest point P2 on the curve in the same direction from the intermediate point PI by a distance of "curve distance" E or more and set as the end point.

また、ステップ603で始点PO1中間点P1終了点P
2の3点を通る半径「の円を考え、この半径rに対し、
“曲線幅”Fの半分[%]の値を増減して与えられる半
径rl、r2の2円を設定し、ステップ604でこの2
円間に含まれる中間点P1を含めて削除し、中央に1点
P3を追加する。
Also, in step 603, start point PO1 intermediate point P1 end point P
Consider a circle with radius `` passing through the three points in 2, and for this radius r,
Two circles with radii rl and r2, which are given by increasing or decreasing the value of half [%] of the “curve width” F, are set, and in step 604, these two circles are set.
The intermediate point P1 included between the circles is deleted, and one point P3 is added at the center.

次に、ステップ605て終了点P2を開始点として同様
な処理を1経路の曲線部のすべてに対して行う。
Next, in step 605, similar processing is performed for all curved portions of one route using the end point P2 as the starting point.

ここに、パラメータの“曲線距離“E及び“曲線幅”F
は上記の直線距離“C及び“直線幅”Dと同様に設定さ
れるので、円弧部分を整形してノイズを含め余計な点を
削除することができ、加工精度も良好となる。また、本
例では、始点Po及び終点22間に中央点P3を設定し
つつ曲線部を処理するので、終点P2を始点とする次の
処理に影響を与えず、曲線部を歪ませてしまうこともな
い。
Here, the parameters “curve distance” E and “curve width” F
is set in the same way as the straight line distance "C" and the "straight line width" D above, so it is possible to shape the arc part and remove unnecessary points including noise, and the processing accuracy is also good. In the example, since the curved portion is processed while setting the center point P3 between the starting point Po and the ending point 22, the next processing starting from the ending point P2 is not affected and the curved portion is not distorted.

上記の如く構成された圧縮処理装置1は、イメージスキ
ャナと接続して使用するようにしてもよい。また、イメ
ージスキャナに組み込んでもよい。
The compression processing device 1 configured as described above may be used in connection with an image scanner. It may also be incorporated into an image scanner.

また、自動プログラミング装置内に組み込んで、NCプ
ログラムデータを作成する前にベクトルデータを前処理
するようにしてもよい。
It may also be incorporated into an automatic programming device to preprocess vector data before creating NC program data.

本発明は上記実施例に限定されるものではなく、適宜の
設計的変更を行うことにより、適宜対応で実施し得るも
のである。
The present invention is not limited to the above-mentioned embodiments, but can be implemented as appropriate by making appropriate design changes.

[発明の効果] 以上、詳細に説明したように、本発明は特許請求の範囲
に記載の通りの加工形状データの圧縮処理方法及び装置
であるので、イメージスキャナで読み取られたベクトル
データのノイズを含めた余計な点を削除してデータ圧縮
し、データ量を削減し、加工に適した形状データとする
ことができる。
[Effects of the Invention] As described above in detail, the present invention is a processing method and apparatus for compressing processing shape data as described in the claims, so that noise in vector data read by an image scanner can be reduced. The data can be compressed by deleting unnecessary points, reducing the amount of data and creating shape data suitable for processing.

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

第1図は本発明の一実施例に係る加工形状データの圧縮
処理装置のブロック図、第2図はその圧縮処理方式を示
すメインフローチャート、第3図はループ削除処理の詳
細を示すフローチャート、第4図は微小区間ノイズ削除
処理を示すフローチャート、第5図は直線部の不要点削
除処理を示すフローチャート、第6図は曲線部の不要点
削除処理を示すフローチャート、第7図は微小区間ノイ
ズ削除処理の作用を示す説明図、第8図及び第9図は直
線部の不要点削除処理の作用を示す説明図、第10図は
曲線部の不要点削除処理の作用を示す説明図である。 6・・・不要ループ削除処理部 7・・・微小区間ノイズ削除処理部 8・・・直線追跡処理部 9・・・曲線追跡処理部 10・・・パラメータ設定部 第 図 第4 1’fl 藁5図
FIG. 1 is a block diagram of a compression processing device for machining shape data according to an embodiment of the present invention, FIG. 2 is a main flowchart showing the compression processing method, FIG. 3 is a flowchart showing details of loop deletion processing, and FIG. Figure 4 is a flowchart showing minute section noise removal processing, Figure 5 is a flowchart showing unnecessary point deletion processing in a straight section, Figure 6 is a flowchart showing unnecessary point deletion processing in a curved section, and Figure 7 is minute section noise deletion. FIGS. 8 and 9 are explanatory diagrams showing the operation of the process, FIGS. 8 and 9 are explanatory diagrams showing the operation of the unnecessary point deletion process on a straight section, and FIG. 10 is an explanatory diagram showing the operation of the unnecessary point deletion process on a curved section. 6... Unnecessary loop deletion processing section 7... Minute section noise deletion processing section 8... Straight line tracking processing section 9... Curve tracking processing section 10... Parameter setting section Fig. 4 1'fl Straw Figure 5

Claims (5)

【特許請求の範囲】[Claims] (1)イメージスキャナで読み取られた加工形状のベク
トルデータにつき不要の点を削除してデータ圧縮する加
工形状データの圧縮処理方法において、 入力データについて経路を探索し予め設定した点数以下
の点で構成されるループを削除し、一つの点の回りに定
められる微小領域につき、この領域に含まれる他の点を
削除し、 直線部につき、2点を結ぶ線分を順次追跡し、連続した
複数線分について一直線上にあると認めることができる
線分を一つの線分に置き換え、曲線部につき、3点で設
点される円弧を順次追跡し、円弧決定用の各点が一定間
隔以上の距離を置いて配置されるよう余計な点を削除す
ることを特徴とする加工形状データの圧縮処理方法。
(1) In a machining shape data compression processing method that deletes unnecessary points from the vector data of a machining shape read by an image scanner and compresses the data, a path is searched for the input data and the data is composed of points that are less than or equal to a preset number of points. For a minute area defined around one point, other points included in this area are deleted, and for a straight line, line segments connecting two points are sequentially traced, and continuous multiple lines are created. Replace the line segments that can be recognized as being on a straight line with one line segment, and sequentially trace the arcs set at three points for each curved part, so that each point for determining the arc is at a distance of at least a certain distance. A compression processing method for machining shape data, characterized by deleting unnecessary points so that the points are arranged with the same distance.
(2)請求項1において、前記直線部の追跡では、直線
部につき、始点に対し予め設定した一定距離を置いてそ
の前方側に位置する点を延長点として始点及び延長点を
結ぶ半直線を算出し、この半直線に対し予め設定した一
定幅内にある始点外の点を削除すると共に、次いで始点
に対し最も遠くで削除された点を復活させ、この点を始
点として次の線分に移行することを特徴とする加工形状
データの圧縮処理方法。
(2) In claim 1, in tracing the straight line, a half straight line connecting the start point and the extension point is set as the extension point at a point located in front of the start point at a predetermined distance from the start point. Then, delete the points outside the starting point that are within a preset width for this half-line, and then restore the deleted point farthest from the starting point, and use this point as the starting point for the next line segment. A compression processing method for machining shape data characterized by data transfer.
(3)請求項1において、前記曲線部の追跡では、曲線
部につき、始点に対し予め設定した一定距離を置いた位
置より前方側の点を中間点とし、この中間点に対し予め
設定した一定距離を置いた位置より前方側の点を終点と
して始点及び中間点並びに終点を通る円弧を演算し、演
算された円弧に対しその内側及び外側に予め設定した幅
内にある点を削除すると共に、終点を次の始点にして曲
線部分を追跡することを特徴とする加工形状データの圧
縮処理方法。
(3) In claim 1, in tracking the curved portion, a point on the front side of the curved portion at a predetermined distance from the starting point is set as an intermediate point, and a preset constant distance is set in advance for this intermediate point. Calculate an arc passing through the start point, intermediate point, and end point with a point ahead of the distanced position as the end point, and delete points within a preset width inside and outside of the calculated arc, A processing method for compressing machining shape data characterized by tracing a curved portion using an end point as the next starting point.
(4)請求項3において、前記中間点は始点及び終点の
中央点に置き換えられることを特徴とする加工形状デー
タの圧縮処理方法。
(4) A processing method for compressing processing shape data according to claim 3, wherein the intermediate point is replaced with a center point between a starting point and an ending point.
(5)イメージスキャナで読み取られた加工形状のベク
トルデータにつき不要の点を削除してデータ圧縮する加
工形状データの圧縮処理装置において、 入力データについてループを探索し予め設定した点数以
下の点で構成されるループを削除する不要ループ削除処
理部と、 一つの点の回りに定められる微小領域につき、この領域
に含まれる他の点をノイズとして削除する微小区間ノイ
ズ削除処理部と、 直線部につき、2点間で結ばれる線分を順次追跡し、連
続した複数線分について一直線上にあると認めることが
できる線分を1つの線分に置き換える直線追跡処理部と
、 曲線部につき、3点で決定される円弧を順次追跡し、円
弧決定用の各点が一定距離を置いて配置されるよう余計
な点を削除する曲線追跡処理部とを備えたことを特徴と
する加工形状データの圧縮処理装置。
(5) In a machining shape data compression processing device that deletes unnecessary points from vector data of a machining shape read by an image scanner and compresses the data, a loop is searched for the input data and the data is composed of points equal to or less than a preset number of points. An unnecessary loop deletion processing unit that deletes loops that are generated by a single point; a minute section noise deletion processing unit that deletes other points included in this area as noise for a minute area defined around one point; A straight line tracing processing unit that sequentially traces line segments connected between two points and replaces continuous line segments that can be recognized as being on a straight line into one line segment; A process for compressing machining shape data, comprising: a curve tracing processing unit that sequentially traces determined circular arcs and deletes unnecessary points so that each point for determining the circular arc is placed at a constant distance. Device.
JP2504890A 1990-02-06 1990-02-06 Method and device for compression processing for machining shape data Pending JPH03230201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2504890A JPH03230201A (en) 1990-02-06 1990-02-06 Method and device for compression processing for machining shape data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2504890A JPH03230201A (en) 1990-02-06 1990-02-06 Method and device for compression processing for machining shape data

Publications (1)

Publication Number Publication Date
JPH03230201A true JPH03230201A (en) 1991-10-14

Family

ID=12155039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2504890A Pending JPH03230201A (en) 1990-02-06 1990-02-06 Method and device for compression processing for machining shape data

Country Status (1)

Country Link
JP (1) JPH03230201A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07230545A (en) * 1994-02-18 1995-08-29 Casio Comput Co Ltd Method for converting image graphic
JPH117311A (en) * 1997-06-18 1999-01-12 Roland D G Kk Method for removing micro-loop in tool path
JP2015153097A (en) * 2014-02-13 2015-08-24 ファナック株式会社 Numerical controller with command route compression function
WO2022071588A1 (en) * 2020-10-02 2022-04-07 川崎重工業株式会社 Processing method, program, and robot system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07230545A (en) * 1994-02-18 1995-08-29 Casio Comput Co Ltd Method for converting image graphic
JPH117311A (en) * 1997-06-18 1999-01-12 Roland D G Kk Method for removing micro-loop in tool path
JP2015153097A (en) * 2014-02-13 2015-08-24 ファナック株式会社 Numerical controller with command route compression function
US9645568B2 (en) 2014-02-13 2017-05-09 Fanuc Corporation Numerical controller having command path compression function
WO2022071588A1 (en) * 2020-10-02 2022-04-07 川崎重工業株式会社 Processing method, program, and robot system
JPWO2022071588A1 (en) * 2020-10-02 2022-04-07

Similar Documents

Publication Publication Date Title
JPH03230201A (en) Method and device for compression processing for machining shape data
JPH061404B2 (en) Complex curved surface processing method
JP2000347717A (en) Scheduling device
EP1389748A2 (en) Numerical controller
JP3305395B2 (en) Figure division device
JP2768201B2 (en) Movement locus display device for electric discharge machine
JPS60105013A (en) Circular arc approximation method
JP2845661B2 (en) Shape data creation method
JP2663786B2 (en) Automatic programming device
JPH069007B2 (en) NC data creation method for compound curved surface
EP0371144A1 (en) Method of generating cutting path of composite curved surface
JPH04114204A (en) Rounding deformation operating method for three-dimensional shape
JPH0227406A (en) Control device for working machine
JP3438421B2 (en) Drawing device for right angle segments
JPS6324363A (en) Changing method for form model
JPS61203065A (en) Sequencer control system
JPH01217608A (en) Generation of spline curve
JPH0251779A (en) Generating method for offset curve
JPS63256988A (en) Spline interpolation
JPH08221453A (en) Curve processing method and device therefor
JP2675647B2 (en) Numerical control information creation device
JPH07192139A (en) Division point setting method
JPH05290158A (en) Skeleton line vectorization processing method for image data
JPH027114B2 (en)
JP2005011204A (en) Numerical controller and numerical control method