JPH07320089A - Line-hiding editing system - Google Patents

Line-hiding editing system

Info

Publication number
JPH07320089A
JPH07320089A JP6136495A JP13649594A JPH07320089A JP H07320089 A JPH07320089 A JP H07320089A JP 6136495 A JP6136495 A JP 6136495A JP 13649594 A JP13649594 A JP 13649594A JP H07320089 A JPH07320089 A JP H07320089A
Authority
JP
Japan
Prior art keywords
line
intersection
hidden
graphic element
area
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
JP6136495A
Other languages
Japanese (ja)
Inventor
Hajime Osada
肇 長田
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP6136495A priority Critical patent/JPH07320089A/en
Publication of JPH07320089A publication Critical patent/JPH07320089A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To facilitate the operation and shorten the time for a line-hiding process by providing a specific cover surface specification part and a specific line-hiding process part. CONSTITUTION:The cover surface specification part 5 is equipped with a function which accepts data on a cover surface as a line-hiding area inputted through an input part 4 and stores the data in a memory table 3 through a component arrangement part 6. The line-hiding process part 7 is equipped with an intersection decision part 7a, an intersection extraction part 7b, and a line- hiding execution part 7c. And, the intersection decision part 7a has a function which decides whether or not a figure element crosses an area line constituting the cover surface, and an intersection extraction part 7b a 1st flag to the start point of the figure element and the intersection with another figure element and a 2nd flag to the intersection with the area line when the intersection decision part 7a decides that there is the intersection. Further, the line hiding execution part 7c has a function for the line hiding process in the section of a part having the 2nd flag halfway and given the 1st flags at both the ends between the start point and end point of the figure element.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、重なり合う図形の隠線
化処理を行う図形の隠線化編集システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a figure hidden line editing system which performs a hidden line overlapping process.

【0002】[0002]

【従来の技術】CADシステムでは、種々の設計を行う
と共に、各種の図形を配置して、所定の図面を作成す
る。そして、このような図形の配置を行った場合、複数
の図形同士が重なり合う場合があり、このような時は、
前面側図形によって覆われる後面側図形の領域を消去ま
たは破線化といったように、隠線化処理を行う必要があ
る。
2. Description of the Related Art In a CAD system, various designs are made and various figures are arranged to create a predetermined drawing. And when such figures are arranged, a plurality of figures may overlap each other. In such a case,
It is necessary to perform hidden line processing such as erasing or making a broken line in the area of the back side graphic covered by the front side graphic.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
隠線化処理システムでは、この隠線化処理の実行に、複
雑な操作と多くの時間を要するため、操作が容易でか
つ、隠線化処理の時間短縮を図ることができる図形の隠
線化編集システムの実現が要望されていた。
However, in the conventional hidden line processing system, the hidden line processing requires a complicated operation and a lot of time, so that the operation is easy and the hidden line processing is performed. There has been a demand for the realization of a hidden line editing system for figures that can reduce the time required.

【0004】[0004]

【課題を解決するための手段】本発明の図形の隠線化編
集システムは、前述の課題を解決するために、覆い隠さ
れる領域を指示するための覆い面を指定するための覆い
面指定部を設ける。また、図形を構成する任意の図形要
素が他の図形要素と交差し、かつ、その交点間に、覆い
面指定部で指定された覆い面の領域線が交差している場
合は、任意の図形要素における他の図形要素との交点間
の線を隠線化処理し、また、覆い面の領域内に任意の図
形要素の端点が位置し、かつ、その端点と、図形要素と
他の図形要素との交点との間に、覆い面の領域線が交差
している場合は、端点と他の図形要素との交点間の線を
隠線化処理し、更に、覆い面の領域内に任意の図形要素
の両端点が位置した場合は、その図形要素全体を隠線化
処理する隠線化処理部とを設けたものである。
In order to solve the above-mentioned problems, the hidden line editing system for figures according to the present invention is a cover surface designating unit for designating a cover surface for designating an area to be covered. To provide. In addition, if any figure element that composes a figure intersects another figure element and the area line of the covering surface specified by the covering surface designating section intersects between the intersections, any figure The line between the intersections with other graphic elements in the element is hidden, and the end points of any graphic element are located in the area of the covering surface, and the end points, and the graphic elements and other graphic elements When the area line of the covering surface intersects with the intersection point of and, the line between the intersection points of the end points and other graphic elements is hidden, and the line between the When both end points of the graphic element are located, a hidden line processing unit for performing a hidden line processing on the entire graphic element is provided.

【0005】[0005]

【作用】本発明の図形の隠線化編集システムにおいて
は、オペレータが覆い面を指定すると、覆い面指定部
は、その覆い面の指定を受け付ける。これにより、隠線
化処理部は、図形を構成する任意の図形要素が他の図形
要素と交差し、かつ、その交点間に、覆い面を構成する
領域線が交差している場合は、その任意の図形要素にお
ける他の図形要素との交点間の線を隠線化処理する。ま
た、覆い面の領域内に任意の図形要素の端点が位置し、
かつ、その端点と、図形要素と他の図形要素との交点と
の間に、覆い面の領域線が交差している場合は、端点と
他の図形要素との交点間の線を隠線化処理する。更に、
覆い面の領域内に任意の図形要素の両端点が位置した場
合は、その図形要素全体を隠線化処理する。
In the figure hidden line editing system of the present invention, when the operator designates the covering surface, the covering surface designating section accepts the designation of the covering surface. As a result, the hidden line processing unit, if any figure element forming the figure intersects another figure element and the area line forming the covering surface intersects between the intersections, The line between the intersections of arbitrary graphic elements with other graphic elements is hidden. Also, the end points of arbitrary graphic elements are located in the area of the covering surface,
And if the area line of the covering surface intersects between the end point and the intersection of the graphic element and another graphic element, the line between the end point and the intersection of the other graphic element is hidden. To process. Furthermore,
When both end points of an arbitrary graphic element are located in the area of the covering surface, the entire graphic element is hidden.

