Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3363669B2 - Image processing method and apparatus - Google Patents
[go: Go Back, main page]

JP3363669B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus

Info

Publication number
JP3363669B2
JP3363669B2 JP19008795A JP19008795A JP3363669B2 JP 3363669 B2 JP3363669 B2 JP 3363669B2 JP 19008795 A JP19008795 A JP 19008795A JP 19008795 A JP19008795 A JP 19008795A JP 3363669 B2 JP3363669 B2 JP 3363669B2
Authority
JP
Japan
Prior art keywords
point
distance
arc
shortest
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
JP19008795A
Other languages
Japanese (ja)
Other versions
JPH0944682A (en
Inventor
和磨 清水
まり 野村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP19008795A priority Critical patent/JP3363669B2/en
Publication of JPH0944682A publication Critical patent/JPH0944682A/en
Application granted granted Critical
Publication of JP3363669B2 publication Critical patent/JP3363669B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理方法及び装置に
関し、例えば処理すべき図形の要素または1つ以上の要
素から構成される部品間の食い込み量を計算する画像処
理方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus, for example, an image processing method and apparatus for calculating the amount of bite between a graphic element to be processed or a part composed of one or more elements. is there.

【0002】[0002]

【従来技術】従来、CADなどの図形を処理する情報処
理システムを利用して、要素または1つ以上の要素から
構成される部品間の距離を求めるものが存在する。
2. Description of the Related Art Conventionally, there is an apparatus that obtains a distance between an element or a part composed of one or more elements by using an information processing system for processing a figure such as CAD.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来で
は食い込み量の明確な定義がなかったため、要素または
1つ以上の要素から構成される部品が食い込んでいる場
合の最短距離を求めることが出来なかった。
However, since there has not been a clear definition of the amount of bite in the past, it was not possible to find the shortest distance when an element or a part composed of one or more elements bites. .

【0004】[0004]

【課題を解決するための手段】本発明は上述の課題を解
決することを目的として成されたもので、上述の課題を
解決する一手段として、例えば以下の構成を備える。
The present invention has been made for the purpose of solving the above-mentioned problems. As one means for solving the above-mentioned problems, the following structure is provided, for example.

【0005】即ち、図形要素から構成され、互いに食い
込んだ部品の最短距離を算出するための画像処理方法で
あって、記憶手段から処理対象となる図形要素である第
1の線分と第2の線分とを読み込む読込工程と、読み込
んだ線分のそれぞれの端点から相手の線分又はその延長
線上にそれぞれ垂線をおろす垂線工程と、複数の垂線と
線分との交点を仮の最短点として記憶手段に記憶する仮
最短点記憶工程と、記憶された複数の垂線と対応する端
点及び交点から、それぞれの点間の距離を演算手段によ
り求める演算工程と、演算工程で求めた点間の距離のな
かで、最長の距離を最短距離として記憶装置に記憶する
最短距離記憶工程とを有することを特徴とする。
That is, it is composed of graphic elements and eats each other.
With an image processing method to calculate the shortest distance of embedded parts
That is, a graphic element to be processed from the storage means
A reading step of reading the first line segment and the second line segment, and reading
Line segment of the other party from the end point of each line segment or its extension
A vertical line process that draws a vertical line on each line, and multiple vertical lines
The intersection with the line segment is temporarily stored in the storage means as the temporary shortest point.
Shortest point storing process and the edges corresponding to the stored vertical lines
From the points and intersections, calculate the distance between
The calculation process required and the distance between points calculated in the calculation process
And the longest distance is stored in the storage device as the shortest distance.
And a shortest distance storing step.

【0006】又は、図形要素から構成され、互いに食い
込んだ部品の最短距離を算出するための画像処理方法で
あって、記憶手段から処理対象となる図形要素である点
と円弧とを読み込む読込工程と、読み込んだ点と円弧の
中心点が一致するか否かを判定する一致判定工程と、一
致判定工程で読み込んだ点と円弧の中心点が一致すると
判定された場合、円弧の端点を最短点として記憶手段に
記憶する第1の最短点記憶工程と、一致判定工程で読み
込んだ点と円弧の中心点が一致しないと判定された場
合、点と中心点とを結ぶ直線と円弧との交点を最短点と
して記憶手段に記憶する第2の最短点記憶工程と、第1
の最短点記憶工程又は第2の最短点記憶工程で記憶手段
に記憶された最短点と、点との距離を演算手段により求
める演算工程と、求めた距離を最短距離として記憶手段
に記憶する最短距離記憶工程とを有することを特徴とす
る。
Alternatively , they are composed of graphic elements and eat each other.
With an image processing method to calculate the shortest distance of embedded parts
Point that is a graphic element to be processed from the storage means
And the arc of reading the point and the arc
A matching determination step of determining whether the center points match,
If the point read in the matching process and the center point of the arc match
If judged, the end point of the arc is stored in the storage means as the shortest point.
The first shortest point storing process to be stored and the matching determination process are read.
If it is determined that the embedded point and the center point of the arc do not match
In this case, the intersection of the straight line connecting the point and the center point and the arc is the shortest point.
A second shortest point storing step of
In the shortest point storing step or the second shortest point storing step
The distance between the shortest point stored in
And a calculation process that stores the calculated distance as the shortest distance.
And a shortest distance storing step of storing
It

【0007】更に、図形要素から構成され、互いに食い
込んだ部品の最短距離を算出するための画像処理方法で
あって、記憶手段から処理対象となる図形要素である線
分と円弧とを読み込む読込工程と、読み込んだ円弧の中
心点を通り線分に垂直な直線が線分と円弧に交わるそれ
ぞれ第1の点と第2の点と、線分の端点と円弧の中心を
結ぶ直線が円弧と交わるそれぞれ第の点と第の点
と、円弧の端点から線分に垂線をおろしたそれぞれ第
の点と第の点を、それぞれ仮の最短点として記憶手段
に記憶する仮最短点記憶工程と、第1の点と第の点間
の距離と、第の点と第の点に対応する線分の端点間
の距離と、第の点と第の点に対応する線分の端点間
の距離と、第の点と第の点に対応する円弧の端点間
の距離と、第の点と第の点に対応する円弧の端点間
の距離とをそれぞれ演算手段により求める演算工程と、
求めた距離の中から最長の距離を最短距離として記憶手
段に記憶する最短距離記憶工程とを有することを特徴と
する。
Further, there is provided an image processing method for calculating the shortest distance between parts which are composed of graphic elements and intrude into each other, and a reading step of reading line segments and arcs which are graphic elements to be processed from a storage means. When it to a line perpendicular to the street segment the center point of the arc read intersects the line segment and circular arc
Down first point and the second point, respectively, and the third point and the fourth point, respectively a straight line connecting the centers of the end points and an arc of the line segment intersects the arc, a perpendicular to the line segment from the arc end point Each 5th
Point and the sixth point are respectively stored in the storage means as the temporary shortest point, the temporary shortest point storing step, the distance between the first point and the second point, the third point and the third point. the distance between the end points of the corresponding line segments, the distance between the endpoints of a line segment corresponding to the fourth point and the fourth point, between the arc end point corresponding to the point of the fifth point and the fifth and distance arithmetic step of determining the respective operating means and the distance between the arc end point corresponding to the point of the sixth point and the sixth,
A shortest distance storing step of storing the longest distance from the obtained distances in the storage means as the shortest distance.

【0008】更にまた、図形要素から構成され、互いに
食い込んだ部品の最短距離を算出するための画像処理方
法であって、記憶手段から処理対象となる図形要素であ
る第1の円弧と第2の円弧とを読み込む読込工程と、読
み込んだ第1の円弧と第2の円弧が同心円が否かを判定
する同心円判定工程と、判定工程で同心円ではないと判
定された場合、第1の円弧の中心点と第2の円弧の中心
点とを通る直線がそれぞれの円弧と交わる第1の点と第
2の点と、第1の円弧の端点と第2の円弧の中心点を通
る直線が第2の円弧にそれぞれ交わる第3の点と第4の
点と、第2の円弧の端点と第1の円弧の中心点を通る直
線が第1の円弧にそれぞれ交わる第5の点と第6の点と
を、それぞれ仮の最短点として記憶手段に記憶する最短
点記憶工程と、第1の点と第2の点間の距離と、第3の
点と対応する第1の円弧の端点間の距離と、第4の点と
対応する第1の円弧の端点間の距離と、第5の点と対応
する第2の円弧の端点間の距離と、第6の点と対応する
第2の円弧の端点間の距離とを、演算手段により求める
演算工程と、求めた距離の中から最長の距離を最短距離
として記憶手段に記憶する最短距離記憶工程とを有する
ことを特徴とする。
Furthermore, it is composed of graphic elements and
Image processing method to calculate the shortest distance of bite parts
A graphic element to be processed from the storage means.
A reading step of reading the first circular arc and the second circular arc
Judge whether the first arc and the second arc are concentric circles
If the concentric circle judgment process is
If defined, the center point of the first arc and the center of the second arc
The first point and the first point where the straight line passing through the points intersects each arc
2 point, the end point of the first arc and the center point of the second arc.
The third point and the fourth point where the straight line that intersects the second arc
A straight line passing through the point, the end point of the second circular arc, and the center point of the first circular arc.
A fifth point and a sixth point where the line intersects the first arc, respectively.
Are stored in the storage means as temporary shortest points.
The point storing step, the distance between the first point and the second point, and the third point
The distance between the points and the corresponding endpoints of the first arc, and the fourth point
Corresponds to the distance between the endpoints of the corresponding first arc and the fifth point
The distance between the end points of the second arc that corresponds to the sixth point
The distance between the end points of the second arc is calculated by the calculating means.
From the calculation process and the calculated distance, the longest distance is the shortest distance
And a shortest distance storing step of storing in the storage means as
It is characterized by

【0009】また、図形要素から構成され、互いに食い
込んだ部品の最短距離を算出するための画像処理装置で
あって、記憶手段から処理対象となる図形要素である第
1の線分と第2の線分とを読み込む読込手段と、読み込
んだ線分のそれぞれの端点から相手の線分にそれぞれ垂
線をおろす垂線設定手段と、複数の垂線と線分との交点
を仮の最短点として記憶手段に記憶する仮最短点記憶手
段と、記憶された複数の垂線と対応する端点及び交点か
ら、それぞれの点間の距離を求める演算手段と、演算手
段により求めた点間の距離のなかで、最長の距離を最短
距離として記憶装置に記憶する最短距離記憶手段とを有
することを特徴とする。
[0009] Further , it is composed of graphic elements and eats each other.
With an image processing device for calculating the shortest distance of embedded parts
That is, a graphic element to be processed from the storage means
Reading means for reading the first line segment and the second line segment;
From each end of the line segment
A perpendicular line setting means that draws down a line and the intersection of multiple perpendicular lines and line segments
Temporary shortest point memorizer that stores in the storage means as the temporary shortest point
The column and the end points and intersections that correspond to the stored vertical lines
And the calculation means for calculating the distance between each point
The longest distance is the shortest among the distances obtained by steps
The shortest distance storage means for storing the distance in the storage device is provided.
It is characterized by doing.

【0010】また、図形要素から構成され、互いに食い
込んだ部品の最短距離を算出するための画像処理装置で
あって、記憶手段から処理対象となる図形要素である線
分と円弧とを読み込む読込手段と、読み込んだ円弧の中
心点を通り線分に垂直な直線が線分と円弧に交わるそれ
ぞれ第1の点と第2の点と、線分の端点と円弧の中心を
結ぶ直線が円弧と交わるそれぞれ第の点と第の点
と、円弧の端点から線分に垂線をおろしたそれぞれ第
の点と第の点を、それぞれ仮の最短点として記憶手段
に記憶する仮最短点記憶手段と、第1の点と第の点間
の距離と、第の点と第の点に対応する線分の端点間
の距離と、第の点と第の点に対応する線分の端点間
の距離と、第の点と第の点に対応する円弧の端点間
の距離と、第の点と第の点に対応する円弧の端点間
の距離とをそれぞれ求める演算手段と、求めた距離の中
から最長の距離を最短距離として記憶手段に記憶する最
短距離記憶手段とを有することを特徴とする。
Further, the image processing apparatus for calculating the shortest distance between the parts which are composed of graphic elements and intrude into each other, and read means for reading the line segment and the arc which are the graphic elements to be processed from the storage means. When it to a line perpendicular to the street segment the center point of the arc read intersects the line segment and circular arc
Down first point and the second point, respectively, and the third point and the fourth point, respectively a straight line connecting the centers of the end points and an arc of the line segment intersects the arc, a perpendicular to the line segment from the arc end point Each 5th
Point and the sixth point are respectively stored in the storage means as the temporary shortest point, the shortest point storage means, the distance between the first point and the second point, the third point and the third point. the distance between the end points of the corresponding line segments, the distance between the endpoints of a line segment corresponding to the fourth point and the fourth point, between the arc end point corresponding to the point of the fifth point and the fifth distance and an arithmetic means for obtaining respectively the distance between the arc end point corresponding to the point of the sixth point and the sixth, the shortest distance storage for the longest distance from among the distances determined and stored in the storage means as the shortest distance And means.

【0011】また、図形要素から構成され、互いに食い
込んだ部品の最短距離を算出するための画像処理装置で
あって、記憶手段から処理対象となる図形要素である第
1の円弧と第2の円弧とを読み込む読込手段と、読み込
んだ第1の円弧と第2の円弧が同心円が否かを判定する
同心円判定手段と、判定手段で同心円ではないと判定さ
れた場合、第1の円弧の中心点と第2の円弧の中心点と
を通る直線がそれぞれの円弧と交わる第1の点と第2の
点と、第1の円弧の端点と第2の円弧の中心点を通る直
線が第2の円弧にそれぞれ交わる第3の点と第4の点
と、第2の円弧の端点と第1の円弧の中心点を通る直線
が第1の円弧にそれぞれ交わる第5の点と第6の点と
を、それぞれ仮の最短点として記憶手段に記憶する最短
点記憶手段と、第1の点と第2の点間の距離と、第3の
点と対応する第1の円弧の端点間の距離と、第4の点と
対応する第1の円弧の端点間の距離と、第5の点と対応
する第2の円弧の端点間の距離と、第6の点と対応する
第2の円弧の端点間の距離とを求める演算手段と、求め
た距離の中から最長の距離を最短距離として記憶手段に
記憶する最短距離記憶手段とを有することを特徴とす
る。
An image processing apparatus for calculating the shortest distance between parts which are composed of graphic elements and intrude into each other, and which are first graphic arcs and second arcs which are graphic elements to be processed from the storage means. And a concentric circle determining means for determining whether the read first and second arcs are concentric circles, and if the determining means determines that they are not concentric circles, the center point of the first arc And a straight line passing through the center point of the second arc intersects the respective arcs, a first point and a second point, and a straight line passing through the end point of the first arc and the center point of the second arc is the second point. A third point and a fourth point which intersect the arc, respectively, and a fifth point and a sixth point where a straight line passing through the end point of the second arc and the center point of the first arc intersects the first arc, respectively. Are stored as temporary shortest points in the storage means, respectively. And a second point, a distance between the end points of the first arc corresponding to the third point, a distance between the end points of the first arc corresponding to the fourth point, and a fifth point. And a calculation means for calculating the distance between the end points of the second circular arc corresponding to and the distance between the end points of the second circular arc corresponding to the sixth point, and the longest distance among the calculated distances as the shortest distance. And a shortest distance storage means for storing in the storage means.

【0012】[0012]

【0013】以上の構成において、食い込み量を明確に
定義することにより、従来求められなかった、要素また
は1つ以上の要素から構成される部品が食い込んでいる
場合の最短距離を容易に求めることができる。また、機
構のシュミレーションなどにおいて、部品と部品が食い
込んだ場合でも、設計者は従来とおりの操作でシュミレ
ーションが行えるという効果が得られる。
In the above structure, by clearly defining the bite amount, it is possible to easily find the shortest distance when the element or the part composed of one or more elements bites, which has not been obtained in the past. it can. Further, in the simulation of the mechanism, even if the parts are cut into each other, the designer can perform the simulation by the conventional operation.

【0014】[0014]

【発明の実施の形態】以下、図面を参照して本発明に係
る一実施例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described in detail below with reference to the drawings.

【0015】図1は本発明に係る一実施例の食い込み量
計算装置が適用される情報処理システムの概略構成を示
すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an information processing system to which the bite amount calculating apparatus of one embodiment according to the present invention is applied.

【0016】図1において、11はキーボード装置及び
マウスなどを備えた入力装置であり表示装置14の画面
上に表示されている要素の指示、画面上の位置の指示及
び、その他の入力機能を有している。
In FIG. 1, reference numeral 11 denotes an input device equipped with a keyboard device, a mouse and the like, which has an instruction of elements displayed on the screen of the display device 14, an instruction of a position on the screen, and other input functions. is doing.

【0017】12は半導体メモリ及び磁気ディスクなど
を有する記憶装置であり、処理の対象となるCAD図形
要素に対応するデータ(二次元線分の場合は、始点・終
点の座標、二次元円弧の場合は、始点・終点・中心の座
標と回り方向、二次元円の場合は、中心の座標と半径な
どの図形要素を決定するのに十分な幾何情報及び要素の
集合とそれらの配置情報)、指定した情報及び本実施例
の情報処理システムが求める最短点や、食い込み量など
の計算結果、その他の各種情報を格納している。
Reference numeral 12 denotes a storage device having a semiconductor memory, a magnetic disk, etc., and data corresponding to the CAD graphic element to be processed (in the case of a two-dimensional line segment, the coordinates of the start point and the end point, and in the case of a two-dimensional arc). Is the start point / end point / center coordinates and rotation direction, and in the case of a two-dimensional circle, geometric information sufficient to determine the figure elements such as the center coordinates and radius, and a set of elements and their placement information), The stored information, the shortest point obtained by the information processing system of the present embodiment, the calculation result of the amount of bite, and other various information are stored.

