JPS6382549A - Graphic processor - Google Patents

Graphic processor

Info

Publication number
JPS6382549A
JPS6382549A JP61227854A JP22785486A JPS6382549A JP S6382549 A JPS6382549 A JP S6382549A JP 61227854 A JP61227854 A JP 61227854A JP 22785486 A JP22785486 A JP 22785486A JP S6382549 A JPS6382549 A JP S6382549A
Authority
JP
Japan
Prior art keywords
line segment
storage means
segment
line
data
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
JP61227854A
Other languages
Japanese (ja)
Inventor
Hirotaka Sekine
関根 弘隆
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 JP61227854A priority Critical patent/JPS6382549A/en
Publication of JPS6382549A publication Critical patent/JPS6382549A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently perform an operation for changing a once inputted graphic to an intended graphic by holding a connecting relation between segments constituting the graphic and maintaining the angle of the required segment constantly. CONSTITUTION:The position of the segment of a part to be transformed and the position of a moving destination of the segment to be moved are designated by a position input means 1. A segment retrieving means 3 retrieves the segment from a segment data storing means 2 and the retrieved segment is stored in a segment storing means 4 and a connecting segment storing means 6. A segment moving means 5 rewrites the contents of the segment storing means 4, thereby, the segment is moved in parallel. A segment end point position changing means 8 maintains the connecting relation of the segments and rewrites the contents of the segment storing means 4 and the connecting segment storing means. A segment data updating means 9 changes the graphic on the data and the changed graphic is displayed through a segment display means 10 on a display device 11.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はCRTディスプレイなどの図形表示装置とタブ
レットなどの位置入力装置から構成される図形処理装置
であって、主として線分から成る図形に対して対話的な
変形操作を可能とする図形処理装置に関するものである
Detailed Description of the Invention (Industrial Field of Application) The present invention is a graphic processing device comprising a graphic display device such as a CRT display and a position input device such as a tablet. The present invention relates to a graphic processing device that enables interactive transformation operations.

(従来の技術) 主として線分からなる図形を対話的に変形する従来の方
式としては第2図から第5図に示すようなものがあった
◇ 第2図の方式では、1本の線分を選択し、その線分を平
行移動あるいは回転移動させることによって図形を変形
させる。移動によって線分間の接続関係が崩れるが、こ
れは両方の線分の延長あるいは短JiiKよって修復す
る。
(Prior art) Conventional methods for interactively transforming figures mainly consisting of line segments include those shown in Figures 2 to 5. ◇ In the method shown in Figure 2, one line segment is Transform the figure by selecting and translating or rotating the line segment. The connection relationship between the line segments is disrupted due to the movement, but this can be repaired by extending or shortening both line segments.

第3図の方式では、線分の端点を1個選択し、その端点
を任意の位置に移動させ図形の変形を行う。その端点に
接続している全ての線分は接続関係を崩さないように回
転・伸縮する。
In the method shown in FIG. 3, one end point of a line segment is selected and the end point is moved to an arbitrary position to transform the figure. All line segments connected to that end point are rotated and expanded/contracted so as not to break the connection relationship.

第4図の方式では、線分の端点位置を適当なパラメータ
の関数で表しておき、パラメータに新しい値を与えるこ
とKよって端点位置を移動させ図形の変形を行う。複数
の端点位置を同一パラメータで表現することによって、
複数端点の同時移動も可能である。
In the method shown in FIG. 4, the position of the end point of a line segment is expressed as a function of appropriate parameters, and by giving a new value to the parameter K, the position of the end point is moved and the figure is transformed. By expressing multiple endpoint positions with the same parameter,
It is also possible to move multiple endpoints simultaneously.

第5図に例が示された方式は機械設計のCADシステム
において用いられる方式で、設計図面における寸法値を
変更することによって図形もそれに合わせて変形すると
いうものがある。第5図において、寸法値51の値を変
化させると寸法補助線52の延長線上の点53と点54
が寸法線55方向に移動して寸法値通)k図形が変形す
る0(発明が解決しようとする問題点) 試行錯誤的に図形を入力していく場合、−旦ラフに入力
しておき、後で全体のバランスを考慮しながら入力した
図形を変形して、最終的に意図する図形を得るという方
法がしばしばとられる。このような変形操作が主として
線分から構成される図形に対して行われるとき、変形に
よっても線分と線分の接続関係は保存されることが望ま
しい。
The method shown as an example in FIG. 5 is a method used in a CAD system for mechanical design, in which by changing the dimension values in the design drawing, the figure is also deformed accordingly. In FIG. 5, when the value of the dimension value 51 is changed, points 53 and 54 on the extension line of the dimension extension line 52
(moves in the direction of the dimension line 55 and passes the dimension value) k The figure is deformed 0 (problem to be solved by the invention) When inputting figures by trial and error, input them roughly - times, A method is often used in which the input figure is later transformed while taking into account the overall balance to finally obtain the intended figure. When such a transformation operation is performed on a figure mainly composed of line segments, it is desirable that the connection relationships between the line segments be preserved even through the transformation.