【0006】[0006]

【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。 《実施例》図1は本発明の図形の隠線化編集システムの
実施例を示すブロック図である。図のシステムは、図面
データベース1、図面引用部2、メモリテーブル3、入
力部4、覆い面指定部5、部品配置部6、隠線化処理部
7、隠線化テーブル8、表示制御部9、表示モニタ10
からなる。
Embodiments of the present invention will now be described in detail with reference to the drawings. << Embodiment >> FIG. 1 is a block diagram showing an embodiment of a hidden line editing system for graphics according to the present invention. The system shown in the figure includes a drawing database 1, a drawing citation unit 2, a memory table 3, an input unit 4, a cover surface designation unit 5, a component placement unit 6, a hidden line processing unit 7, a hidden line table 8, and a display control unit 9. , Display monitor 10
Consists of.

【0007】図面データベース1は、CADシステムで
作成した図面データをファイルに管理する図面のデータ
ベースである。図面引用部2は、図面データベース1か
ら任意の図面を取り出し、図面を引用するものである。
また、メモリテーブル3は、図面引用部2によって引用
された図面や、部品配置部6によって配置された図面デ
ータを格納するメモリである。入力部4は、数値や文字
を入力するキーボード4aや、画面上の位置を入力する
マウス4b等からなる入力部である。
The drawing database 1 is a drawing database that manages drawing data created by a CAD system in a file. The drawing citation section 2 retrieves an arbitrary drawing from the drawing database 1 and cites the drawing.
The memory table 3 is a memory for storing the drawings cited by the drawing citation unit 2 and the drawing data arranged by the component arranging unit 6. The input unit 4 is an input unit including a keyboard 4a for inputting numerical values and characters, a mouse 4b for inputting a position on the screen, and the like.

【0008】覆い面指定部5は、入力部4によって入力
された隠線化領域である覆い面のデータを受け付け、こ
れを部品配置部6を介してメモリテーブル3に格納させ
るための機能を備えている。尚、覆い面については後述
する。部品配置部6は、画面上に引用した部品形状を、
入力部4からのオペレータの指示に基づいて指定し、部
品の取付位置に配置するよう構成されている。
The cover surface designation unit 5 has a function of receiving data of the cover surface, which is a hidden line area, input by the input unit 4 and storing the data in the memory table 3 via the component placement unit 6. ing. The cover surface will be described later. The component placement unit 6 changes the component shape quoted on the screen to
It is configured to be designated based on the operator's instruction from the input unit 4 and to be arranged at the component mounting position.

【0009】隠線化処理部7は、図形を構成する任意の
図形要素が他の図形要素と交差し、かつ、その交点間
に、覆い面を構成する領域線が交差している場合は、そ
の任意の図形要素における他の図形要素との交点間の線
を隠線化処理し、また、覆い面の領域内に任意の図形要
素の端点が位置し、かつ、その端点と、前記した任意の
図形要素と他の図形要素との交点との間に、覆い面の領
域線が交差している場合は、端点と他の図形要素との交
点間の線を隠線化処理し、更に、覆い面の領域内に任意
の図形要素の両端点が位置した場合は、その図形要素全
体を隠線化処理する機能を有している。
The hidden line processing unit 7 determines that, when an arbitrary graphic element forming a graphic intersects with another graphic element, and a region line forming a covering surface intersects between the intersections. The line between the intersections of the arbitrary graphic element and other graphic elements is hidden, and the end point of the arbitrary graphic element is located in the area of the covering surface, and that end point and the above-mentioned arbitrary If the area line of the covering surface intersects between the intersection of the graphic element of and the other graphic element, the line between the end point and the intersection of the other graphic element is hidden, and further, When both end points of an arbitrary graphic element are located within the area of the covering surface, the function of performing the hidden line processing on the entire graphic element is provided.

【0010】また、隠線化処理部は、交差判定部7a
と、交点抽出部7bと、隠線化実行部7cとを備えてい
る。ここで、交差判定部7aは、図形要素が、覆い面を
構成する領域線と交差するか否かを判定する機能を有
し、交点抽出部7bは、交差判定部7aでの判定結果が
交差であった場合は、図形要素と他の図形要素との交点
と、領域線との交点を抽出すると共に、図形要素の始点
と終点および他の図形要素との交点に第1のフラグを、
領域線との交点に第2のフラグを付与するものである。
また、隠線化実行部7cは、図形要素の始点から終点間
で、中間に第2のフラグを有する両側の第1のフラグを
付与した部分の区間を隠線化処理する機能を有している
ものである。
Further, the hidden line processing unit is the intersection determination unit 7a.
And an intersection extraction unit 7b and a hidden line execution unit 7c. Here, the intersection determination unit 7a has a function of determining whether or not the graphic element intersects with a region line that forms the covering surface, and the intersection extraction unit 7b determines that the determination result of the intersection determination unit 7a intersects. If it is, the intersections of the graphic element and other graphic elements and the intersections of the area lines are extracted, and the first flag is set at the start and end points of the graphic element and the intersections with other graphic elements.
A second flag is added to the intersection with the area line.
Further, the hidden line execution unit 7c has a function of performing the hidden line processing on the section between the start point and the end point of the graphic element to which the first flag is added on both sides having the second flag in the middle. There is something.