【0018】13は本実施例装置全体の制御を司る中央
演算処理装置であり、本実施例の情報処理システムの各
種制御を実施するための読み込み、処理、書込み、その
他の各種制御を実行している。
Reference numeral 13 denotes a central processing unit that controls the overall operation of the apparatus of this embodiment, and executes reading, processing, writing, and other various controls for executing various controls of the information processing system of this embodiment. There is.

【0019】14は表示装置であり、要素または1つ以
上の要素から構成される部品、各種メッセージ、本実施
例の情報処理システムで求められた食い込み量、その他
を表示する。
Reference numeral 14 denotes a display device, which displays elements or parts composed of one or more elements, various messages, the amount of bite required by the information processing system of this embodiment, and the like.

【0020】以上の構成を備える本実施例の食い込み量
計算処理を以下説明する。
The bite amount calculation process of the present embodiment having the above configuration will be described below.

【0021】図2〜図9は本実施例の情報処理システム
における食い込み量計算処理を示すフローチャートであ
り、この処理を実行する制御プログラムは記憶装置12
に記憶されており、中央演算処理装置13の主メモリに
ロードされて実行される。
2 to 9 are flowcharts showing the bite amount calculation processing in the information processing system of this embodiment, and the control program for executing this processing is the storage device 12.
And is loaded into the main memory of the central processing unit 13 and executed.

【0022】まず、図2を参照して、本実施例における
点・線分の最短距離計算処理を説明する。
First, with reference to FIG. 2, the shortest distance calculation processing of the point / line segment in this embodiment will be described.

【0023】まず図2のステップS11において、点と
線分の最短点の設定を行う。この処理では、まず記憶装
置12より処理対象となる図形等の要素のデータを読み
込む。そして、読み込んだ要素の点より線分に垂線をお
ろす。次に、中央演算処理装置13において、その垂線
と線分の交点を最短点として求め、記憶装置12に格納
する。
First, in step S11 of FIG. 2, the shortest point of a point and a line segment is set. In this process, first, the data of the element such as a figure to be processed is read from the storage device 12. Then draw a perpendicular from the point of the read element to the line segment. Next, in the central processing unit 13, the intersection of the perpendicular and the line segment is obtained as the shortest point and stored in the storage unit 12.

【0024】例えば、図10に示すような線分A1と点
A2の場合、点A2より線分A1に垂線A3をおろし、
線分A1の交点A4を算定する。そして、この交点A4
と点A2が最短点となる。この結果は記憶装置12に格
納される。
For example, in the case of a line segment A1 and a point A2 as shown in FIG. 10, a perpendicular line A3 is drawn from the point A2 to the line segment A1.
The intersection A4 of the line segment A1 is calculated. And this intersection A4
The point A2 is the shortest point. The result is stored in the storage device 12.