また、例えばフ京−チヤード図のようにいくつかの定型
的なパターンの組み合わせからなる図形などの場合、変
形によって線分の長さは変化したとしても、線分の角度
は変わらず一定のほうが都合の良い場合が多い。従来の
方式によれば、この2つの要求を同時に満足することが
できないか、あるいは何等かの前準備を必要としていた
Furthermore, in the case of a figure consisting of a combination of several regular patterns, such as a Fukyo-chard diagram, even if the length of the line segment changes due to deformation, it is better to keep the angle of the line constant. It is often convenient. According to conventional methods, these two requirements cannot be met at the same time, or some preparation is required.

例えば第2図の方式では角度は一定だが接続関係が壊れ
るので後で修復しなければならない。第3図の方式では
接続関係は保たれるのだが線分の角度が変化してしまう
。第4図の方式では図形入力時に端点ごとに関数設定し
なければならず図形入力をラフにスピーディに行うこと
が不可能である。第5図の方式では図形入力時に寸法線
の設定が必要であることと、例えば第6図における線分
61のように斜め方向の角度を持った線分に関してはそ
の角度が保存されないので、変形によっても斜め方向の
線分角度を一定に保つような用途には使いにくい。
For example, in the method shown in Figure 2, although the angle is constant, the connection relationship is broken and must be repaired later. In the method shown in FIG. 3, the connection relationship is maintained, but the angle of the line segment changes. In the method shown in FIG. 4, a function must be set for each end point when inputting a figure, making it impossible to input figures roughly and quickly. In the method shown in Figure 5, it is necessary to set dimension lines when inputting the figure, and for example, the angle of a line segment with a diagonal angle, such as line segment 61 in Figure 6, is not saved, so the deformation However, it is difficult to use in applications where the angle of a diagonal line segment is kept constant.

本発明ではこのような問題点を解消し、図形を構成する
線分間の接続関係を保存し、どのような角度であっても
線分の角度を一定に保つことを可能とする図形変形機能
を、使いやすさを犠牲にすることなく提供することを目
的とする。
The present invention solves these problems by providing a figure deformation function that preserves the connection relationships between the line segments that make up the figure and makes it possible to maintain the angle of the line segments constant no matter what the angle. , aims to provide ease of use without sacrificing it.

(問題点を解決するための手段) 本発明の図形処理装置は、位置入力手段と、全ての線分
データが格納される線分データ格納手段と、前記位置入
力手段によ)位置が指示された線分を前記線分データ格
納手段の中から検索する機能1と、さらにその線分に接
続している複数個の線分を前記線分データ格納手段の中
から検索する機能2を持つ線分検索手段と、前記線分検
索手段の機能1により検索された線分のデータを一時的
に記憶する線分記憶手段と、前記線分検索手段の機能2
により検索された線分のデータを一時的に記憶する接続
線分記憶手段と、前記線分記憶手段に記憶されている線
分の位置を前記位置入力手段により指示された位置まで
平行移動させるよう前記線分記憶手段の内容を変更する
線分移動手段と、前記接続線分記憶手段に記憶されてい
る複数個の線分から一本の線分を選択する線分選択手段
と、前記線分記憶手段に記憶されている線分と前記線分
選択手段により選択された線分の交点位置を算出し両方
の線分が交点位置で接続するように前記線分記憶手段の
内容と前記接続線分記憶手段の内容を変更し、さらに前
記接続線分記憶手段に記憶されている線分のうち前記線
分選択手段によって選択されなかったものも前記交点位
置に接続するように前記接続線分記憶手段の内容を変更
する線分端点位置変更手段と前記線分記憶手段だ記憶さ
れている線分データと前記接続線分記憶手段に記憶され
ている線分データに従って前記線分データ格納手段に格
納されている線分データを更新す名線分データ更新手段
と、前記線分データ格納手段に格納されている線分デー
タの表示処理を行う線分表示手段と、前記線分表示手段
により出力される線分を画面上に表示する表示装置とか
ら構成される。
(Means for Solving the Problems) A graphic processing device of the present invention includes a position input means, a line segment data storage means in which all line segment data is stored, and a position specified by the position input means). A line having a function 1 for searching the line segment data storage means for a line segment that has been generated from the line segment, and a function 2 for searching for a plurality of line segments connected to the line segment from the line segment data storage means. segment search means; line segment storage means for temporarily storing line segment data searched by function 1 of the line segment search means; and function 2 of the line segment search means.
connecting line segment storage means for temporarily storing the line segment data retrieved by the line segment; line segment moving means for changing the contents of the line segment storage means; line segment selection means for selecting one line segment from a plurality of line segments stored in the connecting line segment storage means; and the line segment storage means. The intersection position of the line segment stored in the means and the line selected by the line segment selection means is calculated, and the contents of the line segment storage means and the connecting line segment are calculated so that both line segments are connected at the intersection position. The connecting line segment storage means changes the contents of the storage means, and further includes the connecting line segment storage means such that among the line segments stored in the connecting line segment storage means, those not selected by the line segment selection means are also connected to the intersection position. A line segment end point position changing means for changing the contents of the line segment and the line segment storage means are stored in the line segment data storage means according to the stored line segment data and the line segment data stored in the connecting line segment storage means. a line segment data updating means for updating line segment data stored in the line segment data; a line segment display means for displaying the line segment data stored in the line segment data storage means; and an output by the line segment display means. and a display device that displays the line segments on the screen.

