JPH07306957A - Shadow line processing method for two-dimensional drawing - Google Patents

Shadow line processing method for two-dimensional drawing

Info

Publication number
JPH07306957A
JPH07306957A JP6298176A JP29817694A JPH07306957A JP H07306957 A JPH07306957 A JP H07306957A JP 6298176 A JP6298176 A JP 6298176A JP 29817694 A JP29817694 A JP 29817694A JP H07306957 A JPH07306957 A JP H07306957A
Authority
JP
Japan
Prior art keywords
layer
plane
sheet
figures
displayed
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
JP6298176A
Other languages
Japanese (ja)
Inventor
Susumu Ogasa
晋 織笠
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP6298176A priority Critical patent/JPH07306957A/en
Publication of JPH07306957A publication Critical patent/JPH07306957A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To omit the labor of indication and input by simultaneously performing the shadow line processing with a sheet as the unit at the time of insertion, deletion, height change, or the like of plural graphics. CONSTITUTION:When plural graphics are displayed on a layer L to generate a two-dimensional drawing, plural sheets S1 to S3 which are spread in parallel with the layer L and have reference points at arbitrary height above the layer L are defined, and at least one graphic is plotted in an arbitrary position of each sheet, and graphics on the sheet, which has the higher reference point to the layer L, out of at least two sheets of plural sheets S1 to S3 are preferentially displayed on the layer L.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、コンピュータ支援設
計(CAD)システム等の図形処理装置で2次元図面を
作成する際に用いて好適な、2次元図面の陰線処理方法
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for processing hidden lines in a two-dimensional drawing suitable for use in creating a two-dimensional drawing by a graphic processing device such as a computer aided design (CAD) system.

【0002】[0002]

【従来の技術】従来の陰線処理方法としては、例えば特
開平 3-95691号公報に記載の方法が知られており、この
方法では、図10に示すように、1つの図形に対して実線
の図形データaとその実線の図形データaより表示優先
度を高くした同形の破線の図形データcとを発生させる
とともに、それら実線の図形データaと破線の図形デー
タcとの間の表示優先度でマスク図形データbを発生さ
せて、表示優先度により陰線処理を行っている。
2. Description of the Related Art As a conventional hidden line processing method, for example, a method described in Japanese Patent Laid-Open No. 3-95691 is known. In this method, as shown in FIG. The graphic data a and the broken-line graphic data c of the same shape having a higher display priority than that of the solid-line graphic data a are generated, and the display priority between the solid-line graphic data a and the broken-line graphic data c is set. The mask graphic data b is generated and the hidden line processing is performed according to the display priority.

【0003】従来の陰線処理方法としてはまた、例えば
特開昭64-88693号公報に記載の方法も知られており、こ
の方法では、図11に示すように、図形に重なりが発生し
た場合に、どちらが上か下かの主従関係を与えて、従図
形Sの、主図形Mの内側にある部分は陰ビットをたてて
OFF することにより陰線処理を行っており、そこでは破
線化は行っていない。
As a conventional hidden line processing method, for example, a method described in Japanese Patent Laid-Open No. 64-88693 is also known. In this method, as shown in FIG. , By giving a master-slave relationship of which is upper or lower, a part of the slave figure S inside the master figure M is set with an implicit bit.
Hidden line processing is performed by turning it OFF, and there is no dashed line processing.

【0004】従来の陰線処理方法としてはさらに、図12
に示す如き方法も知られており、この方法では、各部品
の図形毎にその高さを示す高さ情報(Z値)を与え、そ
の高さの高いものを優先して陰線処理を行っている。
Further, as a conventional hidden line processing method, FIG.
A method such as that shown in is also known. In this method, height information (Z value) indicating the height of each figure of each part is given, and the hidden line is processed by giving priority to the one having the highest height. There is.

【0005】[0005]

【発明が解決しようとする課題】しかしながら上述した
従来の方法にあっては、最初の方法では、図形が混んで
くると優先度のつけかえや管理が大変になり、また図形
を増やすたびに優先度のチェックが必要になるという問
題もあり、二番目の方法では、陰線処理を行なわせるた
びに主従関係を指示しなくてはいけないため、図形が多
いと指示の手間がかかるという問題があり、そして三番
目の方法では、部品毎に高さを入力しなければならない
ため、これも入力の手間がかかるという問題があった。
However, in the conventional method described above, in the first method, it becomes difficult to change and manage the priority when the figures are crowded, and the priority is increased each time the figure is increased. There is also a problem that it is necessary to check, and in the second method, since it is necessary to instruct the master-slave relationship every time hidden line processing is performed, there is a problem that it takes time to instruct if there are many figures, and In the third method, since the height has to be input for each part, there is a problem in that this also takes time and labor for inputting.

【0006】さらに上記三番目の方法では、各図形に一
つだけのZ値での管理なので、そのZ値が同じでも傾斜
図形の場合は陰線処理ができないという問題があった。
Further, in the third method, since each figure is managed with only one Z value, there is a problem that hidden lines cannot be processed in the case of an inclined figure even if the Z value is the same.

【0007】[0007]

【課題を解決するための手段】この発明は、上記課題を
有利に解決した陰線処理方法を提供することを目的とす
るものであり、この発明の第1の2次元図面の陰線処理
方法は、レイヤ上に複数の図形を表示して2次元図面を
作成するに際し、前記レイヤと平行に延在するとともに
そのレイヤの上方の任意の高さの位置に基準点を持つシ
ートを複数枚定義して、前記各シート上の任意の位置に
少なくとも一つの図形を描画し、前記複数枚のシートの
うちの少なくとも二枚のシート上の前記図形を、前記レ
イヤに対する前記基準点の高さが高い方の前記シート上
の図形を優先して前記レイヤ上に表示することを特徴と
するものである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a hidden line processing method that advantageously solves the above problems, and the first two-dimensional drawing hidden line processing method of the present invention is When displaying a plurality of figures on a layer to create a two-dimensional drawing, define a plurality of sheets that extend in parallel with the layer and have reference points at arbitrary height positions above the layer. , Drawing at least one figure at an arbitrary position on each of the sheets, and drawing the figure on at least two sheets of the plurality of sheets, in which the height of the reference point with respect to the layer is higher. The figure on the sheet is preferentially displayed on the layer.

【0008】またこの発明の第2の2次元図面の陰線処
理方法は、レイヤ上に複数の図形を表示して2次元図面
を作成するに際し、前記レイヤに対し任意の傾きを持つ
とともにそのレイヤの上方の任意の高さの位置に基準点
を持つシートを複数枚定義して、前記各シート上の任意
の位置に少なくとも一つの図形を描画し、前記複数枚の
シートのうちの少なくとも二枚のシート上の前記図形
を、前記レイヤに対する前記シートの基準点の高さとそ
のシートの傾きとそのシート上での前記図形の位置とに
基づき求めた前記レイヤに対する高さが高い方の図形を
優先して前記レイヤ上に表示することを特徴とするもの
である。
A second method for processing hidden lines in a two-dimensional drawing according to the present invention, in which a plurality of figures are displayed on a layer to create a two-dimensional drawing, has an arbitrary inclination with respect to the layer, and Define a plurality of sheets having a reference point at a position at an arbitrary height above, draw at least one figure at an arbitrary position on each of the sheets, and draw at least two of the plurality of sheets. As for the figure on the sheet, the figure having a higher height for the layer obtained based on the height of the reference point of the sheet with respect to the layer, the inclination of the sheet, and the position of the figure on the sheet is prioritized. And is displayed on the layer.

【0009】なお、前記第1,第2の方法では、前記シ
ート上に描画した前記各図形の形状データを、その図形
の名称のデータを属性として付加して保存することとし
ても良い。
In the first and second methods, the shape data of each figure drawn on the sheet may be saved by adding the data of the figure name as an attribute.

【0010】また、前記第1,第2の方法では、同一の
前記シート上に複数の図形を描画した場合に、前記各図
形に付加した前記名称のデータを用いて図形同士を区別
することにより、それら複数の図形間に一または複数種
類の主従関係を与えて、その主従関係を登録しておき、
前記複数の図形を、前記登録した主従関係に基づいて前
記レイヤ上に表示することとしても良い。
Further, in the first and second methods, when a plurality of figures are drawn on the same sheet, the figures are distinguished by using the data of the name added to each figure. , Give one or more kinds of master-slave relations among these plural figures, and register the master-slave relation,
The plurality of graphics may be displayed on the layer based on the registered master-slave relationship.

【0011】この一方、この発明の第3の2次元図面の
陰線処理方法は、レイヤ上に複数の図形を表示して2次
元図面を作成するに際し、前記レイヤと平行に延在する
とともにそのレイヤの上方の任意の高さの位置に基準点
を持つ平面を領域を限らずに複数定義して、前記各平面
に平面毎に異なる色彩を対応させるとともに前記各平面
上の任意の位置にその平面に対応した色彩で少なくとも
一つの図形を描画し、前記複数の平面のうちの、前記色
彩によって指定した少なくとも二つの平面上の前記図形
を、前記レイヤに対する前記基準点の高さが高い方の前
記平面上の図形を優先して前記レイヤ上に表示すること
を特徴とするものである。
On the other hand, according to a third method for processing hidden lines in a two-dimensional drawing of the present invention, when a plurality of figures are displayed on a layer to create a two-dimensional drawing, the two-dimensional drawing extends in parallel with the layer and the layer. A plurality of planes having a reference point at a position of arbitrary height above is defined without limiting the area, and different colors are associated with the planes, and the planes are arranged at arbitrary positions on the planes. Draw at least one figure in a color corresponding to, among the plurality of planes, the figure on at least two planes designated by the color, the height of the reference point to the layer is higher It is characterized in that a graphic on a plane is preferentially displayed on the layer.