【0025】次にステップS12に進み、点と線分の最
短距離の計算を行う。この処理では、ステップS11で
求められた最短点間の距離を中央演算処理装置13にお
いて算出し、最短距離として記憶装置12に格納する。
例えば、図10では、最短点として求められた点A2と
点A4の距離A5が最短距離として記憶装置12に格納
される。
Next, in step S12, the shortest distance between the point and the line segment is calculated. In this process, the distance between the shortest points obtained in step S11 is calculated by the central processing unit 13 and stored in the storage device 12 as the shortest distance.
For example, in FIG. 10, the distance A5 between the points A2 and A4 obtained as the shortest point is stored in the storage device 12 as the shortest distance.

【0026】次に、図3を参照して、本実施例における
線分・線分の最短距離計算処理を説明する 図3のステップS21では、線分と線分の最短点の設定
を行う。この処理では、まず対象となる要素のデータを
記憶装置12より読み込み、それぞれの線分の端点より
相手の線分に垂線をおろす。次に、中央処理装置13に
おいてその垂線と線分の交点を仮の最短点として求め、
記憶装置12に格納する。
Next, with reference to FIG. 3, in step S21 of FIG. 3 for explaining the shortest distance calculation processing of the line segment / line segment in the present embodiment, the line segment and the shortest point of the line segment are set. In this process, first, the data of the target element is read from the storage device 12, and the perpendicular line is drawn from the end point of each line segment to the line segment of the other party. Next, in the central processing unit 13, the intersection of the perpendicular and the line segment is obtained as a temporary shortest point,
It is stored in the storage device 12.

【0027】例えば、図11に示すような線分B1と線
分B2の場合、まず、線分B1の端点B3、B4より線
分B2に垂線B5、B6をおろし、垂線と線分B2を延
長した直線との交点B7、B8を求める。そして、垂線
をおろした点B3と交点B7、及び垂線を降ろした点B
4と交点B8を仮の最短点として記憶装置12に格納す
る。次に、線分B2の端点B9、B10より同様に、垂
線B11、B12をおろし、線分B1との交点B13と
垂線をおろした点B9及び交点14と垂線を降ろした点
B10を仮の最短点として記憶装置12に格納する。
For example, in the case of the line segment B1 and the line segment B2 as shown in FIG. 11, first, the perpendicular lines B5 and B6 are dropped from the end points B3 and B4 of the line segment B1 to the line segment B2, and the perpendicular line and the line segment B2 are extended. The intersections B7 and B8 with the straight line are calculated. Then, the perpendicular B3 and the intersection B7, and the perpendicular B
4 and the intersection B8 are stored in the storage device 12 as temporary shortest points. Next, from the end points B9 and B10 of the line segment B2, similarly, the perpendicular lines B11 and B12 are similarly dropped, and the intersection point B13 with the line segment B1 and the perpendicular point B9 and the intersection point 14 and the perpendicular point B10 are tentatively shortest. The points are stored in the storage device 12.

【0028】次にステップS22に進み、線分と線分の
最短距離の計算を行う。この処理では、ステップS21
で求めた仮の最短点間の距離を中央処理装置13におい
て算出し、最長のものを最短距離として記憶装置12に
格納する。
Next, in step S22, the line segment and the shortest distance between the line segments are calculated. In this process, step S21
The central processing unit 13 calculates the distance between the tentative shortest points obtained in step 1, and stores the longest one in the storage device 12 as the shortest distance.

【0029】上述した線分と線分の最短距離の計算(図
3のステップS22)の詳細を、図4のフローチャート
を参照して以下に説明する。
The details of the above-described calculation of the line segment and the shortest distance of the line segment (step S22 of FIG. 3) will be described below with reference to the flowchart of FIG.

【0030】まず、ステップS31では、ステップS2
1で求めた仮の最短点について全て最短距離を計算した
か終了の判定を行う。全ての仮の最短点について処理が
終了したと判定された場合には、最終的に記憶装置12
に格納された点及び距離を最短点、最短距離として処理
を終了する。図11の例においては、記憶装置12に格
納した仮の最短点(B3とB7、B4とB8、B9とB
13、B10とB14)の順番に処理を行い、B10と
B14の処理が終了したときに、全最短点の処理が終了
したと判定される。
First, in step S31, step S2
Whether or not the shortest distance has been calculated for all of the temporary shortest points obtained in 1 is determined to be the end. When it is determined that the processing has been completed for all the temporary shortest points, the storage device 12 is finally used.
The point and the distance stored in are set as the shortest point and the shortest distance, and the processing ends. In the example of FIG. 11, the temporary shortest points (B3 and B7, B4 and B8, B9 and B) stored in the storage device 12 are stored.
13, B10 and B14) are performed in this order, and when the processes of B10 and B14 are completed, it is determined that the processes of all the shortest points are completed.

【0031】一方、ステップS31で全ての仮の最短点
について処理を行っていないと判定された場合にはステ
ップS32に進み、仮の最短点の線分上判定を行う。こ
の処理は、ステップS31で、全ての最短点について処
理を行っていないと判定された場合に、仮の最短点が各
線分上にあるか否かを判定する処理である。本実施例の
情報処理システム内にあらかじめ設定されている誤差量
をもとに、点と線分の距離が誤差量より小さい場合に線
分上にあると判定する。ここで、仮の最短点が線分上で
ないと判定された場合にはステップS31に戻り、次の
最短点の処理を行う。
On the other hand, if it is determined in step S31 that all temporary shortest points have not been processed, the flow advances to step S32 to determine the line segment of the temporary shortest point. This process is a process of determining whether or not the provisional shortest point is on each line segment when it is determined in step S31 that all the shortest points have not been processed. Based on the error amount preset in the information processing system of the present embodiment, it is determined that the point is on the line segment when the distance between the point and the line segment is smaller than the error amount. If it is determined that the tentative shortest point is not on the line segment, the process returns to step S31 to process the next shortest point.

【0032】一方、ステップS32で仮の最短点が線分
上にあると判定された場合には最短距離の計算ステップ
S33に進む。図11で求められた仮の最短点において
は、B8とB4、B14とB10が線分上であると判定
される。ステップS33では仮の最短点の距離を算出す
る。図11の場合においては、ステップ32で仮の最短
点が線分上にあると判定されたB8とB4の距離B15
と、B14とB10の距離B16が計算されることにな
る。
On the other hand, if it is determined in step S32 that the tentative shortest point is on the line segment, the process proceeds to step S33 of calculating the shortest distance. At the provisional shortest point obtained in FIG. 11, it is determined that B8 and B4 and B14 and B10 are on the line segment. In step S33, the distance of the temporary shortest point is calculated. In the case of FIG. 11, the distance B15 between B8 and B4 for which the temporary shortest point is determined to be on the line segment in step 32
Then, the distance B16 between B14 and B10 is calculated.

【0033】次にステップS34に進み、最長距離の判
定を行う。この処理では、ステップS33で求めた処理
と記憶装置12に格納されている最長距離との比較を行
い、記憶装置12の最長距離より求めた距離の方が長い
と判定された場合は、ステップS35、ステップS36
に進み、求めた最短距離を最長距離、仮の最短点を最短
点として記憶装置12に格納する。
Next, in step S34, the longest distance is determined. In this process, the process obtained in step S33 is compared with the longest distance stored in the storage device 12, and if it is determined that the obtained distance is longer than the longest distance in the storage device 12, step S35. , Step S36
Then, the calculated shortest distance is stored in the storage device 12 as the longest distance and the temporary shortest point as the shortest point.

【0034】また、記憶装置12の最長距離より短いと
判定された場合にはステップS31の処理に戻り、次の
仮最短点の処理を行う。例えば、図11においては、ま
ずステップS33で求められた距離B15と記憶装置1
2の最長距離との比較を行う。(記憶装置12の最長距
離には、初期値としてマイナスの値が設定されてい
る。)この場合B15>0.0であるため、B15の方
が長いと判定され、次のステップS35、ステップS3
6でB15、及び仮の最短点B8とB14をそれぞれ最
長距離、最短点として記憶装置12に格納する。
If it is determined that the distance is shorter than the longest distance of the storage device 12, the process returns to step S31 and the next provisional shortest point is processed. For example, in FIG. 11, first, the distance B15 obtained in step S33 and the storage device 1
The maximum distance of 2 is compared. (A negative value is set as the initial value for the longest distance of the storage device 12.) Since B15> 0.0 in this case, it is determined that B15 is longer, and the next step S35, step S3.
In step 6, B15 and the tentative shortest points B8 and B14 are stored in the storage device 12 as the longest distance and the shortest point, respectively.

【0035】次に、距離B16を記憶装置12の最長距
離(B15が格納されている)と比較する。この場合B
15>B16であるため、記憶装置12の最長距離より
短いと判定され、ステップS31の処理に戻る。ここで
最終的に記憶装置12に格納された最長距離が図3のス
テップS22における線分B1とB2の最短距離とな
る。
Next, the distance B16 is compared with the longest distance (B15 is stored) of the storage device 12. In this case B
Since 15> B16, it is determined that the distance is shorter than the maximum distance of the storage device 12, and the process returns to step S31. Here, the longest distance finally stored in the storage device 12 becomes the shortest distance between the line segments B1 and B2 in step S22 of FIG.

【0036】更に、図5を本実施例における参照して、
点・円(弧)の最短距離計算処理を説明する。図5は、
点・円(弧)の最短距離計算を説明するフローチャート
である。
Further, referring to FIG. 5 in this embodiment,
The shortest distance calculation processing of points / circles (arcs) will be described. Figure 5
It is a flow chart explaining the shortest distance calculation of a point and a circle (arc).

【0037】まずステップS41で点と円(弧)の中心
点の一致判定を行う。この処理では、まず対象となる要
素のデータを記憶装置12より読み込み、中央処理装置
13において点と円(弧)の中心点との距離を算出し、
本実施例情報処理システム内に設定されている誤差量と
比較する。ここで求めた距離が誤差量より小さい場合
は、点と中心点が一致していると判定してステップS4
2、ステップS43に進む。
First, in step S41, the coincidence between the point and the center point of the circle (arc) is determined. In this processing, first, the data of the target element is read from the storage device 12, and the central processing unit 13 calculates the distance between the point and the center point of the circle (arc),
The amount of error is compared with that set in the information processing system of this embodiment. If the distance obtained here is smaller than the error amount, it is determined that the point and the center point coincide with each other, and step S4 is performed.
2. Go to step S43.