【0011】隠線化テーブル8は、隠線化処理部7が隠
線化処理を行う場合に使用するテーブルである。また、
表示制御部9は、隠線化処理部で処理された図形やメモ
リテーブル3に記憶されている図形を表示モニタ10に
表示させるための制御部である。
The hidden line table 8 is a table used when the hidden line processing unit 7 performs the hidden line processing. Also,
The display control unit 9 is a control unit for displaying the graphic processed by the hidden line processing unit and the graphic stored in the memory table 3 on the display monitor 10.

【0012】次に、上記の覆い面指定部5の動作を説明
する。図2は、覆い面指定部5の操作説明図である。図
において、101は表示モニタ10上のマウス4bの位
置を示すマウスカーソル、102は覆い面を矩形で囲ん
だ矩形領域、103は覆い面を多角形で囲んだ多角形領
域である。覆い面指定部5は、部品図Aと部品図Bが重
なり合った部分を隠線化する場合(この時、部品図Aが
前面側に、部品図Bが後面側に配置されるものとす
る)、図2の(a)のように重なり部分の面形状が比較
的単純なものについては、マウスカーソル101によ
り、矩形領域102の対角線(P1、P2)を指定す
る。また、図2の(b)のように、重なり部分の面形状
が斜めであったり、入り組んでいるものについては、マ
ウスカーソル101により、多角形領域103の各端点
(P3〜P8)を指定する。
Next, the operation of the cover surface designating section 5 will be described. FIG. 2 is an operation explanatory diagram of the covering surface designation unit 5. In the figure, 101 is a mouse cursor indicating the position of the mouse 4b on the display monitor 10, 102 is a rectangular area in which the covering surface is surrounded by a rectangle, and 103 is a polygonal area in which the covering surface is surrounded by a polygon. The cover surface designating unit 5 makes the part in which the part drawing A and the part drawing B overlap with each other by hidden lines (at this time, the part drawing A is arranged on the front side and the part drawing B is arranged on the rear side). As shown in FIG. 2A, when the surface shape of the overlapping portion is relatively simple, the diagonal line (P1, P2) of the rectangular area 102 is designated by the mouse cursor 101. Further, as shown in FIG. 2B, when the surface shape of the overlapping portion is oblique or complicated, each end point (P3 to P8) of the polygonal area 103 is designated by the mouse cursor 101. .

【0013】この場合、覆い面の指定領域を正確に囲む
必要はなく、隠線化する線にかかっていれば、実際の面
より内側をラフに囲むだけでよい。また、ここで、矩形
領域102で囲むか、多角形領域103で囲むかは、任
意に選択できるよう構成されているものとする。
In this case, it is not necessary to exactly enclose the designated area of the covering surface, and if the line to be hidden is covered, it is only necessary to roughly enclose the inside of the actual surface. In addition, here, it is assumed that it can be arbitrarily selected whether it is surrounded by the rectangular area 102 or the polygonal area 103.

【0014】次に、本実施例の動作について説明する。
図3は、隠線化処理における覆い面指定の説明図であ
る。先ず、部品図Cと部品図Dとが図面データベース1
に格納されているとする。尚、部品図Cは、矩形形状
(L1〜L4で構成)に矩形孔(L5〜L8で構成)が
一つと、丸孔(C1、C2)二つを有する部品を示し、
部品図Dは、矩形形状(L9〜L12で構成)に矩形孔
(L13〜L16で構成)一つを有する部品を示してい
る。
Next, the operation of this embodiment will be described.
FIG. 3 is an explanatory diagram of the cover surface designation in the hidden line processing. First, the part database C and the part diagram D are the drawing database 1
Stored in. Part diagram C shows a part having one rectangular hole (consisting of L5 to L8) and two round holes (C1 and C2) in a rectangular shape (consisting of L1 to L4),
Part diagram D shows a part having one rectangular hole (configured by L13 to L16) in a rectangular shape (configured by L9 to L12).

【0015】このような状態で、図面引用部2は、これ
らの部品図Cと部品図Dのデータを取り出し、メモリテ
ーブル3に格納する。次に、オペレータは、入力部4を
操作し、部品配置部6によって、部品図Cと部品図Dと
の配置を行う。これにより、表示制御部9は、図3の
(b)に示すように部品図Cと部品図Dとが組み合わさ
れた図面を表示モニタ10に表示する。
In such a state, the drawing reference unit 2 takes out the data of the parts drawing C and the parts drawing D and stores them in the memory table 3. Next, the operator operates the input unit 4 and arranges the component drawing C and the component drawing D by the component arrangement unit 6. As a result, the display control unit 9 causes the display monitor 10 to display a drawing in which the component drawing C and the component drawing D are combined, as shown in FIG.

