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
JPS6125190B2 - - Google Patents
[go: Go Back, main page]

JPS6125190B2 - - Google Patents

Info

Publication number
JPS6125190B2
JPS6125190B2 JP55088827A JP8882780A JPS6125190B2 JP S6125190 B2 JPS6125190 B2 JP S6125190B2 JP 55088827 A JP55088827 A JP 55088827A JP 8882780 A JP8882780 A JP 8882780A JP S6125190 B2 JPS6125190 B2 JP S6125190B2
Authority
JP
Japan
Prior art keywords
closed loop
point
processing device
vector
closed
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
Application number
JP55088827A
Other languages
Japanese (ja)
Other versions
JPS5714964A (en
Inventor
Yukio Hirayama
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP8882780A priority Critical patent/JPS5714964A/en
Publication of JPS5714964A publication Critical patent/JPS5714964A/en
Publication of JPS6125190B2 publication Critical patent/JPS6125190B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】 〔概要〕 図形同志が接しているか或いは内包されている
場合等の特殊ケースにおいても閉ループ同志の
AND図形またはOR図形を作成できるようにした
ものである。
[Detailed Description of the Invention] [Summary] Even in special cases such as when figures are in contact with each other or are contained within each other, it is possible to
It allows you to create AND shapes or OR shapes.

〔産業上の利用分野〕[Industrial application field]

本発明は、2個の閉ループ図形間のAND図形
又はOR図形を生成できるようになつた図形処理
装置に関するものである。
The present invention relates to a graphic processing device that can generate an AND figure or an OR figure between two closed-loop figures.

〔従来技術と問題点〕[Conventional technology and problems]

第1図は互に交差している2個の閉ループ図形
を示すものであつて、第2図は閉ループA,Bの
AND図形を示す図、第3図は閉ループA,Bの
OR図形を示している。従来の図形処理装置にお
いては、OR図形を作成する場合、どちらかの図
形の端点のうち相手方の閉ループに含まれていな
い端点を基点として図形の所定の方向にたどり、
交点に達したら相手方の閉ループにスイツチして
行く方法が採用されている。AND図形を作成す
る場合には、相手方の閉ループに含まれている端
点を基点として同様な処理を行う。しかし、従来
のこの種の図形処理装置は、閉ループどうしが接
しているような場合にはAND図形又はOR図形を
正しく作成できないという欠点を有している。
Figure 1 shows two closed loop figures intersecting each other, and Figure 2 shows closed loops A and B.
A diagram showing an AND diagram, Figure 3 shows closed loops A and B.
Shows an OR shape. In conventional graphic processing devices, when creating an OR figure, one of the endpoints of either figure that is not included in the closed loop of the other figure is used as a base point, and the figure is traced in a predetermined direction.
The method used is to switch to the other party's closed loop when the intersection point is reached. When creating an AND figure, similar processing is performed using the endpoints included in the other party's closed loop as the base points. However, this type of conventional graphic processing apparatus has the drawback that it is not possible to correctly create an AND figure or an OR figure when closed loops are in contact with each other.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の欠点を除去するものであつ
て、常に2個の閉ループのAND図形およびOR図
形を正しく生成できるようにした図形処理装置を
提供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned drawbacks, and to provide a graphic processing device that can always correctly generate two closed-loop AND and OR figures.

〔目的を達成するための手段〕[Means to achieve the purpose]

そしてそのため、本発明の図形処理装置は、閉
ループを入力する入力部1と、入力部1により入
力された2個の閉ループの端点が相手方閉ループ
に含まれているか否かを判定する判定処理部5
と、判定処理部5の判定した結果に基づき、2個
の閉ループのAND図形を求める場合には相手方
の閉ループに含まれる端点をスタート点とし、2
個の閉ループのOR図形を求める場合には相手方
の閉ループに含まれない端点をスタート点とし、
スタート点より所定の方向に閉ループをたどり、
交点に達した場合には相手方の閉ループにスイツ
チし、これによりAND図形もしくはOR図形を作
成するための処理をする処理部3aとを有する処
理装置3と、処理装置3によつて処理された結果
を出力し表示するための表示部4とを備えた図形
処理装置において、上記交点で複数のベクトルが
存在する場合には、当該交点から出ているベクト
ルの方向に向かつて微少長さをもつベクトル選択
点を作り、当該ベクトル選択点が相手方の閉ルー
プ内に存在するか否かの情報と指定された図形の
種類とに基づいて、たどるべきベクトルを選択す
るベクトル選択部6を処理装置3内に設けたこと
を特徴とするものである。
Therefore, the graphic processing device of the present invention includes an input unit 1 that inputs a closed loop, and a determination processing unit 5 that determines whether the end points of the two closed loops input by the input unit 1 are included in the other closed loop.
Based on the result determined by the determination processing unit 5, when calculating the AND figure of two closed loops, the end point included in the other closed loop is used as the starting point, and 2
When calculating the OR shape of closed loops, use the end point that is not included in the other party's closed loop as the starting point,
Follow a closed loop in a predetermined direction from the starting point,
A processing device 3 has a processing unit 3a that switches to the other party's closed loop when an intersection point is reached, and thereby performs processing to create an AND figure or an OR figure, and the result processed by the processing device 3. In a graphic processing device equipped with a display unit 4 for outputting and displaying a vector, if a plurality of vectors exist at the intersection point, a vector having a minute length in the direction of the vector emanating from the intersection point. The processing device 3 includes a vector selection unit 6 that creates a selection point and selects a vector to be traced based on information as to whether the vector selection point exists in the other party's closed loop and the type of the specified figure. It is characterized by the fact that it has been provided.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を図面を参照しつつ説明する。 Hereinafter, the present invention will be explained with reference to the drawings.

第4図は本発明の図形処理装置の概要を示す
図、第5図は図形処理装置で行なわれるAND図
形作成処理を説明する図、第6図は与点が閉ルー
プの内部にあるか或は外部にあるかを判定する処
理を説明する図、第7図はベクトル選択処理を説
明する図である。
FIG. 4 is a diagram showing an overview of the graphic processing device of the present invention, FIG. 5 is a diagram explaining AND graphic creation processing performed by the graphic processing device, and FIG. 6 is a diagram showing whether a given point is inside a closed loop or FIG. 7 is a diagram illustrating the process of determining whether it is outside, and FIG. 7 is a diagram illustrating the vector selection process.

第4図において、1は入力タブレツト、1aは
図形が描かれている用紙、2はスタイラス・ペ
ン、3は処理装置、3aは処理部、4はデイスプ
レイ、5は判定処理部、6はベクトル選択部をそ
れぞれ示している。第4図の図形処理装置におい
て、タブレツト1より第1図の如き閉ループを入
力すると、第2図又は第3図の如きAND/OR図
形が出力される。
In Fig. 4, 1 is an input tablet, 1a is paper on which figures are drawn, 2 is a stylus pen, 3 is a processing device, 3a is a processing unit, 4 is a display, 5 is a judgment processing unit, and 6 is a vector selection unit. Each section is shown below. In the graphic processing device shown in FIG. 4, when a closed loop as shown in FIG. 1 is input from the tablet 1, an AND/OR diagram as shown in FIG. 2 or 3 is output.

第5図はAND図形作成処理を説明するもので
ある。この処理は処理部3aが主体となつて行わ
れる。
FIG. 5 explains the AND figure creation process. This processing is mainly performed by the processing section 3a.

二つの閉ループの端点を順次取り出す。 Extract the endpoints of two closed loops one after another.

取り出された端点がその端点を持たない方の
閉ループに含まれているか否かを判定する。こ
の処理は第6図に詳述されている。
It is determined whether the extracted endpoint is included in a closed loop that does not have that endpoint. This process is detailed in FIG.

最初に見つかつた含まれる端点(ORのとき
は含まれない端点)を検索のスタート点として
決定する。
The first included endpoint found (or not included endpoint in the case of OR) is determined as the starting point for the search.

閉ループ同志の交点を求め、ベクトルを分割
する。
Find the intersection of closed loops and divide the vector.

現在位置(最初はスタート点)から出ている
ベクトルを探す。一本のときはの処理を行
い、複数本のときはの処理を行う。
Find the vector emanating from the current position (initially the starting point). If there is one, perform the processing; if there are multiple, perform the processing.

ベクトルの選択を行う。ベクトルの選択につ
いては第7図で詳述する。次のの処理を行
う。
Make a vector selection. Vector selection will be explained in detail in FIG. Perform the following processing.

選択されたベクトルの終点を次の点として採
用する。
The end point of the selected vector is adopted as the next point.

採用された点がスタート点と一致するか否か
を調べる。一致しないときはの処理に戻り、
一致するときはの処理を行う。
Check whether the adopted point matches the starting point. If it does not match, return to the process of
If they match, perform the following process.

各点を順につないで閉ループ図形を表示部4
に出力する。
Display section 4 connects each point in order to display a closed loop shape.
Output to.

第6図は与点が閉ループの外部にあるか、内部
にあるかを判定する処理を説明する図である。こ
の処理は判定処理部3aによつて行われる。
FIG. 6 is a diagram illustrating a process for determining whether a given point is outside or inside a closed loop. This process is performed by the determination processing section 3a.

与えられた閉ループを構成するベクトルを順
次取り出す。
Sequentially extract the vectors that make up the given closed loop.

与点からベクトルに対する垂線を求める。垂
線が求まつたときはの処理を行い、垂線が求
まらなかつたときはの処理を行う。
Find the perpendicular to the vector from the given point. If the perpendicular line is found, perform the process described above, and if the perpendicular line is not found, process the process described below.

現在までに処理したベクトルの中で最も短い
垂線が求まつたベクトルを記憶する。
The vector for which the shortest perpendicular line has been found among the vectors processed so far is stored.

与えられた閉ループの全てのベクトルを処理
し終わつたかどうかを判定する。未了ならば
の処理を行い、完了であればの処理を行う。
Determine whether all vectors in a given closed loop have been processed. If the process is incomplete, perform the process, and if the process is completed, process the process.

で記憶したベクトルの進行方向に対して与
点が右側にあるか、左側にあるかを判定する。
Determine whether the given point is on the right or left side with respect to the traveling direction of the vector stored in .

判定結果が右側なら「内側」、判定結果が左
側から「外側」、ベクトル上に与点があれば
「線上」として最終結果を出力する。
If the determination result is on the right side, the final result is output as "inside", if the determination result is on the left side, it is "outside", and if there is a given point on the vector, it is output as "on the line".

従来技術においては、与点から+X方向もしく
は−X方向又は+Y方向もしくは−Y方向に線を
引き閉ループとの交点数が寄数であれば、点が閉
ループの内側、隅数であれば外側であると判定し
ている。しかし、この方法は確実性に欠けるとい
う欠点がある。また、与点が閉ループの内側にあ
るか或は外側にあるかを判定する従来方法として
与点から各コーナ点間の角度を累計して、0度で
あれば外側、360゜なら内側と判定する方法があ
る。しかし、この方法は時間がかかりすぎるとい
う欠点がある。これらの従来方法に比して、第6
図の方法は、確実性に富み、しかも処理時間が短
いという利点を有している。
In the conventional technology, if a line is drawn from a given point in the +X direction, -X direction, +Y direction, or -Y direction, and the number of intersections with the closed loop is a quotient, then the point is inside the closed loop, and if the number of corners is outside the closed loop. It is determined that there is. However, this method has the drawback of lacking reliability. In addition, the conventional method of determining whether a given point is inside or outside a closed loop is to accumulate the angle between each corner point from the given point, and if it is 0 degrees, it is determined to be outside, and if it is 360 degrees, it is determined to be inside. There is a way to do it. However, this method has the disadvantage that it is too time consuming. Compared to these conventional methods, the sixth
The method shown in the figure has the advantage of being highly reliable and short in processing time.

第7図はベクトルの選択処理を説明する図であ
る。この処理はベクトル選択部6で行われる。
FIG. 7 is a diagram illustrating vector selection processing. This process is performed by the vector selection section 6.

現在位置から出ているベクトル方向に向かつ
て、微小長さを持つ点を作る。
Create a point with infinitesimal length in the direction of the vector emanating from the current position.

それらの点について、 イ 含まれる ロ 接する ハ 含まれない かどうか判定する。この判定は第6図で示した
ようなアルゴリズムで行われる。
Determine whether or not these points are included. This determination is performed using an algorithm as shown in FIG.

それらの点から“含まれる”、“接する”、“含
まれない”の優先順で一点を選択する。なお、
OR図形を作成する場合には、優先順は逆にな
る。
From these points, select one point in the priority order of "included,""contact," or "not included." In addition,
When creating an OR shape, the order of priority is reversed.

選択されたベクトルを出力する。 Output the selected vector.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれ
ば、閉ループ間のAND/OR図形を正確に且つ短
時間で作成することが可能となる。
As is clear from the above description, according to the present invention, it is possible to create AND/OR figures between closed loops accurately and in a short time.

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

第1図は交差している2個の閉ループ図形を示
す図、第2図は閉ループA,BのAND図形を示
す図、第3図は閉ループA,BのOR図形を示す
図、第4図は本発明の図形処理装置の概要を示す
図、第5図は図形処理装置で行われるAND図形
作成処理を示す図、第6図は与点が閉ループの内
内部にあるかを判定する処理を説明する図、第7
図はベクトル選択処理を説明する図である。 1……入力タブレツト、2……スタイラス・ペ
ン、3……処理装置、4……デイスプレイ。
Figure 1 shows two intersecting closed loop figures, Figure 2 shows an AND figure of closed loops A and B, Figure 3 shows an OR figure of closed loops A and B, and Figure 4 5 is a diagram showing an overview of the graphic processing device of the present invention, FIG. 5 is a diagram showing the AND graphic creation process performed by the graphic processing device, and FIG. 6 is a diagram showing the process of determining whether a given point is inside a closed loop. Diagram to explain, 7th
The figure is a diagram for explaining vector selection processing. 1... Input tablet, 2... Stylus pen, 3... Processing device, 4... Display.

Claims (1)

【特許請求の範囲】[Claims] 1 閉ループを入力する入力部1と、入力部1に
より入力された2個の閉ループの端点が相手方閉
ループに含まれているか否かを判定する判定処理
部5と、判定処理部5の判定した結果に基づき、
2個の閉ループのAND図形を求める場合には相
手方の閉ループに含まれる端点をスタート点と
し、2個の閉ループのOR図形を求める場合には
相手方の閉ループに含まれない端点をスタート点
とし、スタート点より所定の方向に閉ループをた
どり、交点に達した場合には相手方の閉ループに
スイツチし、これによりAND図形もしくはOR図
形を作成するための処理をする処理部3aとを有
する処理装置3と、処理装置3によつて処理され
た結果を出力し表示するための表示部4とを備え
た図形処理装置において、上記交点で複数のベク
トルが存在する場合には、当該交点から出ている
ベクトルの方向に向かつて微少長さをもつベクト
ル選択点を作り、当該ベクトル選択点が相手方の
閉ループ内に存在するか否かの情報と指定された
図形の種類とに基づいて、たどるべきベクトルを
選択するベクトル選択部6を処理装置3内に設け
たことを特徴とする図形処理装置。
1 Input unit 1 that inputs a closed loop, determination processing unit 5 that determines whether the end points of the two closed loops input by input unit 1 are included in the other party's closed loop, and the determination result of determination processing unit 5 Based on
When finding an AND shape of two closed loops, use the end point included in the other party's closed loop as the starting point, and when finding an OR shape of two closed loops, use the end point not included in the other party's closed loop as the starting point. A processing device 3 having a processing unit 3a that traces a closed loop in a predetermined direction from a point, and when an intersection point is reached, switches to the other closed loop, thereby performing processing to create an AND figure or an OR figure; In a graphic processing device equipped with a display section 4 for outputting and displaying the results processed by the processing device 3, if a plurality of vectors exist at the intersection, the vectors coming from the intersection are Create a vector selection point with a minute length in the direction, and select the vector to follow based on information on whether the vector selection point exists within the closed loop of the other party and the type of the specified figure. A graphic processing device characterized in that a vector selection section 6 is provided within a processing device 3.
JP8882780A 1980-06-30 1980-06-30 Pattern processor Granted JPS5714964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8882780A JPS5714964A (en) 1980-06-30 1980-06-30 Pattern processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8882780A JPS5714964A (en) 1980-06-30 1980-06-30 Pattern processor

Publications (2)

Publication Number Publication Date
JPS5714964A JPS5714964A (en) 1982-01-26
JPS6125190B2 true JPS6125190B2 (en) 1986-06-14

Family

ID=13953760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8882780A Granted JPS5714964A (en) 1980-06-30 1980-06-30 Pattern processor

Country Status (1)

Country Link
JP (1) JPS5714964A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5922160A (en) * 1982-07-27 1984-02-04 Fujitsu Ltd Graphic processing method
JPS6125808A (en) * 1984-07-16 1986-02-04 Fujikura Ltd Compounding method of powdery and granular material and fluid
JPH077456B2 (en) * 1988-11-11 1995-01-30 大日本スクリーン製造株式会社 Recognition device of figure by degree of polymerization
JP2879831B2 (en) * 1990-10-09 1999-04-05 武藤工業 株式会社 Graphic element extraction method

Also Published As

Publication number Publication date
JPS5714964A (en) 1982-01-26

Similar Documents

Publication Publication Date Title
JP3574202B2 (en) Graphics Input/Output Device
JPS6125190B2 (en)
JPH0336668A (en) Shape generating system for cad system
JPS61147374A (en) Method and device for detecting similar data
JPH0778254A (en) Figure closed area extraction method
JP3305395B2 (en) Figure division device
JP3697753B2 (en) Graphic editing apparatus and graphic editing method
JP2939624B2 (en) High-speed hidden line processing method
EP0594337A2 (en) A data processing system
JPH10124545A (en) Fillet editing method for graphic
JP3332502B2 (en) Offset figure creation method and apparatus
JP2751099B2 (en) Drawing tracing method and apparatus
JPH10124542A (en) Fillet editing method for graphic
JPS63316179A (en) Shape recognition device
JPS62260269A (en) Drawing reader
JP2988697B2 (en) Figure recognition method
JPS6321950B2 (en)
JPH03105677A (en) automatic drafting device
JP2967591B2 (en) How to divide compound figures
JP3089842B2 (en) Outline font processor
JPH05120430A (en) Crossing judgment and intersection calculation system for polygon and straight line
JPS61128318A (en) Erasing area determining device of character and graphic input device
JPH02146681A (en) Contour line extracting system
JPH0566608B2 (en)
JPS5855548B2 (en) The final stage of the construction of a new building