【0038】ステップS42で円(弧)の端点と点を最
短点とし、記憶装置12に格納する。続くステップS4
3で円(弧)の半径を最短距離として求め、記憶装置1
2に格納する。例えば、図12に示すように点C1と円
弧C2の中心点C3が一致する場合、円弧の端点C4と
点C1、端点C5と点C1がそれぞれ最短点となり、円
弧の半径C6が点と円弧の最短距離となる。
In step S42, the end points and points of the circle (arc) are set as the shortest points and stored in the storage device 12. Continuing step S4
In step 3, the radius of the circle (arc) is calculated as the shortest distance, and the storage device 1
Store in 2. For example, when the point C1 and the center point C3 of the arc C2 coincide as shown in FIG. 12, the end points C4 and C1 of the arc are the shortest points, and the end points C5 and C1 are the shortest points, respectively, and the radius C6 of the arc is the point of the points and the arc. The shortest distance.

【0039】一方、ステップS41で求めた距離が誤差
量より小さくない場合には、点と中心点が一致していな
いと判定してステップS44、ステップS45に進む。
まずステップS44で点と円(弧)の中心点を結ぶ直線
と円(弧)の交点と点を最短点として記憶装置12に格
納する。続いてステップS45で求めた最短点の距離を
最短距離とし、記憶装置12に格納する。例えば、図1
3に示すように、点D1と円弧D2の中心点D3が一致
しない場合には、点D1と中心点D3を結ぶ直線D4と
円弧D2の交点D5を求め、交点D5と点D1を最短点
とする。またD5、D1の距離D6が点と円弧の最短距
離となる。
On the other hand, when the distance obtained in step S41 is not smaller than the error amount, it is determined that the point and the center point do not match, and the process proceeds to steps S44 and S45.
First, at step S44, the straight line connecting the point and the center point of the circle (arc) and the intersection and point of the circle (arc) are stored in the storage device 12 as the shortest points. Subsequently, the distance of the shortest point obtained in step S45 is set as the shortest distance and stored in the storage device 12. For example, in FIG.
As shown in FIG. 3, when the point D1 and the center point D3 of the arc D2 do not coincide with each other, the intersection D5 of the straight line D4 connecting the point D1 and the center point D3 and the arc D2 is obtained, and the intersection D5 and the point D1 are set as the shortest points. To do. The distance D6 between D5 and D1 is the shortest distance between the point and the circular arc.

【0040】次に図6を参照して本実施例における線分
・円(弧)の最短距離計算を説明する。まずステップS
51で線分と円(弧)の最短点の設定を行う。この処理
では、中央処理装置13において、まず対象となる要素
のデータを記憶装置12より読み込む。そして、円
(弧)の中心点から線分に垂直となる直線を求め、その
直線と線分、円(弧)の交点を仮の最短点とし、この仮
の最短点を記憶装置12に格納する。次に、線分の端点
と円弧の最短点を上述した図5のステップS41、ステ
ップS42、ステップS44と同様の処理で求める。ま
た、円弧の端点と線分の最短点を上述した図2のステッ
プS11と同様にして求め、仮の端点として記憶装置1
2に格納する。例えば図14に示すような円弧E1と線
分E2の場合、まず円弧E1の中心点E3より線分E2
に垂直となる直線E4を求め、求めた直線E4と線分E
2の交点E5と円弧E1との交点E6を求める。次に線
分の端点E7、E8と円弧E1の最短点E9、E10を
ステップS41、S42、S44と同様の処理で求め
る。次に円弧の端点E11とE12と線分E2との最短
点E13、E14を求め、求めた最短点を仮の最短点と
して全て記憶装置12に格納する。
Next, the shortest distance calculation of the line segment / circle (arc) in this embodiment will be described with reference to FIG. First step S
At 51, the shortest point between the line segment and the circle (arc) is set. In this process, the central processing unit 13 first reads the data of the target element from the storage unit 12. Then, a straight line perpendicular to the line segment is obtained from the center point of the circle (arc), the intersection of the straight line, the line segment, and the circle (arc) is set as the temporary shortest point, and the temporary shortest point is stored in the storage device 12. To do. Next, the end point of the line segment and the shortest point of the arc are obtained by the same processing as the above-described steps S41, S42, and S44 in FIG. Further, the end point of the arc and the shortest point of the line segment are obtained in the same manner as in step S11 of FIG. 2 described above, and the storage device 1 is used as a temporary end point.
Store in 2. For example, in the case of an arc E1 and a line segment E2 as shown in FIG. 14, first, a line segment E2 is drawn from the center point E3 of the arc E1.
A straight line E4 perpendicular to the line is obtained, and the obtained straight line E4 and line segment E
An intersection E6 between the intersection E5 of 2 and the arc E1 is obtained. Next, the end points E7, E8 of the line segment and the shortest points E9, E10 of the arc E1 are obtained by the same processing as steps S41, S42, S44. Next, the shortest points E13 and E14 of the arc end points E11 and E12 and the line segment E2 are obtained, and the obtained shortest points are all stored in the storage device 12 as temporary shortest points.

【0041】次に、ステップS52に進み、線分と円
(弧)の最短距離の計算を行う。この処理では、ステッ
プS51で求めた仮の最短点間の距離を中央処理装置1
3において算出し、最長のものを最短距離として記憶装
置12に格納する。
Next, in step S52, the shortest distance between the line segment and the circle (arc) is calculated. In this processing, the central processing unit 1 calculates the distance between the temporary shortest points obtained in step S51.
3, the longest distance is stored in the storage device 12 as the shortest distance.

【0042】上述したステップS52における線分と線
分の最短距離の計算処理の詳細を、図7のフローチャー
トを参照して以下に説明する。
Details of the calculation process of the line segment and the shortest distance of the line segment in step S52 described above will be described below with reference to the flowchart of FIG.

【0043】まず、ステップS61では、ステップS5
1で求めた全ての仮の最短点について処理を行っている
か否かを判定する。全ての仮の最短点について処理を行
っていないと判定された場合にはステップS62に進
み、仮の最短点が線分および円(弧)の要素上にあるか
否かを判定する。点が要素上にあるかの判定は、本実施
例情報システム内にあらかじめ設定されている誤差量を
もとに、点と要素の距離が誤差量以内にある場合を要素
上にあると判定する。ここで、線分、円(弧)上でない
と判定された場合にはステップS61に戻り次の最短点
の処理を行う。
First, in step S61, step S5
It is determined whether or not processing has been performed for all temporary shortest points obtained in 1. When it is determined that the processing has not been performed for all the temporary shortest points, the process proceeds to step S62, and it is determined whether the temporary shortest points are on the line segment and the element of the circle (arc). Whether the point is on the element is determined based on the error amount preset in the information system of this embodiment, and when the distance between the point and the element is within the error amount, it is determined that the point is on the element. . If it is determined that the line segment is not on the circle (arc), the process returns to step S61 to process the next shortest point.

【0044】一方、ステップS62で仮の最短点がそれ
ぞれ線分、円(弧)上にあると判定された場合にはステ
ップS63に進む。図14に示す仮の最短点において
は、E13とE14以外はそれぞれ線分または円弧上に
あるため、仮の最短点E5とE6、E7とE9、E8と
E10が要素上にあると判定される。
On the other hand, if it is determined in step S62 that the tentative shortest points are on the line segment and on the circle (arc), the process proceeds to step S63. Since the provisional shortest points shown in FIG. 14 are on line segments or arcs other than E13 and E14, respectively, the provisional shortest points E5 and E6, E7 and E9, and E8 and E10 are determined to be on the element. .

【0045】そしてステップS63において、ステップ
S62で要素上にあると判定された仮の最短点の距離を
算出する。図14に示す例においては、ステップS62
で仮の最短点が要素上にあると判定されたE5とE6の
距離E15、E7とE9の距離E16、E8とE10の
距離E17が計算されることになる。
Then, in step S63, the distance of the temporary shortest point determined to be on the element in step S62 is calculated. In the example shown in FIG. 14, step S62.
Then, the distance E15 between E5 and E6, the distance E16 between E7 and E9, and the distance E17 between E8 and E10 in which the provisional shortest point is determined to be on the element are calculated.

【0046】次にステップS64に進み、最長距離の判
定を行う。この処理では、ステップS63で求めた距離
と記憶装置12に格納されている最長距離との比較を行
い、記憶装置12の最短距離より求めた距離の方が長い
か否かを判定することになる。ここで、記憶装置12の
最長距離より求めた距離の方が短いと判定された場合は
ステップS61の処理に戻り、次の仮最短点の処理を行
う。
Next, in step S64, the longest distance is determined. In this process, the distance obtained in step S63 is compared with the longest distance stored in the storage device 12, and it is determined whether or not the obtained distance is longer than the shortest distance of the storage device 12. . If it is determined that the calculated distance is shorter than the longest distance of the storage device 12, the process returns to step S61, and the process of the next provisional shortest point is performed.

【0047】一方、ステップS64で記憶装置12の最
短距離より求めた距離の方が長いと判定された場合はス
テップS65の処理に進み、求めた最短距離を最長距離
として記憶装置12に格納する。そして続くステップS
66で仮の最短点を最短点として設定し、記憶装置12
に格納する。そしてステップS61に戻る。
On the other hand, if it is determined in step S64 that the calculated distance is longer than the shortest distance of the storage device 12, the process proceeds to step S65, and the calculated shortest distance is stored in the storage device 12 as the longest distance. And the following step S
At 66, the temporary shortest point is set as the shortest point, and the storage device 12
To store. Then, the process returns to step S61.

【0048】一方、ステップS61で全ての仮の最短点
に対して処理が終了したと判定された場合には、最終的
に記憶装置12に格納された点及び距離を最短点、最短
距離として処理を終了する。図14においては、記憶装
置12に格納した仮の最短点(E5とE6、E8とE1
0、E11とE13、E12とE14)の順番に処理を
行い、E12とE14の処理が終了したときに、全最短
点の処理が終了したと判定される。
On the other hand, if it is determined in step S61 that the processing has been completed for all temporary shortest points, the points and distances finally stored in the storage device 12 are treated as the shortest points and shortest distances. To finish. In FIG. 14, the provisional shortest points (E5 and E6, E8 and E1 stored in the storage device 12 are stored.
0, E11 and E13, E12 and E14) are performed in this order, and when the processing of E12 and E14 is completed, it is determined that the processing of all shortest points is completed.