(作 用) 位置入力手段1によって、変形しようとする部分の線分
の位置と、その線分を移動させるべき移動先の位置が指
示される(第7図(a))。変形は基本的には指示され
た線分を指示された位置に移動することによって行う。
(Function) The position input means 1 indicates the position of the line segment of the portion to be deformed and the destination position to which the line segment is to be moved (FIG. 7(a)). Transformation is basically performed by moving the designated line segment to the designated position.

線分検索手段3は線分データ格納手段2の中から、指示
された線分とその線分く接続している全ての線分を検索
する。検索された線分は線分記憶手段4と接続線分記憶
手段6に記憶される。線分移動手段5は、線分記憶手段
4の内容を書き換えることによって、指示された線分を
指示された位置まで移動することができる。この移動は
平行移動であるため、移動しても線分の角度は変化しな
い(第7図(b))。
The line segment search means 3 searches the line segment data storage means 2 for the designated line segment and all line segments connected to that line segment. The retrieved line segments are stored in the line segment storage means 4 and the connecting line segment storage means 6. The line segment moving means 5 can move the specified line segment to the specified position by rewriting the contents of the line segment storage means 4. Since this movement is a parallel movement, the angle of the line segment does not change even if it moves (FIG. 7(b)).

次に、線分端点位置変更手段8は、接続線分記憶手段6
に記憶されている接続線分と線分記憶手段4に記憶され
ている移動後の線分の延長線上での交点位置を計算する
(第7図(C))。線分端点位置変更手段8はこの交点
位置で両方の線分が接続するように線分記憶手段4と接
続線分記憶手段6の内容を書き換える。すなわち、両線
分の延長あるいは短縮が行われる。このようKして線分
と線分の接続関係が保たれ、また線分の角度変化もおき
ずに変形が行われる(第7図(d))。
Next, the line segment end point position changing means 8 selects the connecting line segment storage means 6.
The intersection position on the extended line of the connecting line segment stored in the line segment and the moved line segment stored in the line segment storage means 4 is calculated (FIG. 7(C)). The line segment end point position changing means 8 rewrites the contents of the line segment storage means 4 and the connecting line segment storage means 6 so that both line segments are connected at this intersection position. That is, both line segments are extended or shortened. In this way, the connection relationship between the line segments is maintained, and the line segments are deformed without changing their angles (FIG. 7(d)).

移動する線分の端点に複数個の線分が接続している場合
(第8図)は、線分選択手段7により交点位置計算のた
めの接続線分が1本選択される。
If a plurality of line segments are connected to the end point of the moving line segment (FIG. 8), the line segment selection means 7 selects one connecting line segment for calculating the intersection point position.

線分端点位置変更手段8は移動後の線分と選択された接
続線分の延長上での交点位置を求め接続する(第8図(
C))。選択されなかった接続線分に関しては接続関係
が保たれるようにその交点位置に接続させる(第8図(
d))。すなわち移動する線分に複数個の線分が接続し
ている場合、それらの線分は1本を除いて線分角度より
も線分間の接続関係の保存が優先される。ただし、その
1本は線分角度も接続関係も保存される。
The line segment end point position changing means 8 determines the intersection position of the moved line segment and the selected connecting line segment on the extension, and connects the line segment (see FIG. 8).
C)). Connecting line segments that were not selected are connected to their intersection points so that the connection relationship is maintained (see Figure 8 (
d)). That is, when a plurality of line segments are connected to a moving line segment, preservation of the connection relationship between the line segments is prioritized over the line segment angle for all but one of the line segments. However, for that one line, both the line segment angle and connection relationship are preserved.