【0012】またこの発明の第4の2次元図面の陰線処
理方法は、レイヤ上に複数の図形を表示して2次元図面
を作成するに際し、前記レイヤに対し任意の傾きを持つ
とともにそのレイヤの上方の任意の高さの位置に基準点
を持つ平面を領域を限らずに複数定義して、前記各平面
に平面毎に異なる色彩を対応させるとともに前記各平面
上の任意の位置にその平面に対応した色彩で少なくとも
一つの図形を描画し、前記複数の平面のうちの、前記色
彩によって指定した少なくとも二つの平面上の前記図形
を、前記レイヤに対する前記平面の基準点の高さとその
平面の傾きとその平面上での前記図形の位置とに基づき
求めた前記レイヤに対する高さが高い方の図形を優先し
て前記レイヤ上に表示することを特徴とするものであ
る。
Further, according to a fourth method of hidden line processing of a two-dimensional drawing of the present invention, when a plurality of figures are displayed on a layer to create a two-dimensional drawing, the layer has an arbitrary inclination with respect to the layer and Define a plurality of planes having a reference point at a position at an arbitrary height above without limiting the area, and associate different colors for each plane with each plane and at the same time at any position on each plane. At least one figure is drawn in a corresponding color, and the figure on at least two planes specified by the color among the plurality of planes is set to the height of the reference point of the plane with respect to the layer and the inclination of the plane. And a figure having a higher height with respect to the layer, which is obtained based on the position of the figure on the plane, is preferentially displayed on the layer.

【0013】そして、前記第3,第4の方法では、前記
平面上に描画した前記各図形の形状データを、その図形
の名称のデータを属性として付加して保存することとし
ても良い。
In the third and fourth methods, the shape data of each figure drawn on the plane may be stored with the data of the figure name added as an attribute.

【0014】また、前記第3,第4の方法では、同一の
前記平面上に複数の図形を描画した場合には、前記各図
形に付加した前記名称のデータを用いて図形同士を区別
することにより、それら複数の図形間に一または複数種
類の主従関係を与えて、その主従関係を登録しておき、
前記複数の図形を、前記登録した主従関係に基づいて前
記レイヤ上に表示することとしても良い。
In the third and fourth methods, when a plurality of figures are drawn on the same plane, the figures are distinguished from each other by using the data of the name added to each figure. By giving one or more types of master-slave relationship between these multiple figures, and registering the master-slave relationship,
The plurality of graphics may be displayed on the layer based on the registered master-slave relationship.

【0015】なお、この明細書中、「レイヤの上方」と
は、レイヤに対しその面直方向に離間した位置を、便宜
的にレイヤを水平に置いた状態で表しており、また「レ
イヤに対する高さ」とは、レイヤに対するその面直方向
の距離を、便宜的にレイヤを水平に置いた状態で表して
いる。
In this specification, "above the layer" refers to a position separated from the layer in the direction perpendicular to the layer, with the layer horizontally placed for the sake of convenience, and "to the layer". The “height” represents the distance in the direction perpendicular to the layer with respect to the layer in a state where the layer is placed horizontally for convenience.

【0016】[0016]

【作用】上記第1の方法によれば、各シートがレイヤと
平行に延在するゆえ各シート上の図形(部品)はそのシ
ートと同じ高さにあるので、シートを定義する際に基本
的にそのシートの基準点の高さを定義するのみで、複数
の図形の挿入や削除や高さの入れ換え等を行う場合の陰
線処理をシート単位で同時に行い得て、指示や入力の手
間を大幅に省くことができ、しかもその陰線処理を簡単
な処理手順で行うことができる。
According to the first method described above, since each sheet extends in parallel with the layer, the figure (part) on each sheet is at the same height as that sheet. By only defining the height of the reference point on the sheet, hidden line processing can be performed simultaneously for each sheet when inserting or deleting multiple figures or replacing heights, greatly reducing the time required for instructions and input. In addition, the hidden line processing can be performed by a simple processing procedure.

【0017】また上記第2の方法によれば、レイヤに対
するシートの基準点の高さとそのシートの傾きとそのシ
ート上での図形の位置とに基づきレイヤに対する図形の
高さを求め、その高さが高い方の図形を優先して各シー
ト上の図形をレイヤ上に表示するので、上記第1の方法
と同様に指示や入力の手間を大幅に省くことができ、し
かもレイヤに対し傾斜した図形についても陰線処理を行
うことができる。
According to the second method, the height of the figure with respect to the layer is obtained based on the height of the reference point of the sheet with respect to the layer, the inclination of the sheet and the position of the figure on the sheet, and the height thereof is obtained. The graphic on each sheet is displayed on the layer by giving priority to the graphic with the higher value, so that it is possible to greatly save the trouble of instructing and inputting similarly to the first method, and the graphic inclined to the layer. Also, hidden line processing can be performed on the.

【0018】さらに、上記第3および第4の方法のよう
に、先の第1および第2の方法における複数枚のシート
に代えて、領域を特には限定しない複数の平面を設定
し、それらの平面に平面毎に異なる色彩を対応させて、
それらの平面を前記シートと同様に図形の描画に使用す
るとともにそこに描画する図形にその平面に対応する色
彩を与え、前記複数の平面のうちの、前記色彩によって
指定した少なくとも二つの平面上の前記図形を前記レイ
ヤ上に表示することとすれば、複数の図形の、色彩単位
での陰線処理や移動、回転等の取扱いが可能になるの
で、平面の数が増えた場合でも図形の取扱いを容易に行
うことができる。
Further, as in the third and fourth methods, instead of the plurality of sheets in the first and second methods, a plurality of planes whose areas are not particularly limited are set, and those planes are set. Corresponding different colors to each plane,
Similar to the sheet, the planes are used to draw a figure, and the figure to be drawn on the plane is given a color corresponding to the plane, and among the plurality of planes, at least two planes designated by the color are used. If the figure is displayed on the layer, it is possible to handle hidden figures, movements, rotations, etc. of a plurality of figures in color units, so that the figure should be handled even when the number of planes increases. It can be done easily.

【0019】なお、前記シート上や前記平面上に描画し
た前記各図形の形状データを、その図形の名称のデータ
を属性として付加して保存することとすれば、その名称
で図形を特定することで、同じ図形を同一シート上や他
のシート上に容易にコピーすることができるとともに、
図形単位での回転やON, OFF も容易に行うことができ
る。
If the shape data of each figure drawn on the sheet or on the plane is stored with the data of the figure name added as an attribute, the figure can be specified by the name. With, you can easily copy the same figure on the same sheet or another sheet, and
It is possible to easily rotate, turn on, and turn off for each figure.

【0020】また、同一の前記シート上や前記平面上に
複数の図形を描画した場合に、前記各図形に付加した前
記名称のデータを用いて図形同士を区別することによ
り、それら複数の図形間に一または複数種類の主従関係
を与えて、その主従関係を登録しておき、前記複数の図
形を、前記登録した主従関係に基づいて前記レイヤ上に
表示することとすれば、同一のシート上や同一の平面上
に描画した複数の図形間でも陰線処理を行うことがで
き、その登録の際、複数種類の主従関係を登録しておけ
ば、図形表示の際にそれらの主従関係のうちから所望の
関係を選択して指定することで陰線処理の状態を変更し
て所望の種類の図面をレイヤ上に表示することができ
る。
Further, when a plurality of figures are drawn on the same sheet or on the same plane, the figures are distinguished by using the data of the name added to each figure, so that the figures are separated from each other. If one or a plurality of types of master-slave relationship is given to the, and the master-slave relationship is registered in advance, and the plurality of figures are displayed on the layer based on the registered master-slave relationship, on the same sheet, You can also perform hidden line processing between multiple figures drawn on the same plane, and if you register multiple types of master-slave relationships when registering them, the master-slave relationship will be By selecting and specifying a desired relationship, the state of hidden line processing can be changed and a desired type of drawing can be displayed on a layer.

【0021】[0021]

【実施例】以下に、この発明の実施例を図面に基づき詳
細に説明する。図1は、この発明の2次元図面の陰線処
理方法の一実施例にて定義した複数枚のシートおよびそ
の実施例の方法によってレイヤ上に図形を表示した2次
元図面を例示する説明図であり、この実施例の方法は、
図形等に関する演算処理を行う中央処理装置と、図形等
に関する情報を記録するROM,RAM等の内部記憶装
置およびハードディスクドライブ装置等の外部記録装置
と、図形等に関する情報を画面上に表示するCRT等の
画面表示装置と、ユーザーが操作して図形やコマンド等
に関する情報を入力するキーボードやマウスやデジタイ
ザー等の入力装置と、図形等に関する情報を紙面上に描
画等して出力するプロッタやプリンタ等の出力装置とを
具える通常のCADシステムにおいて実施するものとす
る。
Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is an explanatory diagram illustrating a plurality of sheets defined in an embodiment of a hidden line processing method of a two-dimensional drawing of the present invention and a two-dimensional drawing in which a graphic is displayed on a layer by the method of the embodiment. , The method of this example is
A central processing unit that performs arithmetic processing regarding figures and the like, internal storage devices such as ROM and RAM that record information regarding figures and the like, external recording devices such as hard disk drive devices, and CRTs that display information regarding figures and the like on the screen. Screen display device, an input device such as a keyboard, mouse, digitizer, etc. that the user operates to input information related to figures and commands, and a plotter or printer that outputs information related to figures such as drawing on the paper It shall be implemented in a conventional CAD system with an output device.

【0022】図2は、上記実施例の方法における処理手
順を示すフローチャートであり、ここでは先ずステップ
1で、図形を表示する仮想平面であるレイヤを、ユーザ
ーが図面番号の入力等によって定義し、次にステップ2
で、図形を描画する仮想平面であるシートのシート番号
(No.) およびシート領域Aを、ユーザーが入力によって
設定する。なお、この実施例では、ユーザーが何も入力
しない場合はCADシステムが自動的に、シート番号を
最初は1とし、以後は逐次その数字を増やして設定する
とともに、シート領域Aをレイヤ全体に渡る領域として
設定する。
FIG. 2 is a flow chart showing a processing procedure in the method of the above-mentioned embodiment. Here, in step 1, a user defines a layer which is a virtual plane for displaying a figure by inputting a drawing number, Next step 2
And the sheet number of the sheet that is the virtual plane for drawing the figure
The user sets the (No.) and the sheet area A by inputting. In this embodiment, when the user does not input anything, the CAD system automatically sets the sheet number to 1 first, and thereafter sequentially increases the number and sets the sheet area A over the entire layer. Set as an area.