【0049】ステップS64からステップS66の処理
において、例えば、図14に示す例である場合には、ま
ずステップS63で求められた距離E15と記憶装置1
2の最長距離との比較を行う(記憶装置12の最長距離
には、初期値としてマイナスの値が設定されてい
る。)。この場合、E15>0.0であるため、E15
の方が長いと判定され、次のステップS65、ステップ
S66において距離E15、及び仮の最短点をそれぞれ
最長距離、最短点として記憶装置12に格納する。
In the processing of steps S64 to S66, for example, in the case of the example shown in FIG. 14, the distance E15 obtained in step S63 and the storage device 1 are first determined.
2 is compared with the maximum distance of 2 (the maximum distance of the storage device 12 is set to a negative value as an initial value). In this case, since E15> 0.0, E15
Is determined to be longer, and the distance E15 and the tentative shortest point are stored in the storage device 12 as the longest distance and the shortest point in the next steps S65 and S66, respectively.

【0050】次に、距離E16を記憶装置12の最長距
離と比較し、この場合記憶装置12に最長距離として格
納されているE15より短いと判定され、ステップS6
1の処理に戻る。次に、距離E17について比較を行
い、記憶装置12の最長距離より短いと判定され、ステ
ップS61の処理に戻る。ここで最終的に記憶装置12
に格納された最長距離が図6のステップS52における
円弧E1とE2の最短距離となる。
Next, the distance E16 is compared with the longest distance of the storage device 12, and in this case, it is determined that it is shorter than E15 stored as the longest distance in the storage device 12, and step S6 is performed.
Return to processing of 1. Next, the distance E17 is compared, and it is determined that the distance E17 is shorter than the longest distance of the storage device 12, and the process returns to step S61. Here, finally the storage device 12
The longest distance stored in is the shortest distance between the arcs E1 and E2 in step S52 of FIG.

【0051】次に図8を参照して本実施例における円
(弧)・円(弧)の最短距離計算処理を説明する。図8
は、円(弧)・円(弧)の最短距離計算処理を説明する
フローチャートである。
Next, the shortest distance calculation process of a circle (arc) and a circle (arc) in this embodiment will be described with reference to FIG. Figure 8
FIG. 9 is a flowchart illustrating a circle (arc) / shortest distance calculation process for a circle (arc).

【0052】まずステップS71において、円(弧)と
円(弧)が同心円か否かを判定する。この処理では、ま
ず対象となる要素のデータを記憶装置12より読み込
む。次に中央処理13においてそれぞれの円(弧)の中
心点の距離を求め、本実施例情報システム内に予め設定
されている誤差量との比較を行う。ここで、中心点間の
距離が誤差量以上の場合は、同心円でないと判定し、ス
テップS72、S73の処理へ進む。
First, in step S71, it is determined whether the circle (arc) and the circle (arc) are concentric circles. In this process, first, the data of the target element is read from the storage device 12. Next, in the central processing 13, the distance between the center points of the respective circles (arcs) is obtained and compared with the error amount preset in the information system of this embodiment. Here, if the distance between the center points is equal to or greater than the error amount , it is determined that they are not concentric circles, and the process proceeds to steps S72 and S73.

【0053】ステップS72では、円(弧)と円(弧)
の仮の最短点を求める。この処理では、まず中心点を結
ぶ直線がそれぞれの円(弧)と交わる点を最短点として
求める。次に、それぞれの円(弧)の端点と円(弧)の
最短点をステップS44とステップS45と同様に求
、求めた全ての最短点として記憶装置12に格納す
る。例えば、図15に示すように、円弧F1と円弧F2
同心円でない場合に、まず中心点F3とF4を通る直
線F5と円弧F2の交点F6およびF7を求め、これを
仮の最短点として記憶装置12に格納する。次に、円弧
F1の端点F8、F9と円弧F2との最短点F10、F
11と円弧F2の端点F12、F13と円弧F1との最
短点F14、F15をステップS44とステップS45
と同様に求め、仮の最短点として記憶装置12に格納す
る。
In step S72, a circle (arc) and a circle (arc)
Find the temporary shortest point of. In this process, first, the point where the straight line connecting the central points intersects each circle (arc) is obtained as the shortest point. Next, the end points of the circles (arcs) and the shortest points of the circles (arcs) are obtained in the same manner as in step S44 and step S45.
Therefore , all the calculated shortest points are stored in the storage device 12. For example, as shown in FIG. 15, arc F1 and arc F2
If is not a concentric circle , first, the intersections F6 and F7 of the straight line F5 passing through the center points F3 and F4 and the arc F2 are obtained, and these are stored in the storage device 12 as temporary shortest points. Next, the shortest points F10, F between the end points F8, F9 of the arc F1 and the arc F2.
11 are the end points F12 of the arc F2 and the shortest points F14 and F15 of the arc F1 are the steps S44 and S45.
And is stored in the storage device 12 as a temporary shortest point.

【0054】次にステップS73に進み、円(弧)と円
(弧)の最短距離の計算を行う。この処理では、ステッ
プS72で求めた仮の最短点間の距離を中央処理装置1
3において算出し最長のものを最短距離として記憶装置
12に格納する。
Next, in step S73, the shortest distance between the circle (arc) and the circle (arc) is calculated. In this processing, the distance between the temporary shortest points obtained in step S72 is calculated by the central processing unit 1.
3, and the longest one is stored in the storage device 12 as the shortest distance.

【0055】上述した図8のステップS73における円
(弧)と円(弧)の最短距離の計算処理の詳細を、図9
のフローチャートを参照して以下に説明する。
Details of the calculation process of the shortest distance between circles (arcs) and circles (arcs) in step S73 of FIG. 8 described above will be described with reference to FIG.
This will be described below with reference to the flowchart of FIG.

【0056】まず、ステップS81で、ステップS72
で求めた仮の最短点について全て最短距離を計算したか
終了の判定を行う。ここで、全ての仮の最短点について
処理を行っていないと判定された場合にはステップS8
2に進み、仮の最短点がそれぞれの円弧上にあるか否か
を判定する。点が円(弧)上にあるか否かの判定は、本
実施例情報システム内にあらかじめ設定されている誤
差量をもとに、点と円(弧)の距離が誤差量より小さい
場合は、円(弧)上にあると判定する。また、点と円
(弧)の距離が誤差量以上の場合は、円(弧)上にない
と判定する。ここで、円弧上でないと判定された場合、
ステップS81に戻り次の最短点の処理を行う。
First, in step S81, step S72
Whether or not the shortest distances have been calculated for all of the temporary shortest points obtained in step 3 is determined. Here, if it is determined not to perform <br/> process with the shortest points of all provisional step S8
Proceeding to 2, it is determined whether or not the temporary shortest point is on each arc. Whether the point is on a circle (arc) is determined based on the error amount preset in the information system of the present embodiment when the distance between the point and the circle (arc) is smaller than the error amount. Is determined to be on a circle (arc). If the distance between the point and the circle (arc) is greater than or equal to the error amount, it is determined that the point is not on the circle (arc). Here, when it is determined that it is not on an arc,
The process returns to step S81 to process the next shortest point.

【0057】一方、ステップS82において、仮の最短
点がそれぞれの円(弧)上にあると判定された場合には
ステップS83に進み、最短距離の計算を行う。図15
で求められた仮の最短点においては、交点E10以外は
それぞれの円弧上にあるため、仮の最短点F6とF7
F9とF11、F12とF14、F13とF15が円
(弧)上にあると判定される。
On the other hand, if it is determined in step S82 that the tentative shortest point is on each circle (arc), the process proceeds to step S83, and the shortest distance is calculated. Figure 15
Since the tentative shortest points obtained by the above are on the respective arcs except the intersection E10, the tentative shortest points F6 and F7 ,
It is determined that F9 and F11, F12 and F14, F13 and F15 are on a circle (arc).

【0058】ステップS83においては、仮の最短点の
距離を算出する。図15においては、ステップS82で
仮の最短点が円(弧)上にあると判定されたF6とF7
の距離F16、F9とF11の距離F17、F12とF
14の距離F18、F13とF15の距離F19が計算
の対象となる。
In step S83, the distance of the temporary shortest point is calculated. In FIG. 15 , F6 and F7 in which it is determined in step S82 that the temporary shortest point is on the circle (arc)
Distances F16, F9 and F11 distances F17, F12 and F
The distance F18 of 14 and the distance F19 of F13 and F15 are to be calculated.

【0059】次にステップS84に進み、最長距離の判
定を行う。この処理では、ステップS83で求めた距離
と記憶装置12に格納されている最長距離との比較を行
なう。そして、記憶装置12の最長距離より求めた距離
の方が長いと判定された場合は、ステップS85に進
み、求めた最短距離を最長距離として設定して記憶装置
12に格納する。続いてステップS87で仮の最短点を
最短点として設定し、記憶装置12に格納する。そして
ステップS81に戻る。
Next, in step S84, the longest distance is determined. In this process, the distance calculated in step S83 is compared with the longest distance stored in the storage device 12. When it is determined that the calculated distance is longer than the maximum distance of the storage device 12, the process proceeds to step S85, and the calculated minimum distance is set as the maximum distance and stored in the storage device 12. Subsequently, in step S87, the temporary shortest point is set as the shortest point and stored in the storage device 12. Then, the process returns to step S81.

【0060】一方、ステップS84で記憶装置12の最
長距離より短いと判定された場合にはステップS81の
処理に戻り、次の仮最短点の処理を行う。例えば、図1
5においては、まずステップS83で求められた距離F
16と記憶装置12の最長距離との比較を行う(記憶装
置12の最長距離には、初期値としてマイナスの値が設
定されている。)。この場合F16>0.0であるた
め、F16の方が長いと判定され、次のステップS8
5、ステップS86において、距離F16及び仮の最短
点をそれぞれ最長距離として記憶装置12に格納する。
次に、距離F17、距離F18、距離F19についても
同様に記憶装置12の最長距離と比較し、最長距離、最
短点の設定を行う。ここで、最終的に記憶装置12に格
納された最長距離が図8のステップS73における円弧
F1と円弧F2の最短距離となる。
On the other hand, if it is determined in step S84 that the distance is shorter than the longest distance of the storage device 12, the process returns to step S81, and the next provisional shortest point is processed. For example, in FIG.
5, first, the distance F obtained in step S83
16 is compared with the longest distance of the storage device 12 (the longest distance of the storage device 12 is set to a negative value as an initial value). In this case, since F16> 0.0, it is determined that F16 is longer, and the next step S8
5, in step S86, the distance F16 and the temporary shortest point are stored in the storage device 12 as the longest distances.
Next, the distance F17, the distance F18, and the distance F19 are similarly compared with the longest distance of the storage device 12, and the longest distance and the shortest point are set. Here, the longest distance finally stored in the storage device 12 becomes the shortest distance between the arcs F1 and F2 in step S73 of FIG.