このようにして本装置によって、線分間の接続関係を保
ったまま、線分の角度を変化させずに、図形の変形を簡
単な操作で行うことができる0(実施例) 第1図は本発明の一実施例の全体構成を示すブロック図
である。
In this way, with this device, it is possible to deform a figure with simple operations without changing the angles of the line segments while maintaining the connection relationship between the line segments. FIG. 1 is a block diagram showing the overall configuration of an embodiment of the invention.

図中1は位置入力手段であシ、タブレットなどの位置入
力装置により、変形部分の線分付近の位置が指示され、
続けてその線分が移動されるべき新たな位置が指示され
る。
In the figure, 1 is a position input means, and the position near the line segment of the deformed part is indicated by a position input device such as a tablet.
Subsequently, a new position to which the line segment is to be moved is indicated.

2は線分データ格納手段であ)、図形を構成する全ての
線分のデータが格納され参照および更新が可能である。
Reference numeral 2 denotes line segment data storage means) in which data of all line segments constituting a figure is stored and can be referenced and updated.

線分データ格納手段の内容としては例えば第9図に示す
ようなものが考えられる。
The contents of the line segment data storage means may be as shown in FIG. 9, for example.

91は頂点データのテーブルであり、頂点の位置92、
頂点に接続する各線分へのポインタ93、頂点に接続す
る各線分ごとに接続点が線分の端なのか/中央部分なの
かを示すフラグ94などからなる。95は線分データの
テーブルであシ、両端の頂点へのポインタ96、中央部
分の各頂点へのボイ/り97、変形の際に線分角度を保
存するのか/保存しないのかを示すフラグ98などから
なる。線分角度を保存するのか/保存しないのかを示す
フラグ98は図形変形に先だって図形入力時に、線分の
入力順によって決定されるようにすることができる。例
えば、一つの頂点に接続できる線分角度を保存する線分
の本数に上限を設定し、早く入力した線分は線分角度を
保存するものとし、接続によって上限を越える線分は線
分角度を保存しないものとするという方法がある。
91 is a table of vertex data, including vertex positions 92,
It consists of a pointer 93 to each line segment connected to the vertex, a flag 94 indicating whether the connection point is at the end or the center of the line segment for each line segment connected to the vertex. 95 is a table of line segment data, pointers 96 to the vertices at both ends, points 97 to each vertex in the center, and a flag 98 indicating whether or not to save the line segment angle during transformation. Consists of etc. The flag 98 indicating whether or not to save line segment angles can be determined by the input order of line segments at the time of inputting a figure prior to figure transformation. For example, set an upper limit on the number of line segments that can be connected to one vertex and store the line segment angle, and the line segments that are input early will have their line angles saved, and the line segments that exceed the upper limit due to connection will have line segment angles. There is a method of not saving.

3は線分検索手段であシ、前記位置入力手段により入力
された位置データを手がかシに1前記線分データ格納手
段内の線分データを検索し、位置入力手段により指示さ
れたとみなされる線分とその線分に接続している全ての
線分を見つけ出す0例えば、指示された位置と各線分と
の最短距離を次々計算し、最も近くKある線分を選択し
、指示された線分とする。この線分から前記線分データ
格納手段におけるポインタをたど不ことKよシ線分上の
各頂点を得、さらに各頂点からポインタをたどることK
よシ頂点ごとkその頂点で接続している全ての線分を見
つけることができる。ここまでは指示された位置に最も
近い線分1本が選択されたが、指示された位置が1個の
頂点く閾値以上に近い場合には、その頂点く接続してい
る複数個の線分が同時に指示されたとみなし、複数個の
線分を同時に移動することKよって図形変形を行うとす
る方法もある(第10図)。この場合接続線分はその複
数個の線分側々について検索される。
3 is a line segment search means, which uses the position data inputted by the position input means to manually search the line segment data in the line segment data storage means, and considers the line segment data as instructed by the position input means. For example, calculate the shortest distance between the specified position and each line segment one after another, select the K closest line segment, and find the line segment connected to that line segment. Let it be a line segment. From this line, follow the pointer in the line segment data storage means to obtain each vertex on the line segment, and further follow the pointer from each vertex.
For each vertex, we can find all line segments connected at that vertex. Up to this point, one line segment closest to the specified position has been selected, but if the specified position is closer than one vertex than the threshold, multiple line segments connected to that vertex are selected. There is also a method in which it is assumed that K is instructed at the same time, and the figure is transformed by moving a plurality of line segments at the same time (FIG. 10). In this case, the connecting line segment is searched for its plurality of line segment sides.