【0023】次のステップ3では、ユーザーが、上記の
如くして番号と領域を設定したシート上に描画する図形
の名称、例えば部品名称や部品番号を入力した後、上記
マウス等を用いてそのシート上にその部品の形状を表す
図形を描画して、その部品の形状を定義する。これによ
りここでは、CADシステムが、上記定義された形状の
図形データに、その部品の名称と、その図形が描画され
たシートのシート番号と、シート上でのその図形の位置
とのデータを属性として付加して、それらのデータをメ
モリ内に登録しておく。なお、電子カタログ等の既に存
在する外部図形データを利用する場合には、あらかじめ
それらの図形データに部品名称をつけておいて、その部
品名称を用いて図形データを呼び出しても良い。
In the next step 3, the user inputs the name of the figure to be drawn on the sheet having the number and area set as described above, for example, the part name or the part number, and then uses the mouse or the like. A shape representing the shape of the part is drawn on the sheet to define the shape of the part. Thus, in this case, the CAD system attributes the data of the name of the part, the sheet number of the sheet on which the graphic is drawn, and the position of the graphic on the sheet to the graphic data of the shape defined above. And the data is registered in the memory. When existing external graphic data such as an electronic catalog is used, the graphic data may be called by previously naming the graphic data with component names.

【0024】そして続くステップ4では、そのシート上
でさらに形状を定義するか否かをCADシステムがユー
ザーに問い合わせ、同一シート上でさらに形状を定義す
るとユーザーが入力した場合は上記ステップ3へ戻る
が、そのシート上での形状の定義を終了するとユーザー
が入力した場合は次のステップ5へ進み、このステップ
5では、ユーザーが、上記シートの例えば左下端点等所
定の位置に定めた基準点Pの、上記レイヤのX,Y座標
系上での位置(x,y)と、その基準点Pの、上記レイ
ヤに対する垂直方向(Z軸方向)の高さを示すZ値と、
その基準点Pでの上記シートの法線ベクトルV(xD,
D,D )とを入力し、CADシステムがそれらのデータ
を、上記設定されたシート番号およびシート領域のデー
タとともにメモリ内に登録しておく。なお、ユーザーが
何も入力しない場合はCADシステムが自動的に、P=
(0, 0)、Z値=0、V=(0, 0, 1) に初期設定する。
Then, in the following step 4, the CAD system inquires of the user whether or not to further define the shape on the sheet, and when the user inputs that the shape is further defined on the same sheet, the process returns to step 3 above. When the user inputs the information when the definition of the shape on the sheet is completed, the process proceeds to the next step 5, in which the user sets the reference point P at a predetermined position such as the lower left corner of the sheet. , A position (x, y) on the X, Y coordinate system of the layer, and a Z value indicating the height of the reference point P in the vertical direction (Z axis direction) with respect to the layer,
A normal vector V (x D, y of the sheet at the reference point P
D, z D ), and the CAD system registers the data in the memory together with the sheet number and the sheet area data set as above. If the user does not enter anything, the CAD system automatically sets P =
Initialize (0, 0), Z value = 0, V = (0, 0, 1).

【0025】その後のステップ6では、新しいシート上
で形状を定義するか否かをCADシステムがユーザーに
問い合わせ、新しいシート上で形状を定義するとユーザ
ーが入力した場合は上記ステップ2へ戻るが、既に二枚
以上のシート上で形状を定義していて以後の形状の定義
を終了するとユーザーが入力した場合は次のステップ7
へ進む。なお、ここでは部品の形状を表す図形のデータ
をその部品の名称を附して登録してあるので、上記ステ
ップ4またはステップ6から戻ってステップ3を行う場
合に、既に定義した形状の図形を再度用いるときは、そ
の形状を持つ部品の名称および配置を入力するだけで、
CADシステムが、メモリ内からその形状の図形のデー
タを読み出し、その入力した配置で描画する。従ってこ
の実施例によれば、既に定義した形状の図形は、同一シ
ート上や他のシート上に容易にコピーし得るとともに、
回転やON, OFF も容易に行うことができる。
In step 6 thereafter, the CAD system inquires of the user whether or not to define the shape on the new sheet, and if the user inputs that the shape is to be defined on the new sheet, the procedure returns to step 2 above. When the shape is defined on two or more sheets and the user inputs to finish the definition of the shape thereafter, the next step 7
Go to. Here, since the data of the figure representing the shape of the part is registered by adding the name of the part, when returning to the step 4 or step 6 and performing the step 3, the figure of the shape already defined is registered. To use it again, just enter the name and placement of the part with that shape,
The CAD system reads the data of the figure of the shape from the memory and draws it in the input arrangement. Therefore, according to this embodiment, the graphic of the already defined shape can be easily copied on the same sheet or another sheet, and
It can be easily rotated and turned on and off.

【0026】上記の如くして各部品の形状の定義を終了
すると、ここではステップ7で、CADシステムが陰線
処理を実行するが、この陰線処理は、上記シートを全て
レイヤに平行なものとして定義した場合と、一枚以上の
シートをレイヤに対し傾けて定義した場合とで異なる。
すなわち、全てのシートをレイヤに平行なものとして定
義した場合は、各シートがレイヤと平行に延在するゆえ
各シート上の部品の図形はそのシートの基準点Pと同じ
高さにあるので、前述した特開平 3-95691号公報に記載
されている従来の方法では図形毎に優先度を比較して下
から優先度の低い順に図形を重ねているのに対し、この
陰線処理では、上記定義した複数枚のシートの内の、図
面作成に使用しないとユーザーが入力したシートを除い
て残ったシート上の図形をそれぞれ、レイヤ上でのシー
トの基準点Pの位置とそのシート上での図形の配置とに
基づきレイヤ上に投影するとともに、それら残ったシー
トについてシート毎に基準点Pの高さ(Z値)を比較し
て、上記投影の結果レイヤ上で互いに重なった図形のう
ち、高さの低い方のシート上の図形のその重なった部分
を切除もしくは破線化し、高さの低い方のシート上の図
形全体が高さの高い方のシート上の図形と重なった場合
は、その低い方のシート上の図形全体を削除もしくは破
線化する。
When the definition of the shape of each part is completed as described above, the CAD system executes hidden line processing in step 7 here. This hidden line processing defines all the sheets as parallel to the layers. And the case where one or more sheets are defined by inclining with respect to the layer is different.
That is, when all the sheets are defined as being parallel to the layer, the graphics of the parts on each sheet are at the same height as the reference point P of the sheet because each sheet extends parallel to the layer. In the conventional method described in Japanese Patent Laid-Open No. 3-95691 described above, the priorities of the respective figures are compared and the figures are overlaid in order from the lowest priority. Among the plurality of sheets, the figures on the remaining sheet except the sheet input by the user unless used for drawing creation are respectively the position of the reference point P of the sheet on the layer and the figure on the sheet. Of the remaining sheets, the heights (Z values) of the reference points P of the remaining sheets are compared with each other, and the height of the figures overlapping each other on the layer is projected as a result of the projection. The lower one If the entire figure on the sheet with the lower height overlaps the figure on the sheet with the higher height, cuts or cuts the overlapping part of the figure on the sheet with the figure on the lower sheet. Delete the whole figure or make it a broken line.

【0027】従って、例えば、図1に示すように、シー
ト番号1、シート領域A=(0, 0),(1000, 500) 、基準
点P=(0, 0)、法線ベクトルV=(0, 0, 1) 、Z値=0
のシートS1と、シート番号2、シート領域A=(0, 50
0), (1000, 1000)、基準点P=(0, 500)、法線ベクトル
V=(0, 0, 1) 、Z値=−10のシートS2と、シート番号
3、シート領域A=(500, 250), (1500, 750) 、基準点
P=(500, 250)、法線ベクトルV= (0, 0, 1)、Z=15
0 のシートS3と、の三枚のシートS1,S2,S3を定義し、
それらのシート上に、部品番号D1, D2, D3の三つの部品
D1, D2, D3の形状を表す図形をそれぞれ描画して定義し
た場合には、その図1のレイヤL上には、シートS3上の
部品D3が最優先され、次にシートS1,S2上の部品D1, D2
が優先されてそれらの部品D1, D2, D3の形状が表され、
部品D1, D2の右側部分は、最優先の部品D3と重なるの
で、例えば破線化される。
Therefore, for example, as shown in FIG. 1, sheet number 1, sheet area A = (0, 0), (1000, 500), reference point P = (0, 0), normal vector V = ( 0, 0, 1), Z value = 0
Sheet S 1 , sheet number 2, sheet area A = (0, 50
0), (1000, 1000), reference point P = (0, 500), normal vector V = (0, 0, 1), Z value = −10 sheet S 2 , sheet number 3, sheet area A = (500, 250), (1500, 750), reference point P = (500, 250), normal vector V = (0, 0, 1), Z = 15
0 sheet S 3 and 3 sheets S 1 , S 2 and S 3 are defined,
On those sheets, three parts with part numbers D 1 , D 2 and D 3
If the D 1, D 2, and D 3 of the shape graphic representing a defined and drawn respectively, on the layer of FIG. 1 L, part D 3 on the sheet S 3 is the highest priority, then the sheet Parts on S 1 and S 2 D 1 and D 2
Is prioritized to represent the shapes of those parts D 1 , D 2 , D 3 .
The right part of the parts D 1 and D 2 overlaps with the highest priority part D 3 , so that it is broken, for example.

【0028】一方、一枚以上のシートをレイヤに対し傾
けて定義した場合は、基準点Pの高さが同じでもその傾
きが異なる二枚のシート上の図形は、基準点Pに対する
配置が等しくてもレイヤに対する高さが異なったものと
なり、また傾いたシート上で基準点Pに対する配置が異
なる二つの図形も、レイヤに対する高さが異なったもの
となるので、かかる傾いたシート上の図形については、
そのシートの基準点Pに対する図形の各構成点の位置と
そのシートの傾きとからそれらの構成点の高さをそれぞ
れ幾何学的に求める。
On the other hand, when one or more sheets are defined by inclining with respect to the layers, the figures on two sheets having the same height of the reference point P but different inclinations have the same arrangement with respect to the reference point P. However, since the height with respect to the layer is different, and the two figures having different arrangements with respect to the reference point P on the inclined sheet also have different heights with respect to the layer, the figure on the inclined sheet is Is
The heights of the constituent points are geometrically obtained from the positions of the constituent points of the figure with respect to the reference point P of the sheet and the inclination of the sheet.