【0016】その後、オペレータは、上述した覆い面指
定部5の動作によって、図3の(c)に示すように、覆
い面を指定する。尚、この場合の指定は矩形領域102
a(L17〜L20で構成)としている。そして、この
ような部品図Cと部品図Dの図形要素(L1〜L16、
C1、C2)の座標データおよび矩形領域102a(L
17〜L20)の座標データは、メモリテーブル3に格
納される。
After that, the operator designates the covering surface as shown in FIG. 3C by the operation of the covering surface designating section 5 described above. The designation in this case is the rectangular area 102.
a (composed of L17 to L20). Then, the graphic elements (L1 to L16,
C1, C2) coordinate data and rectangular area 102a (L
The coordinate data (17 to L20) are stored in the memory table 3.

【0017】次に、隠線化処理部7の動作を説明する。
図4は、隠線化処理部7の動作フローチャートである。
先ず、隠線化処理部7の交差判定部7aは、メモリテー
ブル3より、図形要素(L1〜L16、C1、C2)を
一つ取り出し(ステップS1)、その図形要素が覆い面
の領域線(L17〜L20)に交差するかどうかを判断
する(ステップS3)。尚、ここではステップS2にお
いて、図形要素のメモリテーブル3内の抽出は終了して
いないとする。上記ステップS3において、交差する図
形要素(L1、L3およびC1)の場合は、一旦、その
図形要素をメモリテーブル3上から消去し(ステップS
4)、交点抽出部7bが、覆い面の領域線(L17〜L
20)と対象とする図形要素との交点およびメモリテー
ブル3内の他の図形要素と対象とする図形要素との交点
を全て計算する(ステップS5)。
Next, the operation of the hidden line processing unit 7 will be described.
FIG. 4 is an operation flowchart of the hidden line processing unit 7.
First, the intersection determination unit 7a of the hidden line processing unit 7 extracts one graphic element (L1 to L16, C1, C2) from the memory table 3 (step S1), and the graphic element covers the area line ( It is determined whether or not it intersects L17 to L20) (step S3). It is assumed here that the extraction of the graphic element from the memory table 3 has not been completed in step S2. In the step S3, in the case of intersecting graphic elements (L1, L3 and C1), the graphic elements are once erased from the memory table 3 (step S3).
4), the intersection extraction unit 7b displays the area lines (L17 to L) of the covering surface.
20) and the target graphic element and all the cross points of other graphic elements in the memory table 3 and the target graphic element are calculated (step S5).

【0018】図5は、覆い面の領域線に交差する直線L
1を隠線化処理する場合の説明図である。ここでは、領
域線L17との交点P9、領域線L19との交点P1
0、部品図Dの直線L9との交点P11および直線L1
3との交点P12が計算される。次に、ステップS5で
計算された交点と、図形要素の始点・終点を隠線化テー
ブル8に格納し、始点から終点方向に並び替える(ステ
ップS6)。
FIG. 5 shows a straight line L that intersects the area line of the covering surface.
It is explanatory drawing at the time of performing a hidden line process of 1. Here, an intersection P9 with the area line L17 and an intersection P1 with the area line L19
0, the intersection point P11 with the straight line L9 of the part drawing D and the straight line L1
The intersection P12 with 3 is calculated. Next, the intersection calculated in step S5 and the start / end points of the graphic element are stored in the hidden line table 8 and rearranged from the start point to the end point direction (step S6).

【0019】即ち、図5を参照して説明すると、直線L
1の始点P13と終点P14およびステップS5で計算
した交点P9〜P12の合計6点の座標を隠線化テーブ
ル8に格納する。そして、この時、各点に付与する隠線
化フラグとして、端点(始点または終点)および他の図
形要素との交点には第1のフラグである“1”を、覆い
面の領域線との交点には第2のフラグである“0”を格
納する。その後、隠線化テーブル8の内容を座標値が始
点から終点方向に並ぶように並び替えを行う。
That is, referring to FIG. 5, the straight line L
Coordinates of a total of 6 points including the start point P13 and the end point P14 of 1 and the intersection points P9 to P12 calculated in step S5 are stored in the hidden line table 8. Then, at this time, as a hidden line flag added to each point, "1" which is the first flag at the end point (start point or end point) and the intersection with another graphic element is set to the area line of the covering surface. A second flag "0" is stored at the intersection. Then, the contents of the hidden line conversion table 8 are rearranged so that the coordinate values are arranged from the start point to the end point.

【0020】次に、隠線化実行部7cは、隠線化テーブ
ル8より、隠線化される図形要素を一つ取り出し(ステ
ップS7)、前面図形要素か後面図形要素かの判定を行
う(ステップS9)。これを図5を参照して説明する
と、隠線化テーブル8の並び替え後の内容で、その先頭
から検索し、隠線化フラグが“1”から“0”または
“0”から“1”に変わる境目の座標を結ぶ図形(P1
3−P12、P12−P11およびP11−P14)が
取り出され、中間に隠線化フラグ“0”を有する図形
(P12−P11)が後面に隠される図形で、その他が
前面に表示される図形であることが分かる。尚、図4の
フローチャートにおいて、ステップS8の隠線化テーブ
ル内のデータ抽出終了判定は、抽出すべきデータが残っ
ているとしている。
Next, the hidden line execution unit 7c extracts one graphic element to be hidden from the hidden line table 8 (step S7) and determines whether it is a front graphic element or a rear graphic element (step S7). Step S9). This will be described with reference to FIG. 5. With the contents of the hidden line table 8 after rearrangement, the hidden line flag is searched from the beginning and the hidden line flag is “1” to “0” or “0” to “1”. A figure that connects the coordinates of the boundary that changes to (P1
3-P12, P12-P11 and P11-P14) are taken out, and the figure (P12-P11) having the hidden line flag "0" in the middle is the figure hidden on the rear side, and the others are the figures displayed on the front side. I know there is. In the flowchart of FIG. 4, the data extraction end determination in the hidden line table in step S8 assumes that the data to be extracted remains.

