JPH05165926A - Method and device for processing graphic - Google Patents
Method and device for processing graphicInfo
- Publication number
- JPH05165926A JPH05165926A JP3351883A JP35188391A JPH05165926A JP H05165926 A JPH05165926 A JP H05165926A JP 3351883 A JP3351883 A JP 3351883A JP 35188391 A JP35188391 A JP 35188391A JP H05165926 A JPH05165926 A JP H05165926A
- Authority
- JP
- Japan
- Prior art keywords
- skeleton
- graphic
- processed
- core
- moving
- 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
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、CADシステム等を使
用した建築図等の作成に係わり、特に、通り芯を基準と
する躯体図形の処理方法および装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to creation of architectural drawings and the like using a CAD system and the like, and more particularly to a method and apparatus for processing a skeleton figure based on a center line.
【0002】[0002]
【従来の技術】従来のCADシステムにおいて、例えば
図11に示されているような建築図の通り芯20を、三
角印28で示された位置に移動するには、まず、図12
に示されているように、図11の建築図から躯体図形2
1、22、23、24、25、26および27を削除
し、次に、図13に示されているように、図12の建築
図から通り芯20を削除し、次に、図14に示されてい
るように、三角印28で示される位置に新たな通り芯2
0を作成し、次に、図15に示されているように、新た
な通り芯20の周りに再び躯体図形を作成していた。2. Description of the Related Art In a conventional CAD system, for example, in order to move a core 20 to a position shown by a triangle mark 28 as shown in FIG.
As shown in Fig. 11, the skeleton 2
1, 22, 23, 24, 25, 26 and 27 have been deleted, and then the runner 20 has been deleted from the architectural drawing of FIG. 12, as shown in FIG. 13, and then shown in FIG. As shown, the new core 2 is placed at the position indicated by the triangle 28.
0 was created, and then, as shown in FIG. 15, a skeleton graphic was created again around the new base core 20.
【0003】[0003]
【発明が解決しようとする課題】上述のように、従来の
CADシステムにおいては、通り芯およびそれを基準と
する躯体図形を移動させるには、多くの操作と時間を必
要としていた。As described above, in the conventional CAD system, many operations and time are required to move the center line and the skeleton figure based on it.
【0004】本発明は、従来のこのような問題点を解決
すべくなされたものであり、僅かな操作を行うだけで、
通り芯を基準に作成されている躯体図形を移動すること
ができる図形処理方法および装置を提供することを目的
とする。The present invention has been made to solve the above-mentioned conventional problems, and requires only a slight operation.
An object of the present invention is to provide a graphic processing method and device capable of moving a skeleton graphic created based on a center line.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の図形処理方法は、通り芯を基準に
作成されている躯体図形を計算機を使用して移動する図
形処理方法であって、処理すべき通り芯を基準としてい
る躯体図形を求め、求められた躯体図形を、所要位置に
移動することを特徴とする。In order to achieve the above object, the graphic processing method according to claim 1 is a graphic processing method in which a skeleton graphic created based on a line core is moved using a computer. It is characterized in that a skeleton figure based on a line core to be processed is obtained, and the obtained skeleton figure is moved to a required position.
【0006】請求項2に記載の図形処理方法は、処理す
べき通り芯を基準としている躯体図形を求めるときに、
移動候補である図形の属性情報を読み取って、この移動
候補である図形が処理すべき通り芯を基準にしているか
否かをチェックするを特徴とする。According to a second aspect of the present invention, there is provided a graphic processing method, wherein when obtaining a skeleton graphic based on a line core to be processed,
It is characterized in that the attribute information of the figure which is the movement candidate is read and whether or not the figure which is the movement candidate is based on the skeleton to be processed.
【0007】請求項3に記載の図形処理装置は、通り芯
を基準に作成されている躯体図形を移動する図形処理装
置であって、処理すべき通り芯を基準としている躯体図
形を求める躯体図形特定手段(例えば、実施例のCPU
7および図2のステップS3すなわち図3の処理に対応
するプログラムを記憶するROM8)と、この躯体図形
特定手段によって求められた躯体図形を、所要位置に移
動する躯体図形移動手段(例えば、実施例のCPU7お
よび図2のステップS4乃至S10の処理に対応するプ
ログラムを記憶するROM8)とを備えることを特徴と
する。A graphic processing apparatus according to a third aspect is a graphic processing apparatus for moving a core figure created based on a core, and a core figure for obtaining a core figure based on a core to be processed. Specific means (for example, the CPU of the embodiment)
7 and step S3 of FIG. 2, that is, the ROM 8 for storing a program corresponding to the process of FIG. 3, and a skeleton figure moving means for moving the skeleton figure obtained by this skeleton figure specifying means to a required position (for example, the embodiment CPU 7 and ROM 8) which stores a program corresponding to the processing of steps S4 to S10 of FIG.
【0008】請求項4に記載の図形処理装置は、躯体図
形が基準としている通り芯を特定する属性情報を記憶す
る属性情報記憶手段(例えば、実施例の属性情報テーブ
ル9b)をさらに備え、躯体図形特定手段が、属性情報
記憶手段の内容を参照して、処理すべき通り芯を基準と
している躯体図形を求めることを特徴とする。The graphic processing apparatus according to claim 4 further comprises attribute information storage means (for example, the attribute information table 9b of the embodiment) for storing attribute information for specifying a core line based on the frame figure. It is characterized in that the figure specifying means refers to the contents of the attribute information storage means and obtains a skeleton figure based on the line core to be processed.
【0009】請求項5に記載の図形処理装置は、通り芯
を基準に作成されている躯体図形を移動する図形処理装
置であって、処理すべき通り芯を基準としている躯体図
形を求め、求められた躯体図形を、所要位置に移動する
処理手段(例えば、実施例のCPU7および図2のステ
ップS3乃至S10の処理に対応するプログラムを記憶
するROM8)と、この処理手段によって移動された躯
体図形を含む図面を出力する出力手段(例えば、実施例
のディスプレイ5およびプロッタ6)とを備えることを
特徴とする。According to a fifth aspect of the present invention, there is provided a graphic processing apparatus for moving a core figure created on the basis of a core, wherein the core figure to be processed is found and obtained. A processing means (for example, the CPU 7 of the embodiment and the ROM 8 storing the program corresponding to the processing of steps S3 to S10 of FIG. 2) for moving the obtained frame figure to a required position, and the frame figure moved by this processing means. And an output unit (for example, the display 5 and the plotter 6 in the embodiment) for outputting a drawing including the above.
【0010】[0010]
【作用】請求項1の構成の図形処理方法においては、処
理すべき通り芯を基準としている躯体図形が求められ、
求められた躯体図形が、所要位置に移動されるので、オ
ペレータは、移動すべき通り芯および移動されるべき位
置を指示するだけでよくなる。According to the figure processing method of the first aspect of the present invention, the frame figure based on the core to be processed is obtained,
Since the obtained frame figure is moved to the required position, the operator only needs to indicate the core to be moved and the position to be moved.
【0011】請求項2の構成の図形処理方法において
は、移動候補である図形の属性情報を読み取って、この
移動候補である図形が処理すべき通り芯を基準にしてい
るか否かをチェックすることにより、処理すべき通り芯
を基準としている躯体図形を求めるので、簡単に、処理
すべき通り芯を基準としている躯体図形を求めることが
できる。In the figure processing method according to the second aspect of the present invention, the attribute information of the figure which is the movement candidate is read, and it is checked whether or not the figure which is the movement candidate is based on the center line to be processed. As a result, since the frame figure based on the core to be processed is obtained, the frame figure based on the core to be processed can be easily obtained.
【0012】請求項3の構成の図形処理装置において
は、処理すべき通り芯を基準としている躯体図形が躯体
図形特定手段によって求められ、求められた躯体図形が
所要位置に躯体図形移動手段によって移動させられるの
で、オペレータは、移動すべき通り芯および移動される
べき位置を指示するだけでよくなる。In the graphic processing apparatus having the structure of claim 3, the skeleton figure based on the core to be processed is obtained by the skeleton figure specifying means, and the obtained skeleton figure is moved to the required position by the skeleton figure moving means. As such, the operator need only indicate the core to be moved and the position to be moved.
【0013】請求項4の構成の図形処理装置において
は、躯体図形特定手段が、属性情報記憶手段の内容を参
照して、処理すべき通り芯を基準としている躯体図形を
求めるので、簡単な構成で、処理すべき通り芯を基準と
している躯体図形を求めることができる。In the graphic processing device having the structure of the fourth aspect, the skeleton graphic specifying means refers to the contents of the attribute information storage means to obtain the skeleton graphic with the line core to be processed as a reference. Then, it is possible to obtain a skeleton figure based on the line core to be processed.
【0014】請求項5の構成の図形処理装置において
は、処理手段が、処理すべき通り芯を基準としている躯
体図形を求め、求めた躯体図形を、所要位置に移動し、
出力手段が、移動された躯体図形を含む図面を出力す
る。従って、オペレータは、移動すべき通り芯および移
動されるべき位置を入力手段を介して指示するだけでよ
くなり、また、躯体図形移動後の図面出力を得ることが
できる。In the graphic processing apparatus having the structure of claim 5, the processing means obtains a frame figure based on the core to be processed, moves the obtained frame figure to a required position,
The output means outputs the drawing including the moved body figure. Therefore, the operator only needs to indicate the center line to be moved and the position to be moved through the input means, and can obtain the drawing output after moving the skeleton figure.
【0015】[0015]
【実施例】図1は、本発明の図形処理装置の一実施例の
構成を示す。この実施例は、本発明をCADシステムに
適用した例である。図1に示された実施例すなわちCA
Dシステムは、建築図等の通り芯データおよび躯体図形
データ等を予め記憶したハ−ドディスク1と、建築図作
成のための種々のコマンド例えば通り芯移動コマンド等
を入力でき、通り芯および躯体図形を指示でき、また躯
体図形のパラメータ等を入力できるキ−ボ−ド2および
マウス3と、これらのキーボード2およびマウス3から
入力されたコマンドおよびパラメータ等を取り込むとと
もにハードディスク1から通り芯データおよび躯体図形
データを取り込んで、マウス3によって指示された通り
芯を基準としている躯体図形を求め、求められた躯体図
形を、マウス3によって指示された位置に移動するCA
D本体4と、このCAD本体4で処理された図形デ−タ
を表示するディスプレイ5と、同図形デ−タを記録紙上
に建築図として出力するプロッタ6とから構成されてい
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 1 shows the configuration of an embodiment of the graphic processing apparatus of the present invention. This embodiment is an example in which the present invention is applied to a CAD system. The embodiment shown in FIG. 1, namely CA
The D system is capable of inputting the hard disk 1 in which the core data and the skeleton figure data of the architectural drawing and the like are stored in advance, and various commands for creating the architectural drawing, such as the moving axis command, and the like. A keyboard 2 and a mouse 3 capable of instructing a figure and inputting parameters of a skeleton figure, and commands and parameters etc. inputted from these keyboard 2 and mouse 3 are taken in and data of a core line from the hard disk 1 and CA that takes in the skeleton figure data, obtains the skeleton figure with the line core designated by the mouse 3 as a reference, and moves the obtained skeleton figure to the position designated by the mouse 3.
It comprises a D main body 4, a display 5 for displaying the graphic data processed by the CAD main body 4, and a plotter 6 for outputting the graphic data on the recording paper as an architectural drawing.
【0016】CAD本体4は、マウス3によって指示さ
れた通り芯を基準としている躯体図形を求め、求められ
た躯体図形を、マウス3によって指示された位置に移動
するするための演算等の処理を行うCPU7と、CPU
7がこのような処理を行うためのCADプログラムを格
納するROM8と、上記通り芯を基準とする躯体図形を
求め移動させるための処理の作業領域となるRAM9
と、CAD本体4と上記入出力装置(ハードディスク
1、キーボード2、マウス3、ディスプレイ5およびプ
ロッタ6)との間でデ−タ等を受け渡すインタフェ−ス
10からなっている。The CAD body 4 obtains a skeleton figure based on the line core designated by the mouse 3, and performs processing such as calculation for moving the obtained skeleton figure to the position designated by the mouse 3. CPU 7 and CPU
A ROM 8 stores a CAD program for performing such processing, and a RAM 9 serving as a work area for processing for obtaining and moving a skeleton figure with the above-mentioned base as a reference.
And an interface 10 for transferring data between the CAD main body 4 and the input / output device (hard disk 1, keyboard 2, mouse 3, display 5 and plotter 6).
【0017】RAM9には、後に詳細に説明する図形I
Dテーブル9a、属性情報テーブル9b、構成要素テー
ブル9c、図形情報テーブル9dおよびIDバッファ9
gの領域が設けられている。また、RAM9には、ビデ
オRAM9aの領域が設けられており、このビデオRA
M9aに図形デ−タを書き込むことによりディスプレイ
5に建築図等の図形が表示される。The RAM 9 has a graphic I which will be described in detail later.
D table 9a, attribute information table 9b, component table 9c, graphic information table 9d, and ID buffer 9
area g is provided. Further, the RAM 9 is provided with an area of a video RAM 9a.
By writing the figure data in M9a, a figure such as an architectural drawing is displayed on the display 5.
【0018】ハ−ドディスク1に記憶された建築図のフ
ァイルは、躯体図形を要素単位とする階層構造となって
おり、CADプログラム実行時に、躯体図形がRAM9
に読み出され、キーボード2またはマウス3から入力さ
れた通り芯移動コマンド等に従って、CPU7によって
処理が施される。The architectural drawing file stored in the hard disk 1 has a hierarchical structure in which the skeleton figure is an element unit, and the skeleton figure is stored in the RAM 9 when the CAD program is executed.
And is processed by the CPU 7 in accordance with the core movement command or the like input from the keyboard 2 or the mouse 3.
【0019】また、キ−ボ−ド2またはマウス3を介し
てオペレ−タから通り芯移動コマンドが入力されると、
RAM9の領域9eに通り芯移動フラグがセットされ
る。When a moving core command is input from the operator via the keyboard 2 or mouse 3,
The core movement flag is set in the area 9e of the RAM 9.
【0020】なお、マウス3には、4つのボタンが設け
られている。ボタン1は、図形の指示を行うものであ
り、ボタン2は、YES/NOのYESの命令かまたは
指示の区切りを入力するものであり、ボタン3は、キャ
ンセルを入力するものであり、ボタン4は、YES/N
OのNOの命令を入力するものである。The mouse 3 is provided with four buttons. Button 1 is for instructing a figure, button 2 is for inputting a YES / NO YES command or an instruction delimiter, button 3 is for inputting cancel, and button 4 is YES / N
The operator inputs the NO command of O.
【0021】図2は、図1の実施例の一動作例を示すフ
ロ−チャ−トである。以下、図2を参照して図1の実施
例の動作を説明する。まず、オペレータは、キーボード
2またはマウス3を操作して通り芯移動コマンドを入力
する。これにより、RAM9の記憶領域9eには、通り
芯移動フラグがセットされる。FIG. 2 is a flow chart showing an operation example of the embodiment shown in FIG. The operation of the embodiment shown in FIG. 1 will be described below with reference to FIG. First, the operator operates the keyboard 2 or the mouse 3 to input a through core movement command. As a result, the core movement flag is set in the storage area 9e of the RAM 9.
【0022】この状態において、図2のステップS1お
よびS2において、オペレ−タが、マウス3を操作し
て、移動すべき通り芯およびこの通り芯が移動されるべ
き位置を指示する。これに応じて、CPU7は、移動す
べき通り芯およびこの通り芯が移動されるべき位置をR
AM9に記憶する。In this state, in steps S1 and S2 of FIG. 2, the operator operates the mouse 3 to indicate the moving core to be moved and the position to be moved. In response to this, the CPU 7 sets the center line to be moved and the position to which the center line is moved to R.
Store in AM9.
【0023】次に、CPU7は、ステップS3におい
て、通り芯とともに移動すべき図形すなわち、指示され
た通り芯を基準としている図形を求める。図3は、図1
のステップS3の処理の具体例を示す。以下、図3を参
照して、通り芯を基準としている図形を求める処理を説
明する。Next, in step S3, the CPU 7 obtains a graphic to be moved together with the grid, that is, a graphic with the designated grid as a reference. FIG. 3 shows FIG.
A specific example of the process of step S3 of is shown. Hereinafter, a process of obtaining a graphic with the grid line as a reference will be described with reference to FIG.
【0024】まず、ステップS31において、CPU7
は、図形IDが有効か判断する。ハードディスク1に記
憶されている図形には、それぞれ個別に図形ID番号が
割当られており、図形IDテーブル9aには、図4に示
されているように、各図形ID番号毎に、属性情報テー
ブル9bへのポインタ、構成要素テーブル9cへのポイ
ンタ、図形種類(例えば、点、線分、グループの別)、
図形情報テーブル9dへのポインタ等が記憶されてい
る。図形ID番号がいくつまであるかは、RAM9に記
憶されており、CPU7は、図形ID番号の小さい図形
から、すなわち図形ID番号「1」から処理する。従っ
て、ステップS31の判断ブロックでは、RAM9に記
憶されている図形ID番号まで、有効の判断(YES)
がなされる。First, in step S31, the CPU 7
Determines whether the figure ID is valid. Graphic ID numbers are individually assigned to the graphics stored in the hard disk 1, and the graphic ID table 9a includes an attribute information table for each graphic ID number, as shown in FIG. 9b, pointer to component table 9c, graphic type (for example, dot, line segment, or group),
A pointer and the like to the graphic information table 9d are stored. The number of graphic ID numbers is stored in the RAM 9, and the CPU 7 processes the graphic with the smallest graphic ID number, that is, the graphic ID number "1". Therefore, in the determination block of step S31, it is determined that the graphic ID numbers stored in the RAM 9 are valid (YES).
Is done.
【0025】次に、ステップS32において、CPU7
は、処理中の図形ID番号に対応する図形IDテーブル
9aの内容すなわち属性情報テーブル9bへのポインタ
を読み出し、このポインタをアドレスとして属性情報テ
ーブル9bから属性情報を読み出す。属性情報テーブル
9bには、属性情報として、属性種類(例えば、柱、壁
等の区別)、基準とする通り芯ID等が記憶されてい
る。Next, in step S32, the CPU 7
Reads the content of the graphic ID table 9a corresponding to the graphic ID number being processed, that is, a pointer to the attribute information table 9b, and reads the attribute information from the attribute information table 9b using this pointer as an address. The attribute information table 9b stores, as the attribute information, the attribute type (for example, distinction between a pillar and a wall), a reference line ID, and the like.
【0026】CPU7は、読み出した属性情報の中か
ら、まず、属性種類を分析して、躯体図形か否かを判断
する(ステップS33)。躯体図形であったとすると、
次に、CPU7は、属性情報の中から、基準とする通り
芯IDを分析して、移動すべきと指示された通り芯を基
準としているかを判断する(ステップS34)。指示さ
れた通り芯を基準としていれば、CPU7は、処理中の
図形ID番号をIDバッファ9gに記憶し(ステップS
35)、図形ID番号を1つインクリメントする(ステ
ップS36)。そして、ステップS31に戻って、CP
U7は、次のID番号について、ステップS31乃至S
36の処理を繰り返す。割当られているすべての図形I
D番号についての処理が完了し、次の図形ID番号にイ
ンクリネントされると、ステップS31において無効の
判断がなされ、図形IDについての処理が終了する(ス
テップS37のYES)。図3の処理の結果、IDバッ
ファ9gに記憶された図形ID番号に相当する図形が通
り芯とともに移動すべき図形である。The CPU 7 first analyzes the attribute type from the read attribute information and determines whether or not it is a skeleton figure (step S33). If it is a skeleton figure,
Next, the CPU 7 analyzes the reference line ID from the attribute information, and determines whether or not the reference line ID designated to be moved is set as the reference (step S34). If the designated line center is used as a reference, the CPU 7 stores the figure ID number being processed in the ID buffer 9g (step S
35), the figure ID number is incremented by 1 (step S36). Then, returning to step S31, the CP
U7 performs steps S31 to S31 for the next ID number.
The process of 36 is repeated. All assigned graphics I
When the process for the D number is completed and is incremented to the next figure ID number, it is determined to be invalid in step S31, and the process for the figure ID ends (YES in step S37). As a result of the processing of FIG. 3, the graphic corresponding to the graphic ID number stored in the ID buffer 9g is the graphic to be moved together with the center line.
【0027】図2に戻って、CPU7は、ステップS3
において求めた図形に移動制限があるかチェックする
(ステップS4)。求めた図形の移動範囲に制限があれ
ば、CPU7は、その範囲を示す座標をRAM9に記憶
する。また、求めた図形の移動が禁止されていれば、C
PU7は、エラーとして扱い、図2の通り芯移動ルーチ
ンから抜け出る。Returning to FIG. 2, the CPU 7 causes the step S3.
It is checked whether or not there is a movement restriction on the figure obtained in (step S4). If the calculated movement range of the figure is limited, the CPU 7 stores the coordinates indicating the range in the RAM 9. If movement of the figure obtained is prohibited, C
The PU 7 treats it as an error and exits the core movement routine as shown in FIG.
【0028】次に、CPU7は、ステップS5におい
て、柱の移動を行う。図5は、ステップS5の具体的処
理例を示す。以下、図5を参照して、柱の移動処理につ
いて説明する。Next, the CPU 7 moves the column in step S5. FIG. 5 shows a specific processing example of step S5. Hereinafter, the pillar moving process will be described with reference to FIG.
【0029】CPU7は、まず、ステップS51におい
て、最初の構成要素のポインタを得る。この処理は、具
体例で説明した方が理解しやすいので、角柱を例にあげ
て説明する。角柱は、図7に示されているように、図面
上、2つの点、すなわち点1および点2と、4つの線、
すなわち線1、線2、線3および線4とからなってい
る。これらの点および線、ならびにこれらを構成要素と
する角柱(すなわち、グループ)には、図8に示されて
いるように、それぞれ、図形ID番号が割当られ、図形
IDテーブル9aには、図6および図8に示されている
ように、各図形ID番号毎に、すなわち各構成要素毎
に、属性情報テーブル9bへのポインタ、構成要素テー
ブル9cへのポインタ、図形種類(例えば、点、線分、
グループの別)、図形情報テーブル9dへのポインタ等
が記憶されている。また、図形IDテーブル9aの角柱
すなわちグループ1に対応する領域には、図形情報テー
ブル9dに記憶されている最初の構成要素へのポインタ
の記憶領域を示すポインタが記憶されている。First, the CPU 7 obtains the pointer of the first component in step S51. It is easier to understand this process by explaining it with a concrete example, and therefore a prism will be described as an example. The prism is, as shown in FIG. 7, two points in the drawing, namely, point 1 and point 2, and four lines,
That is, it is composed of line 1, line 2, line 3 and line 4. As shown in FIG. 8, a graphic ID number is assigned to each of these points and lines and prisms (that is, groups) having these as constituent elements, and the graphic ID table 9a includes the graphic ID numbers shown in FIG. As shown in FIG. 8 and FIG. 8, for each figure ID number, that is, for each component, a pointer to the attribute information table 9b, a pointer to the component table 9c, a figure type (for example, dot, line segment) ,
A group and a pointer to the graphic information table 9d are stored. Further, a pointer indicating the storage area of the pointer to the first component stored in the graphic information table 9d is stored in the rectangular column of the graphic ID table 9a, that is, the area corresponding to the group 1.
【0030】図形情報テーブル9dは、前述の最初の構
成要素のポインタのほか、図8に示されているように、
点1および点2については、これらに対応する領域に、
これらの点の座標を記憶し、線分1乃至線分2について
は、これらに対応する領域に、これらの線分の2つの端
点の座標を記憶する。構成要素テーブル9cは、図8に
示されているように、グループの構成要素間の関係(図
7の例では、角柱の構成要素すなわち2つの点および4
つの線分の関係)を記憶しており、各構成要素毎に、そ
の構成要素の図形ID、前の構成要素へのポインタ、後
の構成要素へのポインタおよび親図形IDを記憶してい
る。The graphic information table 9d includes, as shown in FIG. 8, in addition to the pointer of the above-mentioned first component.
For points 1 and 2, in the areas corresponding to these,
The coordinates of these points are stored, and for line segment 1 and line segment 2, the coordinates of the two end points of these line segments are stored in the corresponding regions. As shown in FIG. 8, the constituent element table 9c stores a relationship between constituent elements of a group (in the example of FIG. 7, a prismatic constituent element, that is, two points and four points).
(Relationship between two line segments) is stored, and for each component, the graphic ID of the component, the pointer to the previous component, the pointer to the subsequent component, and the parent graphic ID are stored.
【0031】図5に戻って、CPU7は、ステップS5
1において、図形IDテーブル9aのグループ1の領域
の読み出しを行い、読み出された情報を使用して図形情
報テーブル9dから「最初の構成要素のポインタ」を読
み出す。次に、CPU7は、「最初の構成要素のポイン
タ」によって示される構成要素テーブル9c中の領域を
読み出す。これにより、図7および図8の例では、点1
の図形IDが読み出され、構成要素が有ったことになる
(ステップS52のYES)。次に、CPU7は、読み
出した図形IDを使用して、図形IDテーブル9aの対
応領域(図7および図8の例では、点1の領域)の記憶
情報を読み出し、その中から図形情報テーブル9dへの
ポインタを使用して、図形種類に応じた処理を行う(ス
テップS53乃至ステップS57)。図7および図8の
例では、CPU7は、点1の座標を図形情報テーブル9
dから読み出し、RAM9に記憶された通り芯が移動さ
れるべき位置(および移動制限範囲があればその範囲)
に対応した位置に移動する(ステップS55)。Returning to FIG. 5, the CPU 7 executes step S5.
1, the area of the group 1 of the graphic ID table 9a is read out, and the "first component pointer" is read out from the graphic information table 9d using the read information. Next, the CPU 7 reads the area in the constituent element table 9c indicated by the "pointer of the first constituent element". As a result, in the example of FIGS. 7 and 8, point 1
The graphic ID of is read out, and it means that there is a component (YES in step S52). Next, the CPU 7 uses the read graphic ID to read the storage information of the corresponding area (area of point 1 in the examples of FIGS. 7 and 8) of the graphic ID table 9a, and from this, the graphic information table 9d. Using the pointer to, the processing corresponding to the type of figure is performed (steps S53 to S57). In the examples of FIGS. 7 and 8, the CPU 7 sets the coordinates of the point 1 to the graphic information table 9
The position (and the movement limit range, if any) in which the core is to be moved, which is read from d and stored in the RAM 9
To the position corresponding to (step S55).
【0032】次に、CPU7は、先ほど読み出した図形
IDテーブル9aの記憶情報の中の構成要素テーブル9
cへのポインタを使用して、構成要素テーブル9cから
次の構成要素のポインタを得る(ステップS58)。図
7および図8の例では、構成要素テーブル9cから、点
2の図形IDが読み出される。そして、次の構成要素に
ついて、前述したステップS51乃至S58の処理が行
われる。すべての構成要素、すなわち、図7の例では、
点1、点2、線1、線2、線3および線4について、ス
テップS52乃至S58の処理が完了すると、ステップ
S52において、CPU7は、構成要素無しと判断し、
処理を終了する。Next, the CPU 7 causes the constituent element table 9 in the storage information of the graphic ID table 9a read out earlier.
The pointer to c is used to obtain the pointer of the next component from the component table 9c (step S58). In the example of FIGS. 7 and 8, the figure ID of the point 2 is read from the constituent element table 9c. Then, the processes of steps S51 to S58 described above are performed on the following components. All the components, that is, in the example of FIG.
When the processing of steps S52 to S58 is completed for point 1, point 2, line 1, line 2, line 3 and line 4, the CPU 7 determines in step S52 that there is no component,
The process ends.
【0033】図2に戻って、CPU7は、次に、ステッ
プS6において、柱に隣接する壁および梁の移動のため
の処理を行う。図10の例の場合、柱21に隣接するの
は、壁24および25であり、これら壁24および25
が処理の対象となる。柱に隣接する壁および梁の移動の
ための処理の具体例が、図9に示されているので、以
下、図9を参照して説明する。Returning to FIG. 2, the CPU 7 then performs a process for moving the walls and beams adjacent to the columns in step S6. In the case of the example in FIG. 10, it is the walls 24 and 25 that are adjacent to the column 21, and these walls 24 and 25 are adjacent to each other.
Is the target of processing. A specific example of the process for moving the wall and the beam adjacent to the pillar is shown in FIG. 9, and will be described below with reference to FIG. 9.
【0034】まず、CPU7は、柱に隣接する壁および
梁のIDを得(ステップS91)、得られた壁および梁
(以下、「隣接図形」と称す)のIDが有効か否かを判
断し(ステップS92)、有効ならば、隣接図形の線分
情報をを得(ステップS93)、これらの線分と柱との
交点を求め(ステップS94)、隣接図形の線分情報を
変更する(ステップS95)。CPU7は、すべての隣
接図形についてステップS91乃至S96の処理を行
い、処理すべき隣接図形がなくなったら、処理を終了す
る(ステップS96のYES)。図10(b)は、図1
0(a)に示された移動すべき通り芯20を基準とする
柱21に隣接した壁24および25の移動が完了したと
ころを示す。First, the CPU 7 obtains the IDs of the walls and beams adjacent to the pillar (step S91), and judges whether the obtained IDs of the walls and beams (hereinafter referred to as "adjacent figures") are valid. (Step S92) If valid, line segment information of adjacent figures is obtained (step S93), intersections of these line segments and pillars are obtained (step S94), and line segment information of adjacent figures is changed (step S94). S95). The CPU 7 performs the processing of steps S91 to S96 for all the adjacent figures, and when there are no adjacent figures to be processed, ends the processing (YES in step S96). FIG. 10 (b) is shown in FIG.
It shows that the movement of the walls 24 and 25 adjacent to the column 21 based on the core 20 to be moved shown in 0 (a) is completed.
【0035】再び、図2に戻って、CPU7は、次に、
ステップS7において、梁の移動のための処理を行う。
この処理は、図5に示され且つ前述した、柱の移動のた
めの処理と同様なので、ここでは説明しない。次に、C
PU7は、ステップS8において、梁に付属する開口部
の移動のための処理を行う。この処理は、図9に示され
且つ前述した、柱に隣接する壁および梁の移動のための
処理と同様なので、ここでは説明しない。次に、CPU
7は、ステップS9において、壁の移動のための処理を
行う。この処理は、図5に示され且つ前述した、柱の移
動のための処理と同様なので、ここでは説明しない。次
に、CPU7は、ステップS10において、壁に付属す
る開口部の移動のための処理を行う。この処理は、図9
に示され且つ前述した、柱に隣接する壁および梁の移動
のための処理と同様なので、ここでは説明しない。Returning to FIG. 2 again, the CPU 7
In step S7, a process for moving the beam is performed.
This process is similar to the process for moving the pillars shown in FIG. 5 and described above, and will not be described here. Then C
PU7 performs the process for the movement of the opening part attached to a beam in step S8. This process is similar to the process for moving the walls and beams adjacent to the columns, as shown in FIG. 9 and described above, and will not be described here. Next, CPU
In step S9, the process 7 performs a process for moving the wall. This process is similar to the process for moving the pillars shown in FIG. 5 and described above, and will not be described here. Next, in step S10, the CPU 7 performs a process for moving the opening attached to the wall. This process is shown in FIG.
Since it is similar to the process for moving the walls and beams adjacent to the columns shown in and described above, it will not be described here.
【0036】CPU7は、図2の処理後の図形データを
ビデオRAM9fに記憶させる。これにより、ディスプ
レイ5に通り芯移動後の図形が表示される。また、オペ
レータからキーボード2を介してプリントコマンドが入
力されると、ビデオRAM9fに記憶された図形が、プ
ロッタ6からハードコピーとして出力される。The CPU 7 stores the processed graphic data of FIG. 2 in the video RAM 9f. As a result, the graphic after the center line movement is displayed on the display 5. When the operator inputs a print command via the keyboard 2, the graphic stored in the video RAM 9f is output from the plotter 6 as a hard copy.
【0037】なお、上記実施例においては、CPU7お
よびROM8が、入力手段によって指示された通り芯を
基準としている躯体図形を求め、求められた躯体図形
を、入力手段によって指示された位置に移動させている
が、CPUおよびROMの代わりに、専用のハードウェ
アを設けても良い。また、入力手段によって指示された
通り芯を基準としている躯体図形を求める躯体図形特定
手段と、この躯体図形特定手段によって求められた躯体
図形を、入力手段によって指示された位置に移動する躯
体図形移動手段とを別個に設けるようにしてもよい。In the above embodiment, the CPU 7 and the ROM 8 obtain a skeleton figure based on the line core designated by the input means and move the obtained skeleton figure to the position designated by the input means. However, dedicated hardware may be provided instead of the CPU and the ROM. Further, a skeleton figure specifying means for obtaining a skeleton figure based on the skeleton designated by the input means, and a skeleton figure movement for moving the skeleton figure obtained by the skeleton figure specifying means to the position designated by the input means The means may be provided separately.
【0038】また、本発明は、建築図のほか機械設計図
等各種の図面に適用することができる。The present invention can be applied to various drawings such as mechanical design drawings in addition to architectural drawings.
【0039】さらに、上記実施例では、入力手段として
マウスを使用したが、これに代えてタブレット等を使用
してもよい。Further, although the mouse is used as the input means in the above embodiment, a tablet or the like may be used instead.
【0040】[0040]
【発明の効果】以上の説明から明かなように、請求項1
の図形処理方法によれば、処理すべき通り芯を基準とし
ている躯体図形を求め、求めた躯体図形を、所要位置に
移動するようにしたので、オペレータは、移動すべき通
り芯および移動されるべき位置を指示するだけでよくな
る。従って、必要な操作を僅かなものにすることができ
る。As is apparent from the above description, claim 1
According to the figure processing method of (1), since the frame figure based on the core to be processed is obtained and the obtained frame figure is moved to the required position, the operator is to move and the core is moved. All you have to do is specify the right position. Therefore, the required operation can be made small.
【0041】請求項2の図形処理方法によれば、移動候
補である図形の属性情報を読み取って、この図形が処理
すべき通り芯を基準にしているか否かをチェックするこ
とにより、処理すべき通り芯を基準としている躯体図形
を求めるようにしたので、簡単に、処理すべき通り芯を
基準としている躯体図形を求めることができる。According to the figure processing method of the second aspect, the attribute information of the figure which is the movement candidate is read, and it is checked whether or not this figure is based on the line core to be processed, so that the figure should be processed. Since the frame figure based on the line core is obtained, the frame figure based on the line core to be processed can be easily obtained.
【0042】請求項3の図形処理装置によれば、躯体図
形特定手段が、処理すべき通り芯を基準としている躯体
図形を求め、躯体図形移動手段が、求められた躯体図形
を、所要位置に移動するようにしたので、オペレータ
は、移動すべき通り芯および移動されるべき位置を指示
するだけでよくなる。According to the figure processing device of the third aspect, the skeleton figure specifying means obtains the skeleton figure with the line core to be processed as a reference, and the skeleton figure moving means places the obtained skeleton figure at a required position. Since it is moved, the operator need only indicate the core to be moved and the position to be moved.
【0043】請求項4の図形処理装置によれば、躯体図
形特定手段が、属性情報記憶手段の内容を参照して、処
理すべき通り芯を基準としている躯体図形を求めるよう
にしたので、簡単な構成で、処理すべき通り芯を基準と
している躯体図形を求めることができる。According to the figure processing device of the fourth aspect, the skeleton figure specifying means refers to the contents of the attribute information storage means to obtain the skeleton figure with the skeleton to be processed as a reference. With this configuration, it is possible to obtain a skeleton figure based on the line core to be processed.
【0044】請求項5の図形処理装置によれば、処理手
段が、処理すべき通り芯を基準としている躯体図形を求
め、求めた躯体図形を、所要位置に移動し、出力手段
が、移動された躯体図形を含む図面を出力するようにし
たので、オペレータは、移動すべき通り芯および移動さ
れるべき位置を指示するだけでよくなり、また、躯体図
形移動後の図面出力を得ることができる。According to the graphic processing apparatus of the fifth aspect, the processing means obtains the frame figure based on the core to be processed, moves the obtained frame figure to the required position, and the output means is moved. Since the drawing including the skeleton figure is output, the operator need only specify the center line to be moved and the position to be moved, and the drawing output after moving the skeleton figure can be obtained. ..
【図1】本発明の図形処理装置の一実施例の構成を示す
ブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of a graphic processing device of the present invention.
【図2】図1の実施例の動作例を示すフローチャートで
ある。FIG. 2 is a flowchart showing an operation example of the embodiment of FIG.
【図3】図2のステップS3における移動対象図形を求
める動作の一例を示すフローチャートである。FIG. 3 is a flowchart showing an example of an operation of obtaining a movement target graphic in step S3 of FIG.
【図4】図形IDテーブル9aと属性情報テーブル9b
との関係を示す説明図である。FIG. 4 is a figure ID table 9a and an attribute information table 9b.
It is explanatory drawing which shows the relationship with.
【図5】図2のステップS5における柱の移動動作の一
例を示すフローチャートである。5 is a flowchart showing an example of a pillar moving operation in step S5 of FIG.
【図6】図形IDテーブル9aと、構成要素テーブル9
cと、図形情報テーブル9dとの関係を示す説明図であ
る。FIG. 6 is a figure ID table 9a and a constituent element table 9;
It is explanatory drawing which shows the relationship between c and the figure information table 9d.
【図7】グループ(図形種類)の一つである角柱が2つ
の点と、4つの線とからなることを示す概念図である。FIG. 7 is a conceptual diagram showing that a prism, which is one of groups (graphic types), is composed of two points and four lines.
【図8】グループが図7の角柱である場合における図形
IDテーブル9a、構成要素テーブル9c、および図形
情報テーブル9dの記憶内容および相互関係を示す説明
図である。8 is an explanatory diagram showing stored contents and mutual relationships of a graphic ID table 9a, a component element table 9c, and a graphic information table 9d when the group is the prism of FIG. 7. FIG.
【図9】図2のステップS6における柱に隣接する壁、
梁の移動動作の一例を示すフローチャートである。9 is a wall adjacent to the pillar in step S6 of FIG. 2,
It is a flow chart which shows an example of movement operation of a beam.
【図10】図9の移動動作前後の柱21ならびに壁24
および25を示す図である。FIG. 10 is a column 21 and a wall 24 before and after the moving operation of FIG.
It is a figure which shows 25 and.
【図11】従来のCADシステムにおける処理対象建築
図の一例を示す図である。FIG. 11 is a diagram showing an example of a processing target architectural drawing in a conventional CAD system.
【図12】従来のCADシステムにおいて図11の建築
図から躯体図形を削除したところを示す図である。FIG. 12 is a view showing a state in which a skeleton figure is deleted from the architectural drawing of FIG. 11 in a conventional CAD system.
【図13】従来のCADシステムにおいて図12の建築
図から通り芯を削除したところを示す図である。13 is a diagram showing a conventional CAD system in which a through core is deleted from the architectural drawing of FIG.
【図14】従来のCADシステムにおいて図13の建築
図の三角印28で示される位置に新たな通り芯を作成し
たところを示す図である。FIG. 14 is a diagram showing a new CAD core created at a position indicated by a triangle mark 28 in the architectural drawing of FIG. 13 in the conventional CAD system.
【図15】従来のCADシステムにおいて図14の建築
図の周りに躯体図形を再び作成したところを示す図であ
る。FIG. 15 is a diagram showing a skeleton figure recreated around the architectural drawing of FIG. 14 in the conventional CAD system.
3 マウス 5 ディスプレイ 6 プロッタ 7 CPU 8 ROM 9 RAM 9a 図形IDテーブル 9b 属性情報テーブル 9c 構成要素テーブル 9d 図形情報テーブル 9e 通り芯移動フラグ 9f ビデオRAM 9g IDバッファ 3 Mouse 5 Display 6 Plotter 7 CPU 8 ROM 9 RAM 9a Graphic ID Table 9b Attribute Information Table 9c Component Table 9d Graphic Information Table 9e Center Line Movement Flag 9f Video RAM 9g ID Buffer
Claims (5)
を計算機を使用して移動する図形処理方法であって、 処理すべき通り芯を基準としている躯体図形を求め、 前記求められた躯体図形を、所要位置に移動することを
特徴とする図形処理方法。1. A graphic processing method for moving a skeleton figure created on the basis of a skeleton using a computer, wherein a skeleton figure based on a skeleton to be processed is obtained, and the obtained skeleton is obtained. A graphic processing method characterized by moving a graphic to a required position.
躯体図形を求めるときに、移動候補である図形の属性情
報を読み取って、この移動候補である図形が前記処理す
べき通り芯を基準にしているか否かをチェックするを特
徴とする請求項1記載の図形処理方法。2. When obtaining a skeleton figure whose reference is the skeleton to be processed, the attribute information of the figure which is a movement candidate is read, and the figure which is this movement candidate uses the skeleton to be processed as a reference. The graphic processing method according to claim 1, wherein it is checked whether or not it is present.
を移動する図形処理装置であって、 処理すべき通り芯を基準としている躯体図形を求める躯
体図形特定手段と、 前記躯体図形特定手段によって求められた躯体図形を、
所要位置に移動する躯体図形移動手段とを備えることを
特徴とする図形処理装置。3. A figure processing device for moving a skeleton figure created on the basis of a skeleton, wherein a skeleton figure specifying means for obtaining a skeleton figure based on a skeleton to be processed, and the skeleton figure specifying means The skeleton figure found by
A figure processing device comprising: a body figure moving means that moves to a required position.
する属性情報を記憶する属性情報記憶手段をさらに備
え、前記躯体図形特定手段が、前記属性情報記憶手段の
内容を参照して、前記処理すべき通り芯を基準としてい
る躯体図形を求めることを特徴とする請求項3記載の図
形処理装置。4. The apparatus further comprises attribute information storage means for storing attribute information for identifying a core line based on the body figure, wherein the body figure identifying means refers to the contents of the attribute information storage means to perform the processing. 4. The graphic processing apparatus according to claim 3, wherein a skeleton graphic based on a line core to be obtained is obtained.
を移動する図形処理装置であって、 処理すべき通り芯を基準としている躯体図形を求め、求
められた躯体図形を、所要位置に移動する処理手段と、 前記処理手段によって移動された躯体図形を含む図面を
出力する出力手段とを備えることを特徴とする図形処理
装置。5. A figure processing device for moving a skeleton figure created based on a line core, wherein a skeleton figure based on a skeleton to be processed is obtained, and the obtained skeleton figure is placed at a required position. A graphic processing apparatus comprising: a moving processing means; and an output means for outputting a drawing including a body figure moved by the processing means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3351883A JPH05165926A (en) | 1991-12-13 | 1991-12-13 | Method and device for processing graphic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3351883A JPH05165926A (en) | 1991-12-13 | 1991-12-13 | Method and device for processing graphic |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05165926A true JPH05165926A (en) | 1993-07-02 |
Family
ID=18420265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3351883A Pending JPH05165926A (en) | 1991-12-13 | 1991-12-13 | Method and device for processing graphic |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05165926A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6414776A (en) * | 1987-07-08 | 1989-01-18 | Sony Corp | Method for processing defective sector in optical data recording/reproducing device |
-
1991
- 1991-12-13 JP JP3351883A patent/JPH05165926A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6414776A (en) * | 1987-07-08 | 1989-01-18 | Sony Corp | Method for processing defective sector in optical data recording/reproducing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0589187A (en) | Graphics processing device | |
JP3599198B2 (en) | Figure editing device | |
JP3357760B2 (en) | Character / graphic input editing device | |
JPH05165926A (en) | Method and device for processing graphic | |
JP2616328B2 (en) | Graphic processing method and apparatus | |
JPH0580025B2 (en) | ||
JP3425771B2 (en) | Figure creation method and apparatus | |
JP2571178B2 (en) | 3D graphics processor | |
JP3470974B2 (en) | Figure creation method and apparatus | |
JPH05314232A (en) | Graphic preparing device | |
JPS6314229A (en) | Object selection system | |
JP2575658B2 (en) | String layout device | |
JP3142191B2 (en) | Graphic processing unit | |
JPH0391864A (en) | Form design system | |
JPH04248677A (en) | Method and device for drawing wall or beam in building drawing or the like | |
JPH06309341A (en) | Document design system | |
JPS6320681A (en) | Table creation processing method | |
JPH06149944A (en) | Three-dimensional cad device | |
JPH07175941A (en) | Graphicpreparation device | |
JPH05108050A (en) | Character editing device | |
JPS6057405A (en) | Block searching device using graphic screen | |
JPH0642245B2 (en) | Spreadsheet | |
JPH04326476A (en) | Graphic preparing device | |
JPH07200671A (en) | Cad and operation method therefor | |
JPH0589214A (en) | Editing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19970204 |