線分の移動、線分の選択、交点位置の計算、端点位置の
変更などの処理はその複数個の線分側々に繰シ返される
Processes such as moving line segments, selecting line segments, calculating intersection positions, and changing end point positions are repeated for each side of the plurality of line segments.

4は線分記憶手段であシ、前記線分検索手段により検索
された線分データが一時的に記憶される。
Reference numeral 4 denotes line segment storage means, in which line segment data retrieved by the line segment search means is temporarily stored.

線分の移動、端点位置の変更にともなって内容が書き換
えられる。
The contents are rewritten as the line segment moves or the end point position changes.

5は線分移動手段であシ、前記線分記憶手段の内容を書
き換え、前記位置入力手段により指示された線分を前記
位置入力手段により入力された位置まで移動する。これ
は実際に線分の端点の新しい端点位置を計算することに
よってもできるし、移動量を計算し前記線分移動手段忙
記憶させておき、必要な時に端点位置を計算するという
方法をとることもできる。
Reference numeral 5 denotes line segment moving means, which rewrites the contents of the line segment storage means and moves the line segment designated by the position input means to the position input by the position input means. This can be done by actually calculating the new end point position of the end point of the line segment, or by calculating the amount of movement, storing it in the memory of the line segment moving means, and calculating the end point position when necessary. You can also do it.

6は接続線分記憶手段であシ、前記線分検索手段により
検索された、前記線分記憶手段の線分と接続関係にある
線分のデータが一時的に記憶される。端点位置の変更に
ともなって内容が書き換えられる。
Reference numeral 6 denotes connecting line segment storage means, in which data of line segments searched by the line segment retrieval means and connected to the line segments in the line segment storage means is temporarily stored. The contents are rewritten as the end point position changes.

7は線分選択手段であシ、交点位置計算に用いるため、
前記接続線分記憶手段に記憶されている線分のうちから
接続点ごとE1本だけを選択する。
7 is a line segment selection means, which is used to calculate the intersection position,
Only one line E is selected for each connection point from among the line segments stored in the connection line segment storage means.

この時選択された線分は変形の際角度が変化することは
ないが、選択されなかった線分は角度が変化する。線分
の選択方法としては、例えば、前記線分データ格納手段
中に線分ととに線分角度の保存する/保存しないのフラ
グを設定しておき、接続線分として取シ出されてきたも
のから、線分角度保存となっている線分を選択するとい
う方法がある。あるいは、単純に前記線分データ格納手
段中で最も先頭近くにあるものを選択するという方法も
ある。あるいは、前記位置入力手段において線分指示と
移動先位置入力のために指示される2つの位置を結んだ
場合の方向と線分角度が最も近い線分を選択するという
方法もある。第11図において線分111が選択される
のがその例である。
The angle of the selected line segment does not change during transformation, but the angle of the unselected line segment changes. As a method for selecting a line segment, for example, a flag indicating whether or not to save the line segment angle is set for each line segment in the line segment data storage means, and the line segment is extracted as a connecting line segment. There is a method of selecting line segments whose angles are conserved. Alternatively, there is also a method of simply selecting the one closest to the beginning of the line segment data storage means. Alternatively, there is also a method of selecting a line segment whose direction and line segment angle are closest when connecting the two positions specified by the position input means to input the line segment instruction and the destination position. An example of this is that line segment 111 in FIG. 11 is selected.

8は線分端点位置変更手段であ〕、前記線分記憶手段に
記憶されている移動後の線分と前記線分選択手段で選択
された接続線分の交点を計算する。
Reference numeral 8 denotes line segment end point position changing means] which calculates the intersection of the moved line segment stored in the line segment storage means and the connecting line segment selected by the line segment selection means.

次に両線分を延長あるいは短縮させ、交点位置で接続さ
せるために、前記線分記憶手段の内容と前記接続線分記
憶手段の内容を書き換える。第11図における線分11
2と線分113がその例である。さらに、接続線分のう
ち前記線分選択手段で選択されなかった線分の端点なこ
の交点位置に変更し、線分間の接続関係を保たせる。こ
れは前記接続線分記憶手段の内容書き換えKよって行う
Next, in order to extend or shorten both line segments and connect them at the intersection position, the contents of the line segment storage means and the contents of the connecting line segment storage means are rewritten. Line segment 11 in Figure 11
2 and line segment 113 are examples. Further, the intersection position is changed to the end point of the connecting line segment that was not selected by the line segment selection means, and the connection relationship between the line segments is maintained. This is done by rewriting the contents of the connecting line segment storage means.