【0061】一方、ステップS81の処理で全ての終了
したと判定された場合には、最終的に記憶装置12に格
納された最短点、最短距離として処理を終了する。図1
5に示す例においては、記憶装置12に格納した仮の最
短点(F6とF7、F8とF10、F9とF11、F1
2とF14、F13とF15)の順番に処理を行い、F
13とF15の処理が終了したときに、全最短点の処理
が終了したと判定される。
On the other hand, if it is determined in step S81 that all processing has ended, the processing is ended with the shortest point and the shortest distance finally stored in the storage device 12. Figure 1
In the example shown in FIG. 5, the temporary shortest points (F6 and F7, F8 and F10, F9 and F11, F1 stored in the storage device 12 are stored.
2 and F14, F13 and F15) in the order
When the processing of 13 and F15 is completed, it is determined that the processing of all the shortest points is completed.

【0062】更に、図8の処理の説明に戻り、ステップ
S71において中心点間の距離が誤差量より小さい場合
は同心円と判定し、ステップS74へ進む。ステップS
74では、円(弧)と円(弧)の重なりの判定を行う。
この処理では、円(弧)の中心点とそれぞれの円(弧)
の端点を通る直線とX軸とのなす角度を求める。次に、
一方の円(弧)の端点間のなす角度内に他方の円(弧)
の端点の角度が存在するか求め、ある場合は重なると判
定し、ない場合には重ならないと判定する。
Further, returning to the description of the processing of FIG. 8, if the distance between the center points is smaller than the error amount in step S71, it is determined that they are concentric circles, and the process proceeds to step S74. Step S
At 74, it is determined whether the circle (arc) and the circle (arc) overlap.
In this process, the center point of the circle (arc) and each circle (arc)
The angle formed by the X-axis and the straight line passing through the end point of is calculated. next,
Within the angle between the endpoints of one circle (arc), the other circle (arc)
It is determined whether or not the angle of the end point exists, and if there is, it is determined that they overlap, and if they do not, it is determined that they do not overlap.

【0063】例えば、図16に示すような円(弧)G1
とG2の場合は、円(弧)G1の端点G3、G4のなす
角θ1、θ2の間に円弧G2の端点G6のなす角θ4が
存在するため、重なると判定される。また図17に示す
ような円弧H1とH2の場合は、それぞれの端点のなす
角θ1、θ2とθ3、θ4の間に他の端点が存在しない
ため、重ならないと判定される。
For example, a circle (arc) G1 as shown in FIG.
And G2, the angle θ4 formed by the end points G6 of the arc G2 exists between the angles θ1 and θ2 formed by the end points G3 and G4 of the circle (arc) G1 and is therefore determined to overlap. Further, in the case of the arcs H1 and H2 as shown in FIG. 17, there is no other end point between the angles θ1, θ2 and θ3, θ4 formed by the end points, so it is determined that they do not overlap.

【0064】このステップS74で重なると判定された
場合にはステップS75に進み、中央処理装置13にお
いて2つの円(弧)の半径差を最短距離として求めこれ
を算短距離として設定仕手記憶装置12に格納する。続
いてステップS76において、重なると判定された円弧
の端点と円弧の中心点を通る直線と円弧の交点を最短点
として求め、これを最短点として設定して記憶装置12
に格納する。例えば、重なっていると判定された図16
の場合においては、円弧G1と円弧G2の半径差G8が
最短距離となり、ステップS74で重なると判定された
円弧の端点G6と円弧の中心点G7を通る直線9と円弧
G1の交点G10と端点G6が最短点となる。
If it is determined in step S74 that they overlap, the process proceeds to step S75, in which the central processing unit 13 determines the radius difference between the two circles (arcs) as the shortest distance and sets this as the calculated short distance. To store. Subsequently, in step S76, the intersection point of the arc and the straight line passing through the end points of the arcs determined to overlap and the center point of the arcs is obtained as the shortest point, which is set as the shortest point and stored in the storage device 12.
To store. For example, it is determined in FIG.
In this case, the radius difference G8 between the circular arc G1 and the circular arc G2 becomes the shortest distance, and the intersection point G10 and the end point G6 of the straight line 9 and the circular arc G1 passing through the circular arc end point G6 and the circular arc center point G7 determined to overlap in step S74. Is the shortest point.

【0065】一方、ステップS74で重ならないと判定
された場合にはステップS77に進み、円(弧)どうし
の向き合いを判定する。この処理では、ステップS74
で求めた一方の円(弧)端点のなす角度にπを加え、ス
テップS74と同様に重なりの判定を行う。ここで、重
なっている場合、円(弧)は向き合ってると判定され、
ステップS78に進む。
On the other hand, if it is determined in step S74 that they do not overlap, the process proceeds to step S77, in which the orientation of the circles (arcs) is determined. In this process, step S74
Π is added to the angle formed by one of the circle (arc) end points obtained in step S7, and overlap determination is performed as in step S74. Here, if they overlap, it is determined that the circles (arcs) are facing each other,
It proceeds to step S78.

【0066】そしてステップS78で中央処理装置13
において2つの円(弧)の半径の和を最短距離として求
め、記憶ステップ地12に格納する。そして続くステッ
プS79で、向き合っていると判定された円弧の端点と
円弧の中心点を通る直線と円弧の交点を最短点として求
め、記憶装置12に格納する。例えば、向き合っている
と判定された図18においては、円弧H1と円弧H2の
半径和H8が最短距離となり、ステップS77で向き合
うと判定された円弧の端点H5と円弧の中心点H7を通
る直線H9と円弧1の交点H10と端点H5が最短点と
なる。
Then, in step S78, the central processing unit 13
At, the sum of the radii of the two circles (arcs) is obtained as the shortest distance and stored in the storage step place 12. Then, in a succeeding step S79, the intersection of the straight line passing through the end point of the arc determined to face each other and the center point of the arc and the arc is obtained as the shortest point and stored in the storage device 12. For example, in FIG. 18 in which it is determined that they face each other, the shortest distance is the radius sum H8 of the arcs H1 and H2, and a straight line H9 that passes through the end point H5 of the arc and the center point H7 of the arc that are determined to face each other in step S77. The intersection H10 and the end point H5 of the arc 1 are the shortest points.

【0067】一方、ステップS77で重なっていない場
合には、円(弧)は向き合っていないと判定され、最短
距離を求めずに処理を終了する。例えば、ステップS7
4で重なっていないと判定された図17においては、求
められた円弧H1の端点のなす角度θ1、θ2のπを加
えたθ5、θ6を求め、円弧H2の端点のなす角度θ
3、θ4がθ5、θ6を求め、円弧H2の端点のなす角
度θ3、θ4がθ5、θ6の間に存在するか求める。こ
の場合θ3がθ5、θ6間に存在するため、円弧H1と
円弧H2は向き合っていると判定される。また図18に
示すような円弧I1と円弧I2の場合は、円弧I1の端
点のなす角度θ1、θ2にπを加えたθ5、θ6の間に
円弧I2の端点のなす角度θ3、θ4が存在しないた
め、向き合わないと判定され、処理を終了する。
On the other hand, if they do not overlap in step S77, it is determined that the circles (arcs) do not face each other, and the process ends without obtaining the shortest distance. For example, step S7
In FIG. 17, which is determined not to overlap with each other, the angles θ1 and θ6 formed by the obtained end points of the arc H1 and θ2 are added to obtain θ5 and θ6, and the angle θ formed by the end points of the arc H2 is obtained.
3 and θ4 determine θ5 and θ6, and determine whether the angles θ3 and θ4 formed by the end points of the arc H2 exist between θ5 and θ6. In this case, since θ3 exists between θ5 and θ6, it is determined that the arc H1 and the arc H2 face each other. In the case of the arc I1 and the arc I2 as shown in FIG. 18, the angles θ3 and θ4 formed by the end points of the arc I2 do not exist between θ5 and θ6 obtained by adding π to the end points of the arc I1 and θ2. Therefore, it is determined that they do not face each other, and the process ends.

【0068】以上説明した様に本実施例によれば、食い
込み量を明確に定義することにより、従来求められなか
った、要素または1つ以上の要素から構成される部品が
食い込んでいる場合の最短距離を容易に求めることがで
きる。また、機構のシュミレーションなどにおいて、部
品と部品が食い込んだ場合でも、設計者は従来とおりの
操作でシュミレーションが行えるという効果が得られ
る。
As described above, according to the present embodiment, by clearly defining the bite amount, the shortest time when an element or a part composed of one or more elements is biting, which has not been conventionally required. The distance can be easily obtained. Further, in the simulation of the mechanism, even if the parts are cut into each other, the designer can perform the simulation by the conventional operation.

【0069】また、本発明は、『ホストコンピュータ、
インタフェース、プリンタ等の』複数の機器から構成さ
れるシステムに適用しても、『複写機等の』1つの機器
からなる装置に適用しても良い。また、本発明はシステ
ム或は装置にプログラムを供給することによって実施さ
れる場合にも適用できることは言うまでもない。この場
合、本発明に係るプログラムを格納した記憶媒体が本発
明を構成することになる。そして、該記憶媒体からその
プログラムをシステム或は装置に読み出すことによっ
て、そのシステム或は装置が、予め定められた仕方で動
作する。
The present invention also provides a "host computer,
The invention may be applied to a system including a plurality of devices such as an interface and a printer, or to an apparatus including one device such as a copying machine. Further, it goes without saying that the present invention can be applied to the case where it is implemented by supplying a program to a system or an apparatus. In this case, the storage medium storing the program according to the present invention constitutes the present invention. Then, by reading the program from the storage medium to the system or device, the system or device operates in a predetermined manner.

【0070】[0070]

【発明の効果】以上説明したように本発明によれば、食
い込み量を明確に定義することにより、要素または1つ
以上の要素から構成される部品が食い込んでいる場合の
最短距離を容易に求めることができる。
As described above, according to the present invention, by clearly defining the bite amount, it is possible to easily obtain the shortest distance when the element or the component composed of one or more elements bites. be able to.

【0071】[0071]

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

【図1】本発明に係る一実施例の画像処理を行う情報処
理システムの構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an information processing system that performs image processing according to an embodiment of the present invention.