【0021】ステップS9で、前面図形要素であると判
定された図形要素は、実線形状として新たにメモリテー
ブル3に登録する(ステップS10)。一方、後面図形
要素であると判定された図形要素は、現在の処理方法が
消去モードであるか破線化モードであるかを判定し(ス
テップS11)、破線化モードである場合は、破線形状
として新たにメモリテーブル3に登録する(ステップS
12)。また消去モードである場合は、既に、ステップ
S4において図形要素全体を消去しているので、特に処
理する必要はない。尚、現在の処理方法を消去モードに
するか破線化モードにするかは、任意に選択可能となっ
ている。
The graphic element determined to be the front graphic element in step S9 is newly registered in the memory table 3 as a solid line shape (step S10). On the other hand, the graphic element determined to be the rear surface graphic element is determined whether the current processing method is the erase mode or the broken line mode (step S11). It is newly registered in the memory table 3 (step S
12). Further, in the case of the erasing mode, the entire graphic element has already been erased in step S4, so that no special processing is required. It is possible to arbitrarily select whether the current processing method is the erasing mode or the broken line mode.

【0022】以上のステップS7〜ステップS12の処
理は、隠線化テーブル8のデータを全て抽出するまで行
い、ステップS8において、抽出する図形要素が無くな
ったと判定された場合はステップS1に戻って、メモリ
テーブル3より、次の図形要素を取り出し、上述の処理
を繰り返す。そして、同様にステップS1〜ステップS
12の処理を行うことによって、部品図Cにおける直線
図形要素のL1とL3および円図形要素のC1とが隠線
化処理される。尚、円図形要素の場合であっても、始点
と終点が同一座標の円弧であると見なすことによって、
上記の直線図形要素と同様に処理することができる。
The above steps S7 to S12 are repeated until all the data in the hidden line table 8 are extracted. If it is determined in step S8 that there are no more graphic elements to be extracted, the process returns to step S1. The next graphic element is fetched from the memory table 3 and the above-mentioned processing is repeated. Then, similarly, step S1 to step S
By performing the processing of 12, the hidden line processing is performed on the linear graphic elements L1 and L3 and the circular graphic element C1 in the part drawing C. Even in the case of a circular graphic element, by considering that the start point and the end point are arcs with the same coordinates,
It can be processed in the same manner as the linear graphic element described above.

【0023】また、ステップS3において、覆い面の領
域線と交差しない図形要素であると判定された場合は、
ステップS13に移行し、その図形要素が覆い面の領域
に完全に含まれるかどうかの判定を行う。ここでも、
「否」であると判定された場合は、覆い面の領域にはか
からない図形要素であるのでステップS1に戻る。一
方、ステップS13において、覆い面の領域に完全に含
まれている図形要素であった場合には、現在の処理方法
が消去モードであるか破線化モードであるかを判定し
(ステップS14)、破線化モードの場合は、図形要素
を破線形状に変更する(ステップS15)。また、消去
モードの場合は、図形要素をメモリテーブル3上から消
去する(ステップS16)。以上、ステップS13〜ス
テップS16の処理により、部品図Cにおける矩形孔
(L5〜L8)が消去または破線化される。
If it is determined in step S3 that the figure element does not intersect the area line of the covering surface,
In step S13, it is determined whether the graphic element is completely included in the area of the covering surface. even here,
If it is determined to be "no", the graphic element does not occupy the area of the covering surface, and the process returns to step S1. On the other hand, in step S13, when the figure element is completely included in the area of the covering surface, it is determined whether the current processing method is the erase mode or the broken line mode (step S14). In the case of the broken line mode, the graphic element is changed to the broken line shape (step S15). In the erase mode, the graphic element is erased from the memory table 3 (step S16). As described above, the rectangular holes (L5 to L8) in the component drawing C are erased or broken by the processing of steps S13 to S16.

【0024】尚、上記実施例では、部品図Cの直線L1
の端点が前面側となる例であるが、この端点が隠線化さ
れる後面側となる場合でも上記と同様の方法で隠線化処
理を行うことができる。図6にその例を示す。このよう
な場合、直線L1の隠線化テーブル8の内容は、図5に
対応させると、P13、P9、P11、P14(並び替
え後)となり、その隠線化フラグは、1、0、1、1と
なる。
In the above embodiment, the straight line L1 of the parts drawing C is used.
Although the end point of is on the front side, the hidden line can be processed by the same method as above even when this end point is on the rear side of the hidden line. FIG. 6 shows an example thereof. In such a case, the content of the hidden line table 8 of the straight line L1 becomes P13, P9, P11, P14 (after rearrangement) in correspondence with FIG. 5, and the hidden line flag is 1, 0, 1 It becomes 1.