【0029】そして、上記定義した複数枚のシートの内
の、図面作成に使用しないとユーザーが入力したシート
を除いて残ったシート上の図形をそれぞれレイヤ上に投
影するとともに、それら残ったシートについて、レイヤ
に対し平行なシートについてはシート毎に基準点Pの高
さ(Z値)を比較するが、レイヤに対し傾いたシートに
ついてはシートの基準点Pの代わりに上記構成点の高さ
を全体として、レイヤに対し平行な他のシートの基準点
Pや、レイヤに対し傾いた他のシート上の図形の構成点
の高さ全体と比較し、その図形の全ての構成点の高さ
が、他のシートの基準点Pや他のシート上の図形の全て
の構成点の高さよりも高い場合には、その図形を他のシ
ート上の図形より優先し、逆に低い場合には、他のシー
ト上の図形を優先することとして、上記投影の結果レイ
ヤ上で互いに重なった図形のうち、高さの低い方の図形
のその重なった部分を切除もしくは破線化し、高さの低
い方の図形全体が高さの高い方の図形と重なった場合
は、その低い方の図形全体を削除もしくは破線化する。
Of the plurality of sheets defined above, the figures on the remaining sheets except the sheet input by the user unless they are used for drawing creation are projected on the respective layers, and the remaining sheets are drawn. For sheets parallel to the layer, the height (Z value) of the reference point P is compared for each sheet, but for the sheet tilted with respect to the layer, instead of the reference point P of the sheet, the height of the above-mentioned constituent points is used. As a whole, the heights of all the constituent points of the figure are compared with the reference point P of another sheet parallel to the layer and the entire height of the constituent points of the figure on the other sheet inclined to the layer. , If the height is higher than the reference point P of another sheet or all the constituent points of the figure on the other sheet, the figure has priority over the figure on the other sheet. Prioritize the shapes on the sheet As a result, of the figures that overlap each other on the layer as a result of the above projection, the overlapping part of the figure with the lower height is cut off or broken, and the figure with the lower height as a whole has a higher height. When it overlaps with the figure, the whole figure of the lower one is deleted or broken.

【0030】従って、例えば、図3に示すように、矢印
C方向から見ているとした場合のレイヤLの前方(Z値
としては上方)にそれに対し傾けてシートS4を定義する
とともにそのレイヤLとシートS4との間にレイヤLと平
行にシートS5を定義し、それらのシートS4,S5上に部品
D4, D5の形状を表す図形をそれぞれ描画して定義した場
合には、部品D4の図形の構成点P1〜P6は全てシートS5
基準点PよりもZ値が高いので、部品D4の図形はシート
S5上の部品D5の図形よりも優先され、それゆえレイヤL
上には、部品D5の形状を表す図形の内の、それより高さ
の高い部品D4の形状を表す図形に重なる部分が例えば破
線化されて、それらの部品D4, D5の形状を矢印C方向へ
投影した図形が表示される。なお、図形の投影方向を異
ならせる場合には、シートの傾きを変えるか、レイヤ自
体を変えて、再度図形を定義すれば良い。
Therefore, for example, as shown in FIG. 3, when the sheet S 4 is viewed from the direction of arrow C, the sheet S 4 is defined in front of the layer L (upward as a Z value) by tilting the layer S and the layer S 4 is defined. A sheet S 5 is defined between L and the sheet S 4 in parallel with the layer L, and parts are placed on the sheets S 4 and S 5.
When the figures representing the shapes of D 4 and D 5 are drawn and defined, since the constituent points P 1 to P 6 of the figure of the part D 4 are all higher in Z value than the reference point P of the sheet S 5 . , The part D 4 shape is a sheet
Than graphic component D 5 on S 5 is given priority, thus the layer L
In the upper part of the figure representing the shape of the part D 5 , the part overlapping with the figure representing the shape of the part D 4 having a higher height is broken, for example, and the shape of those parts D 4 and D 5 is shown. A graphic obtained by projecting in the direction of arrow C is displayed. If the projection direction of the figure is different, the inclination of the sheet may be changed or the layer itself may be changed to define the figure again.

【0031】そして上記ステップ7で陰線処理を行った
後は、ステップ8で、CADシステムが、複数の部品の
図形が陰線処理されて表示された上記レイヤを、CRT
等の画面表示装置の画面上に実際に表示し、あるいはプ
ロッタ等で印刷出力する。
After the hidden line processing is performed in the step 7, the CAD system displays the layer in which the graphics of the plurality of parts are displayed by the hidden line processing in the step 8 in the CRT.
Etc. are actually displayed on the screen of the screen display device or printed out by a plotter or the like.

【0032】従って上記実施例の方法によれば、複数枚
のシートを全てレイヤと平行に定義した場合には、シー
ト毎にその基準点の高さを比較することで、各シート上
の複数の部品の高さを一括して比較することになるの
で、シートを定義する際に基本的にそのシートの基準点
の高さを定義するのみで、複数の図形の挿入や削除や高
さの入れ換え等を行う場合の陰線処理をシート単位で同
時に行い得て、指示や入力の手間を大幅に省くことがで
きる。
Therefore, according to the method of the above-described embodiment, when a plurality of sheets are all defined in parallel with the layers, the heights of the reference points of the sheets are compared to obtain a plurality of sheets on each sheet. Since the heights of parts are compared at once, basically when defining a sheet, simply define the height of the reference point of the sheet, and you can insert or delete multiple figures or replace heights. The hidden line processing when performing the above can be performed simultaneously on a sheet-by-sheet basis, and the trouble of instruction and input can be greatly saved.

【0033】また上記実施例の方法によれば、複数枚の
シートの内の一枚以上のシートをレイヤに対し傾けて定
義した場合には、レイヤに対するシートの基準点の高さ
とそのシートの傾きとそのシート上での図形の位置とに
基づきレイヤに対する図形の高さを求め、その高さが高
い方の図形を優先して、各シート上の図形をレイヤ上に
表示するので、上記複数枚のシートを全てレイヤと平行
に定義した場合と同様に指示や入力の手間を大幅に省き
得るとともに、レイヤに対し傾斜した図形についても陰
線処理を行うことができる。
Further, according to the method of the above embodiment, when one or more of the plurality of sheets are defined by being inclined with respect to the layer, the height of the reference point of the sheet with respect to the layer and the inclination of the sheet. The height of the figure with respect to the layer is calculated based on the figure and the position of the figure on the sheet, and the figure with the higher height is given priority and the figure on each sheet is displayed on the layer. As in the case where all the sheets are defined in parallel with the layers, the trouble of instruction and input can be greatly reduced, and the hidden line processing can be performed on the figure inclined to the layer.

【0034】ところで、上述した実施例はそのままで
は、同一のシート上に複数の図形を描画した場合であっ
てそれらの図形が互いに重なる場合に、それらの図形に
ついて異なる高さ情報を与えることができないため陰線
処理を行えないという点で、多少不都合があるが、以下
に述べる変形例によれば、かかる不都合を解消すること
ができる。すなわちこの変形例では、上記実施例のステ
ップ3で各図形に付加した部品名称のデータを用いるこ
とにより図形同士を区別することとして、例えば上記実
施例のステップ4とステップ5との間に、ユーザーの入
力によりそれら複数の図形間に一または複数種類の主従
関係を与えるステップを加えて、その主従関係を、シー
ト毎に設定した主従関係ファイルに登録しておき、上記
実施例のステップ7で、同一のシート上に描画したそれ
ら複数の図形をレイヤL上に表示する際に、そのシート
についての上記登録した主従関係に基づき、主の図形を
従の図形に優先して表示する。
By the way, with the above-described embodiment as it is, when a plurality of figures are drawn on the same sheet and the figures overlap each other, different height information cannot be given to the figures. Therefore, although there is some inconvenience in that the hidden line processing cannot be performed, the inconvenience can be solved by the modified examples described below. That is, in this modification, the figures are distinguished from each other by using the data of the part names added to the respective figures in step 3 of the above-mentioned embodiment. For example, between step 4 and step 5 of the above-mentioned embodiment, The step of giving one or more kinds of master-slave relationship between the plurality of figures by inputting, the master-slave relationship is registered in the master-slave relationship file set for each sheet, and in step 7 of the above embodiment, When the plurality of graphics drawn on the same sheet are displayed on the layer L, the master graphics are displayed with priority over the slave graphics based on the registered master-slave relationship for the sheet.

【0035】図4は、上述した変形例を工作機械の工具
ヘッドの図面を表示をする場合に適用した例を示してお
り、この図4に示す例では、あるシートについて設定し
た主従関係ファイルに、下記の表1に示す如き、部品名
称を用いた主従関係を登録しておく。なお、この表1中
の部品は、矢印の手前(左)側の部品が主、矢印の先
(右)側の部品が従という関係にある。また表1に示す
内容は、図4に示す部品間の主従関係の一部を例示する
ものである。
FIG. 4 shows an example in which the above modification is applied to display a drawing of a tool head of a machine tool. In the example shown in FIG. 4, the master-slave relationship file set for a certain sheet is used. As shown in Table 1 below, a master-slave relationship using component names is registered. The parts in Table 1 have a relationship in which the part on the front side (left) of the arrow is the main part, and the part on the tip side (right) of the arrow is the subordinate. The contents shown in Table 1 exemplify a part of the master-slave relationship between the parts shown in FIG.

【0036】[0036]

【表1】 [Table 1]

【0037】上記の如きファイル内の主従関係を用い
て、同一のシート上に描画した上記の如き複数の部品を
表す図形を、従の部品名称の図形に対して主の部品名称
の図形を優先するようにレイヤL上に表示すれば、図4
に示すように、例えば工作機械の工具ヘッドのツーリン
グ概要図(側面図)を描くことができる。
By using the master-slave relationship in the file as described above, a graphic representing a plurality of components as described above drawn on the same sheet is given priority over a graphic having a primary component name over a graphic having a secondary component name. If it is displayed on the layer L as shown in FIG.
As shown in FIG. 2, for example, a tooling schematic view (side view) of a tool head of a machine tool can be drawn.

【0038】上記主従関係はまた、一枚のシートについ
ての主従関係ファイル内に複数種類登録しても良く、例
えば図4の図面の表示に用いたシートについての主従関
係ファイル内に、表1に示す主従関係の他に、下記の表
2に示す如き主従関係を登録しておいて、そのシート上
に描画した複数の部品を表す図形をレイヤL上に表示す
る際に、表2に示す方の主従関係を選択して用いれば、
図5に示すように、図4の場合と同一の複数の部品で、
例えば工作機械の工具ヘッドのツーリング詳細図(断面
図)を描くことができる。なお、この表2に示す内容
も、図5に示す部品間の主従関係の一部を例示するもの
である。
A plurality of types of the master-slave relationship may be registered in the master-slave relationship file for one sheet. For example, in Table 1 in the master-slave relationship file for the sheet used to display the drawing of FIG. In addition to the master-slave relationship shown, the master-slave relationship as shown in Table 2 below is registered, and when the figures representing a plurality of parts drawn on the sheet are displayed on the layer L, the one shown in Table 2 If you select and use the master-slave relationship of
As shown in FIG. 5, with the same plurality of parts as in FIG. 4,
For example, a tooling detailed view (cross-sectional view) of a tool head of a machine tool can be drawn. The contents shown in Table 2 also exemplify a part of the master-slave relationship between the parts shown in FIG.