【図2】本実施例における線分・点の食い込み量計算処
理を示すフローチャートである。
FIG. 2 is a flowchart showing a line segment / point bite amount calculation process in the present embodiment.

【図3】本実施例における線分・線分の食い込み量計算
処理を示すフローチャートである。
FIG. 3 is a flowchart showing a line segment / line segment biting amount calculation process in the present embodiment.

【図4】図2における線分・線分の最短距離計算処理の
詳細を示すフローチャートである。
FIG. 4 is a flowchart showing details of a line segment / line segment shortest distance calculation process in FIG.

【図5】本実施例における点・円(弧)の食い込み量計
算処理を示すフローチャートである。
FIG. 5 is a flow chart showing a point / circle (arc) bite amount calculation process in the present embodiment.

【図6】本実施例における線分・円(弧)の食い込み量
計算処理を示すフローチャートである。
FIG. 6 is a flowchart showing a line segment / circle (arc) bite amount calculation process in the present embodiment.

【図7】図6に示す線分・円(弧)の最短距離計算処理
の詳細を示すフローチャートである。
FIG. 7 is a flowchart showing details of the shortest distance calculation processing of the line segment / circle (arc) shown in FIG.

【図8】本実施例における円(弧)・円(弧)の食い込
み量の計算処理を示すフローチャートである。
FIG. 8 is a flowchart showing a calculation process of a circle (arc) and a biting amount of a circle (arc) in the present embodiment.

【図9】図8における円(弧)・円(弧)の最短距離計
算の詳細を示すフローチャートである。
9 is a flowchart showing details of calculation of a shortest distance between a circle (arc) and a circle (arc) in FIG.

【図10】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 10 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図11】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 11 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図12】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 12 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図13】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 13 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図14】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 14 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図15】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 15 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図16】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 16 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図17】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 17 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【図18】本実施例における最短距離および最短点の計
算方法を説明する図である。
FIG. 18 is a diagram illustrating a method of calculating the shortest distance and the shortest point in the present embodiment.

【付号の説明】[Explanation of supplements]