【0025】このような場合でも、隠線化処理部7は、
矩形領域102a内に直線L1の端点P13が位置し、
かつ、その端点と、直線L1と他の図形要素との交点P
11との間に、領域線L9が交差しているため、端点P
13と他の図形要素との交点P11間の線P13−P1
1を隠線化処理する。また、直線L4は、矩形領域10
2a内に直線の両端点が位置しているため、上述したス
テップS13〜ステップS16の処理により、その直線
L4も隠線化処理される。
Even in such a case, the hidden line processing unit 7
The end point P13 of the straight line L1 is located in the rectangular area 102a,
Moreover, the intersection point P between the end point and the straight line L1 and another graphic element
Since the area line L9 intersects with 11, the end point P
Line P13-P1 between intersection points P11 of 13 and other graphic elements
Hidden line 1 is processed. Further, the straight line L4 is the rectangular area 10
Since both end points of the straight line are located in 2a, the straight line L4 is also hidden by the processing of steps S13 to S16 described above.

【0026】このように、本実施例の図形の隠線化編集
システムでは、容易かつ正確に隠線化処理を行えるもの
であるが、これを詳細に説明するため、オペレータが目
視で隠線化処理を行う方法を比較例として次に説明す
る。
As described above, the hidden line editing system for graphics of the present embodiment can easily and accurately perform the hidden line processing. However, in order to explain this in detail, the operator can visually perform the hidden line processing. A method of performing the processing will be described below as a comparative example.

【0027】《比較例》図7は、比較例のシステムのブ
ロック図である。図のシステムは、図面データベース1
〜図形破線化部14からなり、図面データベース1〜入
力部4、部品配置部6、表示制御部9、表示モニタ10
の構成は、上記実施例と同様である。図形指示部11
は、入力部4により、画面上の図形を指示するものであ
る。また、部品配置部6は、画面上に引用した部品形状
を、この図形指示部11によって指定し、部品の取付位
置に配置するよう構成されている。図形切断部12は、
部品の重なり部分の図形を切断する機能を有し、図形消
去部13は、部品の重なり部分を消去する機能を有し、
図形破線化部14は、部品の重なり部分を破線にする機
能を備えているものである。
<< Comparative Example >> FIG. 7 is a block diagram of a system of a comparative example. The drawing system is the drawing database 1
The drawing database 1 to the input unit 4, the component placement unit 6, the display control unit 9, the display monitor 10
The configuration of is the same as that of the above embodiment. Figure designator 11
Is for designating a graphic on the screen by the input unit 4. Further, the component placement unit 6 is configured to specify the component shape quoted on the screen by the graphic designating unit 11 and place the component shape at the component mounting position. The graphic cutting unit 12
The graphic erasing unit 13 has a function of cutting the graphic of the overlapping part of the component, and the graphic erasing unit 13 has a function of erasing the overlapping part of the component.
The graphic broken line forming section 14 has a function of making the overlapping portion of the parts into a broken line.

【0028】このように構成されたシステムで、隠線化
処理を行う場合は次のように行う。図8は、その隠線化
編集処理の説明図である。先ず、組立図等の製図を行う
場合、必要な部品図(A、B)の図形データを図面デー
タベース1から図面引用部2により画面上に引用し、図
形指示部11で部品形状を指示し、部品配置部6によ
り、各部品形状を適切な位置に配置する。ここで、部品
が重なる部分は、後面側に配置される部品図Bの形状を
一部分消去または破線化する必要がある。
In the system configured as above, the hidden line processing is performed as follows. FIG. 8 is an explanatory diagram of the hidden line editing process. First, when drawing a drawing such as an assembly drawing, the drawing data of the necessary parts drawing (A, B) is quoted from the drawing database 1 by the drawing quoting unit 2 on the screen, and the shape designating unit 11 instructs the shape of the component. The component placement unit 6 places each component shape at an appropriate position. Here, in the part where the parts are overlapped, it is necessary to partially erase or make a broken line in the shape of the part drawing B arranged on the rear surface side.

【0029】この、形状の一部を消去または破線化する
方法としては、システムにより様々な方法があるが、一
般には、後面側に配置される部品の形状を構成する図形
要素を1要素ずつ(この場合、L20、L21、L2
2、C3)、図形指示部11で指示しながら、図形切断
部12により、前面側に配置される部品の形状の交点
(P15〜P21)で切断する。そして、前面側に表示
される部分と後面側に隠される部分の形状に分割した
後、図形消去部13または図形破線化部14により消去
または破線化を行う。
There are various methods for erasing or making a part of the shape into a broken line depending on the system. Generally, however, each of the graphic elements constituting the shape of the component arranged on the rear surface side ( In this case, L20, L21, L2
2, C3), the graphic cutting unit 12 cuts at the intersections (P15 to P21) of the shapes of the components arranged on the front side, while instructing by the graphic designating unit 11. Then, after dividing into a shape of a portion displayed on the front side and a shape hidden on the rear side, the shape is erased or broken by the graphic erasing unit 13 or the graphic broken line forming unit 14.

【0030】具体的には、先ず、部品図Bの図形要素L
20を部品図Aの図形要素L23、L24の交点P1
5、P16で切断し、隠される部分の形状P15−P1
6部分を消去または破線化する。次に、図形要素L21
について、P17−P18部分を切断後、消去または破
線化する。そして、同様に、L22およびC3について
も消去または破線化を行う。
Specifically, first, the graphic element L of the parts drawing B is shown.
20 is the intersection P1 of the graphic elements L23 and L24 of the part drawing A
5, the shape of the hidden part P15-P1 cut at P16
6 parts are erased or broken. Next, the graphic element L21
For, regarding P17 to P18, the P17-P18 portion is cut and then erased or broken. Similarly, L22 and C3 are erased or broken.

【0031】このような方法では、隠線化する図形要素
一つ一つに対して切断、消去または破線化を行う必要が
あり、非常に時間がかかるのに対して、実施例の図形の
隠線化編集システムでは、オペレータは、隠線化したい
領域を覆い面で指定するだけで済み、従って、隠線化処
理を速やかに行うことができるものである。
In such a method, it is necessary to cut, erase, or make a broken line for each figure element to be hidden, and it takes a very long time, while the figure hidden in the embodiment is hidden. In the line-editing system, the operator only needs to specify the area to be hidden by the covering surface, and therefore the hidden-line processing can be performed quickly.

【0032】また、上記実施例では、図形要素の始点と
終点および他の図形要素との交点には第1のフラグを、
また、覆い面の領域線との交点に第2のフラグを付与
し、図形要素の始点から終点間で、中間に第2のフラグ
を有する両側の第1のフラグを付与した部分の区間を隠
線化処理するように構成しているため、簡単な構成で有
りながら、正確にその図形要素の隠線化処理を行うこと
ができるものである。
In the above embodiment, the first flag is set at the start point and end point of the graphic element and at the intersections with other graphic elements.
Also, a second flag is added to the intersection with the area line on the covering surface, and the section between the start point and the end point of the graphic element where the first flag is added on both sides having the second flag in the middle is hidden. Since it is configured to perform the linearization processing, it is possible to accurately perform the hidden processing of the graphic element with a simple configuration.

【0033】尚、上記実施例では、隠線化処理を行う図
形要素において、直線図形要素と円図形要素の場合を説
明したが、これらの形状に限定されるものではなく、種
々の曲線等であっても同様に適用できる。
In the above-described embodiment, the case of the straight line graphic element and the circular graphic element in the graphic element for performing the hidden line processing has been described, but the shape is not limited to these shapes, and various curved lines and the like can be used. Even if there is, it can be applied similarly.

【0034】[0034]

【発明の効果】以上説明したように、本発明の図形の隠
線化編集システムによれば、重なり合う図形で隠線化し
たい領域に、覆い面の指定を行い、任意の図形要素が他
の図形要素と交差し、かつ、その図形要素と覆い面を構
成する領域線とが交差している場合は、他の図形要素と
の交点間を隠線化処理し、また、覆い面の領域内に図形
要素の端点が位置し、かつ、その端点と、図形要素との
他の図形要素との交点との間に覆い面の領域線が交差し
ている場合は、端点と他の図形要素との交点間の線を隠
線化処理し、更に、覆い面の領域内に、図形要素の両端
点が位置した場合は、その図形要素全体を隠線化処理す
るようにしたので、隠線化処理の時間短縮化を図ること
ができ、かつオペレータの負担を軽減化することができ
る。
As described above, according to the figure hidden line editing system of the present invention, a covering surface is designated in an area to be hidden by overlapping figures, and any figure element is replaced with another figure. If it intersects with an element and the figure element and the area line that composes the covering surface intersect, the line between the intersections with other figure elements is hidden, and the area inside the covering surface If the end point of a graphic element is located and the area line of the covering surface intersects between that end point and the intersection of the graphic element with another graphic element, the end point and the other graphic element The line between the intersections is hidden, and if both end points of the graphic element are located in the area of the covering surface, the whole graphic element is hidden. It is possible to shorten the time and the burden on the operator.

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

【図1】本発明の図形の隠線化編集システムの実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a hidden line editing system for graphics according to the present invention.

【図2】本発明の図形の隠線化編集システムにおける覆
い面操作部の操作説明図である。
FIG. 2 is an operation explanatory diagram of a covering surface operation unit in the hidden line editing system for graphics of the present invention.

【図3】本発明の図形の隠線化編集システムにおける覆
い面指定の説明図である。
FIG. 3 is an explanatory diagram of covering surface designation in the hidden line editing system for graphics of the present invention.

【図4】本発明の図形の隠線化編集システムにおける隠
線化処理のフローチャートである。
FIG. 4 is a flowchart of hidden line processing in the figure hidden line editing system of the present invention.

【図5】本発明の図形の隠線化編集システムにおける直
線図形の隠線化処理の説明図である。
FIG. 5 is an explanatory diagram of a hidden-line processing of a straight-line figure in the figure hidden-line editing system of the present invention.

【図6】本発明の図形の隠線化編集システムにおける直
線図形の隠線化処理の他の場合の説明図である。
FIG. 6 is an explanatory diagram of another case of hidden line straightening processing in the figure hidden line editing system of the present invention.

【図7】比較例のシステムのブロック図である。FIG. 7 is a block diagram of a system of a comparative example.

【図8】比較例のシステムにおける隠線化処理の説明図
である。
FIG. 8 is an explanatory diagram of hidden line processing in the system of the comparative example.

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

3 メモリテーブル 4 入力部 5 覆い面指定部 7 隠線化処理部 7a 交差判定部 7b 交点抽出部 7c 隠線化実行部 8 隠線化テーブル 10 表示モニタ 3 memory table 4 input unit 5 covering surface designation unit 7 hidden line processing unit 7a intersection determination unit 7b intersection extraction unit 7c hidden line execution unit 8 hidden line table 10 display monitor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 重なり合う図形で覆い隠される領域を隠
線化処理する図形の隠線化編集システムにおいて、 前記覆い隠される領域を指示するための覆い面を指定す
る覆い面指定部と、 図形を構成する任意の図形要素が他の図形要素と交差
し、かつ、その交点間に、前記覆い面を構成する領域線
が交差している場合は、当該任意の図形要素における前
記他の図形要素との交点間の線を隠線化処理し、 前記覆い面の領域内に任意の図形要素の端点が位置し、
かつ、その端点と、当該図形要素と他の図形要素との交
点との間に、前記覆い面の領域線が交差している場合
は、前記端点と前記他の図形要素との交点間の線を隠線
化処理し、 前記覆い面の領域内に任意の図形要素の両端点が位置し
た場合は、当該図形要素全体を隠線化処理する隠線化処
理部とを備えたことを特徴とする図形の隠線化編集シス
テム。
1. A hidden line editing system for a figure, which performs a hidden line process on an area covered by overlapping figures, and a cover plane designating unit for designating a cover plane for designating the area to be hidden, In the case where any of the constituent graphic elements intersects another graphic element, and the area line forming the covering surface intersects between the intersections, the other graphic element in the arbitrary graphic element The line between the intersection points is hidden, and the end point of any figure element is located in the area of the covering surface,
And, when the area line of the covering surface intersects between the end point and the intersection of the graphic element and another graphic element, a line between the intersection of the end point and the other graphic element. Hidden line processing is performed, and when both end points of an arbitrary graphic element are located in the area of the covering surface, a hidden line processing unit for performing a hidden line processing on the entire graphic element is provided. A hidden line editing system for figures.
【請求項2】 請求項1記載の図形の隠線化編集システ
ムにおいて、 隠線化処理部は、 図形要素が、覆い面を構成する領域線と交差するか否か
を判定する交差判定部と、 前記交差判定部での判定結果が交差であった場合は、前
記図形要素と他の図形要素との交点と前記領域線との交
点を抽出すると共に、前記図形要素の始点と終点および
他の図形要素との交点に第1のフラグを、前記領域線と
の交点に第2のフラグを付与する交点抽出部と、 前記図形要素の始点から終点間で、中間に第2のフラグ
を有する両側の第1のフラグを付与した部分の区間を隠
線化処理する隠線化実行部とで構成されていることを特
徴とする図形の隠線化編集システム。
2. The hidden line editing system for a graphic according to claim 1, wherein the hidden line processing unit is an intersection determination unit that determines whether or not the graphic element intersects a region line forming a covering surface. When the determination result in the intersection determination unit is an intersection, the intersection of the graphic element and another graphic element and the intersection of the area line are extracted, and the start point and end point of the graphic element and other An intersection extraction unit that gives a first flag to an intersection with a graphic element and a second flag to an intersection with the area line, and both sides having a second flag in the middle between the start point and the end point of the graphic element And a hidden-line executing unit that performs a hidden-line process on a section of the part to which the first flag is added.
JP6136495A 1994-05-26 1994-05-26 Line-hiding editing system Pending JPH07320089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6136495A JPH07320089A (en) 1994-05-26 1994-05-26 Line-hiding editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6136495A JPH07320089A (en) 1994-05-26 1994-05-26 Line-hiding editing system

Publications (1)

Publication Number Publication Date
JPH07320089A true JPH07320089A (en) 1995-12-08

Family

ID=15176506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6136495A Pending JPH07320089A (en) 1994-05-26 1994-05-26 Line-hiding editing system

Country Status (1)

Country Link
JP (1) JPH07320089A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022550695A (en) * 2019-09-30 2022-12-05 リアクティブ リアリティ アクチエンゲゼルシヤフト Method and computer program product for processing garment set model data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022550695A (en) * 2019-09-30 2022-12-05 リアクティブ リアリティ アクチエンゲゼルシヤフト Method and computer program product for processing garment set model data
US11972528B2 (en) 2019-09-30 2024-04-30 Reactive Reality Gmbh Method and computer program product for processing model data of a set of garments

Similar Documents

Publication Publication Date Title
EP0249399B1 (en) Multiwindow control method and apparatus for work station having multiwindow function
JP2828271B2 (en) Shape generation method in CAD system
JPH07320089A (en) Line-hiding editing system
JP3137855B2 (en) Compound document editing method and compound document editing processing device
JPH0331963A (en) Sentence processor equipped with frame preparing function
JPH0525339B2 (en)
JPH0620021A (en) Method and device for graphic processing
JP2610828B2 (en) Figure information extraction method
JP3158526B2 (en) Function instruction method and information processing device
KR20200055212A (en) System and method based on lisp for editing map
JPH06149521A (en) Multiwindow optimizing display system
JP2669366B2 (en) Line-symmetric figure input device
JP3123720B2 (en) Programming method and programming device for programmable controller
JPH06215145A (en) Graph preparing device
JP2667454B2 (en) Plotting device
JPH0736869A (en) Document editor
JPH05204590A (en) Cursor display device
JPH03154155A (en) Method and device for processing document
JPS6358579A (en) Picture editing device
JP2001331536A (en) Editing method, medium and program for cad system
JPH06223135A (en) Display angle re-setting system
JPH09120411A (en) Graphic processor and method therefor
JPH06266820A (en) Auxiliary drawing device for drawing supporing tool
JPH07271992A (en) Hatching correcting method
JPH0784770A (en) Program pattern customizing system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081122

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091122

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091122

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101122

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111122

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees