JPH04247580A - Automatic trace for graphic - Google Patents

Automatic trace for graphic

Info

Publication number
JPH04247580A
JPH04247580A JP3013158A JP1315891A JPH04247580A JP H04247580 A JPH04247580 A JP H04247580A JP 3013158 A JP3013158 A JP 3013158A JP 1315891 A JP1315891 A JP 1315891A JP H04247580 A JPH04247580 A JP H04247580A
Authority
JP
Japan
Prior art keywords
intersection
elements
trace
traced
tracing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3013158A
Other languages
Japanese (ja)
Inventor
Hiroshi Kajitani
梶谷 弘
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3013158A priority Critical patent/JPH04247580A/en
Publication of JPH04247580A publication Critical patent/JPH04247580A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To shorten operating time by calculating an intersection when an element to be traced is crossed to another element, and automatically dividing the element at the intersection. CONSTITUTION:The element 4 and a branch point to the element 14 are prepared, and a system is provided with the input of an operator, and when the element 4 is designated as a trace direction, the elements 4-7 are traced successively. Thence, the element 10 whose end-point coincides with the element 9 is selected, however. the element 10-1 and the element 10-2 are generated by dividing the element 10 at the intersection (a) after calculating the coordinates of the intersection (a). and the element 10-1 is traced. When the element 11 is designated as the trace direction, the system, after tracing the element 11 and calculating the coordinates of the intersection (b) of the element 11 and the element 12, automatically generates the element 12-1 and the element 12-2 by dividing at the intersection (b), and when the element 12-1 is designated, the elements 12-1, 13 are traced, then, processing is completed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、図形のオートトレース
に関し、例えば機械系CAD/CAMシステムにおける
ある処理に必要な複数のつながった要素を順番に抽出す
るオートトレースに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to automatic tracing of graphics, and more particularly, to automatic tracing for sequentially extracting a plurality of connected elements necessary for a certain process in a mechanical CAD/CAM system.

【0002】0002

【従来の技術】従来、この種のオートトレース機能はオ
ペレータがトレース開始要素とトレース終了要素とトレ
ース方向をスタイラスペン等で指示してやると、トレー
ス開始要素からトレース終了要素まで端点の一致した要
素を自動的に手繰っていき、分岐点では方向を指示して
やると終了要素まで自動的にトレースするようになって
いた。
[Prior Art] Conventionally, this type of auto-trace function automatically traces elements whose end points match from the trace start element to the trace end element when an operator instructs the trace start element, trace end element, and trace direction with a stylus pen, etc. If you follow the target and specify the direction at a branching point, it will automatically trace to the end element.

【0003】0003

【発明が解決しようとする課題】上述した従来のオート
トレース機能は、端点の一致した要素を手繰っていくた
め、要素が交差する場合はトレースできなかった。その
ため、交差する要素がある場合は事前に要素をその交点
で分割しておく必要があるので、オペレーションがめん
どうであるという欠点がある。
[Problems to be Solved by the Invention] The above-mentioned conventional auto-trace function traces elements whose end points match, and therefore cannot trace when elements intersect. Therefore, if there are elements that intersect, it is necessary to divide the elements at the intersection in advance, which has the disadvantage that the operation is troublesome.

【0004】例えば図3(a)のような5つの要素(要
素16〜要素20)からなる形状を図3(c)の太線(
要素16,要素17−1,要素18,要素19−1)の
ようにトレースする場合、オートトレースコマンドを実
行させる前に要素分割コマンドで要素17と要素19を
各々2つの要素(要素17−1,要素17−2と要素1
9−1,要素19−2)に分割して端点の一致する要素
群としておかなかればならなかった(図3(c))。
For example, a shape consisting of five elements (elements 16 to 20) as shown in FIG. 3(a) is represented by the thick line (
When tracing elements such as element 16, element 17-1, element 18, element 19-1), use the element division command to divide element 17 and element 19 into two elements each (element 17-1) before executing the auto trace command. , element 17-2 and element 1
9-1 and 19-2) to form a group of elements with matching end points (FIG. 3(c)).

【0005】[0005]

【課題を解決するための手段】本発明は、複数の要素か
ら成る図形のトレース開始要素、トレース終了要素およ
びトレース方向を入力することにより端点の一致した要
素を手繰っていく図形のオートトレースにおいて、トレ
ースしてきた要素の一端が他の2つの要素に連結する分
岐のある場合はトレースする方向を入力することにより
トレースを継続する手段と、トレースしようとする要素
が他の要素と交差する場合は交差する要素をその交点で
自動分割する手段を有している。
[Means for Solving the Problems] The present invention provides auto-tracing of a figure in which elements whose end points coincide are retrieved by inputting a trace start element, a trace end element, and a trace direction of a figure consisting of a plurality of elements. , if there is a branch where one end of the traced element connects to two other elements, there is a means to continue tracing by inputting the direction of tracing, and if the element to be traced intersects with other elements, It has means for automatically dividing intersecting elements at their intersections.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0007】図1は本発明の一実施例をその処理の順番
に描いた説明図であり、図2に本実施例でオートトレー
スする図形を示す。
FIG. 1 is an explanatory diagram illustrating an embodiment of the present invention in the order of its processing, and FIG. 2 shows figures to be autotraced in this embodiment.

【0008】図中、1〜15の番号は要素番号を示し、
1つの要素に1つの番号が対応している。aは要素10
と要素11の交点であり、要素10−1と要素10−2
は要素10を交点aで分割してできた要素である。同様
にして、bは要素11と要素12の交点であり、要素1
2−1と要素12−2は要素12を交点bで分割してで
きた要素である。また、太線はトレースの完了した部分
を表わす。
[0008] In the figure, numbers 1 to 15 indicate element numbers,
One number corresponds to one element. a is element 10
is the intersection of element 11 and element 10-1 and element 10-2
is an element created by dividing element 10 at intersection a. Similarly, b is the intersection of element 11 and element 12, and element 1
2-1 and element 12-2 are elements created by dividing element 12 at intersection b. Moreover, the thick line represents the part where tracing has been completed.

【0009】まず、オペレータがトレース開始要素に要
素1、トレース終了要素に要素13、トレース方向とし
て要素2を指定すると、システムがオートトレース機能
によりトレース開始要素1から端点の一致した要素とし
て要素2,要素3を順番にトレースする(図1(a))
First, when the operator specifies element 1 as the trace start element, element 13 as the trace end element, and element 2 as the trace direction, the system uses the auto trace function to move from trace start element 1 to element 2, element 2 as the element with matching end points. Trace element 3 in order (Figure 1(a))
.

【0010】ここで、要素4と要素14への分岐点があ
るので、システムはオペレータの入力を待つ。オペレー
タがトレース方向として要素4を指定するとシステムは
続けて要素4,要素5,要素6,要素7をトレースする
(図1(b))。ここでも要素8と要素14の分岐があ
るのでオペレータが要素8を指定すると、システムは続
けて要素8と要素9をトレースする(図1(c))。
There is now a branch point to element 4 and element 14, so the system waits for operator input. When the operator specifies element 4 as the tracing direction, the system successively traces element 4, element 5, element 6, and element 7 (FIG. 1(b)). Here, too, there is a branch between element 8 and element 14, so when the operator specifies element 8, the system continues to trace element 8 and element 9 (FIG. 1(c)).

【0011】次にシステムは要素9と端点の一致した要
素10を選択するが、要素10が要素11と交差するこ
とを識別して交点aの座標を計算した後、要素10を交
点aで分割して要素10−1と要素10−2を生成する
。次に、要素9に続けて新しく生成した要素10−1を
トレースする(図1(d))。
Next, the system selects element 10 whose end point coincides with element 9, but after identifying that element 10 intersects element 11 and calculating the coordinates of intersection a, divides element 10 at intersection a. Then, element 10-1 and element 10-2 are generated. Next, the newly generated element 10-1 is traced following element 9 (FIG. 1(d)).

【0012】ここでオペレータがトレース方向として要
素11を指定すると、システムは要素11をトレース後
、要素11と要素12の交点bの座標を計算した後、要
素12を交点bで分割して要素12−1と要素12−2
を自動生成する(図1(e))。ここでオペレータがト
レース方向として要素12−1を指定するとシステムは
要素12−1,要素13をトレースしてトレースが完了
する。
Here, when the operator specifies element 11 as the tracing direction, the system traces element 11, calculates the coordinates of intersection b of element 11 and element 12, divides element 12 at intersection b, and divides element 12 into element 12. -1 and element 12-2
is automatically generated (Figure 1(e)). Here, when the operator specifies element 12-1 as the tracing direction, the system traces elements 12-1 and 13, and the tracing is completed.

【0013】[0013]

【発明の効果】以上説明したように本発明は、要素のオ
ートトレース時にトレースしようとする要素と他の要素
が交差した場合、その交点を計算して要素をその交点で
自動分割することにより、オペレータが要素の事前に分
割する手間が省け、操作時間を短縮する効果がある。
[Effects of the Invention] As explained above, in the present invention, when an element to be traced intersects with another element during auto-tracing of an element, the intersection is calculated and the element is automatically divided at the intersection. This saves the operator the trouble of dividing elements in advance, which has the effect of shortening operation time.

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

【図1】本発明の一実施例を処理の順番に示す図である
FIG. 1 is a diagram showing an embodiment of the present invention in the order of processing.

【図2】図1に示す実施例でオートトレースする対象の
図形を示す図である。
FIG. 2 is a diagram showing a figure to be automatically traced in the embodiment shown in FIG. 1;

【図3】従来の図形のオートトレースを示す図である。FIG. 3 is a diagram showing conventional graphic auto-tracing.

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

1〜20    要素 a〜d    要素の交点 1 to 20 elements a~d    Intersection of elements

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  複数の要素から成る図形のトレース開
始要素、トレース終了要素およびトレース方向を入力す
ることにより端点の一致した要素を手繰っていく図形の
オートトレースにおいて、トレースしてきた要素の一端
が他の2つの要素に連結する分岐のある場合はトレース
する方向を入力することによりトレースを継続する手段
と、トレースしようとする要素が他の要素と交差する場
合は交差する要素をその交点で自動分割する手段を有す
ることを特徴とする図形のオートトレース。
[Claim 1] In automatic tracing of a figure in which elements whose end points match are retrieved by inputting a trace start element, a trace end element, and a trace direction of a figure consisting of multiple elements, one end of the traced element is If there is a branch that connects to two other elements, there is a way to continue tracing by inputting the direction of tracing, and if the element to be traced intersects with another element, the intersecting element is automatically traced at the intersection. Auto-tracing of a figure, characterized by having means for dividing.
JP3013158A 1991-02-04 1991-02-04 Automatic trace for graphic Pending JPH04247580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3013158A JPH04247580A (en) 1991-02-04 1991-02-04 Automatic trace for graphic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3013158A JPH04247580A (en) 1991-02-04 1991-02-04 Automatic trace for graphic

Publications (1)

Publication Number Publication Date
JPH04247580A true JPH04247580A (en) 1992-09-03

Family

ID=11825367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3013158A Pending JPH04247580A (en) 1991-02-04 1991-02-04 Automatic trace for graphic

Country Status (1)

Country Link
JP (1) JPH04247580A (en)

Similar Documents

Publication Publication Date Title
JPS61206084A (en) Graphic segment operation
JPH04247580A (en) Automatic trace for graphic
JPH04342072A (en) System for automatic tracing in cad/cam system
JPH0830417A (en) Method and device for editing image
JPH10240790A (en) Method for instructing formation of fillet surface
JP2610828B2 (en) Figure information extraction method
JP2667454B2 (en) Plotting device
JPS61168013A (en) Tablet input system of graphic information
JPH036778A (en) Boundary tracking type convex hull generating method
JP2001188922A (en) System and method for three-dimensional shape processing and storage medium stored with program for implementing the method
JP2932844B2 (en) Multi-branch shape figure display method
JPH01166104A (en) Automatic part program generating method
JPS63296131A (en) Method and device for controlling multiplex display region
JPS6031610A (en) Method for processing data of automatic programming of conversational numerical control
JPH04330574A (en) Method and device for editing graphic
JPH0667931A (en) Single chip microcomputer simulator
JPH07320081A (en) Device and method for graphic editing
JPH0746286B2 (en) NC command information creation device
JPS6081604A (en) Method for specifying pattern of numerical control tape
JPH02183376A (en) Graphic processing system
JPH07325903A (en) Screen generation support system
JPH02158879A (en) Method for arranging graphic in graphic processing system
JPH02133877A (en) Input system for circuit diagram
JPS63195764A (en) Multi-area simultaneous editing system
JPS63253471A (en) Drawing editing system