11 入力装置 12 記憶装置。 13 中央演算処理装置 14 表示装置 11 Input device 12 Storage device. 13 Central processing unit 14 Display

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−193973(JP,A) 特開 平3−135672(JP,A) 特開 平4−148483(JP,A) 特開 平5−120389(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 7/00 - 7/60 G06T 1/00 G06F 17/50 ─────────────────────────────────────────────────── --- Continuation of the front page (56) References JP-A-1-193973 (JP, A) JP-A-3-135672 (JP, A) JP-A-4-148483 (JP, A) JP-A-5- 120389 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06T 7 /00-7/60 G06T 1/00 G06F 17/50

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 図形要素から構成され、互いに食い込ん
だ部品の最短距離を算出するための画像処理方法であっ
て、 記憶手段から処理対象となる図形要素である第1の線分
と第2の線分とを読み込む読込工程と、 前記読み込んだ線分のそれぞれの端点から相手の線分又
はその延長線上にそれぞれ垂線をおろす垂線工程と、 前記複数の垂線と線分との交点を仮の最短点として前記
記憶手段に記憶する仮最短点記憶工程と、 前記記憶された複数の垂線と対応する端点及び交点か
ら、それぞれの点間の距離を演算手段により求める演算
工程と、 前記演算工程で求めた点間の距離のなかで、最長の距離
を前記最短距離として前記記憶装置に記憶する最短距離
記憶工程とを有することを特徴とする画像処理方法。
1. Comprised of graphic elements and digging into each other
It is an image processing method for calculating the shortest distance of parts.
The first line segment which is the graphic element to be processed from the storage means.
And a second line segment, and a reading step of reading the line segment of the other party from each end point of the read line segment.
Is a vertical step of drawing a vertical line on each of the extension lines, and the intersection of the plurality of vertical lines and the line segment is taken as the temporary shortest point.
The temporary shortest point storing step of storing in the storing means, and the end points and intersection points corresponding to the plurality of stored perpendicular lines
, The distance between each point is calculated by calculating means
The longest distance among the distances between the process and the points calculated in the above calculation process
Is the shortest distance stored in the storage device as the shortest distance.
An image processing method, comprising: a storing step.
【請求項2】 前記演算工程は、前記仮の最短点記憶工
程で記憶された仮の最短点が、前記読み込んだ線分上に
乗っているか否かを判定し、前記線分上に乗っている場
合に点間の距離を演算することを特徴とする請求項1に
記載の画像処理方法。
2. The calculation step is the temporary shortest point memory work.
The temporary shortest point stored in the
If you are riding on the line segment, determine whether you are riding
When the distance between the points is calculated, the distance between the points is calculated.
The described image processing method.
【請求項3】 図形要素から構成され、互いに食い込ん
だ部品の最短距離を算出するための画像処理方法であっ
て、 記憶手段から処理対象となる図形要素である点と円弧と
を読み込む読込工程と、 前記読み込んだ点と円弧の中心点が一致するか否かを判
定する一致判定工程と、 前記一致判定工程で前記読み込んだ点と円弧の中心点が
一致すると判定された場合、前記円弧の端点を最短点と
して前記記憶手段に記憶する第1の最短点記憶工程と、 前記一致判定工程で前記読み込んだ点と円弧の中心点が
一致しないと判定された場合、前記点と前記中心点とを
結ぶ直線と前記円弧との交点を最短点として前 記記憶手
段に記憶する第2の最短点記憶工程と、 前記第1の最短点記憶工程又は前記第2の最短点記憶工
程で前記記憶手段に記憶された最短点と、前記点との距
離を演算手段により求める演算工程と、 前記求めた距離を前記最短距離として前記記憶手段に記
憶する最短距離記憶工程とを有することを特徴とする画
像処理方法。
3. Comprised of graphic elements, digging into each other
It is an image processing method for calculating the shortest distance of parts.
Then, from the storage means, the points and arcs that are the graphic elements to be processed are
It is possible to determine whether the reading process of reading and the center point of the arc match the read point.
A match determining step of constant, the match determining that the read the in the process and arc center point
If it is determined that they match, the end point of the arc is the shortest point.
Then, the first shortest point storing step for storing in the storage means and the point read in the coincidence determining step and the center point of the arc are
If it is determined that they do not match, the point and the center point are
Before term memory hand as the shortest point intersection of the straight line and the circular arc connecting
A second shortest point storing step for storing in stages, and the first shortest point storing step or the second shortest point storing step
Distance between the shortest point stored in the storage means and the point
The calculation step of calculating the separation by the calculation means, and recording the calculated distance in the storage means as the shortest distance.
And a shortest distance storing step to remember.
Image processing method.
【請求項4】 図形要素から構成され、互いに食い込ん
だ部品の最短距離を算出するための画像処理方法であっ
て、 記憶手段から処理対象となる図形要素である線分と円弧
とを読み込む読込工程と、 前記読み込んだ円弧の中心点を通り前記線分に垂直な直
線が前記線分と前記円弧に交わるそれぞれ第1の点と
2の点と、前記線分の端点と前記円弧の中心を結ぶ直線
が前記円弧と交わるそれぞれ第の点と第の点と、前
記円弧の端点から前記線分に垂線をおろしたそれぞれ第
の点と第の点を、それぞれ仮の最短点として前記記
憶手段に記憶する仮最短点記憶工程と、 前記第1の点と前記の点間の距離と、前記第の点
と該第の点に対応する前記線分の端点間の距離と、前
記第の点と該第の点に対応する前記線分の端点間の
距離と、前記第の点と該第の点に対応する前記円弧
の端点間の距離と、前記第の点と該第の点に対応す
る前記円弧の端点間の距離とをそれぞれ演算手段により
求める演算工程と、 前記求めた距離の中から最長の距離を前記最短距離とし
て前記記憶手段に記憶する最短距離記憶工程とを有する
ことを特徴とする画像処理方法。
4. An image processing method for calculating the shortest distance between parts that are composed of graphic elements and bite into each other, and a reading step of reading line segments and arcs, which are graphic elements to be processed, from a storage means. And a straight line passing through the center point of the read arc and perpendicular to the line segment intersects the line segment and the arc, respectively .
2 point, a third point and a fourth point where a straight line connecting the end point of the line segment and the center of the arc intersects the arc, and a third line drawn from the end point of the arc to the line segment.
Point 5 and point in the sixth, and the temporary shortest point storage step of storing in the storage means as the shortest point of the provisional respectively, the first point and the distance between the second point, the third point And a distance between end points of the line segment corresponding to the third point, a distance between end points of the line segment corresponding to the fourth point and the fourth point, the fifth point and the A calculating step of calculating a distance between the end points of the circular arc corresponding to a fifth point and a distance between the sixth point and the end points of the circular arc corresponding to the sixth point, respectively; And a shortest distance storing step of storing the longest distance as the shortest distance in the storage means.
【請求項5】 図形要素から構成され、互いに食い込ん
だ部品の最短距離を算出するための画像処理方法であっ
て、 記憶手段から処理対象となる図形要素である第1の円弧
と第2の円弧とを読み込む読込工程と、 前記読み込んだ第1の円弧と第2の円弧が同心円が否か
を判定する同心円判定工程と、 前記判定工程で同心円ではないと判定された場合、前記
第1の円弧の中心点と前記第2の円弧の中心点とを通る
直線がそれぞれの円弧と交わる第1の点と第2 の点と、
前記第1の円弧の端点と前記第2の円弧の中心点を通る
直線が前記第2の円弧にそれぞれ交わる第3の点と第4
の点と、前記第2の円弧の端点と前記第1の円弧の中心
点を通る直線が前記第1の円弧にそれぞれ交わる第5の
点と第6の点とを、それぞれ仮の最短点として前記記憶
手段に記憶する最短点記憶工程と、 前記第1の点と前記第2の点間の距離と、前記第3の点
と対応する前記第1の円弧の端点間の距離と、前記第4
の点と対応する前記第1の円弧の端点間の距離と、前記
第5の点と対応する前記第2の円弧の端点間の距離と、
前記第6の点と対応する前記第2の円弧の端点間の距離
とを、演算手段により求める演算工程と、 前記求めた距離の中から最長の距離を前記最短距離とし
て前記記憶手段に記憶する最短距離記憶工程とを有する
ことを特徴とする画像処理方法。
5. Consists of graphic elements that dig into each other
It is an image processing method for calculating the shortest distance of parts.
The first circular arc which is the graphic element to be processed from the storage means.
And a second arc for reading, and whether or not the read first arc and second arc are concentric circles.
If the concentric circle determination step for determining, and the determination step is not concentric circles,
Passes through the center point of the first arc and the center point of the second arc
A first point and a second point where a straight line intersects each arc ,
Passes through the end point of the first circular arc and the center point of the second circular arc
A third point and a fourth point at which a straight line intersects the second circular arc, respectively.
Point, the end point of the second circular arc and the center of the first circular arc
A fifth line in which a straight line passing through the points intersects with the first circular arc, respectively.
The point and the sixth point are stored as the temporary shortest points, respectively.
Storing the shortest point in the means, the distance between the first point and the second point, and the third point
The distance between the endpoints of the first arc corresponding to
The distance between the endpoints of the first arc corresponding to the point
A distance between the endpoints of the second arc corresponding to the fifth point;
Distance between end points of the second arc corresponding to the sixth point
And a calculation step of calculating by a calculation means, and a longest distance among the calculated distances is defined as the shortest distance.
And storing the shortest distance in the storage means.
An image processing method characterized by the above.
【請求項6】 図形要素から構成され、互いに食い込ん
だ部品の最短距離を算出するための画像処理装置であっ
て、 記憶手段から処理対象となる図形要素である第1の線分
と第2の線分とを読み込む読込手段と、 前記読み込んだ線分のそれぞれの端点から相手の線分に
それぞれ垂線をおろす垂線設定手段と、 前記複数の垂線と線分との交点を仮の最短点として前記
記憶手段に記憶する仮最短点記憶手段と、 前記記憶された複数の垂線と対応する端点及び交点か
ら、それぞれの点間の距離を求める演算手段と、 前記演算手段により求めた点間の距離のなかで、最長の
距離を前記最短距離として前記記憶装置に記憶する最短
距離記憶手段とを有することを特徴とする画像処理装
置。
6. Consists of graphic elements that bite into each other
Image processing device for calculating the shortest distance between
The first line segment which is the graphic element to be processed from the storage means.
And a second line segment for reading the line segment, and a line segment of the other party from each end point of the read line segment.
The perpendicular line setting means for lowering each perpendicular line, and the intersection of the plurality of perpendicular lines and the line segment as the temporary shortest point
The temporary shortest point storage means to be stored in the storage means, and the end points and intersections corresponding to the plurality of stored perpendicular lines
Of the longest distance between the points calculated by the calculation means and the distance calculated by the calculation means.
The shortest distance stored in the storage device as the shortest distance.
An image processing device having a distance storage means
Place
【請求項7】 前記演算は、前記仮の最短点記憶手段で
記憶された仮の最短点が、前記読み込んだ線分上に乗っ
ているか否かを判定し、前記線分上に乗っている場合に
点間の距離を演算することを特徴とする請求項6に記載
の画像処理装置。
7. The calculation is performed by the temporary shortest point storage means.
The memorized temporary shortest point rides on the line segment read above.
If you are on the line segment,
The distance between points is calculated, The claim 6 characterized by the above-mentioned.
Image processing device.
【請求項8】 図形要素から構成され、互いに食い込ん
だ部品の最短距離を算出するための画像処理装置であっ
て、 記憶手段から処理対象となる図形要素である線分と円弧
とを読み込む読込手段と、 前記読み込んだ円弧の中心点を通り前記線分に垂直な直
線が前記線分と前記円弧に交わるそれぞれ第1の点と
2の点と、前記線分の端点と前記円弧の中心を結ぶ直線
が前記円弧と交わるそれぞれ第の点と第の点と、前
記円弧の端点から前記線分に垂線をおろしたそれぞれ第
の点と第の点を、それぞれ仮の最短点として前記記
憶手段に記憶する仮最短点記憶手段と、 前記第1の点と前記の点間の距離と、前記第の点
と該第の点に対応する前記線分の端点間の距離と、前
記第の点と該第の点に対応する前記線分の端点間の
距離と、前記第の点と該第の点に対応する前記円弧
の端点間の距離と、前記第の点と該第の点に対応す
る前記円弧の端点間の距離とをそれぞれ求める演算手段
と、 前記求めた距離の中から最長の距離を前記最短距離とし
て前記記憶手段に記憶する最短距離記憶手段とを有する
ことを特徴とする画像処理装置。
8. An image processing device for calculating the shortest distance between parts which are composed of graphic elements and bite into each other, and reading means for reading line segments and arcs, which are graphic elements to be processed, from a storage means. And a straight line passing through the center point of the read arc and perpendicular to the line segment intersects the line segment and the arc, respectively .
2 point, a third point and a fourth point where a straight line connecting the end point of the line segment and the center of the arc intersects the arc, and a third line drawn from the end point of the arc to the line segment.
Point 5 and point in the sixth, and the temporary shortest point storage means for storing in said memory means as the closest point provisional respectively, the first point and the distance between the second point, the third point And a distance between end points of the line segment corresponding to the third point, a distance between end points of the line segment corresponding to the fourth point and the fourth point, the fifth point and the Calculating means for calculating the distance between the end points of the arc corresponding to the fifth point and the distance between the sixth point and the end points of the arc corresponding to the sixth point; An image processing apparatus comprising: a shortest distance storage unit that stores the longest distance from the inside as the shortest distance in the storage unit.
【請求項9】 図形要素から構成され、互いに食い込ん
だ部品の最短距離を算出するための画像処理装置であっ
て、 記憶手段から処理対象となる図形要素である第1の円弧
と第2の円弧とを読み込む読込手段と、 前記読み込んだ第1の円弧と第2の円弧が同心円が否か
を判定する同心円判定手段と、 前記判定手段で同心円ではないと判定された場合、前記
第1の円弧の中心点と前記第2の円弧の中心点とを通る
直線がそれぞれの円弧と交わる第1の点と第2の点と、
前記第1の円弧の端点と前記第2の円弧の中心点を通る
直線が前記第2の円弧にそれぞれ交わる第3の点と第4
の点と、前記第2の円弧の端点と前記第1の円弧の中心
点を通る直線が前記第1の円弧にそれぞれ交わる第5の
点と第6の点とを、それぞれ仮の最短点として前記記憶
手段に記憶する最短点記憶手段と、 前記第1の点と前記第2の点間の距離と、前記第3の点
と対応する前記第1の円弧の端点間の距離と、前記第4
の点と対応する前記第1の円弧の端点間の距離と、前記
第5の点と対応する前記第2の円弧の端点間の距離と、
前記第6の点と対応する前記第2の円弧の端点間の距離
とを求める演算手段と、 前記求めた距離の中から最長の距離を前記最短距離とし
て前記記憶手段に記憶する最短距離記憶手段とを有する
ことを特徴とする画像処理装置。
9. Comprised of graphic elements, digging into each other
Image processing device for calculating the shortest distance between
The first circular arc which is the graphic element to be processed from the storage means.
And a second arc for reading the second arc, and whether or not the read first arc and the second arc are concentric circles.
If the concentric circle determining means for determining, and the determination means is not concentric circles,
Passes through the center point of the first arc and the center point of the second arc
A first point and a second point where a straight line intersects each arc,
Passes through the end point of the first circular arc and the center point of the second circular arc
A third point and a fourth point at which a straight line intersects the second circular arc, respectively.
Point, the end point of the second circular arc and the center of the first circular arc
A fifth line in which a straight line passing through the points intersects with the first circular arc, respectively.
The point and the sixth point are stored as the temporary shortest points, respectively.
Shortest point storage means for storing in the means, the distance between the first point and the second point, and the third point
The distance between the endpoints of the first arc corresponding to
The distance between the endpoints of the first arc corresponding to the point
A distance between the endpoints of the second arc corresponding to the fifth point;
Distance between end points of the second arc corresponding to the sixth point
And a longest distance among the obtained distances as the shortest distance
And a shortest distance storage means for storing in the storage means.
An image processing device characterized by the above.
JP19008795A 1995-07-26 1995-07-26 Image processing method and apparatus Expired - Fee Related JP3363669B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19008795A JP3363669B2 (en) 1995-07-26 1995-07-26 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19008795A JP3363669B2 (en) 1995-07-26 1995-07-26 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH0944682A JPH0944682A (en) 1997-02-14
JP3363669B2 true JP3363669B2 (en) 2003-01-08

Family

ID=16252158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19008795A Expired - Fee Related JP3363669B2 (en) 1995-07-26 1995-07-26 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3363669B2 (en)

Also Published As

Publication number Publication date
JPH0944682A (en) 1997-02-14

Similar Documents

Publication Publication Date Title
US7631278B2 (en) System and method for directional focus navigation
US6861951B2 (en) Methods and apparatus for generating a data structure indicative of an alarm system circuit
US6992575B2 (en) Methods and apparatus for generating a data structure indicative of an alarm system circuit
US6879872B2 (en) Method for generating three-dimensional sheet-metal model and a computer program
US7180411B2 (en) Methods and apparatus for generating a data structure indicative of an alarm system circuit
US7161478B2 (en) Methods and apparatus for generating a data structure indicative of an alarm system circuit
EP1204048A1 (en) Method and apparatus for handling scenarios in spreadsheet documents
US20040080520A1 (en) Methods and apparatus for generating a data structure indicative of an alarm system circuit
JPH0721224A (en) Figure correction method
JP3363669B2 (en) Image processing method and apparatus
JP2001092865A (en) CAD drawing creation method and apparatus, dimension editing method and apparatus, and storage medium
JP3353212B2 (en) Leader automatic creation method and leader automatic creation system
JP2912132B2 (en) Dimension line entry method
JP3524143B2 (en) Graphic processing method and apparatus
JP2875135B2 (en) Program device for programmable controller
JP3083552B2 (en) Hierarchy editing processor
JP3883644B2 (en) Leader line automatic creation method, leader line automatic creation apparatus and program storage medium therefor
CN115830242B (en) A 3D heterogeneous modeling method and device
JP3162130B2 (en) Graphic data input method and graphic data output method
JP3715680B2 (en) Geometric model display method and apparatus
JP2938718B2 (en) Fluid supply facility management drawing creation device
JP3423775B2 (en) Figure editing and drawing device
JP3405827B2 (en) Graphic processing apparatus and intersection determination processing method
JP3968583B2 (en) Range determination program generator
CN121858093A (en) Visual programming graphic element auxiliary alignment method, visual programming graphic element auxiliary alignment device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020920

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

Free format text: PAYMENT UNTIL: 20071025

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081025

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091025

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091025

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101025

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101025

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111025

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20111025

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121025

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131025

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees