JPH0322182A - Automatic contour tracking method in cad - Google Patents
Automatic contour tracking method in cadInfo
- Publication number
- JPH0322182A JPH0322182A JP1157884A JP15788489A JPH0322182A JP H0322182 A JPH0322182 A JP H0322182A JP 1157884 A JP1157884 A JP 1157884A JP 15788489 A JP15788489 A JP 15788489A JP H0322182 A JPH0322182 A JP H0322182A
- Authority
- JP
- Japan
- Prior art keywords
- angle
- arc
- tracking
- end point
- contour tracking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 18
- 238000010586 diagram Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K11/00—Methods or arrangements for graph-reading or for converting the pattern of mechanical parameters, e.g. force or presence, into electrical signal
- G06K11/02—Automatic curve followers, i.e. arrangements in which an exploring member or beam is forced to follow the curve
Landscapes
- Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computer Hardware Design (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はCADにおける輪郭自動追跡方法に関する.
〔従来の技術〕
ディスプレイ上の図形における輪郭追跡は、従来、半自
動によって行なっている.第19図のディスプレイ上の
図形を輪郭追跡する場合、スタート点Sから端点aまで
要素線分上を追跡することはできるが、追跡の動きは端
点aで停止する.このときオペレータは、外側■を指示
すると、次の端点bまで図形要素を自動追跡し,この位
置で再度オペレータはどちらにするかを指示する.〔発
明が解決しようとする問題点〕
上記のように、半自動追跡機能の場合には、端点で追跡
が停止するごとにオペレータかどちらに追跡するか指示
しなければならず、操作性が悪いという欠陥が存した,
本発明は上記欠陥を除去することを目的とするものであ
る.
〔問題点を解決する手段〕
上記目的を達或するため,本発明は、ディスプレイ上の
図形の連続する要素のうちからスタート要素を指示する
とともに、追跡方向と、内回りか外回りかを設定し、前
記スタート要素を基点として連続する要素を追跡方向と
内回りか外回りかに応じて順に判別・選択して輪郭デー
タを自動的に得る方法において、最終選択要素上に次の
選択候補要素が現れたとき、最終選択要素と次の選択候
補要素との間の角度θを求め、輪郭追跡が内回りのとき
は角度θが小さい方を、輪郭追跡が外回りのときは角度
θが大きい方を優先して複数の選択候補要素の中から一
つを選択するようにしたものである.
〔実施例〕
以下に本発明の構威を添付した説明図を参照して詳細に
説明する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an automatic contour tracking method in CAD. [Prior Art] Contour tracking of figures on a display has conventionally been performed semi-automatically. When tracing the outline of the figure on the display in FIG. 19, it is possible to trace the element line segment from the start point S to the end point a, but the tracking movement stops at the end point a. At this time, when the operator instructs the outside ■, the graphic element is automatically traced to the next end point b, and at this position the operator again instructs which direction to move. [Problems to be solved by the invention] As mentioned above, in the case of a semi-automatic tracking function, each time tracking stops at an end point, an operator must be instructed as to which direction to pursue, resulting in poor operability. There was a defect,
The present invention aims to eliminate the above defects. [Means for Solving the Problems] In order to achieve the above object, the present invention specifies a start element from among consecutive elements of a figure on a display, and also sets the tracking direction and whether it is an inside or outside rotation. In the method of automatically obtaining contour data by sequentially determining and selecting successive elements based on the start element according to the tracking direction and whether they are inward or outward, when the next selection candidate element appears on the final selected element. , find the angle θ between the final selected element and the next selection candidate element, and when the contour tracking is inward, give priority to the one with the smaller angle θ, and when the contour tracking is outward, give priority to the one with the larger angle θ. One of the selection candidate elements is selected. [Example] The structure of the present invention will be described in detail below with reference to the attached explanatory drawings.
まず、本発明の概略を第1図乃至第2図を参照して説明
する。First, an outline of the present invention will be explained with reference to FIGS. 1 and 2.
輪郭自動追跡プログラムに第1図のラベル1がら入り、
ディスプレイ上に表示された図形を見ながら、オペレー
タは,輪郭自動追跡をスタートさせるスタート図形要素
と、追跡.方向と、外側輪郭の追跡か内側輪郭の追跡か
を選択決定し、これらの決定に基いて,ディスプレイ上
の一点にカーソルをヒットさせる.このカーソルのヒッ
ト位置によって、上記各選択要素がブロック2で自動的
に設定される.次に,ブロック3に移行し、輪郭処理の
プログラムが実行され,後述する端点処理と角度設定が
行われる.カーソルをディスプレイ上の■の位置にヒッ
トすると、図形の輪郭は、線分A,Bをスタート要素と
して外側輪郭の追跡が矢方向に向かって行われ,追跡結
果の図形要素は、第2図Bのようになる.ディスプレイ
上の■の位置にカーソルをヒットすると,内側輪郭が矢
方向に向かって行われ、追跡結果の図形要素は,第2図
Cのようになる.第1図のブロック3において,表示図
形上にある図形要素から,輪郭自動追跡機能により、連
続する要素を順に判別・選択し、輪郭データとして、指
定するレイヤ(情報ファイル管理における階層)にコピ
ーする.この際にコピーされた輪郭形状は、直線、円弧
などの図形要素が連続するように並べ替えられる.
次に、第1図のブロック2のスタート要素指定プログラ
ムについて詳細に説明する。Enter label 1 in Figure 1 into the automatic contour tracking program,
While looking at the figure displayed on the display, the operator selects a start figure element to start automatic contour tracking, and a trace. Select and decide the direction and whether to track the outer contour or inner contour, and based on these decisions, hit a point on the display with the cursor. Depending on the hit position of this cursor, each of the above selected elements is automatically set in block 2. Next, the process moves to block 3, where a contour processing program is executed, and end point processing and angle setting, which will be described later, are performed. When the cursor hits the position marked ■ on the display, the outer contour of the figure is traced in the arrow direction with line segments A and B as starting elements, and the figure elements resulting from the tracing are shown in Figure 2B. become that way. When you hit the cursor on the ■ position on the display, the inner contour is drawn in the direction of the arrow, and the traced graphic element becomes as shown in Figure 2C. In block 3 in Figure 1, the contour automatic tracking function sequentially identifies and selects consecutive elements from the graphical elements on the displayed figure, and copies them as contour data to the specified layer (hierarchy in information file management). .. The contour shapes copied at this time are rearranged so that geometric elements such as straight lines and arcs are continuous. Next, the start element designation program of block 2 in FIG. 1 will be explained in detail.
輪郭自動追跡では,まず最初にこれから行う追跡がどの
要素(直線/円弧)からスタートするのか、また輪郭の
追跡方向および内回り/外回りかの追跡モードをカーソ
ルで指定する必要がある。In automatic contour tracing, it is first necessary to specify with a cursor which element (straight line/arc) the tracing will start from, as well as the contour tracing direction and tracing mode (inward/outward).
スタート要素を指定する指示点は、輪郭の追跡方向およ
び内回り/外回りの方向をも意味する。The pointing point specifying the start element also means the tracing direction and the inner/outer direction of the contour.
ここで内回り/外回りを表わすフラグをCCWとすると
、指示した要素即ち、カーソルヒット位置に最も近い図
形要素が直線のときは、第6図に示すように、その両端
点をA,B.カーソル指示点をPとするとき、Pに近い
方の端点を中心にして、Pに遠い方の端点とPのなす角
(第6図の場合角BAP)が、πより小の時を内回りと
し、CCWに1をセットする。そしてπより大のときを
外回りとし、CCWに−1をセットする。第7図に示す
ように指示した要素が円弧のときは、Pに近い方の端点
を中心にして、その端点から円弧の実体のある方へ引い
た接線の任意長さの点とPのなす角O(第7図Aにおけ
る角A’ BP.第7図Bにおける角B’ AP)がπ
より小のときを内回りとし、CCWに1、πより大のと
きを外回りとし、CCWに−1をセットする.追跡方向
は、指示点Pに近い方の端点をスタート要素の終端点と
するように決定される.第6図の場合には、A点が終端
点と決定され、追跡方向が矢方向に決定され、第7図B
の場合には、−A点が終端点と決定され、追跡方向が矢
方向に決定される.次に、第1図のブロック3における
輪郭追跡処理プログラムの端点処理について詳細に説明
する.
第3図において,スタート要素BAを出発して、矢印の
ように追跡し、最初の端点aに達する。このとき、次の
追跡すべき図形要素を決定する処理が端点処理であり、
この処理は,端点aの手前の最終選択要素Caと次選択
候補要素aD,aEの、最終選択要素Caを基準とした
,反時計回りのなす角度θを求め、この角度θと追跡方
向が内回りか外回りかに基いて、所定の条件により次選
択候補要素の選択を決定する.上記θを求める処理を角
度設定と称する,
第3図に示す図形を参照して端点処理の概略を説明する
と、端点a到達時において,最終選択要素Caと次選択
候補要素aD,aEの,Caを基準とした、反時計回り
のなす角をそれぞれ求める.要素ab側の角度をθaD
(第4図A参照)、要素aE側の角度をθaE(第4図
B参照)とすると,外回り追跡の場合は,
選択する角度θa=MAX(θaD, θaE)=θa
D
となる条件をとる.従って、この場合,要素aDを追跡
してゆく.第3図において、次にF点を通過し端点bに
達する.このとき、最終選択要素FGと次選択要素bH
の,FGを基準とした,反時計回りのなす角度θbを求
める.外回り追跡の場合は、θb〉πの条件を満たすも
のを選択する.従ってこの場合、要素bHを追跡してゆ
く。以下同様に追跡し,端点c,dを通過してゆくこと
になる。追跡結果はBnA→C→a→D→F→b→H−
4c→d4Bとなり,第2図Bのような輪郭図形になる
.第5図のように指示点Pを設定した場合、第1図のブ
ロック2でスタート要素はBAに設定され,追跡方向は
B−4A方向に設定され,且つ内回りに設定される,こ
の場合も,スタート要素BAを出発して図の矢印のよう
に追跡され、最初の端点aに達する。この場合,内回り
であるため,
選択する角度θa=Min(θaD,θaE)=θaE
をとる.従ってここでは、要素aEを追跡してゆく.次
に端点eに達する.この場合は,内回りであるため、θ
eくπの条件を満たすものをとる.従って、こでは要素
efを追跡してゆく。以下同様に追跡し、端点f,dを
通過してゆくことになる.追跡結果はB−+A−+C−
+a−+E−4e→f−+d→Bで第1図Cのような輪
郭図形になる。Here, if the flag representing inner/outer rotation is CCW, when the indicated element, that is, the graphical element closest to the cursor hit position is a straight line, its end points are A, B, etc., as shown in FIG. When the cursor indication point is P, the angle between the end point near P and the end point far from P (the angle BAP in Figure 6) is smaller than π is considered an inward rotation. , set 1 to CCW. Then, when it is larger than π, it is regarded as an outer circumference, and -1 is set in CCW. When the specified element is a circular arc as shown in Figure 7, the point between P and a point of arbitrary length of a tangent line drawn from that end point to the actual point of the arc, centering on the end point closest to P. The angle O (angle A' BP in Fig. 7 A. Angle B' AP in Fig. 7 B) is π
When it is smaller than π, it is set as an inner loop, and CCW is set to 1. When it is larger than π, it is set as an outer loop, and CCW is set to -1. The tracking direction is determined so that the end point closer to the designated point P is the end point of the start element. In the case of Figure 6, point A is determined to be the terminal point, the tracking direction is determined to be the arrow direction, and Figure 7
In this case, the -A point is determined to be the terminal point, and the tracking direction is determined to be the arrow direction. Next, the end point processing of the contour tracking processing program in block 3 in FIG. 1 will be explained in detail. In FIG. 3, starting from the starting element BA, it is traced as shown by the arrow until it reaches the first end point a. At this time, the process of determining the next graphical element to be tracked is end point processing,
This process calculates the angle θ between the final selected element Ca before the end point a and the next selected candidate elements aD and aE in a counterclockwise direction with respect to the final selected element Ca as a reference, and this angle θ and the tracking direction are The selection of the next selection candidate element is determined according to predetermined conditions based on whether it is the outer circumference or the outer circumference. The process of obtaining the above-mentioned θ is called angle setting. An outline of the end point processing will be explained with reference to the diagram shown in FIG. Find each counterclockwise angle based on . The angle on the element ab side is θaD
(see Figure 4A), and the angle on the element aE side is θaE (see Figure 4B), in the case of outer tracking, the selected angle θa = MAX (θaD, θaE) = θa
Take the condition that D. Therefore, in this case, element aD is tracked. In Figure 3, it then passes point F and reaches end point b. At this time, the final selection element FG and the next selection element bH
Find the counterclockwise angle θb with respect to FG. In the case of outer tracking, select one that satisfies the condition θb>π. Therefore, in this case, element bH is tracked. Thereafter, it will be tracked in the same way and will pass through the end points c and d. The tracking results are BnA→C→a→D→F→b→H-
4c → d4B, resulting in a contour figure as shown in Figure 2B. When the pointing point P is set as shown in Fig. 5, the start element is set to BA in block 2 of Fig. 1, the tracking direction is set to the B-4A direction, and it is set to the inner direction. , starts from the start element BA, is traced as shown by the arrow in the figure, and reaches the first end point a. In this case, since it is an inner rotation, the angle to be selected is θa = Min(θaD, θaE) = θaE. Therefore, here we will track element aE. Next, reach the end point e. In this case, since it is an inner rotation, θ
Take the one that satisfies the condition e x π. Therefore, we will now track element ef. Subsequently, it will be traced in the same way and will pass through the end points f and d. The tracking result is B-+A-+C-
+a-+E-4e→f-+d→B, resulting in a contour figure as shown in FIG. 1C.
次に、端点処理即ち追跡要素の定め方を詳細に説明する
。Next, end point processing, that is, how to determine tracking elements will be explained in detail.
第8図は、次選択候補要素の前提条件を示している。第
8図Aの、最終選択要素の終端点を供給する要素、又は
,第8図Bの,最終選択要素の終端点が要素上にあるも
の、又は,第8図Cの,最終選択要素上にどちらかの端
点を持つ要素が、次の選択候補要素の条件である.
第8図における各点を中心とし,最終選択要素と次の選
択候補要素との間の角度をθとするときフラグCCWが
1(内回り)のときはθが小さい方(第9図AでA−4
B−+C)を,CCWが−1(外回り)のときはθが大
きい方(第9図BでA→B−)E)を優先して選択する
.
第10図A,Bに示すように、片方、又は両要素が円弧
(円を含む)のときは,その両端点における接線と直線
、又は両接線のなす角をθとする。FIG. 8 shows the preconditions for the next selection candidate element. The element that supplies the terminal point of the final selection element in Figure 8A, or the terminal point of the final selection element on the element in Figure 8B, or on the final selection element in Figure 8C. An element that has either endpoint is the condition for the next selection candidate element. When the angle between the final selection element and the next selection candidate element is θ, with each point in FIG. 8 as the center, if the flag CCW is 1 (inward rotation), -4
B-+C), and when CCW is -1 (outer rotation), preferentially select the one with larger θ (A→B- in Figure 9B) E). As shown in FIGS. 10A and 10B, when one or both elements are circular arcs (including circles), the angle formed by the tangent and the straight line or both tangents at both end points is θ.
第1l図に示すように,最終選択要素上に複数の次選択
候補要素がある場合、θの値よりも最終選択要素の始端
点に近い方を優先する.ただし,CCWが1(内回り)
のとき、θくπ、CCWが−1(外回り)のとき、θ〉
πを満たすものとする.
同一点で複数の次選択候補要素とのθが同一となった場
合の優先順位の定め方を第12図を参照して説明する.
同一点においてθが同一のときの判定基準は、次選択候
補要素が円弧のときは,その半径および対象の点(同一
となっている点)を始点としたときの始点/終点の方向
(nfとし反時計回りのとき1,時計回りのとき−1と
する)およびCCW(内回りか外回りか)の値を用いる
.
次選択候補要素が直線のときは、半径を無限大の円弧と
考えnfには便宜上.−CCWを入れる.そして、CC
Wとnfが一致するときは半径の大きい方、CCWとn
fが一致しないときは半径の小さい方を優先し、且つC
CWとnfとが一致しないケースを優先する。As shown in Figure 1l, if there are multiple next selection candidate elements on the final selection element, priority is given to the one closer to the starting point of the final selection element than the value of θ. However, CCW is 1 (inner rotation)
When θ is π, when CCW is -1 (outer rotation), θ〉
Assume that π is satisfied. How to determine the priority order when θ is the same as that of multiple next selection candidate elements at the same point will be explained with reference to FIG. The criteria for determining when θ is the same at the same point is, when the next selection candidate element is a circular arc, its radius and the direction of the start point/end point (nf (1 for counterclockwise rotation, -1 for clockwise rotation) and CCW (inner or outer rotation) values are used. When the next selection candidate element is a straight line, the radius is considered to be an infinite circular arc for convenience. -Insert CCW. And C.C.
When W and nf match, the one with the larger radius, CCW and n
If f does not match, give priority to the one with the smaller radius, and C
Priority is given to cases where CW and nf do not match.
上記の条件から、
CCW=1 (内回り)の場合
nf=1(CCWとnfとが一致するとき)の要素中,
半径の大きな円弧dを選択する.nf=−1 (CC
Wとnfが一致しないとき)の要素中では,円弧a(半
径小)を選択する。この場合の優先順位はe→d−4c
−4b→a(最優先順位)
CCW=−1 (外回り)の場合
nf=−1 (CCVとnfが一致するとき)の要素中
では円弧b(半径大)を選択する。From the above conditions, when CCW=1 (inner rotation), among the elements of nf=1 (when CCW and nf match),
Select arc d with large radius. nf=-1 (CC
When W and nf do not match), arc a (small radius) is selected. In this case, the priority is e → d-4c
-4b→a (highest priority) When CCW=-1 (outer rotation), select arc b (large radius) among the elements with nf=-1 (when CCV and nf match).
n f = 1 (CCVとnfが一致しないとき)の
要素中では円弧e(半径小)を選択する.この場合の優
先順位はa→b→C→d→e(最優先順次)である.
次に角度θがゼロ又は2πと求められたとき、どちらの
値を採らせるかについて説明する.最終選択要素が円弧
のときは、半径(br)と始終点の方向(b f)を判
断基準とする.直線のときはbf=oとし別処理をする
.選択候補要素が直線のとき,
(1)最終選択要素が直線(bf=o)のときは、同一
要素と判断し、候補から外す(第13図参照)(2)最
終選択要素が円弧のとき
bf=1 (反時計回り)ならゼロ(第14図参照)、
bf=−1 (時計回り)なら2?c(第l4図参照)
と処理する.
選択候補要素が円弧のとき、その半径をnr、終端点を
始点としたときの始終点方向をnfとすると
(1)最終選択要素が直線のとき,
CCW#nfのとき
CCW=1 (内回り)なら2π(第15図B参照)、
ccw=−1(外回り)ならゼロ(第15図A参照)と
処理する。Select arc e (small radius) in the element where n f = 1 (when CCV and nf do not match). In this case, the priority order is a→b→C→d→e (highest priority order). Next, we will explain which value to take when the angle θ is found to be zero or 2π. When the final selected element is a circular arc, the radius (br) and the direction of the start and end points (bf) are used as criteria for judgment. If it is a straight line, set bf=o and process it separately. When the selected candidate element is a straight line: (1) When the final selected element is a straight line (bf=o), it is judged as the same element and removed from the candidates (see Figure 13) (2) When the final selected element is an arc If bf=1 (counterclockwise), it is zero (see Figure 14),
If bf=-1 (clockwise) then 2? c (see Figure 14)
It is processed as follows. When the selected candidate element is a circular arc, its radius is nr, and the start and end point direction when the end point is the starting point is nf.(1) When the final selected element is a straight line, CCW=1 when CCW#nf (inner rotation) then 2π (see Figure 15B),
If ccw=-1 (outer rotation), it is treated as zero (see FIG. 15A).
CCW=nfのとき
CCW=1 (内回り)ならゼロ(第6図A参照〉、C
CW=−1 (外回り)なら2π(第16図B参照)と
処理する。When CCW=nf, if CCW=1 (inside), zero (see Figure 6 A), C
If CW=-1 (outer rotation), it is processed as 2π (see FIG. 16B).
(2)bf#nfかつbr=nr(同心円)のときは、
同一要素と判断し候補から外す(第17図参照).
(3)bf#nfかッb r > n rのとき(第1
8図参照)bf=1なら2π、bf=−1ならゼロとし
て処理する。(2) When bf#nf and br=nr (concentric circles),
They are judged to be the same element and removed from the candidates (see Figure 17). (3) When bf #nf b r > n r (first
(See Figure 8) If bf=1, it is treated as 2π, and if bf=-1, it is treated as zero.
(4)bf=nf又はbr<nrのとき(第18図参照
)bf=1ならゼロ、bf=−1なら2πとし処理する
.
〔効果〕
本発明は上述の如く構威したので、自動的に内回りと外
回りの方向判別をし、図形要素の輪郭を自動的に追跡す
ることができる効果が存する。(4) When bf=nf or br<nr (see Figure 18), if bf=1, it is treated as zero, and if bf=-1, it is treated as 2π. [Effects] Since the present invention is configured as described above, it has the advantage that the inner and outer directions can be automatically determined and the outline of a graphic element can be automatically tracked.
第1図はフローチャート、第2図乃至第18図は説明図
,第19図は従来技術の説明図である。FIG. 1 is a flowchart, FIGS. 2 to 18 are explanatory diagrams, and FIG. 19 is an explanatory diagram of the prior art.
Claims (9)
スタート要素を指示するとともに、追跡方向と、内回り
か外回りかを設定し、前記スタート要素を基点として連
続する要素を追跡方向と内回りか外回りかに応じて順に
判別・選択して輪郭データを自動的に得る方法において
、最終選択要素上に次の選択候補要素が現れたとき、最
終選択要素と次の選択候補要素との間の角度θを求め、
輪郭追跡が内回りのときは角度θが小さい方を、輪郭追
跡が外回りのときは角度θが大きい方を優先して複数の
選択候補要素の中から一つを選択するようにしたことを
特徴とするCADにおける輪郭自動追跡方法。(1) Indicate the start element from among the continuous elements of the figure on the display, set the tracking direction and whether it is an inner or outer rotation, and select whether the continuous elements starting from the start element are traced in the inner or outer rotation. In the method of automatically obtaining contour data by discriminating and selecting in order according to seek,
A feature is that when the contour tracking is inward, priority is given to the one with the smaller angle θ, and when the contour tracing is in the outer direction, priority is given to the one with the larger angle θ, and one of the multiple selection candidate elements is selected. Automatic contour tracking method in CAD.
最も近い図形の要素をスタート要素に指定するようにし
たことを特徴とする第1項記載のCADにおける輪郭自
動追跡方法。(2) The automatic contour tracking method in CAD as set forth in item 1, characterized in that the element of the figure closest to the hit position of the cursor on the display is designated as the start element.
点をA、B、カーソルヒット位置をPとするとき、Pに
近い方の端点を中心として、Pに遠い方の端点とPのな
す角がπより小のときを内回りとし、πより大の時を外
回りとするようにしたことを特徴とする第1項及び第2
項記載のCADにおける輪郭自動追跡方法。(3) When the specified start element is a straight line, its end points are A and B, and the cursor hit position is P, the end point closer to P is the center, and the end point farther from P and P. Items 1 and 2, characterized in that when the angle is smaller than π, it is an inner turn, and when it is larger than π, it is an outer turn.
Automatic contour tracking method in CAD described in Section 1.
ヒット位置Pに近い方の端点を中心にして、その端点か
ら円弧の実体のある方へ引いた接線上の点と前記Pとの
なす角がπより小のときは内回りとし、πより大のとき
を外回りとしたことを特徴とする第1項及び第2項記載
のCADにおける輪郭自動追跡方法。(4) If the specified start element is an arc, the angle formed by the point on the tangent line drawn from the end point nearer to the cursor hit position P toward the actual arc and the above P. 2. The automatic contour tracking method in CAD according to the above items 1 and 2, characterized in that when is smaller than π, the inner turn is taken, and when it is larger than π, the outer turn is taken.
ート要素の終端点として追跡方向を設定するようにした
ことを特徴とする第1項及び第2項記載のCADにおけ
る輪郭自動追跡方法。(5) The automatic contour tracking method in CAD according to items 1 and 2, characterized in that the tracking direction is set by setting the end point closer to the cursor hit position P as the end point of the start element.
が円又は円弧のときは、その両端点における接線と直線
又は両接線のなす角をθとするようにしたことを特徴と
する第1項記載のCADにおける輪郭自動追跡方法。(6) When one or both of the final selection element and the next selection candidate element is a circle or an arc, the angle between the tangent at both end points and the straight line or both tangents is set to θ. 1. Automatic contour tracking method in CAD according to item 1.
合、内回りのとき角度θがπよりも小さく、外回りのと
き角度θがπよりも大きいという条件を満たす場合には
、前記角度θの値よりも最終選択候補要素を優先して選
択するようにしたことを特徴とする第1項記載のCAD
における輪郭自動追跡方法。(7) When there are multiple next selection candidate elements on the final selection element, if the condition that the angle θ is smaller than π for the inner rotation and larger than π for the outer rotation is satisfied, the angle θ CAD according to item 1, characterized in that the final selection candidate element is selected with priority over the value of
An automatic contour tracking method in
素が円弧のときは、その半径及び同一となっている点を
始点としたときの始点・終点の方向、及び内回りか外回
りかを優先順位を決める基準としたことを特徴とする第
1項記載のCADにおける輪郭自動追跡方法。(8) At the same point, when the angle θ is the same and the next selected element is a circular arc, specify the radius, the direction of the starting point and end point when the same point is the starting point, and whether it is inward or outward. 2. The automatic contour tracking method in CAD according to item 1, characterized in that the priority is determined as a criterion.
たとき、これら追跡モードの方向と円弧の始点・終点の
方向とが一致するときは、円弧のうち半径の大きい方、
追跡モードの方向と円弧の始点・終点の方向とが一致し
ないときは円弧のうち半径の小さい方を優先し、かつ追
跡モードの方向と円弧の始点・終点の方向が一致しない
ケースを優先するようにしたことを特徴とする第8項記
載のCADにおける輪郭自動追跡方法。(9) When the outer direction is counterclockwise and the inner direction is clockwise, if the directions of these tracking modes and the directions of the starting and ending points of the arc match, the one with the larger radius of the arc,
When the direction of the tracking mode and the direction of the start and end points of the arc do not match, priority is given to the arc with the smaller radius, and the case where the direction of the tracking mode and the direction of the start and end points of the arc do not match is given priority. 9. The automatic contour tracing method in CAD according to item 8.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1157884A JP2548037B2 (en) | 1989-06-20 | 1989-06-20 | Automatic contour tracking method in CAD |
US07/481,565 US5122965A (en) | 1989-06-20 | 1990-02-20 | Automatic contour tracking method for cad |
DE4017484A DE4017484A1 (en) | 1989-06-20 | 1990-05-31 | METHOD FOR AUTOMATIC CONTOUR SCANNING FOR A CAD SYSTEM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1157884A JP2548037B2 (en) | 1989-06-20 | 1989-06-20 | Automatic contour tracking method in CAD |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0322182A true JPH0322182A (en) | 1991-01-30 |
JP2548037B2 JP2548037B2 (en) | 1996-10-30 |
Family
ID=15659525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1157884A Expired - Lifetime JP2548037B2 (en) | 1989-06-20 | 1989-06-20 | Automatic contour tracking method in CAD |
Country Status (3)
Country | Link |
---|---|
US (1) | US5122965A (en) |
JP (1) | JP2548037B2 (en) |
DE (1) | DE4017484A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04317185A (en) * | 1991-04-16 | 1992-11-09 | Dainippon Screen Mfg Co Ltd | Closed area extraction method for graphic |
JP2013130941A (en) * | 2011-12-20 | 2013-07-04 | Canon Marketing Japan Inc | Information processing device, control method for information processing device, and program |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE59009380D1 (en) * | 1990-09-18 | 1995-08-10 | Grundig Ag | Process for simulating the machining of workpieces. |
US5634093A (en) * | 1991-01-30 | 1997-05-27 | Kabushiki Kaisha Toshiba | Method and CAD system for designing wiring patterns using predetermined rules |
US5223777A (en) * | 1992-04-06 | 1993-06-29 | Allen-Bradley Company, Inc. | Numerical control system for irregular pocket milling |
US5406494A (en) * | 1994-03-17 | 1995-04-11 | Creative Technology Corporation | Numerical control system with operator controlled cutting |
JP5931638B2 (en) * | 2012-07-31 | 2016-06-08 | 東芝機械株式会社 | Numerical control system and numerical control data generation method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6298474A (en) * | 1985-10-24 | 1987-05-07 | Toshiba Corp | Detecting method for inner and outer loops of line graphic form |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR900003123B1 (en) * | 1985-03-13 | 1990-05-08 | 도시바 기까이 가부시기 가이샤 | Method for evaluating free surface and n.c. system |
DE3616740A1 (en) * | 1986-05-17 | 1987-11-19 | Heidenhain Gmbh Dr Johannes | DEVICE FOR OBTAINING WORKPIECE CONTOURS |
FR2601167B1 (en) * | 1986-07-07 | 1995-05-19 | Asahi Chemical Ind | METHOD AND SYSTEM FOR GENERATING MODEL DATA. |
IL82569A (en) * | 1987-05-18 | 1991-11-21 | Israel Aircraft Ind Ltd | Apparatus for automatic tracking and contour measurement |
-
1989
- 1989-06-20 JP JP1157884A patent/JP2548037B2/en not_active Expired - Lifetime
-
1990
- 1990-02-20 US US07/481,565 patent/US5122965A/en not_active Expired - Fee Related
- 1990-05-31 DE DE4017484A patent/DE4017484A1/en not_active Withdrawn
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6298474A (en) * | 1985-10-24 | 1987-05-07 | Toshiba Corp | Detecting method for inner and outer loops of line graphic form |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04317185A (en) * | 1991-04-16 | 1992-11-09 | Dainippon Screen Mfg Co Ltd | Closed area extraction method for graphic |
JP2013130941A (en) * | 2011-12-20 | 2013-07-04 | Canon Marketing Japan Inc | Information processing device, control method for information processing device, and program |
Also Published As
Publication number | Publication date |
---|---|
US5122965A (en) | 1992-06-16 |
JP2548037B2 (en) | 1996-10-30 |
DE4017484A1 (en) | 1991-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3199765B2 (en) | Composite image editor | |
JPH0322182A (en) | Automatic contour tracking method in cad | |
JPH0820725B2 (en) | How to create image contour data | |
CN104732192A (en) | Method and device for recognizing walls on architecture drawing | |
JP2000209430A (en) | Contour extraction device and method and storage medium | |
US20190196437A1 (en) | Numerical control apparatus | |
JPH03152670A (en) | Graphic processor | |
US5664081A (en) | Method for forming a symmetrical image | |
CN115041701B (en) | Multi-directional steel node bent pipe branch manufacturing method and system based on arc additive | |
CN113414762A (en) | Welding bead path offset method and device, robot and storage device | |
US6310623B1 (en) | Method for manual editing of a closed contour | |
CN110851955A (en) | Method and system for judging position relation between polygon and computer readable storage medium | |
JPS6226868B2 (en) | ||
JP3524143B2 (en) | Graphic processing method and apparatus | |
CA2375665C (en) | Method for manual editing of a closed contour | |
CN111488655B (en) | Corner hole drawing method and system | |
JP2746162B2 (en) | Tool placement method to board material figure data | |
JP2637923B2 (en) | Method for correcting stripe pattern direction data and information processing apparatus for executing the same, and method for correcting stripe pattern pitch data and information processing apparatus for executing the same | |
JPH10240790A (en) | Method for instructing formation of fillet surface | |
JPS624552A (en) | Copying control method | |
CN116100126A (en) | Pipeline all-position welding control method, device, equipment and medium | |
CN117710519A (en) | Method for drawing outer envelope of overhead transmission line gap circle | |
JPS62120508A (en) | Automatic preparing method for machine working program for numerical controller | |
JPH0822315A (en) | Method for correcting plate material machining graphic data | |
JPH06282593A (en) | Leader preparing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080808 Year of fee payment: 12 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080808 Year of fee payment: 12 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080808 Year of fee payment: 12 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090808 Year of fee payment: 13 |
|
EXPY | Cancellation because of completion of term |