これは第11図における線分114や線分115などで
ある。
This is line segment 114, line segment 115, etc. in FIG.

9は線分データ更新手段であプ、前記線分記憶手段と前
記接続線分記憶手段に記憶されている線分データに従っ
て、前記線分データ格納手段内の該当線分データを更新
する。これによってデータの上で図形変形が完了する。
Reference numeral 9 denotes line segment data updating means, which updates the corresponding line segment data in the line segment data storage means in accordance with the line segment data stored in the line segment storage means and the connecting line segment storage means. This completes the graphic transformation on the data.

線分の接続関係は保たれるので、線分データ格納手段中
に頂点の位置データが第9図のように独立して格納され
ていた場合、その頂点の位置データのみを変更すればよ
い。
Since the connection relationship between the line segments is maintained, if the position data of the vertices is stored independently in the line segment data storage means as shown in FIG. 9, it is only necessary to change the position data of the vertices.

10は線分表示手段であシ、前記線分データ格納手段の
線分データを表示装置11に表示させる。
Reference numeral 10 denotes a line segment display means, which causes the display device 11 to display the line segment data stored in the line segment data storage means.

1回の変形操作ごとの操作結果が表示装置の画面上に反
映される。
The operation result for each transformation operation is reflected on the screen of the display device.

次に線分の移動による図形変形の処理例を第12図のフ
ローチャートと第8図の図形を用いて説明する。
Next, a processing example of graphic deformation by moving line segments will be explained using the flowchart of FIG. 12 and the graphic of FIG. 8.

■ 移動が行われるべき線分が線分記憶手段に記憶され
る(121)。第8図においては線分81である。
(1) The line segment to be moved is stored in the line segment storage means (121). In FIG. 8, it is a line segment 81.

■ ■の線分に接続している全ての線分が接続線分記憶
手段に記憶される(122)。線分82、線分83、線
分84である。
(1) All line segments connected to the line segment (2) are stored in the connected line segment storage means (122). They are line segment 82, line segment 83, and line segment 84.

■ 移動先の新しい位置を取り込む(123)。■ Import the new location of the destination (123).

点85である。The score is 85.

■ 線分記憶手段の線分を■で取シ込んだ位置に移動す
る。線分記憶手段の内容が更新される(124)。線分
81が点85まで移動して線分86になる。
■ Move the line segment in the line segment storage means to the position written in ■. The contents of the line segment storage means are updated (124). Line segment 81 moves to point 85 and becomes line segment 86.

■ ■の線分の接続点ごとに■〜■の処理が繰シ返され
る。
■ The processes of ■ to ■ are repeated for each connection point of the line segment of ■.

■ 接続点ごとに接続線分記憶手段の接続線分のうちか
ら線分角度を保存すべき線分を1本選択する(125)
。線分82と線分83の中から線分83が選択される。
■ For each connection point, select one line segment for which the line segment angle is to be stored from among the connected line segments in the connected line segment storage means (125).
. Line segment 83 is selected from line segment 82 and line segment 83.

■ ■で移動した線分記憶手段の線分と■で選択された
線分の延長上の交点を求める(126)。
(126) Find the intersection point on the extension of the line segment in the line segment storage means moved in (2) and the line selected in (2).

線分83と線分86の交点87が求まる。An intersection 87 between line segment 83 and line segment 86 is found.

■ 線分記憶手段の線分と■の線分が■で求めた交点位
置で接続するように延長/短縮を行う。
■ Extend/shorten so that the line segment in the line segment storage means and the line segment in ■ are connected at the intersection position determined in ■.

線分記憶手段と接続線分記憶手段の内容が更新される(
127)。線分83と線分86が線分89と線分88に
なる。
The contents of the line segment storage means and the connecting line segment storage means are updated (
127). Line segment 83 and line segment 86 become line segment 89 and line segment 88.

■ ■で選択されなかった他の、接続線分の端点が■で
求めた交点位fiK来るように変更される。
(2) The end points of other connecting line segments not selected in (2) are changed so that they come at the intersection point fiK determined in (2).

接続線分記憶手段の内容が更新される(128)。The contents of the connecting line segment storage means are updated (128).