【0039】[0039]

【表2】 [Table 2]

【0040】また上述した実施例はそのままでは、シー
ト毎にシート番号とシート領域Aとを設定しているため
シートの枚数が増えてくるとシートの管理が大変になる
という点で、多少不都合があるが、以下に述べるこの発
明の他の実施例によれば、かかる不都合を解消すること
ができる。すなわちこの実施例では、先の実施例で用い
た複数枚のシートS1,S2,S3・・・に代えて、図6に示
すように、領域を定義しない複数の平面PL1, PL2・・・
を設定し、それらの平面に、例えば図では平面PL1 には
黄色、平面PL2 には赤としているように、番号でなく平
面毎に異なる色彩を対応させるとともに、それらの平面
上の任意の位置に、例えば平面PL1 には基準点PY 、平
面PL2 には基準点PR というように基準点を設けて、そ
れらの平面を、その色彩と、レイヤLに対する垂直方向
(Z軸方向)のその基準点の高さを示すZ値と、その基
準点でのその平面に対する法線ベクトルとを用いて定義
しておき、それらの平面を上記シートと同様に図形の描
画に使用するとともに、それらの平面上に描画した図形
にその平面に対応した色彩を付す。
Further, with the above-described embodiment as it is, since the sheet number and the sheet area A are set for each sheet, the sheet management becomes difficult when the number of sheets increases, which is somewhat inconvenient. However, according to another embodiment of the present invention described below, such inconvenience can be solved. That is, in this embodiment, in place of the plurality of sheets S 1, S 2, S 3 ··· used in the previous embodiment, as shown in FIG. 6, a plurality of planes PL 1 is not defined region, PL 2 ...
Are set to correspond to different colors for each plane instead of numbers, such as yellow on the plane PL 1 and red on the plane PL 2 in the figure. At the position, for example, a reference point P Y is provided on the plane PL 1 and a reference point P R is provided on the plane PL 2 , and the planes are arranged in the direction perpendicular to the color and the layer L (Z-axis direction). ) Is used to define the height of the reference point and a normal vector to the plane at the reference point, and these planes are used for drawing a graphic as in the above sheet. , Add colors corresponding to the planes to the figures drawn on those planes.

【0041】そしてここでは、レイヤL上に図形を表示
する際に、上記複数の平面のうちの少なくとも二枚の平
面を、例えばそこに描画した図形の色彩を参照して、そ
れらの平面に対応する色彩によって指定し、それらの平
面上の図形、例えば図6に示すように黄色に対応する平
面PL1 上の図形DY と赤に対応する平面PL2 上の図形D
R とを、Lの原点に対するそれらの基準点PY , PR
位置と法線ベクトルの向きとを基準に陰線処理してレイ
ヤL上に表示する。なお、図6に示す例では、黄色に対
応する平面PL1 の基準点PY のZ値を0としたのに対し
赤に対応する平面PL2 の基準点PR のZ値を−50とし、
法線ベクトルを両平面共(0,0,1)としたので、図
形DR の、図形DY に重なる部分が、破線化されて表示
されている。
In this case, at the time of displaying a figure on the layer L, at least two planes among the plurality of planes are referred to by referring to, for example, the color of the figure drawn on the plane. The shapes on those planes, for example, the figure D Y on the plane PL 1 corresponding to yellow and the figure D on the plane PL 2 corresponding to red, as shown in FIG.
R and R are displayed on the layer L by performing a hidden line process based on the positions of the reference points P Y and P R with respect to the origin of L and the direction of the normal vector. In the example shown in FIG. 6, the Z value of the reference point P Y of the plane PL 1 corresponding to yellow is set to 0, while the Z value of the reference point P R of the plane PL 2 corresponding to red is set to −50. ,
Since the normal vector is set to (0, 0, 1) on both planes, the portion of the graphic D R overlapping the graphic D Y is displayed in broken lines.

【0042】図7は、上記実施例の陰線処理方法におけ
る処理手順を示すフローチャートであり、この実施例の
方法も上述した通常のCADシステムにおいて実施する
ものとし、ここでは先ずステップ21で、図形を表示する
仮想平面であるレイヤを、ユーザーが図面番号の入力等
によって定義し、次にステップ22で、図形を描画するこ
れも仮想平面である平面を、領域を限らずに設定し、そ
の平面に描画する図形の表示色をユーザーが入力により
指定することによって、その平面に対応する色彩を設定
する。なお、その色彩を対応させる平面は、部品名称単
位でも、線分単位でも設定でき、レイヤが複数ある場合
はレイヤ単位でも設定できる。
FIG. 7 is a flow chart showing the processing procedure in the hidden line processing method of the above embodiment. The method of this embodiment is also carried out in the above-mentioned ordinary CAD system. The user defines the layer that is the virtual plane to be displayed by inputting the drawing number, etc., and then, in step 22, sets the plane that is also the virtual plane that also draws the figure, without limiting the area, and The color corresponding to the plane is set by the user specifying the display color of the figure to be drawn by input. It should be noted that the planes corresponding to the colors can be set on a part name basis or a line segment basis, and can be set on a layer basis when there are multiple layers.

【0043】次のステップ23では、ユーザーが、上記の
如くして対応する色彩を設定した平面上に描画する図形
の名称、例えば部品名称や部品番号を入力した後、上記
マウス等を用いてその平面上にその部品の形状を表す図
形を描画して、その部品の形状を定義する。これにより
ここでは、CADシステムが、上記定義された形状の図
形データに、その部品の名称と、その図形が描画された
平面に対応する色彩すなわちその図形の表示色と、上記
平面上でのその図形の位置とのデータを属性として付加
して、それらのデータをメモリ内に登録しておく。な
お、この実施例でも、電子カタログ等の既に存在する外
部図形データを利用する場合には、あらかじめそれらの
図形データに部品名称をつけておいて、その部品名称を
用いて図形データを呼び出しても良い。
At the next step 23, the user inputs the name of the figure to be drawn on the plane in which the corresponding color is set as described above, for example, the part name or the part number, and then the mouse is used to A shape representing the shape of the part is drawn on a plane to define the shape of the part. As a result, in this case, the CAD system adds the name of the part, the color corresponding to the plane on which the graphic is drawn, that is, the display color of the graphic, to the graphic data of the shape defined above, and the color on the plane. Data such as the position of the figure is added as an attribute, and the data is registered in the memory. Even in this embodiment, when the already existing external graphic data such as an electronic catalog is used, the graphic data may be called by previously naming the graphic data with component names. good.

【0044】そして続くステップ24では、その平面上で
さらに形状を定義するか否かをCADシステムがユーザ
ーに問い合わせ、同一平面上でさらに形状を定義すると
ユーザーが入力した場合は上記ステップ23へ戻るが、そ
の平面上での形状の定義を終了するとユーザーが入力し
た場合は次のステップ25へ進み、このステップ25ではユ
ーザーが、上記平面上の任意の位置に、例えば図6に示
す点PY や点PR の如く基準点を設定して、その基準点
の上記平面上での位置を定義するとともに、その基準点
のZ値と、その基準点での上記平面の法線ベクトルV
(xD,D,D )とを定義し、CADシステムがそれら
のデータを、上記設定された色彩とともにメモリ内の色
属性ファイルCFに登録しておく。これによりここでは、
上記平面上に描画した図形の位置を、その平面の基準点
に対する位置として特定することが可能になる。
Then, in the following step 24, the CAD system inquires of the user whether or not to further define the shape on the plane, and if the user inputs that the shape is further defined on the same plane, the process returns to step 23. , When the user finishes defining the shape on the plane and the user inputs it, the process proceeds to the next step 25. At this step 25, the user places the point P Y at an arbitrary position on the plane, for example, as shown in FIG. A reference point such as the point P R is set to define the position of the reference point on the plane, and the Z value of the reference point and the normal vector V of the plane at the reference point are set.
(X D, y D, z D) defines a, CAD system these data, are registered in the color attribute file CF in the memory along with the set color. Hereby,
It is possible to specify the position of the figure drawn on the plane as the position of the plane with respect to the reference point.

【0045】その後のステップ26では、部品名称毎の主
従関係を定義するか否かをCADシステムがユーザーに
問い合わせ、同一平面上で互いに重なる複数の部品形状
を定義したために先の実施例の変形例の場合の如くそれ
らの間の主従関係も定義する場合には、ステップ27で、
ユーザーがそれら複数の部品の主従関係を部品名称を用
いて定義し、CADシステムがその主従関係のデータを
メモリ内の主従関係ファイルMFに登録しておく。そして
上記ステップ26で主従関係の登録が不要の場合および上
記ステップ27で主従関係のデータを登録した後は、ステ
ップ28で、新しい表示色に対応する新しい平面上で形状
を定義するか否かをCADシステムがユーザーに問い合
わせ、新しい平面上で形状を定義するとユーザーが入力
した場合は上記ステップ22へ戻るが、既に二つ以上の平
面上で形状を定義していて以後の形状の定義を終了する
とユーザーが入力した場合は、次のステップ29へ進む。
In the subsequent step 26, the CAD system inquires of the user as to whether or not to define the master-slave relationship for each part name, and a plurality of part shapes overlapping each other on the same plane are defined, so that a modification of the previous embodiment. If you also want to define a master-slave relationship between them, as in
The user defines the master-slave relationship of the plurality of parts by using the part name, and the CAD system registers the data of the master-slave relationship in the master-slave relationship file MF in the memory. If it is unnecessary to register the master-slave relationship in step 26 above and after registering the master-slave relationship data in step 27 above, in step 28, whether to define the shape on a new plane corresponding to the new display color is determined. If the CAD system inquires of the user and the user inputs that the shape is to be defined on a new plane, the procedure returns to the above step 22, but if the shape is already defined on two or more planes and the subsequent definition of the shape is completed. If the user inputs, go to the next step 29.