線分82が線分810になる0 (発明の効果) 以上の説明で明らかなように、この発明によると簡単な
操作によって図形の変形を行うことができ、またその際
、線分間の接続関係が保たれ、かつ、必要な線分の角度
も変化しないので、−立入力した図形を意図する図形へ
変形していく作業が能率的に行える。
Line segment 82 becomes line segment 810 (Effects of the invention) As is clear from the above explanation, according to the present invention, a figure can be transformed by a simple operation, and at that time, the connection relationship between the line segments can be changed. is maintained, and the angles of the necessary line segments do not change either. Therefore, - the work of transforming the inputted figure into the intended figure can be done efficiently.

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

第1図は本発明の一実施例の全体構成を示すブロック図
、第2図は線分の移動によって変形を行う従来方式の説
明図、第3図は頂点の移動によって変形を行う従来方式
の説明図、第4図はパラメータを用いて変形を行う従来
方式の説明図、第5図は寸法値の変化によって変形を行
う従来方式の説明図、第6図は斜め方向の線分を含んだ
図形に対して寸法値変化による変形を行った例を示した
図、第7図は接続線分が接続点ごとに1本しか接続して
いない図形に対する本発明の作用を示した図、第8図は
接続線分が接続点に2本以上接続している図形に対する
本発明の作用を示した図、第9図は線分データ格納手段
の内容の例を示した図、第10図は頂点の指示により複
数個の線分を同時に移動する方法を説明した図、第11
図は2つの入力位置を結ぶ方向に最も近い線分を交点計
算のために選択する方式をとった場合の本発明の作用を
示した図、第12図は本発明の処理フローの例を示した
フローチャートである。 1・・・位置入力手段、2・・・線分データ格納手段、
3・・・線分検索手段、4・・・線分記憶手段、5・・
・線分移動手段、6・・・接続線分記憶手段、7・・・
線分選択手段、8・・・線分端点位置変更手段、9・・
・線分データ更新手段、10は線分表示手段、11・・
・表示装置0 代理人 弁理士 本 庄 伸 介 第1図 第3図 X=−に に=15         に=20 第0図 第5図 第6図 (a)     (b) 第7図 第8図 第9図 第10図 (a)       (b) 忙)(d) 第11図
Fig. 1 is a block diagram showing the overall configuration of an embodiment of the present invention, Fig. 2 is an explanatory diagram of a conventional method in which deformation is performed by moving line segments, and Fig. 3 is an explanatory diagram of a conventional method in which deformation is performed by moving vertices. Figure 4 is an explanatory diagram of a conventional method that performs deformation using parameters, Figure 5 is an explanatory diagram of a conventional method that performs deformation by changes in dimension values, and Figure 6 includes diagonal line segments. Figure 7 is a diagram showing an example of deforming a figure by changing dimensional values. Figure 7 is a diagram showing the effect of the present invention on a figure in which only one connecting line segment is connected at each connection point. The figure shows the effect of the present invention on a figure in which two or more connecting line segments are connected to a connecting point, FIG. 9 is a diagram showing an example of the contents of the line segment data storage means, and FIG. 10 is a vertex. Figure 11 explaining how to move multiple line segments at the same time according to instructions.
The figure shows the operation of the present invention when the line segment closest to the direction connecting two input positions is selected for intersection point calculation, and Figure 12 shows an example of the processing flow of the present invention. This is a flowchart. 1... Position input means, 2... Line segment data storage means,
3... Line segment search means, 4... Line segment storage means, 5...
- Line segment moving means, 6... Connecting line segment storage means, 7...
Line segment selection means, 8...Line segment end point position changing means, 9...
・Line segment data updating means, 10 is line segment display means, 11...
・Display device 0 Agent Patent attorney Shinsuke Honjo Fig. 1 Fig. 3 Figure 9Figure 10 (a) (b) Busy) (d) Figure 11

Claims (1)

【特許請求の範囲】[Claims] 位置入力手段と、全ての線分データが格納される線分デ
ータ格納手段と、前記位置入力手段により位置が指示さ
れた線分を前記線分データ格納手段の中から検索する機
能1と、さらにその線分に接続している複数個の線分を
前記線分データ格納手段の中から検索する機能2を持つ
線分検索手段と、前記線分検索手段の機能1により検索
された線分のデータを一時的に記憶する線分記憶手段と
、前記線分検索手段の機能2により検索された線分のデ
ータを一時的に記憶する接続線分記憶手段と、前記線分
記憶手段に記憶されている線分の位置を前記位置入力手
段により指示された位置まで平行移動させるよう前記線
分記憶手段の内容を変更する線分移動手段と、前記接続
線分記憶手段に記憶されている複数個の線分から一本の
線分を選択する線分選択手段と、前記線分記憶手段に記
憶されている線分と前記線分選択手段により選択された
線分の交点位置を算出し両方の線分が交点位置で接続す
るように前記線分記憶手段の内容と前記接続線分記憶手
段の内容を変更し、さらに前記接続線分記憶手段に記憶
されている線分のうち前記線分選択手段によつて選択さ
れなかつたものも前記交点位置に接続するように前記接
続線分記憶手段の内容を変更する線分端点位置変更手段
と、前記線分記憶手段に記憶されている線分データと前
記接続線分記憶手段に記憶されている線分データに従つ
て前記線分データ格納手段に格納されている線分データ
を更新する線分データ更新手段と、前記線分データ格納
手段に格納されている線分データの表示処理を行う線分
表示手段と、前記線分表示手段により出力される線分を
画面上に表示する表示装置とからなることを特徴とする
図形処理装置。
a position input means, a line segment data storage means in which all line segment data are stored, a function 1 for searching the line segment whose position is specified by the position input means from the line segment data storage means; a line segment search means having a function 2 for searching the line segment data storage means for a plurality of line segments connected to the line segment, and a line segment searched by the function 1 of the line segment search means; a line segment storage means for temporarily storing data; a connecting line segment storage means for temporarily storing data on the line segment searched by function 2 of the line segment search means; a line segment moving means for changing the contents of the line segment storage means so as to move the position of the line segment parallel to the position indicated by the position input means; a line segment selecting means for selecting one line segment from the line segment; calculating the intersection position of the line segment stored in the line segment storage means and the line segment selected by the line segment selecting means; The content of the line segment storage means and the content of the connection line segment storage means are changed so that the segments connect at the intersection position, and the line segment selection means is further performed from among the line segments stored in the connection line segment storage means. line segment end point position changing means for changing the contents of said connecting line segment storage means so that those not selected by said line segment storage means are also connected to said intersection position; and line segment data stored in said line segment storage means. line segment data updating means for updating the line segment data stored in the line segment data storage means according to the line segment data stored in the connecting line segment storage means; 1. A graphic processing device comprising: a line segment display unit that performs display processing of line segment data; and a display device that displays the line segments output by the line segment display unit on a screen.
JP61227854A 1986-09-26 1986-09-26 Graphic processor Pending JPS6382549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61227854A JPS6382549A (en) 1986-09-26 1986-09-26 Graphic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61227854A JPS6382549A (en) 1986-09-26 1986-09-26 Graphic processor

Publications (1)

Publication Number Publication Date
JPS6382549A true JPS6382549A (en) 1988-04-13

Family

ID=16867408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61227854A Pending JPS6382549A (en) 1986-09-26 1986-09-26 Graphic processor

Country Status (1)

Country Link
JP (1) JPS6382549A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006120034A (en) * 2004-10-25 2006-05-11 Toyota Motor Corp System, method, and program for design data generation
US7653517B2 (en) 2003-04-15 2010-01-26 Toyota Jidosha Kabushiki Kaisha Design data generating apparatus and design data generating method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7653517B2 (en) 2003-04-15 2010-01-26 Toyota Jidosha Kabushiki Kaisha Design data generating apparatus and design data generating method
JP2006120034A (en) * 2004-10-25 2006-05-11 Toyota Motor Corp System, method, and program for design data generation

Similar Documents

Publication Publication Date Title
JPH0325792B2 (en)
JPS6382549A (en) Graphic processor
JP2000331193A (en) Method for changing shape of finite element mesh model
JPS63288357A (en) Data editing system
JP2004348708A (en) Polygon creation method for geographical information system, and its device
JPH0830666A (en) Method and device for arranging character string
JPH0261774A (en) Indicating device for graphic element
JPH03209499A (en) Forming method for outline font and drawing device for the same
JPS62191978A (en) Graphic input device
JPH04364579A (en) Drawing controller
JP3060497B2 (en) Marker segment registration / redraw method
JP2676733B2 (en) Design support system
JPS61180283A (en) Word processor
JPS63271672A (en) Graphic output controller
JPS631588B2 (en)
JPH04248677A (en) Method and device for drawing wall or beam in building drawing or the like
JPH0235573A (en) Display graphic information retrieving system
JPH0245223B2 (en)
JPH0291690A (en) Enlargement/reduction display system
JPH0214373A (en) Three-dimensional point designating system
JPH06282618A (en) Graphic plotting device
JPS6128152B2 (en)
JPH028960A (en) Method for extracting and processing common part in two polygons
JPH02103672A (en) Panning system
JPH03240881A (en) Display device for surface