【0046】なお、この実施例でも部品の形状を表す図
形のデータをその部品の名称を附して登録してあるの
で、上記ステップ24またはステップ28から戻ってステッ
プ23を行う場合に、既に定義した形状の図形を再度用い
るときは、その形状を持つ部品の名称および配置を入力
するだけで、CADシステムが、メモリ内からその形状
の図形のデータを読み出し、その入力した配置で描画す
る。従ってこの実施例によっても、既に定義した形状の
図形は、同一平面上や他の平面上に容易にコピーし得る
とともに、回転やON, OFF も容易に行うことができる。
In this embodiment as well, since the data of the figure representing the shape of the part is registered with the name of the part, it is already defined when the process returns from step 24 or step 28 to step 23. When the graphic of the shape is used again, the CAD system reads the data of the graphic of the shape from the memory by simply inputting the name and the layout of the part having the shape, and draws the graphic in the input layout. Therefore, also in this embodiment, the graphic having the already defined shape can be easily copied on the same plane or another plane, and can be easily rotated, turned on and off.

【0047】上記の如くして各部品の形状の定義を終了
すると、ここではステップ29で、CADシステムが陰線
処理を実行するが、この陰線処理は、先の実施例の場合
と同様、上記平面を全てレイヤに平行なものとして定義
した場合と、一つ以上の平面をレイヤに対し傾けて定義
した場合とで異なる。すなわち、全ての平面をレイヤに
平行なものとして定義した場合は、各平面がレイヤと平
行に延在するゆえ各平面上の部品の図形はその平面の基
準点と同じ高さにあるので、上記定義した複数枚の平面
の内の、図面作成に使用しないとユーザーが入力した平
面を除いて残った平面上の図形をそれぞれ、上記色属性
ファイルCFに登録したレイヤ上での平面の基準点の位置
とその平面上での基準点に対する図形の配置とに基づき
レイヤ上に投影して、それらの平面に対応する色彩で表
示するとともに、それら残った平面について平面毎に基
準点の高さ(Z値)を比較して、上記投影の結果レイヤ
上で互いに重なった図形のうち、高さの低い方の平面上
の図形のその重なった部分を切除もしくは破線化し、高
さの低い方の平面上の図形全体が高さの高い方の平面上
の図形と重なった場合は、その低い方の平面上の図形全
体を削除もしくは破線化する。
When the definition of the shape of each part is completed as described above, the CAD system executes hidden line processing in step 29 here. This hidden line processing is the same as in the previous embodiment. Differs when all are defined as being parallel to the layer, and when one or more planes are defined by inclining with respect to the layer. That is, when all the planes are defined as being parallel to the layer, since each plane extends parallel to the layer, the figure of the part on each plane is at the same height as the reference point of that plane. Of the multiple defined planes, the figures on the planes remaining except for the planes entered by the user if they are not used for drawing creation are used as the reference points of the planes on the layers registered in the color attribute file CF. Based on the position and the arrangement of the figure with respect to the reference point on that plane, it is projected on the layer and displayed in colors corresponding to those planes, and the height of the reference point (Z Value) is compared, and among the figures that overlap each other on the layer as a result of the above projection, the overlapping part of the figure on the plane with the lower height is cut off or broken, and the plane on the plane with the lower height is cut off. The entire shape of is If overlapping the shapes on have how plane, delete or broken lines the entire figure of the plane of the lower.

【0048】従って、例えば上述した図6の例のよう
に、基準点PY のZ値を0とするとともに法線ベクトル
の向きを(0,0,1)としてレイヤと平行に延在させ
た黄色に対応する平面PL1 上の図形DY と、基準点PR
のZ値を−50とするとともに法線ベクトルの向きを
(0,0,1)としてレイヤと平行に延在させた赤色に
対応する平面PL2 上の図形DR とを、Lの原点に対する
それらの基準点PY , PR の位置を同図の下部に示すよ
うに互いにずらしてレイヤL上に投影すれば、それらの
基準点PY , PR のZ値の差ゆえに、Z値が小さい下側
の赤色の図形DR の、Z値が大きい上側の黄色図形DY
に重なる部分が、上述したように破線化されて表示され
ることになる。
Therefore, for example, as in the example of FIG. 6 described above, the Z value of the reference point P Y is set to 0, the direction of the normal vector is set to (0, 0, 1), and the reference point P Y is extended in parallel with the layer. Figure D Y on the plane PL 1 corresponding to yellow and the reference point P R
With a Z value of −50 and a normal vector direction of (0,0,1), and a figure D R on the plane PL 2 corresponding to the red color extending in parallel with the layer with respect to the origin of L. If the positions of the reference points P Y and P R are shifted from each other and projected on the layer L as shown in the lower part of the figure, the Z values are different due to the difference in the Z values of the reference points P Y and P R. Small red figure D R on the lower side, yellow figure D Y on the upper side with a large Z value
The portion overlapping with is displayed as a broken line as described above.

【0049】また、例えば図8に示すように、基準点P
Y のZ値を0とするとともに法線ベクトルの向きを
(0,0,1)としてレイヤと平行に延在させた黄色に
対応する平面上の図形DY を、例えばその部品名称を指
定することにより、基準点PR のZ値を−50とするとと
もに法線ベクトルの向きを(0,0,1)としてレイヤ
と平行に延在させた赤色に対応する平面上に、基準点に
対する相対位置を変えずにコピーして図形DR とし、そ
れらの図形DY ,DR をLの原点に対するそれらの基準
点PY , PR の位置を同図の下部に示すように互いにず
らしてレイヤL上に投影すれば、図8に示すように、同
一の部品を二つ、位置をずらすとともに陰線処理してレ
イヤL上に表示することができ、同様にすれば、さらに
多数の同一部品も容易に表示することができる。
Further, as shown in FIG. 8, for example, the reference point P
The Z value of Y is set to 0, the direction of the normal vector is set to (0, 0, 1), and the figure D Y on the plane corresponding to yellow that extends parallel to the layer is designated, for example, its part name. As a result, the Z value of the reference point P R is set to −50, and the direction of the normal vector is set to (0, 0, 1), and the relative to the reference point on the plane corresponding to the red color that extends in parallel with the layer. The figure D R is copied without changing the position, and the figures D Y and D R are shifted from each other with respect to the origin of L so that the positions of their reference points P Y and P R are displaced from each other as shown in the lower part of the figure. If it is projected on L, as shown in FIG. 8, two identical parts can be displayed on the layer L by shifting the positions and performing hidden line processing. It can be displayed easily.

【0050】一方、一つ以上の平面をレイヤに対し傾け
て定義した場合は、基準点の高さが同じでもその傾きが
異なる二つのシート上の図形は、基準点に対する配置が
等しくてもレイヤに対する高さが異なったものとなり、
また傾いた平面上で基準点に対する配置が異なる二つの
図形も、レイヤに対する高さが異なったものとなるの
で、かかる傾いた平面上の図形については、先の実施例
の場合と同様、その平面の基準点に対する図形の各構成
点の位置と、上記法線ベクトルで定義されているその平
面の傾きとからそれらの構成点の高さをそれぞれ幾何学
的に求める。
On the other hand, when one or more planes are defined by inclining with respect to the layer, figures on two sheets having the same height of the reference points but different inclinations are layered even if they are arranged at the same reference point. The height for
Further, since two figures having different arrangements with respect to the reference point on the inclined plane also have different heights with respect to the layers, the figure on the inclined plane is the same as that of the previous embodiment. The heights of the constituent points are geometrically determined from the positions of the constituent points of the figure with respect to the reference point and the inclination of the plane defined by the normal vector.

【0051】そして上記定義した複数の平面の内の、図
面作成に使用しないとユーザーが入力した平面を除いて
残った平面上の図形を、上記色属性ファイルCFに登録し
たレイヤ上での平面の基準点の位置とその平面上での基
準点に対する図形の配置とに基づきレイヤ上に投影し
て、それらの平面に対応する色彩で表示するとともに、
それら残った平面について、レイヤに対し平行な平面に
ついては平面毎に基準点の高さ(Z値)を比較するが、
レイヤに対し傾いた平面については、先の実施例の場合
と同様、平面の基準点の代わりに上記構成点の高さを全
体として、レイヤに対し平行な他の平面の基準点や、レ
イヤに対し傾いた他の平面上の図形の構成点の高さ全体
と比較し、その図形の全ての構成点の高さが、他の平面
の基準点や他の平面上の図形の全ての構成点の高さより
も高い場合には、その図形を他の平面上の図形より優先
し、逆に低い場合には、他の平面上の図形を優先するこ
ととして、上記投影の結果レイヤ上で互いに重なった図
形のうち、高さの低い方の図形のその重なった部分を切
除もしくは破線化し、高さの低い方の図形全体が高さの
高い方の図形と重なった場合は、その低い方の図形全体
を削除もしくは破線化する。
Then, among the plurality of planes defined above, the figures on the planes other than the planes input by the user if they are not used for creating the drawing are used as the planes on the layers registered in the color attribute file CF. Project on a layer based on the position of the reference point and the placement of the figure relative to the reference point on that plane, and display it in the colors corresponding to those planes,
Regarding the remaining planes, the heights (Z values) of the reference points are compared for each plane for the plane parallel to the layer,
As for the plane inclined with respect to the layer, as in the case of the previous embodiment, instead of the reference point of the plane, the heights of the above-mentioned constituent points as a whole are used as reference points of other planes parallel to the layer, and Compared with the total height of the constituent points of the figure on the other plane that is tilted, the heights of all the constituent points of the figure are the reference points of the other plane and all the constituent points of the figure on the other plane. If it is higher than the height of, the shape is prioritized over the shape on other planes, and if it is lower, the shape on other planes is prioritized. Of the lower figure, the overlapping part of the lower figure is cut off or broken into lines, and if the entire lower figure overlaps the higher figure, the lower figure Delete the whole or make it a broken line.

【0052】従って、例えば、図9に示すように、矢印
C方向から見ているとした場合のレイヤLの前方(Z値
としては上方)にそれに対し傾けて赤色に対応する平面
PL2を定義するとともにそのレイヤLと平面PL2 との間
にレイヤLと平行に黄色に対応する平面PL1 を定義し、
それらの平面PL1, PL2上に部品形状を表す図形DY ,D
R をそれぞれ描画して定義した場合には、図形DR の構
成点は全て平面PL1 の基準点PR よりもZ値が高いの
で、図形DR は全体的に平面PL1 上の図形DY よりも優
先され、それゆえレイヤL上には、図9の左側に示すよ
うに、図形DY の内の、それより高さの高い図形DR
重なる部分が例えば破線化されて、それらの図形DR ,
Y を矢印C方向へ投影した図形が表示される。
Therefore, for example, as shown in FIG. 9, a plane corresponding to red by tilting the layer L to the front (upper Z value) of the layer L when viewed from the direction of arrow C.
PL 2 is defined, and a plane PL 1 corresponding to yellow is defined between the layer L and the plane PL 2 in parallel with the layer L,
Figures D Y and D representing the shape of parts on the planes PL 1 and PL 2
When defined by drawing R, respectively, since the higher Z value than the reference point P R of all constituent points of the figure D R plane PL 1, figure D R Shapes D of generally plane PL 1 Y also overrides, on thus-layer L, as shown on the left side of FIG. 9, of the figure D Y, high overlap in the graphic D R of it than the height for example is a broken line of their Figure D R ,
A figure obtained by projecting D Y in the direction of arrow C is displayed.

【0053】また、同一平面上で互いに重なる複数の部
品形状を定義したために先の実施例の変形例の場合の如
くそれらの間の主従関係を定義してその主従関係のデー
タをメモリ内の主従関係ファイルMFに登録した場合に
は、上記実施例のステップ29でも、その主従関係ファイ
ルMFに登録したデータの内のユーザーが選択した主従関
係に基づいて、同一平面上で互いに重なる複数の部品形
状の陰線処理を行う。なお、ユーザーが陰線処理を望ま
ない場合は、その同一平面上で互いに重なる複数の部品
形状を全てそのまま表示することとしても良い。
Further, since a plurality of parts shapes that overlap each other on the same plane are defined, the master-slave relationship between them is defined as in the case of the modification of the previous embodiment, and the data of the master-slave relationship is stored in the memory. When registered in the relationship file MF, also in step 29 of the above-mentioned embodiment, based on the master-slave relationship selected by the user in the data registered in the master-slave relationship file MF, a plurality of component shapes that overlap each other on the same plane Hidden lines are processed. If the user does not want the hidden line processing, it is possible to display all the shapes of a plurality of parts that overlap each other on the same plane as they are.

【0054】そして上記ステップ29で陰線処理を行った
後は、ステップ30で、CADシステムが、複数の部品の
図形が陰線処理されて表示された上記レイヤを、CRT
等の画面表示装置の画面上に実際に表示し、あるいはプ
ロッタ等で印刷出力する。
After performing the hidden line processing in step 29, in step 30, the CAD system performs CRT processing on the layer in which the graphics of the plurality of parts are hidden line processed and displayed.
Etc. are actually displayed on the screen of the screen display device or printed out by a plotter or the like.

【0055】以上、図示例に基づき説明したが、この発
明は上述の例に限定されるものでなく、例えば、上記実
施例ではレイヤに対してシートや平面を傾けて定義する
こともできるようにしたが、実施する装置の処理能力等
所要に応じ、複数のシートや平面を全てレイヤと平行に
のみ定義する(方向ベクトルの入力を省く)こととして
も良く、そのようにすれば処理手順をさらに簡易ならし
めることができる。
Although the present invention has been described above based on the illustrated example, the present invention is not limited to the above example. For example, in the above embodiment, the sheet or the plane may be tilted with respect to the layer to be defined. However, it is also possible to define only a plurality of sheets or planes only parallel to the layers (the input of the direction vector is omitted), if necessary, such as the processing capacity of the apparatus to be implemented. It can be simple.

【0056】そしてこの発明の方法は、コンピュータを
用いて図形処理を行う装置であればCADシステム以外
の装置でも実施することができる。
The method of the present invention can be carried out by an apparatus other than the CAD system as long as it is an apparatus for performing graphic processing using a computer.

【0057】[0057]

【発明の効果】かくしてこの発明の2次元図面の陰線処
理方法の第1の方法によれば、シートを定義する際に基
本的にそのシートの基準点の高さを定義するのみで、複
数の図形の挿入や削除や高さの入れ換え等を行う場合の
陰線処理をシート単位で同時に行うことができるので、
指示や入力の手間を大幅に省くことができ、しかもその
陰線処理を簡単な処理手順で行うことができる。
As described above, according to the first method of the hidden line processing method for a two-dimensional drawing of the present invention, basically, when a sheet is defined, only the height of the reference point of the sheet is defined. Hidden line processing can be performed at the same time for each sheet when inserting or deleting figures, changing heights, etc.
It is possible to greatly save the trouble of instructing and inputting, and the hidden line processing can be performed by a simple processing procedure.

【0058】また、この発明の2次元図面の陰線処理方
法の第2の方法によれば、上記第1の方法と同様に指示
や入力の手間を大幅に省くことができ、しかもレイヤに
対し傾斜した図形についても陰線処理を行うことができ
る。
Further, according to the second method of the hidden line processing method for a two-dimensional drawing of the present invention, it is possible to greatly save the trouble of instructing and inputting similarly to the above-mentioned first method, and to incline the layer. Hidden line processing can be performed on the drawn figure.

【0059】さらに、この発明の2次元図面の陰線処理
方法の第3および第4の方法のように、先の第1および
第2の方法における複数枚のシートに代えて、領域を特
には限定しない複数の平面を設定し、それらの平面に平
面毎に異なる色彩を対応させて、それらの平面を前記シ
ートと同様に図形の描画に使用するとともにそこに描画
する図形にその平面に対応する色彩を与え、前記複数の
平面のうちの、前記色彩によって指定した少なくとも二
つの平面上の前記図形を前記レイヤ上に表示することと
すれば、複数の図形の、色彩単位での陰線処理や移動、
回転等の取扱いが可能になるので、平面の数が増えた場
合でも図形の取扱いを容易に行うことができる。
Further, as in the third and fourth methods of the hidden line processing method of the two-dimensional drawing of the present invention, the region is particularly limited in place of the plurality of sheets in the first and second methods. Do not set multiple planes, assign different colors to each plane, and use those planes for drawing figures in the same way as the above-mentioned sheet and the color corresponding to that plane for the figures drawn there. Given, among the plurality of planes, to display the figure on at least two planes specified by the color on the layer, a plurality of figures, hidden line processing or movement in color units,
Since handling such as rotation is possible, it is possible to easily handle graphics even when the number of planes increases.

【0060】なお、前記シート上や前記平面上に描画し
た前記各図形の形状データを、その図形の名称のデータ
を属性として付加して保存することとすれば、その名称
で図形を特定することで、同じ図形を同一シート上や他
のシート上に容易にコピーすることができるとともに、
図形単位での回転やON, OFF も容易に行うことができ
る。
If the shape data of each figure drawn on the sheet or the plane is saved with the data of the figure name added as an attribute, the figure can be specified by the name. With, you can easily copy the same figure on the same sheet or another sheet, and
It is possible to easily rotate, turn on, and turn off for each figure.

【0061】また、同一の前記シート上や前記平面上に
複数の図形を描画した場合に、前記各図形に付加した前
記名称のデータを用いて図形同士を区別することによ
り、それら複数の図形間に一または複数種類の主従関係
を与えて、その主従関係を登録しておき、前記複数の図
形を、前記登録した主従関係に基づいて前記レイヤ上に
表示することとすれば、同一のシート上や同一の平面上
に描画した複数の図形間でも陰線処理を行うことがで
き、その登録の際、複数種類の主従関係を登録しておけ
ば、図形表示の際にそれらの主従関係のうちから所望の
関係を選択して指定することで陰線処理の状態を変更し
て所望の種類の図面をレイヤ上に表示することができ
る。
Further, when a plurality of figures are drawn on the same sheet or the same plane, the figures are distinguished by using the data of the name added to each figure, so that the figures are separated from each other. If one or a plurality of types of master-slave relationship is given to the, and the master-slave relationship is registered in advance, and the plurality of figures are displayed on the layer based on the registered master-slave relationship, on the same sheet, You can also perform hidden line processing between multiple figures drawn on the same plane, and if you register multiple types of master-slave relationships when registering them, the master-slave relationship will be By selecting and specifying a desired relationship, the state of hidden line processing can be changed and a desired type of drawing can be displayed on a layer.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の2次元図面の陰線処理方法の一実施
例にて定義した複数枚のシートおよびその実施例の方法
によってレイヤ上に図形を表示した2次元図面の一例を
示す説明図である。
FIG. 1 is an explanatory diagram showing an example of a plurality of sheets defined in an embodiment of a hidden line processing method of a two-dimensional drawing of the present invention and a two-dimensional drawing in which a graphic is displayed on a layer by the method of the embodiment. is there.

【図2】上記実施例の方法における処理手順を示すフロ
ーチャートである。
FIG. 2 is a flowchart showing a processing procedure in the method of the above embodiment.

【図3】上記実施例の方法にて定義した複数枚のシート
およびこの実施例に方法によってレイヤ上に図形を表示
した2次元図面の他の例を示す説明図である。
FIG. 3 is an explanatory diagram showing another example of a plurality of sheets defined by the method of the above embodiment and a two-dimensional drawing in which graphics are displayed on layers by the method in this embodiment.

【図4】上記実施例の方法によって同一シート上に描画
した複数の図形をレイヤ上に表示した2次元図面の一例
を示す説明図である。
FIG. 4 is an explanatory diagram showing an example of a two-dimensional drawing in which a plurality of figures drawn on the same sheet by the method of the above embodiment is displayed on a layer.

【図5】上記実施例の方法によって同一シート上に描画
した複数の図形をレイヤ上に表示した2次元図面の他の
例を示す説明図である。
FIG. 5 is an explanatory diagram showing another example of a two-dimensional drawing in which a plurality of figures drawn on the same sheet by the method of the above-described embodiment are displayed on a layer.

【図6】この発明の2次元図面の陰線処理方法の他の一
実施例にて定義した複数の平面およびその実施例の方法
によってレイヤ上に図形を表示した2次元図面の一例を
示す説明図である。
FIG. 6 is an explanatory diagram showing an example of a plurality of planes defined in another embodiment of a hidden line processing method of a two-dimensional drawing of the present invention and a two-dimensional drawing in which a graphic is displayed on a layer by the method of the embodiment. Is.

【図7】上記他の実施例の方法における処理手順を示す
フローチャートである。
FIG. 7 is a flowchart showing a processing procedure in a method of the other embodiment.

【図8】上記他の実施例の方法によってレイヤ上に図形
を表示した2次元図面の他の例を示す説明図である。
FIG. 8 is an explanatory diagram showing another example of a two-dimensional drawing in which a graphic is displayed on a layer by the method of the other embodiment.

【図9】上記他の実施例の方法にて定義した複数の平面
およびこの実施例に方法によってレイヤ上に図形を表示
した2次元図面のさらに他の例を示す説明図である。
FIG. 9 is an explanatory diagram showing still another example of a plurality of planes defined by the method of the other embodiment and a two-dimensional drawing in which graphics are displayed on layers by the method in this embodiment.

【図10】従来の陰線処理方法の一例を示す説明図であ
る。
FIG. 10 is an explanatory diagram showing an example of a conventional hidden line processing method.

【図11】従来の陰線処理方法の他の一例を示す説明図
である。
FIG. 11 is an explanatory diagram showing another example of a conventional hidden line processing method.

【図12】従来の陰線処理方法のさらに他の一例を示す
説明図である。
FIG. 12 is an explanatory diagram showing still another example of a conventional hidden line processing method.

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

L レイヤ S1,S2,S3 シート D1, D2, D3 部品 P 基準点L layer S 1 , S 2 , S 3 sheet D 1 , D 2 , D 3 parts P Reference point

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 レイヤ上に複数の図形を表示して2次元
図面を作成するに際し、 前記レイヤと平行に延在するとともにそのレイヤの上方
の任意の高さの位置に基準点を持つシートを複数枚定義
して、前記各シート上の任意の位置に少なくとも一つの
図形を描画し、 前記複数枚のシートのうちの少なくとも二枚のシート上
の前記図形を、前記レイヤに対する前記基準点の高さが
高い方の前記シート上の図形を優先して前記レイヤ上に
表示することを特徴とする、2次元図面の陰線処理方
法。
1. When a plurality of figures are displayed on a layer to create a two-dimensional drawing, a sheet that extends in parallel with the layer and has a reference point at an arbitrary height position above the layer is used. A plurality of sheets are defined, and at least one figure is drawn at an arbitrary position on each of the sheets, and the figure on at least two sheets of the plurality of sheets is defined by the height of the reference point with respect to the layer. A method of processing hidden lines in a two-dimensional drawing, characterized in that the graphic on the sheet having a higher height is preferentially displayed on the layer.
【請求項2】 レイヤ上に複数の図形を表示して2次元
図面を作成するに際し、 前記レイヤに対し任意の傾きを持つとともにそのレイヤ
の上方の任意の高さの位置に基準点を持つシートを複数
枚定義して、前記各シート上の任意の位置に少なくとも
一つの図形を描画し、 前記複数枚のシートのうちの少なくとも二枚のシート上
の前記図形を、前記レイヤに対する前記シートの基準点
の高さとそのシートの傾きとそのシート上での前記図形
の位置とに基づき求めた前記レイヤに対する高さが高い
方の図形を優先して前記レイヤ上に表示することを特徴
とする、2次元図面の陰線処理方法。
2. A sheet having an arbitrary inclination with respect to the layer and a reference point at an arbitrary height position above the layer when a plurality of figures are displayed on the layer to create a two-dimensional drawing. Defining a plurality of sheets, draw at least one figure at an arbitrary position on each of the sheets, the figure on at least two sheets of the plurality of sheets, the sheet reference to the layer 2. A graphic having a higher height with respect to the layer obtained based on the height of the point, the inclination of the sheet, and the position of the graphic on the sheet is preferentially displayed on the layer. Hidden line processing method for three-dimensional drawings.
【請求項3】 前記シート上に描画した前記各図形の形
状データは、その図形の名称のデータを属性として付加
して保存することを特徴とする、請求項1もしくは請求
項2記載の2次元図面の陰線処理方法。
3. The two-dimensional according to claim 1, wherein the shape data of each figure drawn on the sheet is stored with the data of the figure name added as an attribute. Hidden line processing method for drawings.
【請求項4】 同一の前記シート上に複数の図形を描画
した場合には、 前記各図形に付加した前記名称のデータを用いて図形同
士を区別することにより、それら複数の図形間に一また
は複数種類の主従関係を与えて、その主従関係を登録し
ておき、 前記複数の図形を、前記登録した主従関係に基づいて前
記レイヤ上に表示することを特徴とする、請求項3記載
の2次元図面の陰線処理方法。
4. When a plurality of figures are drawn on the same sheet, the figures are distinguished from each other by using the data of the name added to each figure, so that one or The plurality of types of master-slave relationships are given, the master-slave relationship is registered in advance, and the plurality of figures are displayed on the layer based on the registered master-slave relationship. Hidden line processing method for three-dimensional drawings.
【請求項5】 レイヤ上に複数の図形を表示して2次元
図面を作成するに際し、 前記レイヤと平行に延在するとともにそのレイヤの上方
の任意の高さの位置に基準点を持つ平面を領域を限らず
に複数定義して、前記各平面に平面毎に異なる色彩を対
応させるとともに前記各平面上の任意の位置にその平面
に対応した色彩で少なくとも一つの図形を描画し、 前記複数の平面のうちの、前記色彩によって指定した少
なくとも二つの平面上の前記図形を、前記レイヤに対す
る前記基準点の高さが高い方の前記平面上の図形を優先
して前記レイヤ上に表示することを特徴とする、2次元
図面の陰線処理方法。
5. When a plurality of figures are displayed on a layer to create a two-dimensional drawing, a plane extending parallel to the layer and having a reference point at an arbitrary height position above the layer is formed. A plurality of areas are defined without limitation, each plane is associated with a different color for each plane, and at least one figure is drawn at an arbitrary position on each plane with a color corresponding to the plane, Among the planes, the figures on at least two planes designated by the color are displayed on the layer by giving priority to the figure on the plane having a higher height of the reference point with respect to the layer. A method for processing hidden lines in a two-dimensional drawing.
【請求項6】 レイヤ上に複数の図形を表示して2次元
図面を作成するに際し、 前記レイヤに対し任意の傾きを持つとともにそのレイヤ
の上方の任意の高さの位置に基準点を持つ平面を領域を
限らずに複数定義して、前記各平面に平面毎に異なる色
彩を対応させるとともに前記各平面上の任意の位置にそ
の平面に対応した色彩で少なくとも一つの図形を描画
し、 前記複数の平面のうちの、前記色彩によって指定した少
なくとも二つの平面上の前記図形を、前記レイヤに対す
る前記平面の基準点の高さとその平面の傾きとその平面
上での前記図形の位置とに基づき求めた前記レイヤに対
する高さが高い方の図形を優先して前記レイヤ上に表示
することを特徴とする、2次元図面の陰線処理方法。
6. A plane having an arbitrary inclination with respect to the layer and having a reference point at an arbitrary height position above the layer when a plurality of figures are displayed on the layer to create a two-dimensional drawing. Defining a plurality of areas without limiting the area, each plane is associated with a different color for each plane, and at least one figure is drawn at an arbitrary position on each plane with a color corresponding to the plane, Of the planes on at least two planes designated by the color are obtained based on the height of the reference point of the plane with respect to the layer, the inclination of the plane, and the position of the figure on the plane. A hidden line processing method for a two-dimensional drawing, characterized in that a graphic having a higher height with respect to the layer is preferentially displayed on the layer.
【請求項7】 前記平面上に描画した前記各図形の形状
データは、その図形の名称のデータを属性として付加し
て保存することを特徴とする、請求項5もしくは請求項
6記載の2次元図面の陰線処理方法。
7. The two-dimensional according to claim 5, wherein the shape data of each figure drawn on the plane is stored with the data of the figure name added as an attribute. Hidden line processing method for drawings.
【請求項8】 同一の前記平面上に複数の図形を描画し
た場合には、 前記各図形に付加した前記名称のデータを用いて図形同
士を区別することにより、それら複数の図形間に一また
は複数種類の主従関係を与えて、その主従関係を登録し
ておき、 前記複数の図形を、前記登録した主従関係に基づいて前
記レイヤ上に表示することを特徴とする、請求項7記載
の2次元図面の陰線処理方法。
8. When a plurality of figures are drawn on the same plane, the figures are distinguished from each other by using the data of the name added to each of the figures, so that one or The plurality of types of master-slave relationships are given, the master-slave relationship is registered, and the plurality of figures are displayed on the layer based on the registered master-slave relationship. Hidden line processing method for three-dimensional drawings.
JP6298176A 1994-03-18 1994-12-01 Shadow line processing method for two-dimensional drawing Pending JPH07306957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6298176A JPH07306957A (en) 1994-03-18 1994-12-01 Shadow line processing method for two-dimensional drawing

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-48824 1994-03-18
JP4882494 1994-03-18
JP6298176A JPH07306957A (en) 1994-03-18 1994-12-01 Shadow line processing method for two-dimensional drawing

Publications (1)

Publication Number Publication Date
JPH07306957A true JPH07306957A (en) 1995-11-21

Family

ID=26389150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6298176A Pending JPH07306957A (en) 1994-03-18 1994-12-01 Shadow line processing method for two-dimensional drawing

Country Status (1)

Country Link
JP (1) JPH07306957A (en)

Similar Documents

Publication Publication Date Title
EP0640943B1 (en) Shape modeling apparatus and method
US4951233A (en) Document producing apparatus having in-document layout display
JPH05205012A (en) Method of changing cad data
US20020175948A1 (en) Graphical user interface method and apparatus for interaction with finite element analysis applications
JPH09111617A (en) Knit designing and apparatus therefor
US20060066610A1 (en) Method, device, and computer program product for displaying 3D grid in designing configuration model
CN107451317A (en) Select control method, device for selection controlling and recording medium
JP4285022B2 (en) Object display device and program
JPH07306957A (en) Shadow line processing method for two-dimensional drawing
JPH07220115A (en) Three-dimensional cad system
JP2996647B2 (en) Figure group editing method
JP3269686B2 (en) Image creation device
JP3706844B2 (en) Drawing information processing method and drawing information processing apparatus
JPH06325144A (en) Layout design system
JP2790940B2 (en) Data display method and device
JP2004280543A (en) Structure analysis condition setting method
JP3142191B2 (en) Graphic processing unit
JP2902856B2 (en) Data entry editing device
JPH11306221A (en) Dividing device for three-dimensional cad model
JPS63241660A (en) Layout correcting device
JPH08137976A (en) Document processor
JPH0594507A (en) Method and device for extracting graphic in electronic composing device
JP2001067394A (en) Method and system for processing drawing information
JPH086928A (en) Method and device for processing document
JPH07168812A (en) Document processor