JPH0660153A - Method for generating three-dimension graphic data - Google Patents

Method for generating three-dimension graphic data

Info

Publication number
JPH0660153A
JPH0660153A JP4236527A JP23652792A JPH0660153A JP H0660153 A JPH0660153 A JP H0660153A JP 4236527 A JP4236527 A JP 4236527A JP 23652792 A JP23652792 A JP 23652792A JP H0660153 A JPH0660153 A JP H0660153A
Authority
JP
Japan
Prior art keywords
closed loop
closed
attribute
generating
graphic data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP4236527A
Other languages
Japanese (ja)
Inventor
Takeshi Tomiyama
健 富山
Takashi Hizuka
隆 肥塚
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP4236527A priority Critical patent/JPH0660153A/en
Publication of JPH0660153A publication Critical patent/JPH0660153A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide the 3-dimension graphic data generating method able to automatically generate a solid model expressing a 3-dimension shape of an object from 2-dimension graphic data drawn on three drawings without limiting the shape of the object different from a conventional technology, generating an imaginary part or reconversion of data obtained once. CONSTITUTION:The method includes a processing 101 entering 2-dimension graphic data forming three drawings, processing sections 103-108 detecting a closed loop included in each of the entered three drawings, while generating an auxiliary line to convert a concaved closed loop into a convexed loop, calculating a feature quantity including coordinates of end points as to the convex closed loop, an inter-drawing processing 109 generating sets of the three convex closed loops making the convex closed loops obtained from the three drawings correspondent with each other based on the feature quantity calculated, a processing 110 generating a basic cubic body from the sets of the closed loops, and a processing 111 implementing mutual set arithmetic operation when the plural number of basic cubic bodies are generated.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、図面入力システムなど
に利用される3次元図形データの生成方法に関するもの
であり、特に、正面図,平面図,側面図などの2次元図
形データとしして表現された物体の3次元形状を自動的
にCADシステムに入力する場合などに利用される3次
元図形データの生成方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for generating three-dimensional graphic data used in a drawing input system or the like, and particularly, as two-dimensional graphic data such as a front view, a plan view and a side view. The present invention relates to a method of generating three-dimensional graphic data used when, for example, automatically inputting a three-dimensional shape of an object represented in a CAD system.

【0002】[0002]

【従来の技術】物体の3次元形状を表現するためのモデ
ルとしては、物体の形状特徴点である頂点と各頂点間を
結ぶ稜線とで表現するワイヤフレームモデルと、物体を
その表面形状で表現するサーフェィスモデルとが良く利
用されている。しかしながら、これらのモデルでは物体
と外部とを正確に区別して表現できないため用途は限定
される。
2. Description of the Related Art As a model for expressing a three-dimensional shape of an object, a wire frame model expressed by vertices which are shape feature points of the object and a ridge line connecting the vertices, and an object expressed by its surface shape Surface models that are often used. However, since these models cannot accurately represent objects and the outside, their applications are limited.

【0003】これに対して、物体を表面だけではなく内
部をも含めて表現しかつ外部との区別を正確に表現しよ
うとするのがソリッドモデルである。このソリッドモデ
ルを用いた物体の表現方法には、Boundary Representat
ion (BーReps )モデルと、Constructive Solid Geo
metry ( CSG) モデルとがある。BーReps モデル
は、物体をこれと外部との境界面の組み合わせで表現す
るモデルである。図14は BーReps モデルを用いた
物体の表現方法を説明するための図である。図14にお
いて、物体1409を表現するためには、この物体1409と外
部との境界面1401〜1408を与えれば良い。
On the other hand, the solid model is intended to represent an object not only on the surface but also inside, and to accurately distinguish it from the outside. Boundary Representat is used to represent objects using this solid model.
ion (B-Reps) model and Constructive Solid Geo
There is a metry (CSG) model. The B-Reps model is a model that represents an object with a combination of the boundary surface between the object and the outside. FIG. 14 is a diagram for explaining an object representation method using the B-Reps model. In order to represent the object 1409 in FIG. 14, boundary surfaces 1401 to 1408 between the object 1409 and the outside may be given.

【0004】図15は、CSGモデルによる物体の表現
を説明するための図である。図15において、物体1503
を表現するためには、先ず基本形状立体であるプリミテ
ィブ1501, 1502を求め、次いでそれらの間に実行すべき
集合演算式を求める。図15では、プリミティブ1501と
1502の間で減算を行うことにより、物体1503を表現する
ことができる。
FIG. 15 is a diagram for explaining the representation of an object by the CSG model. In FIG. 15, the object 1503
In order to express, the primitives 1501 and 1502 that are basic shape solids are first obtained, and then the set arithmetic expression to be executed between them is obtained. In FIG. 15, the primitive 1501
By subtracting between 1502, the object 1503 can be represented.

【0005】[0005]

【発明が解決しようとする課題】ソリッドモデルを用い
て物体を表現するには、上記いずれの方式でも組み合わ
せるべき境界面やプリミティブを求め、さらにそれらの
間の演算式を求めることが必要である。従来は、人間が
表現したい物体を考えながら境界面やプリミティブや演
算式を手作業で入力・指定しなければならないために、
極めて繁雑な作業を強いられていた。
In order to represent an object using a solid model, it is necessary to find a boundary surface or a primitive to be combined in any of the above methods, and further find an arithmetic expression between them. Conventionally, human beings have to manually input and specify boundaries, primitives, and arithmetic expressions while considering the objects they want to express.
I was forced to do extremely complicated work.

【0006】特に、機械部品のような物体は正投象図法
による3面図(空間に互いに直交する3つの投影面を定
義し、その投影面に物体の形状輪郭を平行投影した時に
得られる図形、例えば、正面図,平面図,側面図)に描
かれたものが従来から広く使われており、膨大な量の図
面データが蓄積されてきている。これらの図面をデータ
ベース化し3次元CADシステムにおいて再利用したり
編集・加工・解析するためには、物体を表現するソリッ
ドモデルを生成することが必要になるが、これを人間が
手作業で入力しようとすれば、膨大な労力が必要にな
り、実現は到底困難である。
In particular, an object such as a machine part is a three-view drawing by a normal projection method (three projection planes orthogonal to each other are defined in a space, and a figure obtained by parallelly projecting the shape contour of the object on the projection plane). , For example, a front view, a plan view, and a side view) have been widely used, and an enormous amount of drawing data has been accumulated. In order to make a database of these drawings and reuse them in a three-dimensional CAD system or to edit, process and analyze them, it is necessary to generate a solid model that represents an object, but let's input this manually by humans. If so, a huge amount of labor is required and it is extremely difficult to realize.

【0007】正面図,平面図,側面図などの2次元の図
形データを用いて、自動的にソリッドモデルを生成させ
る方法の一つとして、例えば特開昭62-202271に開示さ
れた方法がある。この方法では、互いに直交する3つの
方向から見た第1,第2,第3の投影図を入力として、
投影図外形線を奥行き方向に投影して投影面を形成し外
形線と投影線とで画定される閉図形を各面とする多面体
を形成し、3つの投影図のそれぞれから得られる多面体
を論理積処理して物体のソリッドモデルを得ようとする
ものである。
As one of the methods for automatically generating a solid model using two-dimensional graphic data such as a front view, a plan view and a side view, there is a method disclosed in Japanese Patent Laid-Open No. 62-202271. . In this method, the first, second, and third projections viewed from three directions orthogonal to each other are input,
A projection plane is projected in the depth direction to form a projection surface, and a polyhedron having a closed figure defined by the contour line and the projection line as each surface is formed, and a polyhedron obtained from each of the three projection views is logically formed. The product is processed to obtain a solid model of the object.

【0008】しかしながら、この方法では投影外形線を
奥行き方向に投影した投影面と投影線とで画定される多
面体しか用いないので、表現できる物体の形状が奥行き
方向に掃引してできるものに限られ、このため、適用で
きる物体の形状が著しく限定されるという問題点があ
る。
However, since this method uses only a polyhedron defined by a projection plane and a projection line obtained by projecting a projected outline in the depth direction, the shape of an object that can be expressed is limited to that which can be swept in the depth direction. Therefore, there is a problem that the shape of the applicable object is significantly limited.

【0009】他の方法として、例えば特開昭61-60173に
示された方法がある。この方法によれば、物体を構成す
る3次元上の線分が複数の投影面に投影された時の投影
図においてこの線分が投影面や座標軸に対して水平,垂
直,斜めのいずれの2次元上の線分として表れるかの関
係が予めテーブルに登録される。入力したい物体の投影
図形を2次元上の線分データとして記憶しておき、この
線分データの端点座標から投影面や座標軸に対して水
平,垂直,斜めのいずれであるかを計算して、上記関係
を登録しているテーブルを参照して3次元上の線分を求
める。全ての2次元上の線分に対して上述の処理を順次
行い、得られた3次元上の線分を用いて物体を表現す
る。
Another method is, for example, the method disclosed in JP-A-61-60173. According to this method, in a projection view when a three-dimensional line segment that constitutes an object is projected on a plurality of projection planes, the line segment can be either horizontal, vertical, or diagonal with respect to the projection plane or coordinate axes. The relationship as to whether it appears as a dimensional line segment is registered in the table in advance. The projected figure of the object to be input is stored as two-dimensional line segment data, and it is calculated from the end point coordinates of this line segment data whether it is horizontal, vertical, or oblique with respect to the projection plane or coordinate axis, A three-dimensional line segment is obtained by referring to the table in which the above relationships are registered. The above-described processing is sequentially performed on all the two-dimensional line segments, and the obtained three-dimensional line segment is used to represent the object.

【0010】しかしながら、2次元上の線分と3次元上
の線分とは必ずしも1対1に対応しないため、実際には
存在しないはずの3次元上の線分が表れ、その結果物体
にも実際には存在しないはずの虚の部分が表れる。従っ
て、この虚の部分を除去する処理を行わなければ正しい
物体を表現することができないという問題点がある。さ
らに、得られる結果は3次元上の線分であるから物体の
稜線は表現できるが、物体の表面と内部までは表現でき
ないので、ソリッドモデルを得るためには一旦得られた
データを再変換する必要がある。
However, since the two-dimensional line segment and the three-dimensional line segment do not necessarily have a one-to-one correspondence, a three-dimensional line segment that should not actually exist appears, and as a result, the object also appears. The imaginary part that should not actually exist appears. Therefore, there is a problem that a correct object cannot be represented unless the process of removing the imaginary part is performed. Furthermore, since the obtained result is a three-dimensional line segment, the ridgeline of the object can be expressed, but the surface and the inside of the object cannot be expressed. Therefore, in order to obtain a solid model, the data once obtained is retransformed. There is a need.

【0011】[0011]

【課題を解決するための手段】上記従来の技術の問題点
を解決するための本発明は、物体の形状を正面図,平面
図,側面図などの3個の面図に描いた2次元図形データ
を入力する処理と、3個の各面図のそれぞれに含まれる
線分から閉ループを検出する処理と、検出した閉ループ
を凸図形となるように補助線を付加する処理と、凸図形
となした閉ループの特徴量を計算する処理と、各面図に
おける上記閉ループの各々を対応付ける処理と、この対
応付けた閉ループの組から基本形状立体を生成させる処
理と、上記生成させた基本形状立体の集合演算を行う処
理とを含んでいる。
SUMMARY OF THE INVENTION The present invention for solving the above-mentioned problems of the prior art is a two-dimensional figure in which the shape of an object is drawn in three plan views such as a front view, a plan view and a side view. The process of inputting data, the process of detecting a closed loop from the line segments included in each of the three views, the process of adding an auxiliary line so that the detected closed loop becomes a convex figure, and the convex figure were made. A process of calculating a feature amount of a closed loop, a process of associating each of the closed loops in each plan, a process of generating a basic shape solid from a set of the associated closed loops, and a set operation of the generated basic shape solids And processing to perform.

【0012】[0012]

【作用】本発明によれば、正面図,平面図,側面図など
3個の面図の2次元図形データを入力すれば、各面図に
おける物体輪郭を表わした閉ループを検出しその特徴量
を計算し、各面図間で互いに対応関係を持つ閉ループの
組から基本形状立体であるプリミティブを生成し、プリ
ミティブ間の集合演算の実行によって、2次元図形デー
タとして表された3次元物体の形状を表現するソリッド
モデルを、従来技術のように入力対象物体の形状に限定
することなく、また虚の部分を生成したり一旦得られた
データを再変換したりすることなく、自動的に生成させ
ることができる。本発明によって、既存の3面図に描か
れた3次元物体の形状を自動的に計算機上にデータベー
ス化できるので、3次元CADシステムに容易に入力す
ることが可能となる。
According to the present invention, by inputting the two-dimensional graphic data of three views such as a front view, a plan view and a side view, a closed loop representing an object contour in each view is detected and its feature amount is determined. By calculating and generating primitives that are basic shape solids from a set of closed loops that have a correspondence relationship between each of the drawings, and performing the set operation between the primitives, the shape of the three-dimensional object represented as two-dimensional figure data is calculated. A solid model to be expressed is automatically generated without being limited to the shape of an input target object as in the prior art, and without generating an imaginary part or reconverting data once obtained. You can According to the present invention, since the shapes of existing three-dimensional objects drawn in three views can be automatically stored in a database on a computer, it becomes possible to easily input them into a three-dimensional CAD system.

【0013】[0013]

【実施例】図1は、本発明の一実施例に係わる3次元図
形データの生成方法を、各処理部に分解して示す概念図
である。各処理部は、電子計算機上を走行する処理ルー
チンや、専用のハードウエアなどによって実現される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a conceptual diagram showing a method of generating three-dimensional graphic data according to an embodiment of the present invention by disassembling it into respective processing units. Each processing unit is realized by a processing routine that runs on an electronic computer, dedicated hardware, or the like.

【0014】図1において、入力の対象とする物体の形
状が、外形線と隠れ線とを主な要素とする正面図,平面
図,側面図による2次元図形データとして2次元図形デ
ータ入力部101 によって読み込まれる。
In FIG. 1, the shape of the object to be input is determined by the two-dimensional figure data input unit 101 as two-dimensional figure data including a front view, a plan view and a side view whose main elements are an outline and a hidden line. Is read.

【0015】図2は2次元データ入力部101 によって読
み込まれる正面図の一例であり、図2に対応する2次元
図形データの内容を表1に示す。
FIG. 2 is an example of a front view read by the two-dimensional data input unit 101. Table 1 shows the contents of the two-dimensional graphic data corresponding to FIG.

【0016】ただし、 a: 面図の識別子(0:正面図、1:平面図、2:側
面図) b: この面図に含まれる線分の総数 c: 各線分の識別番号 d: 各線分の種類に関する識別子(0:外形線、1:
隠れ線) e: 各線分の始点の座標 f: 各線分の終点の座標 g: 各線分の始点に接続する他の線分の総数 h: 各線分の始点に接続する他の線分の識別番号 i: 各線分の終点に接続する他の線分の総数 j: 各線分の終点に接続する他の線分の識別番号
However, a: identifier of a plan (0: front view, 1: plan view, 2: side view) b: total number of line segments included in this plan c: identification number of each line segment d: each line segment Identifier for the type of (0: outline, 1:
Hidden line) e: Coordinates of start points of each line segment f: Coordinates of end points of each line segment g: Total number of other line segments connected to start point of each line segment h: Identification number of other line segment connected to start point of each line segment i : Total number of other line segments connected to the end point of each line segment j: Identification number of other line segment connected to the end point of each line segment

【0017】このような2次元図形データは、2次元C
ADを用いて作成してもよいし、エディタを用いて電子
計算機上にテキストファイルとして作成してもよい。あ
るいは、図面そのものをイメージスキャナ等の画像入力
装置を用いて画像処理装置に入力し、外形線と隠れ線を
分離・抽出し、寸法値の認識をおこなっけ外形線と隠れ
線の長さを自動判定することにより2次元図形データを
生成することも可能である。
Such two-dimensional graphic data is a two-dimensional C
It may be created using AD, or may be created as a text file on an electronic computer using an editor. Alternatively, the drawing itself is input to an image processing device using an image input device such as an image scanner, the contour line and the hidden line are separated / extracted, the dimension value is recognized, and the lengths of the contour line and the hidden line are automatically determined. By doing so, it is also possible to generate two-dimensional graphic data.

【0018】さらに、予め登録されている基本形状立体
であるモデルプリミティブのラベルと、このモデルプリ
ミティブの形状を表した正面図,平面図,側面図中の外
形線と隠れ線とから構成されるモデルプリミティブ図形
と、その幾何学的パラメータから成るモデルプリミティ
ブデータが、図1のモデルプリミティブデータ入力部10
2 によって読み込まれる。そのようなモデルプリミティ
ブとしては、例えば、直方体、角柱、角錐、球、円柱、
円錐、トロイダルなどが適している。
Further, a model primitive label which is a pre-registered basic shape solid and a model primitive consisting of a front view, a plan view, a contour line and a hidden line in a side view showing the shape of this model primitive. The model primitive data consisting of a figure and its geometrical parameters is transferred to the model primitive data input unit 10 of FIG.
Read by 2. Such model primitives include, for example, rectangular parallelepipeds, prisms, pyramids, spheres, cylinders,
Cones and toroids are suitable.

【0019】表2は、直角三角柱のモデルプリミティブ
データを示す。モデルプリミティブ図形とは、モデルプ
リミティブの形状を正面図,平面図,側面図を用いて表
現した時に、外形線と隠れ線から構成される図形のラベ
ルである。
Table 2 shows right-angled triangular prism model primitive data. The model primitive graphic is a label of a graphic composed of an outline and a hidden line when the shape of the model primitive is expressed by using a front view, a plan view, and a side view.

【0020】 [0020]

【0021】ただし、 a: 識別番号 b: モデルプリミティブのラベル c: 形状パラメータ d: モデルプリミティブ図形の組み合せの総数 e: モデルプリミティブ図形のラベルの組み合せ f: 特徴的なモデルプリミティブ図形のラベルHowever, a: identification number b: label of model primitive c: shape parameter d: total number of combinations of model primitive figures e: combination of labels of model primitive figures f: label of characteristic model primitive figures

【0022】ここで、モデルプリミティブ図形について
図3を用いて説明する。なお、正面図,平面図,側面図
についてはその順序を考慮せずに、各面図に表れる図形
の種類の組み合わせのみに注目する。
The model primitive figure will be described with reference to FIG. The order of the front view, the plan view, and the side view is not taken into consideration, and only the combination of the types of figures appearing in each plan is focused on.

【0023】図3において、直角三角柱301 について
は、 A.いずれか1つの面図に1つの直角三角形が表れ、他
の2つの面図にそれぞれ1つずつの長方形が表れる場合
(正面図302 ,平面図303 ,側面図304 の組を参照) B.いずれか1つの面図に1つの直角三角形が表れ、他
の2つの面図に互いに一辺を共有する2個の長方形が表
れる場合(正面図305 ,平面図306 ,側面図307 の組を
参照) C.いずれか1つの面図に1つの直角三角形が表れ、い
ずれか1つの面図に1つの長方形が表れ、かついずれか
1つの面図に互いに一辺を共有する2個の長方形が表れ
る場合(正面図308 ,平面図309 ,側面図310 の組を参
照) の3つの異なる組み合わせが考えられる。
In FIG. 3, for the right-angled triangular prism 301, refer to A. One right triangle appears in any one of the views and one rectangle appears in each of the other two views (refer to the set of front view 302, plan view 303, and side view 304). One right triangle appears in any one of the views, and two rectangles sharing one side in the other two views (see the set of front view 305, plan view 306, and side view 307) C. When one right triangle appears in any one of the drawings, one rectangle appears in any one of the drawings, and two rectangles sharing one side with each other appear in any of the drawings (front view) 308, top view 309, side view 310)).

【0024】これらの組み合わせにおける、直角三角形
や長方形という図形の名称をモデルプリミティブ図形の
ラベルと称する。幾何学的なパラメータは、直角三角柱
の形状を一意に決定するために用いられるものであり、
例えば、高さと、直角三角形の直交する2辺の長さであ
る。
The names of figures such as right-angled triangles and rectangles in these combinations are referred to as labels of model primitive figures. The geometrical parameters are used to uniquely determine the shape of the right triangular prism,
For example, the height and the length of two orthogonal sides of a right triangle.

【0025】図1の正面図データ検索部103 では、2次
元図形データ入力部101 から入力された2次元図形デー
タの内容が検査され、正面図のデータのみが抽出され、
正面図閉ループ特徴量計算部106 に送られる。正面図特
徴量計算部106 では、表3に示す閉ループ特徴量が全て
の閉ループについて計算される。
In the front view data retrieval unit 103 of FIG. 1, the contents of the two-dimensional graphic data input from the two-dimensional graphic data input unit 101 are inspected and only the front view data is extracted.
It is sent to the front view closed loop feature amount calculation unit 106. The front view feature amount calculation unit 106 calculates the closed loop feature amounts shown in Table 3 for all closed loops.

【0026】 [0026]

【0027】ただし、 a: 識別番号 b: 面図内横軸座標の最大値,最小値 c: 面図内縦軸座標の最大値,最小値 d: 凹凸判定結果 e: 形状判定結果 f: 再帰深さ g: 属性However, a: identification number b: maximum and minimum values of abscissa coordinate in the drawing c: maximum and minimum values of ordinate coordinate in the drawing d: unevenness determination result e: shape determination result f: recursion Depth g: attribute

【0028】平面図と側面図についても、正面図と同様
の処理が実行される。なお、正面図閉ループ特徴量計算
部106 については後に詳細に説明する。図1の面図間対
応処理部109 においては、各面図の閉ループ特徴量に基
づき互いに対応関係を持つ閉ループの組が抽出される。
図4は、各面図に表れる閉ループ間の対応付けの方法を
説明するための図である。
With respect to the plan view and the side view, the same processing as the front view is executed. The front view closed loop feature quantity calculation unit 106 will be described later in detail. In the cross-figure correspondence processing unit 109 of FIG. 1, a set of closed loops having a correspondence relationship with each other is extracted based on the closed-loop feature amount of each of the views.
FIG. 4 is a diagram for explaining a method of associating closed loops appearing in each plan.

【0029】図4において、401 は正面図、402 は平面
図、403 は側面図である。404,405,406 は各面図に含ま
れる閉ループの1つである。閉ループ404,405,406 が対
応付けられるための条件は、例えば閉ループ404 のX軸
座標の存在範囲と閉ループ405 のX軸座標の存在範囲と
が一致し、閉ループ405 のZ軸座標の存在範囲と閉ルー
プ406 のZ軸座標の存在範囲とが一致し、かつ閉ループ
406 のY軸座標の存在範囲と閉ループ404 のY軸座標の
存在範囲が一致することである。この条件を満たすかど
うかは、例えば閉ループ404 〜406 に関して表3に示し
た面図内座標値の最小・最大値が等しいかどうかを調べ
ることによって判定できる。
In FIG. 4, 401 is a front view, 402 is a plan view, and 403 is a side view. Reference numerals 404, 405, and 406 are one of closed loops included in each plan. The conditions for associating the closed loops 404, 405, and 406 are, for example, that the existence range of the X-axis coordinate of the closed loop 404 and the existence range of the X-axis coordinate of the closed loop 405 match, and the existence range of the Z-axis coordinate of the closed loop 405 and the Z of the closed loop 406. The existence range of the axis coordinate matches and the closed loop
That is, the existence range of the Y-axis coordinate of 406 matches the existence range of the Y-axis coordinate of the closed loop 404. Whether or not this condition is satisfied can be determined, for example, by checking whether or not the minimum and maximum coordinate values in the plan shown in Table 3 for the closed loops 404 to 406 are equal.

【0030】図1の候補プリミティブ生成部110 では、
面図間対応処理部109 において抽出された閉ループの組
み合わせの各々について、モデルプリミティブデータと
の照合が行われ、照合のとれた組み合わせが候補プリミ
ティブとして保存され、照合のとれなかったものについ
ては廃棄される。そして、候補プリミティブについては
表4に示す候補プリミティブデータが生成される。な
お、表4のデータの中で候補プリミティブの再帰深さと
属性を決定する方法については後に詳述する。
In the candidate primitive generator 110 of FIG.
Each of the closed-loop combinations extracted by the inter-diagram correspondence processing unit 109 is matched with the model primitive data, the matched combination is saved as a candidate primitive, and the unmatched one is discarded. It Then, for the candidate primitive, the candidate primitive data shown in Table 4 is generated. The method of determining the recursive depth and the attribute of the candidate primitive in the data of Table 4 will be described in detail later.

【0031】 ただし、 a: 識別番号 d 位置のパ
ラメータ b: ラベル e 再帰深さ c: 大きさのパラメータ f 属性
[0031] However, a: identification number d position parameter b: label e recursion depth c: size parameter f attribute

【0032】図1の集合演算処理部111 では、候補プリ
ミティブのソリッドモデルとその属性とに基づき3次元
空間内での立体の集合演算が実行される。候補プリミテ
ィブどうしの集合演算は、表4に示した候補プリミティ
ブの再帰深さの深い順に、属性の値に応じて定まる演算
式に基づき実行される。
In the set operation processing section 111 of FIG. 1, a set operation of a solid body in a three-dimensional space is executed based on the solid model of the candidate primitive and its attribute. The set operation of the candidate primitives is executed in the descending order of the recursive depth of the candidate primitives shown in Table 4 based on the operation expression determined according to the value of the attribute.

【0033】集合演算処理部111 の演算結果がソリッド
モデル生成部112 によって取り込まれ、最終的結果であ
る入力対象の物体の形状を表現するソリッドモデルが生
成され、TVモニタの画面に表示されたり、データ蓄積装
置にソリッドモデルとして蓄積される。さらに、得られ
たソリッドモデルが3次元CADシステムに入力すること
により、陰影をつけたり隠面を消去したりしてグラフィ
ック表示を行ったり、形状の加工や編集を行うことが可
能となる。
The calculation result of the set calculation processing unit 111 is taken in by the solid model generation unit 112, and the final result is generated as a solid model representing the shape of the object to be input and displayed on the screen of the TV monitor. It is stored in the data storage device as a solid model. Furthermore, by inputting the obtained solid model into a three-dimensional CAD system, it is possible to perform graphic display by shading and erasing hidden surfaces, and processing and editing of shapes.

【0034】ここで、図1の正面図閉ループ特徴量計算
部106 の処理について図5を参照しながら詳細に説明す
る。なお、平面図閉ループ特徴量計算部107 と側面図特
徴量計算部108 は、入力データと出力データが異なる点
を除けば構成と処理の内容が正面図閉ループ特徴量計算
部106 と同一であるため、正面図閉ループ特徴量計算部
106 の説明によって各面図特徴量計算部についての説明
を代表する。
Here, the processing of the front view closed loop feature quantity calculation unit 106 in FIG. 1 will be described in detail with reference to FIG. The plan view closed loop feature amount calculation unit 107 and the side view feature amount calculation unit 108 have the same configuration and processing contents as the front view closed loop feature amount calculation unit 106 except that input data and output data are different. , Front view closed-loop feature quantity calculator
The description of 106 represents the description of each figure feature amount calculation unit.

【0035】図5の最外周閉ループ検出部501 によっ
て、処理対象の正面図の2次元図形データを構成する表
1に示したような外形線と隠れ線の端点座標や接続関係
に基づき、最も外側に存在する閉ループの検出が行われ
る。この閉ループの検出は、例えば、線分の接続関係を
辿って探索木を生成し、深さ優先の探索によって探索を
開始した線分の端点に戻った時に既に辿られた線分の端
点を抜き出す方法が用いればよい。もちろん他の適宜な
方法を用いることができる。また最外周であるかどうか
は、例えばその閉ループの面図内座標の最小・最大値が
元の2次元図形データにおける面図内座標の最小値・最
大値に等しくかつ面積が最大となるものを各閉ループに
ついて調べることによって容易に決定できる。
The outermost closed loop detection unit 501 in FIG. 5 determines the outermost position based on the end point coordinates and connection relationship between the contour line and the hidden line as shown in Table 1 which constitutes the two-dimensional figure data of the front view to be processed. Detection of existing closed loops is performed. In this closed loop detection, for example, a search tree is generated by tracing the connection relationships of line segments, and the endpoints of the line segments that have already been traced are extracted when returning to the endpoints of the line segment that started the search by the depth-first search. Any method may be used. Of course, other appropriate methods can be used. Whether or not it is the outermost circumference is determined, for example, when the minimum / maximum values of the coordinates in the drawing of the closed loop are equal to the minimum / maximum values of the coordinates in the drawing in the original two-dimensional figure data and the area becomes maximum. This can be easily determined by examining each closed loop.

【0036】このようにして検出された最外周の閉ルー
プの凹凸が、最外周閉ループ凹凸判定部502 によって判
定される。凹凸の判定方法としては、例えば、閉ループ
を構成する2端点を結んだ任意の線分が全て閉ループの
内部に存在すればその閉ループは凸であり、その他の場
合は凹であると判定する方法がある。もちろん他の適宜
な方法を用いることができる。
The outermost closed loop unevenness thus detected is determined by the outermost closed loop unevenness determination unit 502. As a method of determining the unevenness, for example, a method of determining that the closed loop is convex if all arbitrary line segments connecting the two end points forming the closed loop are present inside the closed loop, and is concave otherwise is there. Of course, other appropriate methods can be used.

【0037】最外周閉ループが凸と判定された場合は、
次の最外周閉ループ形状判定部512において、この最外
周閉ループの形状がモデルプリミティブ図形であるかど
うかの判定が行われる。例えば、直角三角形であるか否
かを判定するには、閉ループ内に線分が3つ以上存在
し、互いに平行でない3つの直線上に線分の組が存在し
かつ端点を共有する線分の1組が直交するかどうかを判
定すれば良い。その他にも、閉ループの形状特徴量であ
る面積や周囲長などを用いてより複雑な形状を判定する
適宜な方法を用いることが可能である。
If the outermost closed loop is determined to be convex,
In the next outermost peripheral closed loop shape determination unit 512, it is determined whether the shape of the outermost peripheral closed loop is a model primitive figure. For example, in order to determine whether the line is a right triangle, there are three or more line segments in a closed loop, a line segment set exists on three straight lines that are not parallel to each other, and a line segment that shares an end point. It suffices to determine whether one set is orthogonal. In addition, it is possible to use an appropriate method for determining a more complicated shape by using the area or the perimeter which are the shape feature amounts of the closed loop.

【0038】当該最外周閉ループが形状判定可能と判定
された場合には、元の2次元図形データがそのまま保持
され、閉ループ検出部504 に入力される。当該最外周閉
ループが形状判定不可と判定された場合や、最外周閉ル
ープ凹凸判定部502 によって最外周閉ループが凹である
と判定された場合は、最外周閉ループ補助線生成部503
において最外周閉ループが凸となるように補助線が生成
され、この生成された補助線が元の2次元図形データに
付加された新たな2次元図形データが生成され閉ループ
検出部504 に入力される。
When it is determined that the outermost closed loop can determine the shape, the original two-dimensional figure data is held as it is and input to the closed loop detection unit 504. If it is determined that the outermost circumference closed loop cannot be shape-determined, or if the outermost circumference closed loop unevenness determination unit 502 determines that the outermost circumference closed loop is concave, the outermost circumference closed loop auxiliary line generation unit 503.
At, an auxiliary line is generated so that the outermost closed loop becomes convex, and the generated auxiliary line is added to the original two-dimensional graphic data to generate new two-dimensional graphic data, which is input to the closed loop detection unit 504. .

【0039】図6は、上記補助線生成部503 による補助
線の生成方法を説明するための図である。図6におい
て、閉ループ601 を構成する線分データの端点座標から
座標値が最大又は最小となる端点とその座標軸が求めら
れ、閉ループ601 を包含しかつ各辺が面図内座標軸に平
行又は垂直となるような外接長方形が生成される。この
処理によって新たに生成された線分が補助線602 , 603
であり、これらの補助線602 , 603 が交差する点が端点
604 である。このように補助線生成部503 で生成される
新たな2次元図形データ、すなわち補助線602 , 603 と
端点604 は、対象とする物体に本来属していないもので
ある。これに対して、外形線と隠れ線は対象とする物体
に属しているものである。
FIG. 6 is a diagram for explaining a method of generating an auxiliary line by the auxiliary line generator 503. In FIG. 6, the end point having the maximum or minimum coordinate value and its coordinate axis are obtained from the end point coordinates of the line segment data forming the closed loop 601, and the closed loop 601 is included and each side is parallel or perpendicular to the coordinate axis in the plan view. A circumscribed rectangle is generated so that Line segments newly generated by this processing are auxiliary lines 602 and 603.
And the point where these auxiliary lines 602 and 603 intersect is the end point
It is 604. In this way, the new two-dimensional graphic data generated by the auxiliary line generation unit 503, that is, the auxiliary lines 602 and 603 and the end points 604, do not originally belong to the target object. On the other hand, the outline and the hidden line belong to the target object.

【0040】図5の閉ループ検出部504 では、2次元図
形データから全ての閉ループの検出が行われる。この閉
ループの検出は、前述した最外周閉ループの検出方法と
同様に行われる。また、検出された閉ループが既に検出
済みの閉ループと重複する場合にはその閉ループが閉ル
ープ廃棄処理部509 に送られる。
The closed loop detector 504 of FIG. 5 detects all closed loops from the two-dimensional graphic data. The detection of this closed loop is performed in the same manner as the above-described outermost peripheral closed loop detection method. If the detected closed loop overlaps with the already detected closed loop, the closed loop is sent to the closed loop discard processing unit 509.

【0041】図5の特徴量初期設定部505 では、検出さ
れた全ての閉ループについて特徴量の初期設定が行われ
る。すなわち、表3中の再帰深さが0に初期化され、正
面図内2次元座標の最大値・最小値が計算される。
The feature amount initial setting unit 505 of FIG. 5 initializes the feature amount for all the detected closed loops. That is, the recursion depth in Table 3 is initialized to 0, and the maximum and minimum values of the two-dimensional coordinates in the front view are calculated.

【0042】検出さた閉ループの凹凸が凹凸判定部506
によって判定される。この凹凸の判定は、前述の最外周
閉ループの判定方法と同様の方法によって行われる。形
状判定部507 では、凹凸判定部506 で凸と判定された閉
ループについて、この閉ループを構成する線分の端点座
標に基づき予め登録されているモデルプリミティブ図形
に一致するか否かの判定が行われる。この形状の判定
は、前述の最外周閉ループの判定方法と同様にして行わ
れる。特徴量計算部508 では、形状判定部507 が形状判
定可能と判定した閉ループに対して、属性と面図内2次
元座標の最大値・最小値が計算される。
The detected unevenness of the closed loop is the unevenness determination unit 506.
It is judged by. The determination of the unevenness is performed by the same method as the determination method of the outermost closed loop described above. The shape determining unit 507 determines whether or not the closed loop determined to be convex by the unevenness determining unit 506 matches the pre-registered model primitive figure based on the coordinates of the end points of the line segments forming the closed loop. . This shape determination is performed in the same manner as the outermost closed loop determination method described above. The feature amount calculation unit 508 calculates the maximum value and the minimum value of the attribute and the two-dimensional coordinate in the plan for the closed loop determined by the shape determination unit 507 as the shape determination being possible.

【0043】閉ループ特徴量に含まれる属性の計算方法
については後に詳しく説明する。閉ループ廃棄処理部50
9 においては、形状判定部507 において形状判定が不可
能であると判定された閉ループと、閉ループ検出部504
において重複して検出された閉ループは廃棄され、以降
の処理対象から除外される。
A method of calculating the attributes included in the closed loop feature will be described in detail later. Closed loop discard processing unit 50
In 9, the shape determination unit 507 determines that the shape determination is impossible, and the closed loop detection unit 504
Closed loops that are redundantly detected in are discarded and excluded from the subsequent processing targets.

【0044】補助線生成部510 では、凹凸判定部506 に
より凹であると判定された閉ループに対し、この閉ルー
プが凸になるようにこの閉ループを構成する2次元図形
データに補助線が付加される。この補助線を付加する処
理は、前述した最外周閉ループ補助線生成部503 の処理
と同様である。
In the auxiliary line generation unit 510, an auxiliary line is added to the two-dimensional figure data forming the closed loop so that the closed loop is convex with respect to the closed loop determined by the unevenness determination unit 506 to be concave. . The process of adding the auxiliary line is similar to the process of the outermost closed loop auxiliary line generating unit 503 described above.

【0045】再帰処理制御部511 は、補助線生成部510
で補助線が付加された2次元図形データのみを対象に、
閉ループ検出部504 、特徴量初期設定部505 、凹凸判定
部506 、形状判定部507 、特徴量計算部508 、閉ループ
廃棄処理部509 及び補助線生成部510 の一連の処理を再
帰的に反復させると共に、処理対象の閉ループに対し補
助線生成部510 の処理が実行されるたびに表3に示すこ
の閉ループの再帰深さを単位量1だけ増加させる。この
再帰深さは、後に詳述するように、面図間で対応付けら
れる閉ループどうしの属性を再計算するためと、集合演
算処理における候補プリミティブの演算順序を決定する
ために用いられる。
The recursive processing control unit 511 has an auxiliary line generation unit 510.
For 2D figure data with auxiliary lines added,
While recursively repeating a series of processes of the closed loop detection unit 504, the feature amount initial setting unit 505, the unevenness determination unit 506, the shape determination unit 507, the feature amount calculation unit 508, the closed loop discard processing unit 509, and the auxiliary line generation unit 510. Every time the processing of the auxiliary line generation unit 510 is executed for the closed loop to be processed, the recursion depth of this closed loop shown in Table 3 is increased by the unit amount 1. This recursion depth is used to recalculate the attributes of the closed loops associated with each other and to determine the operation order of the candidate primitives in the set operation processing, as described later in detail.

【0046】ここで、凹凸判定部506 と形状判定部507
で凸でかつ形状判定が可能であると判定された閉ループ
について、閉ループ特徴量計算部508 で行われる属性の
設定方法を説明する。本発明における閉ループとは、物
体の形状輪郭を互いに直交する3つの投影面に対して平
行投影した時に得られる、物体とこれ以外の空間とを区
別する面の輪郭線の集合をいう。この閉ループを構成す
る外形線は、物体に対して投影面と反対側に置いた視点
から直接見ることのできる面の輪郭線であり、隠れ線は
上記視点から直接には見ることのできない面の輪郭線で
ある。
Here, the unevenness determination unit 506 and the shape determination unit 507
A method of setting an attribute performed by the closed-loop feature amount calculation unit 508 will be described for a closed-loop that is convex and is determined to be shape-determinable. The closed loop in the present invention refers to a set of contour lines of a surface that distinguishes an object from the other space, which is obtained when the shape contour of the object is parallel-projected onto three projection surfaces orthogonal to each other. The contour line that constitutes this closed loop is the contour line of the surface that can be seen directly from the viewpoint placed on the side opposite to the projection plane with respect to the object, and the hidden line is the contour of the surface that cannot be seen directly from the above viewpoint. It is a line.

【0047】ところで、CSGモデルを用いた物体の3
次元形状の表現方法は、対象とする形状の物体であるオ
ブジェクトを、より簡単な形状の物体であるプリミティ
ブの集合で表現する方法である。従って、オブジェクト
の形状にはプリミティブの形状の全体か一部分が必ず現
れているから、オブジェクトの形状をある投影面に平行
投影した時に得られるオブジェクトの面の輪郭線、すな
わち外形線と隠れ線とから構成される閉ループは、プリ
ミティブの面の全体もしくは一部分の輪郭線となる。
By the way, 3 of the object using the CSG model
The three-dimensional shape representation method is a method of representing an object, which is an object having a target shape, by a set of primitives, which are objects having a simpler shape. Therefore, since the whole or a part of the shape of the primitive always appears in the shape of the object, it is composed of the outline of the surface of the object obtained when the shape of the object is parallel-projected onto a certain projection plane, that is, the outline and the hidden line. The closed loop is a contour line of all or part of the face of the primitive.

【0048】CSGモデルにおいてプリミティブの集合
演算からオブジェクトを構成するには、各プリミティブ
がこの集合演算において加算対象となる「+」の属性を
有するか、減算対象となる「−」の属性を有するかを決
定しなければならない。本発明は、オブジェクトの形状
輪郭を投影面に投影して得られる図形中の閉ループの属
性から各プリミティブの属性を自動的に求める方法を含
んでおり、その原理を以下に詳細に説明する。
To construct an object from a set operation of primitives in the CSG model, whether each primitive has an attribute of "+" to be added or an attribute of "-" to be subtracted in this set operation. Have to decide. The present invention includes a method for automatically obtaining the attributes of each primitive from the attributes of a closed loop in a figure obtained by projecting the shape contour of an object on a projection surface, the principle of which will be described in detail below.

【0049】まず、閉ループについて「+」、「−」の
属性を考える。閉ループについての「+」の属性とは、
1つの面図においてこの閉ループを面の輪郭線として持
つプリミティブが「+」の属性を持つ、すなわちこのプ
リミティブが物体に属すると判断できることを意味す
る。また、閉ループに関する「−」は、1つの面図にお
いてこの閉ループを面の輪郭線として持つプリミティブ
が「−」の属性を持つ、すなわちこのプリミティブが物
体に属さないと判断できることを意味する。
First, consider the attributes of "+" and "-" for the closed loop. What is the "+" attribute for closed loop?
This means that a primitive having this closed loop as a contour of a surface has a “+” attribute in one plan, that is, it can be determined that this primitive belongs to an object. Further, "-" regarding the closed loop means that a primitive having this closed loop as a contour of a surface in one drawing has the attribute of "-", that is, it can be determined that this primitive does not belong to an object.

【0050】さらに、1つの面図だけでは「+」とも
「−」とも判断できない場合がある点を考慮して、
「0」という第3の属性を考える。その理由は、本来3
次元の情報量を持つ形状データが2次元の投影面に投影
されることによって2次元に縮退し情報量を失うことが
あるからである。図7は、そのような3次元の形状情報
が2次元に縮退する例を説明するための図である。図7
において、701 の図形だけが与えられている場合、物体
の3次元的な形状としては702,703,704 の形状が推測さ
れるだけではなく、702 と704 のように凹凸が逆になる
形状さえ推測されることがある。
Further, considering that it may not be possible to determine "+" or "-" from only one drawing,
Consider a third attribute of "0". The reason is originally 3
This is because when shape data having a dimensional information amount is projected onto a two-dimensional projection surface, it may be degenerated in two dimensions and the information amount may be lost. FIG. 7 is a diagram for explaining an example in which such three-dimensional shape information degenerates into two dimensions. Figure 7
In, if only 701 figures are given, not only the shapes of 702,703,704 can be inferred as the three-dimensional shape of the object, but also the shapes in which the irregularities are reversed such as 702 and 704. There is.

【0051】閉ループの属性を設定するために、製図規
則に加えて、外形線と隠れ線は物体に属すが補助線は物
体に属さないという性質を利用して、次のような属性設
定規則を設定する。この属性設定規則は、各再帰深さに
おいて、 1.最外周の閉ループについては属性「+」を設定し、 2.最外周の閉ループ以外の閉ループであって、 2ー1.補助線を一部に含むものについては属性「−」
を設定し、 2ー2.隠れ線を一辺に持ち、かつこの隠れ線がこの閉
ループを包含する最外周閉ループに包含される外形線と
端点を共有するものについては属性「+」を設定し、 2ー2.前記2ー1.にも2ー2にも該当しないものに
ついては属性「0」する。 これらの属性設定規則を適用することにより、閉ループ
の属性を一意に設定することができる。
In order to set the attribute of the closed loop, in addition to the drawing rule, the following attribute setting rule is set by utilizing the property that the contour line and the hidden line belong to the object but the auxiliary line does not belong to the object. To do. This attribute setting rule is as follows: 1. Set the attribute “+” for the outermost closed loop, A closed loop other than the outermost closed loop, 2-1. Attribute "-" for those that include auxiliary lines as part
Set 2-2. The attribute "+" is set for those having a hidden line on one side, and this hidden line shares an end point with the contour line included in the outermost closed loop including this closed loop, and 2-2. 2-1. Also, the attribute "0" is applied to those that do not correspond to 2-2. By applying these attribute setting rules, closed loop attributes can be set uniquely.

【0052】次いで、図1の面図間対応処理部109 にお
いて対応付けを行うことができた閉ループの組と、この
組を構成する各閉ループの属性とを用いて、候補プリミ
ティブの属性を決定する方法について詳しく説明する。
Next, the attributes of the candidate primitives are determined by using the closed-loop pairs that can be associated in the inter-drawing correspondence processing unit 109 in FIG. 1 and the attributes of each closed-loop that constitutes this pair. The method will be described in detail.

【0053】候補プリミティブを生成できた閉ループの
組について、この組を構成する各閉ループの再帰深さを
比較する。この比較の結果、再帰深さが全て等しい値で
あれば閉ループの属性としてそのままの値を保持させ
る。再帰深さの中で一つでも異なる値のものがあれば、
最も小さい値の再帰深さを基準とし、次に述べるような
方法を用いて閉ループの属性の再計算を行う。
For the set of closed loops for which the candidate primitives could be generated, the recursion depths of the closed loops forming this set are compared. As a result of this comparison, if the recursion depths are all the same value, the same value is held as the attribute of the closed loop. If any one of the recursion depths has a different value,
Based on the smallest recursion depth, the closed loop attributes are recalculated using the method described below.

【0054】ゼロ以上の整数i,j,kをそれぞれ正面
図,平面図,側面図の対応する閉ループの再帰深さであ
るとし、s,t,uをそれぞれの閉ループの属性である
とする。 i< j (1) i< k (2) であれば、正面図の閉ループの再帰深さiを基準値と
し、平面図,側面図に含まれる閉ループの属性t、u
を、上記再帰深さの基準値iと当該閉ループの再帰深さ
j、kとの差を用いて次のような属性t'、u'に変更す
る。
It is assumed that integers i, j, and k that are equal to or greater than zero are the recursion depths of the corresponding closed loops in the front view, the plan view, and the side view, respectively, and s, t, and u are the attributes of each closed loop. If i <j (1) i <k (2), the closed loop recursive depth i of the front view is used as a reference value, and the closed loop attributes t and u included in the plan view and the side view are used.
Is changed to the following attributes t ′ and u ′ by using the difference between the reference value i of the recursion depth and the recursion depths j and k of the closed loop.

【0055】 t' = t・ (− 1) j-i (3) u' = u・ (− 1) k-i (4) この計算により、例えば属性tが「+」でありかつ(j
−i ) が奇数であれば属性t'は「−」となる。属性tが
「0」でありかつ(j−i ) が奇数であれば属性t'を
「0」となる。
T ′ = t · (−1) ji (3) u ′ = u · (−1) ki (4) By this calculation, for example, the attribute t is “+” and (j
If -i) is an odd number, the attribute t'is "-". If the attribute t is "0" and (j-i) is an odd number, the attribute t'is "0".

【0056】さらに、候補プリミティブの属性を変更後
の閉ループの属性であるs、t'、u'を用いて表5のよう
に計算する。
Further, the attributes of the candidate primitives are calculated as shown in Table 5 by using the changed closed-loop attributes s, t ', and u'.

【0057】 [0057]

【0058】さらに、候補プリミティブにも再帰深さを
考え、この 補プリミティブを構成する閉ループの再帰
深さの最大値をこの候補プリミティブの再帰深さとして
設定する。
Further, the recursion depth is also considered for the candidate primitive, and the maximum value of the recursion depth of the closed loop constituting this complementary primitive is set as the recursion depth of this candidate primitive.

【0059】次に、具体的な物体の3面図に適用した場
合を例にとって、説明を補足する。まず、最初の具体例
を図8、図9及び図10を用いて説明する。なお、図8
において、 depth は点線で囲んだ閉ループの再帰深さ
を表している。
Next, the description will be supplemented by taking as an example the case of being applied to a three-view drawing of a concrete object. First, a first specific example will be described with reference to FIGS. 8, 9 and 10. Note that FIG.
In, depth represents the recursive depth of the closed loop enclosed by the dotted line.

【0060】正面図801 について、これを構成する2次
元図形データである外形線に基づきまず、最外周閉ルー
プ検出部501 により最外周の閉ループ804 が検出され
る。この最外周の閉ループ804 は長方形であるから、最
外周閉ループ凹凸判定部502 において凸と判定される。
また、この長方形は形状判定が可能であるため、正面図
801 の2次元図形データは、最外周閉ループ形状判定部
512 により長方形の判定を受けてそのまま閉ループ検出
部504 に入力される。この閉ループ検出部504 におい
て、全ての閉ループ804,805,806 が検出され、各閉ルー
プの再帰深さ depthが初期値0に設定される。
With respect to the front view 801, first, the outermost closed loop detection unit 501 detects the outermost closed loop 804 based on the outline which is the two-dimensional graphic data forming the front view 801. Since the outermost closed loop 804 is rectangular, the outermost closed loop unevenness determining unit 502 determines that it is convex.
In addition, since the shape of this rectangle can be determined, the front view
The two-dimensional figure data of 801 is the outermost closed loop shape determination unit.
When the rectangle is determined by 512, it is directly input to the closed loop detection unit 504. In this closed loop detection unit 504, all closed loops 804, 805, 806 are detected, and the recursive depth depth of each closed loop is set to an initial value 0.

【0061】凹凸判定部506 において閉ループ804 は凸
と判定され、閉ループ805,806 は凹と判定される。凸と
判定された閉ループ804 は、形状判定部507 において長
方形と判定され、特徴量計算部508 において表3に示す
特徴量が計算される。計算される特徴量のうち属性につ
いては、この閉ループ804 が再帰深さ0における最外周
の閉ループであるため、前述した属性設定の規則1.に
基づき「+」の属性が設定される。
The concave-convex determining unit 506 determines that the closed loop 804 is convex and the closed loops 805 and 806 are concave. The closed loop 804 that is determined to be convex is determined to be a rectangle in the shape determination unit 507, and the feature amount shown in Table 3 is calculated in the feature amount calculation unit 508. As for the attribute of the calculated feature amount, since the closed loop 804 is the outermost closed loop at the recursion depth 0, the rule 1. Based on, the attribute of "+" is set.

【0062】凹と判定された閉ループ805,806 について
は、補助線生成部510 で補助線850〜854 が生成され、
閉ループ805 の2次元図形データに補助線850 が付加さ
れ、閉ループ806 の2次元図形データには補助線851 〜
854 が付加される。再帰処理制御部511 では、補助線が
付加された各閉ループのの再帰深さ depth が初期値0
から単位量だけ増加されて1となり、閉ループ検出部50
4 以降の処理が再帰的に反復される。
For the closed loops 805 and 806 that have been determined to be concave, the auxiliary line generation unit 510 generates auxiliary lines 850 to 854,
An auxiliary line 850 is added to the two-dimensional figure data of the closed loop 805, and an auxiliary line 851 to the two-dimensional figure data of the closed loop 806.
854 is added. In the recursive processing control unit 511, the recursive depth depth of each closed loop to which an auxiliary line is added is 0 as an initial value.
From the closed loop detection unit 50
The process after 4 is repeated recursively.

【0063】その結果、閉ループ検出部504 において、
閉ループ805 に補助線850 が付加された長方形から閉ル
ープ807 と808 が検出され、閉ループ806 に補助線851
〜854 が付加さた長方形から閉ループ809,810,811 が検
出される。閉ループ807,808と閉ループ809 〜811 は、
いずれも凹凸判定部506 において凸と判定され、形状判
定部507 においていずれも長方形と判定され、特徴量計
算部508 において表3に示すような特徴量が計算され
る。
As a result, in the closed loop detector 504,
Closed loops 807 and 808 are detected from a rectangle with auxiliary line 850 attached to closed loop 805 and auxiliary line 851 is detected in closed loop 806.
Closed loops 809,810,811 are detected from the rectangle with ~ 854 added. Closed loops 807,808 and closed loops 809-811 are
In both cases, the unevenness determining unit 506 determines that the shape is convex, the shape determining unit 507 determines that the shape is rectangular, and the feature amount calculating unit 508 calculates the feature amount as shown in Table 3.

【0064】計算される各特徴量のうち属性について
は、閉ループ807 は再帰深さ1における最外周の閉ルー
プに該当するため、属性設定規則1.に基づき属性
「+」が設定される。閉ループ808 については、これが
再帰深さ1における最外周の閉ループに該当せずかつ補
助線を一部に持つため、属性設定規則2ー1. に基づき
属性「−」が設定される。以下同様にして、閉ループ80
9 については、これが再帰深さ1における最外周の閉ル
ープに該当するため、属性設定規則1. に基づき属性
「+」が設定され、閉ループ810,811 については、いず
れも再帰深さ1における最外周の閉ループに該当せずか
つ補助線を一部に持つため、属性設定規則2ー1に基づ
きいずれも属性「−」が設定される。
Regarding the attributes of the calculated feature quantities, the closed loop 807 corresponds to the outermost closed loop at the recursion depth 1, so that the attribute setting rule 1. The attribute “+” is set based on Regarding the closed loop 808, this does not correspond to the outermost closed loop at the recursion depth 1 and has an auxiliary line in part, so that the attribute "-" is set based on the attribute setting rule 2-1. Closed loop 80
For 9, this corresponds to the outermost closed loop at recursion depth 1, so the attribute “+” is set based on the attribute setting rule 1. For closed loops 810 and 811, both are the outermost closed loop at recursion depth 1. The attribute "-" is set based on the attribute setting rule 2-1 because it does not correspond to the above and has an auxiliary line in part.

【0065】図8の平面図802 については、これを構成
する2次元図形データの外形線から、まず最外周閉ルー
プ検出部501 において最外周の閉ループ812 が検出され
る。この最外周の閉ループ812 は長方形であるから、最
外周凹凸判定部502 において凸と判定され、この平面図
802 の2次元図形データは最外周閉ループ形状判定部51
2 を経てそのまま閉ループ検出部504 に入力され、ここ
で全ての閉ループ812〜825 が検出され、各閉ループの
再帰深さdepth が初期値0に設定される。
As for the plan view 802 of FIG. 8, the outermost closed loop 812 is first detected by the outermost closed loop detection unit 501 from the outline of the two-dimensional graphic data forming the plan view 802. Since the outermost closed loop 812 is rectangular, it is determined to be convex by the outermost peripheral unevenness determination unit 502, and this plan view
The two-dimensional figure data of 802 is the outermost closed loop shape determination unit 51.
It is input to the closed loop detection unit 504 via 2 as it is, all closed loops 812 to 825 are detected here, and the recursion depth depth of each closed loop is set to an initial value 0.

【0066】凹凸判定部506 において、閉ループ812 〜
819 は凸と判定され、閉ループ820〜825 は凹と判定さ
れる。凸と判定された閉ループ812 〜819 は、形状判定
部507 において長方形と判定され、特徴量計算部におい
て表3に示すような特徴量が計算される。この算定され
る特徴のうち属性に関しては、閉ループ812 は再帰深さ
0における最外周の閉ループであるため属性設定規則
1. に基づき属性「+」が設定される。閉ループ813 〜
819 については、これらが全て再帰深さ0における最外
周の閉ループ812 に該当せずかつ外形線のみで構成され
ているため、属性設定規則2ー3. に基づき属性「0」
が設定される。
In the unevenness judging section 506, the closed loop 812 ...
819 is determined to be convex, and the closed loops 820 to 825 are determined to be concave. The closed loops 812 to 819 determined to be convex are determined to be rectangular in the shape determination unit 507, and the feature amount calculation unit calculates the feature amounts shown in Table 3. Regarding the attribute among the calculated characteristics, the closed loop 812 is the outermost closed loop at the recursion depth of 0, and therefore the attribute “+” is set based on the attribute setting rule 1. Closed loop 813 ~
As for 819, all of them do not correspond to the outermost closed loop 812 at the recursion depth of 0 and are configured only by the outline, and therefore the attribute “0” is set based on the attribute setting rule 2-3.
Is set.

【0067】一方、凹と判定された閉ループ820 〜825
については、補助線生成部510 において補助線が生成・
付加され、再帰処理制御部511 において再帰深さ depth
が初期値0から1に歩進され、閉ループ検出部504 以
降の処理が再帰的に反復される。その結果、閉ループ検
出部504 において、閉ループ820 〜825 と、既に検出済
みの閉ループ814 〜819 と同一の閉ループのそれぞれが
検出される。すなわち、例えば、閉ループ820 に補助線
が付加された凸状の閉ループについて検出が反復される
と、閉ループ820 自身と、閉ループ814,816 と同一の閉
ループが検出される。これらの閉ループは、既に検出済
みの閉ループ820,814,816 と重複する。この検出の重複
は、閉ループ821 〜825 と同一の閉ループについても同
様である。このため、閉ループ廃棄処理部509 におい
て、全ての閉ループ820 〜825 が廃棄され、処理対象か
ら除外される。
On the other hand, the closed loops 820 to 825 determined to be concave
Is generated by the auxiliary line generation unit 510.
The recursion depth is added in the recursion control unit 511.
Is incremented from an initial value of 0 to 1, and the processing after the closed loop detection unit 504 is recursively repeated. As a result, the closed loop detection unit 504 detects each of the closed loops 820 to 825 and the closed loops that are the same as the already detected closed loops 814 to 819. That is, for example, when the detection is repeated for the convex closed loop in which the auxiliary line is added to the closed loop 820, the closed loop 820 itself and the same closed loops as the closed loops 814 and 816 are detected. These closed loops overlap the already detected closed loops 820,814,816. This duplication of detection is the same for the same closed loop as closed loops 821-825. Therefore, in the closed loop discard processing unit 509, all the closed loops 820 to 825 are discarded and excluded from the processing target.

【0068】側面図803 については、これを構成する2
次元図形データの外形線から、まず、最外周閉ループ検
出部501 において最外周の閉ループが検出され、この最
外周の閉ループは最外周閉ループ凹凸判定部502 におい
て凹と判定される。このため、最外周閉ループ補助線生
成部503 において補助線855,856 が生成・付加された2
次元図形データが、閉ループ検出部504 に入力される。
For side view 803, the two that make up this
From the outline of the dimensional figure data, first, the outermost closed loop detection unit 501 detects the outermost closed loop, and the outermost closed loop is determined to be concave by the outermost closed loop unevenness determination unit 502. Therefore, the auxiliary lines 855 and 856 are generated and added in the outermost closed loop auxiliary line generating unit 503.
The three-dimensional figure data is input to the closed loop detection unit 504.

【0069】閉ループ検出部504 においては、全ての閉
ループ826 〜831 が検出され、各閉ループの再帰深さ d
epth が初期値0に設定される。検出された閉ループの
うち826 〜829 については、いずれも凹凸判定部506 で
凸と判定され、形状判定部507 で長方形と判定され、特
徴量計算部508 で表3に示すような特徴量が計算され
る。計算される特徴量のうち属性については、閉ループ
826 は再帰深さ0における最外周の閉ループに該当する
から属性設定規則1. に基づき属性「+」が設定され
る。
In the closed loop detection unit 504, all closed loops 826 to 831 are detected, and the recursive depth d of each closed loop is detected.
epth is set to the initial value 0. Of the detected closed loops, 826 to 829 are all determined to be convex by the unevenness determination unit 506, are determined to be rectangular by the shape determination unit 507, and the feature amount calculation unit 508 calculates the feature amounts as shown in Table 3. To be done. Closed loop for attributes of calculated features
Since 826 corresponds to the outermost closed loop at the recursion depth of 0, the attribute “+” is set based on the attribute setting rule 1.

【0070】閉ループ827 と829 については、いずれも
再帰深さ0における最外周の閉ループ826 に該当せずか
つ補助線を一部に持つため、属性設定規則2ー1. に基
づき属性「−」が設定され、閉ループ828 については最
外周の閉ループ826 に該当せずかつ外形線のみで構成さ
れているので属性設定規則2ー3. に基づき属性「0」
が設定される。
Since the closed loops 827 and 829 do not correspond to the outermost closed loop 826 at the recursion depth of 0 and have an auxiliary line in part, the attribute "-" is assigned based on the attribute setting rule 2-1. Since the closed loop 828 does not correspond to the outermost closed loop 826 and is configured only by the outline, the attribute “0” is set based on the attribute setting rule 2-3.
Is set.

【0071】一方、閉ループ830 と831 は凹であるため
補助線生成部510 で補助線が生成・付加され、再帰処理
制御部511 において再帰深さ depth が初期値0から1
に歩進され閉ループ検出部504 以降の各処理が再帰的に
反復される。その結果、閉ループ検出部504 において、
閉ループ830 〜831 と、既に検出済みの閉ループ827と8
29 と同一の閉ループが検出される。例えば、閉ループ8
30 に補助線を付加した凸状の閉ループついて実行され
る閉ループ検出により、閉ループ830 自身と、検出済み
の閉ループ829 と同一の閉ループが検出される。これら
はいずれも検出済みの閉ループと重複する。この閉ルー
プの重複検出は、閉ループ831 についても同様である。
従って、閉ループ830 と831 は閉ループ廃棄処理部509
において廃棄され、処理対象から除外される。
On the other hand, since the closed loops 830 and 831 are concave, an auxiliary line is generated and added by the auxiliary line generation unit 510, and the recursion depth control unit 511 sets the recursion depth depth from 0 to 1 as an initial value.
And the processes after the closed loop detection unit 504 are recursively repeated. As a result, in the closed loop detection unit 504,
Closed loops 830-831 and previously detected closed loops 827 and 8
A closed loop identical to 29 is detected. For example, closed loop 8
The closed loop detection performed on the convex closed loop in which an auxiliary line is added to 30 detects the closed loop 830 itself and the same closed loop as the detected closed loop 829. Both of these overlap with the detected closed loop. The closed loop duplication detection is the same for the closed loop 831.
Therefore, the closed loops 830 and 831 are closed loop discard processing units 509.
Will be discarded and excluded from processing.

【0072】上述のような各面図に対する処理を経て、
最終的には、正面図801 からは閉ループ804 と807 〜81
1 が、平面図802 からは閉ループ812 〜819 が、側面図
803からは閉ループ826 〜829 がそれぞれ検出されると
共にこれらの閉ループについての特徴量が計算される。
Through the processing for each of the above drawings,
Finally, from the front view 801, the closed loops 804 and 807-81.
1 is from the top view 802 and the closed loop 812 to 819 is from the side view
From 803, closed loops 826 to 829 are detected, respectively, and the feature quantities for these closed loops are calculated.

【0073】図9は、図8に示した正面図, 平面図, 側
面図から検出された閉ループに対して、図1の面図間対
応処理部109 において実行される面図間の対応付けを説
明するための図である。図8に例示した検出済みの各閉
ループ間と図9中の各閉ループとの対応関係を表6に示
す。
FIG. 9 shows the correspondence between the plans executed by the plan correspondence processing unit 109 of FIG. 1 with respect to the closed loop detected from the front view, the plan view and the side view shown in FIG. It is a figure for explaining. Table 6 shows the correspondence between the detected closed loops illustrated in FIG. 8 and the closed loops in FIG. 9.

【0074】 [0074]

【0075】面図間対応処理部109 において、図9に示
す閉ループ901 〜909 の特徴量に含まれる面図内座標の
最大・最小値が比較され、閉ループの組〔901,904,907
〕と、閉ループの組〔902,905,908 〕と、閉ループの
組〔903,906,909 〕とにそれぞれ対応付けされる。対応
付けられた閉ループの組の属性は、閉ループの組〔901,
904,907 〕については個々の閉ループの再帰深さがいず
れも0であるため、そのままの属性が保持される。
In the interplanar correspondence processing unit 109, the maximum and minimum values of the coordinates within the plan included in the feature quantities of the closed loops 901 to 909 shown in FIG. 9 are compared, and a set of closed loops [901,904,907]
], A closed loop set [902,905,908] and a closed loop set [903,906,909], respectively. The attributes of the associated closed-loop set are the closed-loop set [901,
904, 907], the recursion depth of each closed loop is 0, so the same attributes are retained.

【0076】閉ループの組〔902,905,908 〕について
は、閉ループ902 のみが再帰深さが1でありその他は0
であるため、閉ループ902 の属性は元の値「+」が反転
されて「−」となり、他の閉ループ905,908 の属性は元
の値が保持される。閉ループの組〔903,906,909 〕につ
いては、閉ループ903 のみが再帰深さが1でありその他
は0であるため、閉ループ903 の属性は元の値「−」が
反転されて「+」となり、他の閉ループ906,909 の属性
は元の値を保持する。
For the closed loop set [902,905,908], only the closed loop 902 has a recursion depth of 1 and the others have 0.
Therefore, the original value “+” of the attributes of the closed loop 902 is inverted to “−”, and the original values of the attributes of the other closed loops 905 and 908 are held. For the closed loop set [903,906,909], only the closed loop 903 has a recursion depth of 1 and the others have 0, so the attribute of the closed loop 903 is "+" by inverting the original value "-", and the other closed loop The 906 and 909 attributes retain their original values.

【0077】図9に示すように対応付けられた閉ループ
の組について、個々の閉ループの形状データがモデルプ
リミティブ図形のラベルや形状パラメータと照合され、
この照合結果に基づき候補プリミティブが生成される。
図1のソリッドモデル生成部112 では、この生成された
候補プリミティブのソリッドモデルの集合演算に基づ
き、入力対象物体の形状を表現するソリッドモデルが生
成される。
With respect to the set of closed loops associated as shown in FIG. 9, the shape data of each closed loop is collated with the label or shape parameter of the model primitive figure,
Candidate primitives are generated based on this matching result.
The solid model generation unit 112 in FIG. 1 generates a solid model representing the shape of the input target object based on the set calculation of the generated candidate primitive solid models.

【0078】図10は、図9に示した対応付けの結果得
られた候補プリミティブのソリッドモデルからソリッド
モデルを生成させる方法を説明するための図である。図
10において、候補プリミティブ1001は図9に示した閉
ループの組〔901,904,907 〕と、個々の閉ループの形状
と面図内座標値とに基づき生成した直方体のモデルプリ
ミティブであり、このプリミティブモデルは3つの長方
形をモデルプリミティブ図形のラベルとして有してい
る。
FIG. 10 is a diagram for explaining a method of generating a solid model from the solid model of the candidate primitive obtained as a result of the association shown in FIG. In FIG. 10, the candidate primitive 1001 is a rectangular parallelepiped model primitive generated based on the closed-loop set [901,904,907] shown in FIG. 9, and the shape of each closed loop and the coordinate values in the plan. It has a rectangle as a label for the model primitive figure.

【0079】候補プリミティブ1001の各稜線の長さは閉
ループの長方形の一辺の長さに等しく、各頂点の3次元
空間での位置座標は、対応する閉ループの頂点の面図内
座標を当該3次元空間の座標に展開して得られる。同様
に、候補プリミティブ1002は図9に示した閉ループの組
〔902,905,908 〕と、各閉ループの形状と面図内座標値
とに基づき生成した直方体のモデルプリミティブであ
り、候補プリミティブ1003は、図9に示した閉ループの
組〔903,906,909 〕と、各閉ループの形状と面図内座標
値とに基づき生成した直方体のモデルプリミティブであ
る。
The length of each edge of the candidate primitive 1001 is equal to the length of one side of the closed loop rectangle, and the position coordinates of each vertex in the three-dimensional space are the coordinates of the corresponding closed loop vertex in the plan view. It is obtained by expanding to the coordinates of space. Similarly, the candidate primitive 1002 is a rectangular parallelepiped model primitive generated based on the set of closed loops [902, 905, 908] shown in FIG. 9, the shape of each closed loop, and the coordinate values in the plan, and the candidate primitive 1003 is shown in FIG. It is a rectangular parallelepiped model primitive generated based on the set of closed loops [903, 906, 909] shown and the shape of each closed loop and the coordinate values in the drawing.

【0080】各候補プリミティブの稜線の長さは個々の
閉ループの長方形の一辺の長さに等しく、各頂点の3次
元空間での位置座標は、対応する閉ループの頂点の面図
内座標を当該3次元空間の座標に展開して得られること
も候補プリミティブ1001の場合と同様である。さらに各
候補プリミティブの属性は、図9に示した閉ループの属
性、すなわち図8に示した閉ループの属性と表5に示す
属性の設定規則に基づき表7のように求められる。
The length of the edge line of each candidate primitive is equal to the length of one side of the rectangle of the individual closed loop, and the position coordinates of each vertex in the three-dimensional space are the coordinates in the plan view of the corresponding closed loop vertex. It is similar to the case of the candidate primitive 1001 that it can be obtained by expanding the coordinates in the dimensional space. Further, the attribute of each candidate primitive is obtained as shown in Table 7 based on the closed-loop attribute shown in FIG. 9, that is, the closed-loop attribute shown in FIG. 8 and the attribute setting rule shown in Table 5.

【0081】 [0081]

【0082】ただし A: 図10の候補プリミティブの番号 B: 図9の閉ループの番号 C: 図10の候補プリミティブのラベル D: 図9の閉ループの属性 E: 図10の候補プリミティブの属性 F: 図10の候補プリミティブの再帰深さHowever, A: the number of the candidate primitive in FIG. 10 B: the number of the closed loop in FIG. 9 C: the label of the candidate primitive in FIG. 10 D: the attribute of the closed loop in FIG. 9 E: the attribute of the candidate primitive in FIG. Recursion depth of 10 candidate primitives

【0083】その結果、候補プリミティブ1001に対して
は「+」、1002に対しては「−」、1003に対しては
「+」の属性がそれぞれ設定される。図1の集合演算処
理部111では、候補プリミティブの集合演算が再帰深さ
の大きなものから小さな順に実行される。すなわち、ま
ず、再帰深さが1の候補プリミティブ1002と1003どうし
の空間的な集合演算が行われ、その中間結果として属性
「−」を持つソリッドモデル1004が生成される。次に、
このソリッドモデル1004と再帰深さが0の候補プリミテ
ィブ1001との間の空間的な集合演算が実行され、最終的
なソリッドモデル1005が生成される。
As a result, "+" is set for the candidate primitive 1001, "-" is set for 1002, and "+" is set for 1003. In the set operation processing unit 111 of FIG. 1, the set operation of candidate primitives is executed in descending order of recursion depth. That is, first, a spatial set operation is performed between candidate primitives 1002 and 1003 having a recursion depth of 1, and a solid model 1004 having the attribute “−” is generated as an intermediate result. next,
A spatial set operation is executed between the solid model 1004 and the candidate primitive 1001 having a recursive depth of 0 to generate a final solid model 1005.

【0084】このソリッドモデル1005を3面図に描いた
図形は、図8に示す正面図,平面図,側面図に一致す
る。すなわち、図8の正面図,平面図,側面図の2次元
図形データから、本発明の方法に従って対象物体の正し
い3次元形状を表現するソリッドモデルを自動的に生成
させることができる。
The figure in which the solid model 1005 is drawn in three views corresponds to the front view, the plan view and the side view shown in FIG. That is, a solid model expressing the correct three-dimensional shape of the target object can be automatically generated from the two-dimensional figure data of the front view, the plan view and the side view of FIG. 8 according to the method of the present invention.

【0085】本発明の他の具体例を図11、図12及び
図13を用いて説明する。なお、図11において、dept
h は点線で囲んだ閉ループの再帰深さを表している。正
面図1101については、これを構成する2次元図形データ
の外形線から、まず最外周閉ループ検出部501 において
最外周の閉ループが検出され、最外周閉ループ凹凸判定
部502 において凹と判定される。従って、この最外周の
閉ループについては最外周閉ループ補助線生成部503 に
おいて、この最外周閉ループを囲む外接長方形を生成す
ることにより補助線1151が生成され、付加される。
Another embodiment of the present invention will be described with reference to FIGS. 11, 12 and 13. In FIG. 11, dept
h represents the closed loop recursive depth surrounded by the dotted line. Regarding the front view 1101, the outermost closed loop detection unit 501 first detects the outermost closed loop from the outlines of the two-dimensional graphic data forming the front view 1101, and the outermost closed loop unevenness determination unit 502 determines that it is concave. Therefore, for the outermost closed loop, the outermost closed loop auxiliary line generating unit 503 generates and adds the auxiliary line 1151 by generating a circumscribed rectangle surrounding the outermost closed loop.

【0086】補助線1151が付加された正面図1101の2次
元図形データが閉ループ検出部504に入力され、ここで
全ての閉ループ1104〜1116が検出され、特徴量初期設定
部505 において各閉ループの再帰深さ depth が初期値
0に設定される。凹凸判定部506 において、閉ループ11
04〜1110は凸と判定され、閉ループ1111〜1116は凹と判
定される。
The two-dimensional figure data of the front view 1101 to which the auxiliary line 1151 is added is input to the closed loop detection unit 504, where all the closed loops 1104 to 1116 are detected, and the feature amount initial setting unit 505 recurses each closed loop. The depth depth is set to an initial value of 0. In the unevenness determination unit 506, the closed loop 11
04-1110 are determined to be convex, and closed loops 1111-1116 are determined to be concave.

【0087】凸と判定された閉ループ1104〜1108のそれ
ぞれは、形状判定部507 において同順に長方形, 長方
形, 三角形, 台形及び三角形と判定され、特徴量計算部
508 において表3に示すような特徴量が計算される。計
算される各特徴量のうち属性に関して説明すれば、閉ル
ープ1104についてはこれが再帰深さ0における最外周の
閉ループであるから属性設定規則1. に基づき属性
「+」が設定される。
Each of the closed loops 1104 to 1108 determined to be convex is determined to be a rectangle, a rectangle, a triangle, a trapezoid and a triangle in the same order in the shape determination unit 507, and the feature amount calculation unit
At 508, the feature amount as shown in Table 3 is calculated. The attributes of the calculated feature amounts will be described. For the closed loop 1104, since this is the outermost closed loop at the recursion depth 0, the attribute “+” is set based on the attribute setting rule 1.

【0088】閉ループ1105, 1106, 1108については、こ
れらが最外周の閉ループ1104に該当せずかつ補助線を一
部に持つため、属性設定規則2ー1. に基づき属性
「−」が設定される。閉ループ1107については、これが
最外周の閉ループ1104に該当せずかつこれらを包含する
最外周の閉ループに包含される外形線と端点を共有する
隠れ線を持つため、属性設定規則2ー2. に基づき属性
「+」が設定される。
Regarding the closed loops 1105, 1106, 1108, since these do not correspond to the outermost closed loop 1104 and have an auxiliary line in part, the attribute "-" is set based on the attribute setting rule 2-1. . The closed loop 1107 does not correspond to the outermost closed loop 1104 and has a hidden line that shares an end point with the contour line included in the outermost closed loop that includes them. Therefore, the attribute based on the attribute setting rule 2-2. “+” Is set.

【0089】閉ループ1109と1110については、これらが
モデルプリミティブ図形として登録されていないため、
形状判定部507 において形状判定不可の判定が行われ、
閉ループ廃棄処理部509 に送られて廃棄される。閉ルー
プ1111〜1116については、いずれも凹であるため補助線
生成部510 において補助線が生成・付加され、再帰処理
制御部511 を経て閉ループ1111〜1116の閉ループ検出部
504 以降の処理が再帰的に反復される。これらの閉ルー
プのうち1111〜1114については、自身も含めて既に検出
済みの閉ループと重複して検出されるため、閉ループ廃
棄処理部509 において処理対象から除外される。
Regarding closed loops 1109 and 1110, since these are not registered as model primitive figures,
The shape determination unit 507 determines that the shape cannot be determined,
It is sent to the closed loop discard processing unit 509 and discarded. Since all of the closed loops 1111-1116 are concave, auxiliary lines are generated / added in the auxiliary line generation unit 510, and the closed loop detection units of the closed loops 1111-1116 are passed through the recursive processing control unit 511.
The processing after 504 is recursively repeated. Of these closed loops, 1111-1114 are detected as overlapping with already detected closed loops including themselves, and are therefore excluded from the processing target in the closed loop discard processing unit 509.

【0090】一方、閉ループ1115と1116 については、
補助線1152, 1153と1154〜1157が生成・付加され、再帰
深さ depth が初期値0 から1に歩進され、閉ループ検
出部504 以降の処理が再帰的に反復される。その結果、
閉ループ検出部504 において、閉ループ1115に補助線11
52と1153が付加された凸状の閉ループから閉ループ1117
と1118が検出され、閉ループ1116に補助線1154〜1157が
付加された凸状の閉ループから閉ループ1119〜1121が検
出される。閉ループ1117, 1118と閉ループ1119〜1121
は、いずれも凹凸判定部506 では凸と判定される。形状
判定部507 では、閉ループ1117, 1119, 1120はいずれも
長方形と判定され、閉ループ1118と1121はいずれも三角
形と判定され、各閉ループについて特徴量計算部508 に
おいて表3に示すような内容の特徴量が計算される。
On the other hand, for closed loops 1115 and 1116,
The auxiliary lines 1152, 1153 and 1154-1157 are generated and added, the recursion depth depth is incremented from an initial value of 0 to 1, and the processing after the closed loop detection unit 504 is recursively repeated. as a result,
In the closed loop detector 504, the auxiliary line 11
Convex closed loop with 52 and 1153 added to closed loop 1117
And 1118 are detected, and closed loops 1119 to 1121 are detected from the convex closed loop in which the auxiliary lines 1154 to 1157 are added to the closed loop 1116. Closed loop 1117, 1118 and closed loop 1119 ~ 1121
Both are determined to be convex by the unevenness determination unit 506. In the shape determination unit 507, the closed loops 1117, 1119, and 1120 are all determined to be rectangular, and the closed loops 1118 and 1121 are both determined to be triangular. For each closed loop, the feature quantity calculation unit 508 has the characteristics shown in Table 3. The amount is calculated.

【0091】計算される特徴量のうち属性に関して説明
すれば、閉ループ1117と1119については、これらががい
ずれも再帰深さ1における最外周の閉ループであるため
属性設定規則1. に基づき属性「+」が設定される。ま
た、閉ループ1118,1120,1121については、これらがい
ずれも最外周の閉ループに該当せずかつ補助線を一部に
持つため、属性設定規則2ー1. に基づき属性「−」が
設定される。
The attributes of the calculated feature quantities will be described. For the closed loops 1117 and 1119, since these are the outermost closed loops at the recursion depth 1, the attribute “+” is determined based on the attribute setting rule 1. Is set. Further, the closed loops 1118, 1120, and 1121 do not correspond to the closed loop at the outermost periphery and have an auxiliary line in part, so that the attribute “−” is set based on the attribute setting rule 2-1. .

【0092】図11の平面図1102については、これを構
成する2次元図形データの外形線から、まず最外周閉ル
ープ検出部501 において最外周の閉ループ1122が検出さ
れ、この最外周の閉ループ1122が長方形であるため、最
外周閉ループ凹凸判定部502において凸と判定される。
従って、平面図1102の2次元図形データはそのまま閉ル
ープ検出部504 に入力され、ここで全ての閉ループ1122
〜1134が検出され、特徴量初期設定部505 において各閉
ループの再帰深さ depth が初期値0に設定される。
With regard to the plan view 1102 of FIG. 11, the outermost closed loop 1122 is first detected by the outermost closed loop detection unit 501 from the outline of the two-dimensional figure data forming the same, and this outermost closed loop 1122 is a rectangle. Therefore, the outermost peripheral closed-loop unevenness determining unit 502 determines that it is convex.
Therefore, the two-dimensional figure data of the plan view 1102 is directly input to the closed loop detection unit 504, where all the closed loop 1122 are input.
1134 is detected, and the recursion depth depth of each closed loop is set to an initial value 0 in the feature amount initial setting unit 505.

【0093】閉ループ1122〜1134のうち1122〜1128は凹
凸判定部506 で凸と判定され、閉ループ1129〜1134は凹
と判定される。凸と判定された閉ループ1122〜1128は形
状判定部507 でそれぞれ長方形と判定され、特徴量計算
部508 において表3に示すような特徴量が計算される。
計算される特徴量のうち属性に関して説明すれば、閉ル
ープ1122については、これが再帰深さ0における最外周
の閉ループで該当するため、属性設定規則1. に基づき
属性「+」が設定される。閉ループ1123〜1128について
は、これらが全て最外周の閉ループ1122に該当せずかつ
外形線のみで構成されるため、属性設定規則2ー3. に
基づき属性「0」が設定される。
Of the closed loops 1122 to 1134, 1122 to 1128 are judged to be convex by the concave / convex determining section 506, and closed loops 1129 to 1134 are judged to be concave. The closed loops 1122 to 1128 determined to be convex are each determined to be rectangular by the shape determination unit 507, and the feature amount calculation unit 508 calculates the feature amounts shown in Table 3.
Describing the attribute of the calculated feature amount, the closed loop 1122 corresponds to the closed loop at the outermost circumference at the recursion depth of 0, and thus the attribute “+” is set based on the attribute setting rule 1. Regarding the closed loops 1123 to 1128, all of them do not correspond to the closed loop 1122 of the outermost circumference and are composed only of the outline, and therefore the attribute “0” is set based on the attribute setting rule 2-3.

【0094】一方、凹と判定された閉ループ1129〜1134
については、補助線生成部510 で補助線が生成・付加さ
れ、再帰深さ depth が再帰処理制御部511 で初期値0
から1 に歩進され、閉ループ検出部504 以降の処理が再
帰的に反復される。その結果、閉ループ1129〜1133につ
いては、自身と既に検出済みの閉ループ1123〜1128と同
一の閉ループがそれぞれ検出される。このため、閉ルー
プ廃棄処理部509 において閉ループ1129〜1133は廃棄さ
れ、処理対象から除外される。
On the other hand, closed loops 1129 to 1134 determined to be concave
With respect to, the auxiliary line generation unit 510 generates and adds an auxiliary line, and the recursive depth depth is 0 by the recursive processing control unit 511.
To 1 and the processing after the closed loop detection unit 504 is recursively repeated. As a result, for the closed loops 1129 to 1133, the same closed loops as the closed loops 1123 to 1128 which have already been detected are detected. Therefore, the closed loop discard processing unit 509 discards the closed loops 1129 to 1133 and excludes them from the processing target.

【0095】一方、閉ループ1134については、補助線11
58と1159が生成・付加され、再帰深さ depth が初期値
0から1 に歩進され、閉ループ検出部504 以降の処理が
再帰的に反復される。その結果、閉ループ1135と1136が
検出され、閉ループ特徴量計算部508 において表3に示
すような特徴量が計算される。計算される特徴量のうち
属性について説明すれば、閉ループ1135は再帰深さ1に
おける最外周の閉ループに該当するため、属性設定規則
1. に基づき属性「+」が設定され、閉ループ1136につ
いては、これが最外周の閉ループに該当せずかつ補助線
を一部に持つため、属性設定規則2ー1. に基づき属性
「−」が設定される。
On the other hand, for the closed loop 1134, the auxiliary line 11
58 and 1159 are generated and added, the recursion depth depth is incremented from an initial value of 0 to 1, and the processing after the closed loop detection unit 504 is recursively repeated. As a result, the closed loops 1135 and 1136 are detected, and the closed loop feature amount calculation unit 508 calculates the feature amounts shown in Table 3. To explain the attribute of the calculated feature amount, the closed loop 1135 corresponds to the outermost closed loop at the recursion depth 1, so the attribute “+” is set based on the attribute setting rule 1. For the closed loop 1136, Since this does not correspond to the closed loop at the outermost periphery and has an auxiliary line in part, the attribute "-" is set based on the attribute setting rule 2-1.

【0096】側面図1103については、これを構成する2
次元図形データの外形線と隠れ線から、最外周閉ループ
検出部501 において最外周の閉ループ1137が検出され
る。この検出された最外周の閉ループ1137は最外周閉ル
ープ凹凸判定部502 において凸と判定され、そのまま閉
ループ検出部504 に入力される。閉ループ検出部504 で
は全ての閉ループ1137〜1143が検出され、各閉ループの
再帰深さ depth が初期値0に設定される。閉ループ11
37〜1143のうち閉ループ1137〜1141については、凹凸判
定部506 でいずれも凸と判定され、形状判定部507 でい
ずれも長方形と判定され、閉ループ特徴量計算部508 に
おいて表3に示すような特徴量が計算される。
Concerning the side view 1103, this constitutes 2
The outermost closed loop 1137 is detected by the outermost closed loop detection unit 501 from the outline and the hidden line of the three-dimensional figure data. The detected outermost closed loop 1137 is determined to be convex by the outermost closed loop unevenness determination unit 502, and is input to the closed loop detection unit 504 as it is. The closed loop detection unit 504 detects all closed loops 1137 to 1143 and sets the recursion depth depth of each closed loop to an initial value 0. Closed loop 11
For the closed loops 1137 to 1141 out of 37 to 1143, the unevenness determination unit 506 determines that they are all convex, the shape determination unit 507 determines that they are all rectangular, and the closed loop feature amount calculation unit 508 determines the characteristics as shown in Table 3. The amount is calculated.

【0097】計算される 特徴量のうち属性について説
明すれば、閉ループ1137については、これが再帰深さ0
における最外周の閉ループに該当するため、属性設定規
則1. に基づき属性「+」が設定される。また、閉ルー
プ1139については、これが最外周の閉ループに該当せず
かつ外形線のみから成るため属性設定規則2ー3. に基
づき属性「0」が決定され、閉ループ1140と1141につい
ては、これが最外周の閉ループに該当せずかつ隠れ線を
辺の一部として持つもののこの隠れ線が辺の一部に過ぎ
ないため、属性設定規則2ー3. に基づき属性「0」が
設定される。閉ループ1138については、これが最外周の
閉ループ1137に該当せず、隠れ線を一辺にもち、かつ、
この隠れ線が最外周の閉ループ1137に包含される外形線
と端点を共有するため、属性設定規則2ー2に基づき属
性「+」が設定される。
The attribute of the calculated feature amount will be described. For the closed loop 1137, this is the recursion depth 0.
Since it corresponds to the outermost closed loop in, the attribute “+” is set based on the attribute setting rule 1. In addition, the closed loop 1139 does not correspond to the outermost closed loop and is composed only of the outline, so the attribute “0” is determined based on the attribute setting rule 2-3. For the closed loops 1140 and 1141, this is the outermost circumference. Although it does not correspond to the closed loop and has a hidden line as a part of the side, this hidden line is only a part of the side. Therefore, the attribute “0” is set based on the attribute setting rule 2-3. Regarding the closed loop 1138, this does not correspond to the outermost closed loop 1137, has a hidden line on one side, and
Since this hidden line shares an end point with the outline included in the outermost closed loop 1137, the attribute “+” is set based on the attribute setting rule 2-2.

【0098】一方、閉ループ1142,1143は凹であるた
め、補助線生成部510 において補助線が生成・付加さ
れ、再帰深さ depthが初期値0から1 に歩進され、閉ル
ープ検出部504 以降の処理が再帰的に反復される。その
結果、閉ループ検出部504 においては閉ループ1142, 11
43自身と既に検出済みの閉ループ1138, 1139と同一の閉
ループがそれぞれ検出され、これらはいずれも検出済み
の閉ループと重複するため、閉ループ廃棄処理部509 に
おいて閉ループ1142, 1143が廃棄される。
On the other hand, since the closed loops 1142 and 1143 are concave, an auxiliary line is generated / added in the auxiliary line generation unit 510, the recursive depth depth is stepped from the initial value 0 to 1, and the closed loop detection unit 504 and subsequent steps are performed. The process is recursively repeated. As a result, in the closed loop detector 504, the closed loops 1142, 11
43 and the closed loops identical to the already detected closed loops 1138 and 1139 are detected, respectively, and both of them overlap with the detected closed loop, so that the closed loops 1142 and 1143 are discarded by the closed loop discard processing unit 509.

【0099】最終的には、正面図1101からは閉ループ11
04〜1108と1117〜1121が、平面図1102からは閉ループ11
22〜1128, 1135, 1136が、側面図1103からは閉ループ11
37〜1141がそれぞれ検出され、それぞれについて特徴量
が計算される。
Finally, from the front view 1101, the closed loop 11
04-1108 and 1117-1121 are closed loop 11 from the plan view 1102.
22 to 1128, 1135, 1136 are closed loop 11 from the side view 1103
37 to 1141 are detected, and the feature amount is calculated for each.

【0100】図12は、図11に示した正面図,平面
図,側面図から得られる閉ループについて、図1の面図
間対応処理部109 において実行される面図間の対応付け
を説明するための図である。図12において、図11の
閉ループに対する図12の閉ループの関係を表8に示す
ようなものとなる。
FIG. 12 is a view for explaining the correspondence between the plan views executed by the plan view correspondence processing section 109 of FIG. 1 for the closed loop obtained from the front view, the plan view and the side view shown in FIG. FIG. 12, the relationship of the closed loop of FIG. 12 with respect to the closed loop of FIG. 11 is as shown in Table 8.

【0101】 [0101]

【0102】図12において、閉ループ1201〜1209の特
徴量の中で面図内座標の最大・最小値を比較することに
より面図間対応処理部において、閉ループの組〔1201,1
204,1207〕と、閉ループの組〔1202,1205,1208〕と、
閉ループの組〔1203,1206,1209〕が対応付けられる。
対応付けられた各閉ループの組の属性については、これ
ら全ての閉ループの組において個々の閉ループの再帰深
さがいずれも等しい(0)ため、そのままの値が保持さ
れる。
In FIG. 12, by comparing the maximum value and the minimum value of the coordinates in the drawings in the feature quantities of the closed loops 1201 to 1209, the inter-drawing correspondence processing unit determines the set of closed loops [1201,1].
204, 1207] and a closed loop pair [1202, 1205, 1208],
A set of closed loops [1203, 1206, 1209] is associated.
With respect to the attributes of the associated closed loop sets, since the recursion depths of the individual closed loops are all equal (0) in all of these closed loop sets, the values are retained as they are.

【0103】図12に示すように対応付けられた閉ルー
プの組から、それぞれの閉ループの形状データをモデル
プリミティブ図形のラベルや形状パラメータと照合する
ことにより候補プリミティブが生成され、候補プリミテ
ィブのソリッドモデルの集合演算によって入力対象物体
の形状を表現するソリッドモデルが生成される。
From the set of closed loops associated as shown in FIG. 12, candidate primitives are generated by matching the shape data of each closed loop with the label or shape parameter of the model primitive figure, and the candidate primitive solid model is generated. A solid model representing the shape of the input target object is generated by the set operation.

【0104】図13は、図12に示した対応結果から得
られる候補プリミティブのソリッドモデルから入力対象
物体のソリッドモデルを生成させる方法を説明するため
の図である。図13において、候補プリミティブ1301
は、図12における閉ループの組〔1201,1204,1207〕
と個々の各閉ループの形状と面図内座標値とに基づき生
成された、3つの長方形をモデルプリミティブ図形のラ
ベルとしてもつ直方体のモデルプリミティブである。
FIG. 13 is a diagram for explaining a method of generating a solid model of an input target object from a solid model of a candidate primitive obtained from the correspondence result shown in FIG. In FIG. 13, the candidate primitive 1301
Is a set of closed loops [1201, 1204, 1207] in FIG.
And a rectangular parallelepiped model primitive having three rectangles as labels of the model primitive figure, which are generated based on the shape of each closed loop and coordinate values in the drawing.

【0105】各稜線の長さは閉ループの長方形の一辺の
長さに等しく、各頂点の3次元空間での位置座標は、対
応する閉ループの頂点の面図内座標を当該3次元空間の
座標に展開して得られる。同様に、候補プリミティブ13
02は、図12における閉ループの組〔1202,1205,120
8〕の組み合わせと各閉ループの形状と面図内座標値に
基づき生成される3つの長方形をモデルプリミティブ図
形のラベルとしてもつ直方体のモデルプリミティブであ
る。
The length of each edge is equal to the length of one side of the rectangle of the closed loop, and the position coordinates of each vertex in the three-dimensional space are the coordinates of the corresponding closed loop vertex in the drawing in the three-dimensional space. Obtained by expanding. Similarly, candidate primitive 13
02 is a set of closed loops [1202, 1205, 120 in FIG.
8] is a rectangular parallelepiped model primitive having three rectangles generated as a label of the model primitive figure based on the combination of [8], the shape of each closed loop, and the coordinate values in the plan.

【0106】候補プリミティブ1304は、図12における
閉ループの組〔1203,1206,1209〕の組み合わせと各閉
ループの形状と面図内座標値とに基づき生成された2つ
の長方形と1つの直角三角形をモデルプリミティブ図形
のラベルとしてもつ直角三角柱のモデルプリミティブで
ある。各稜線の長さは、閉ループの長方形や三角形の一
辺の長さに等しく、各頂点の3次元空間での位置座標
は、対応する閉ループの頂点の面図内座標を当該3次元
空間の座標に展開して得られることも候補プリミティブ
1301の場合と同様である。さらに各候補プリミティブの
属性は、図12における閉ループの属性、即ち図11に
おける閉ループの属性及び表5に示す属性の計算方法を
用いて表9のように求められる。
The candidate primitive 1304 models two rectangles and one right triangle generated based on the combination of the set of closed loops [1203, 1206, 1209] in FIG. 12, the shape of each closed loop, and the coordinate values in the drawing. It is a right-angled triangular prism model primitive used as a label for a primitive figure. The length of each ridge is equal to the length of one side of a closed loop rectangle or triangle, and the position coordinates of each vertex in the three-dimensional space are the coordinates of the corresponding closed loop vertex in the three-dimensional space. Can be obtained by expanding the candidate primitives
It is similar to the case of 1301. Further, the attribute of each candidate primitive is obtained as shown in Table 9 using the closed loop attribute in FIG. 12, that is, the closed loop attribute in FIG. 11 and the attribute calculation method shown in Table 5.

【0107】 [0107]

【0108】 ただし、 A: 図13中候補プリミティブ B: 図12中の閉ループの組み合せ C: 候補プリミティブのラベル D: 閉ループの属性の組み合せ E: 候補プリミティブの属性 F: 候補プリミティブの再帰深さHowever, A: candidate primitive in FIG. 13 B: combination of closed loop in FIG. 12 C: label of candidate primitive D: combination of attributes of closed loop E: attribute of candidate primitive F: recursion depth of candidate primitive

【0109】その結果、候補プリミティブ1301は
「+」、1302は「−」、1303は「−」の属性を持ちかつ
再帰深さはいずれも等しい0であるから、集合演算処理
部においてどの候補プリミティブどうしの空間的な集合
演算から開始してもよい。例えば、候補プリミティブ13
01のソリッドモデルと1302のソリッドモデル間の空間的
な差の演算が実行され、その中間結果として1304のソリ
ッドモデルが得られる。さらに1304のソリッドモデルと
候補プリミティブ1303のソリッドモデルとの間には空間
的な差の演算が実行され、最終的なソリッドモデル1305
が得られる。
As a result, the candidate primitives 1301 have the attributes "+", 1302 "-", and 1303 "-", and the recursion depths are all 0. You may start with a spatial set operation between them. For example, candidate primitive 13
The calculation of the spatial difference between the solid model of 01 and the solid model of 1302 is performed, and the solid model of 1304 is obtained as an intermediate result. Furthermore, a spatial difference calculation is performed between the solid model of 1304 and the solid model of the candidate primitive 1303, and the final solid model 1305
Is obtained.

【0110】ソリッドモデル1305を3面図で表現すると
図11に示す正面図,平面図,側面図に一致するから、
本発明により図11の正面図,平面図,側面図の2次元
図形データから対象物体の正しい3次元形状を表わした
ソリッドモデルを自動的に得ることができる。
When the solid model 1305 is expressed in three views, it corresponds to the front view, plan view and side view shown in FIG.
According to the present invention, a solid model representing the correct three-dimensional shape of the target object can be automatically obtained from the two-dimensional figure data of the front view, the plan view and the side view of FIG.

【0111】以上、候補プリミティブを生成する際に、
集合演算の符号に該当する属性を同時に発生させる構成
を例示した。しかしながら、そのような属性を伴わない
候補プリミティブのみを発生させて、図10に示す候補
プリミティブ1001,1002,1004のように画面表示させ、発
生させた候補プリミティブどうしの演算の符号「+」や
「−」を作業者がキーボードから入力することにより、
集合演算の際の符号を指定する構成とすることもでき
る。
As described above, when the candidate primitive is generated,
The configuration in which the attributes corresponding to the sign of the set operation are simultaneously generated is illustrated. However, only candidate primitives that do not have such attributes are generated and displayed on the screen as candidate primitives 1001, 1002, 1004 shown in FIG. 10, and the operation signs “+” and “ By inputting ``-'' from the keyboard,
It is also possible to adopt a configuration in which the code for the set operation is specified.

【0112】[0112]

【発明の効果】以上詳細に説明したように、本発明によ
れば、入力対象物体の形状を描いた3この面図の2次元
図形データから閉ループを検出し、これら2次元図形デ
ータから検出される凸状の閉ループについて特徴量を計
算し、各面図間での対応付けを行って対応する閉ループ
を構成面の輪郭線として持つ候補プリミティブを生成さ
せ、当該候補プリミティブの属性を当該プリミティブを
構成する閉ループの属性から計算し、候補プリミティブ
の属性を用いて候補プリミティブのソリッドモデルの空
間的な集合演算を実行することによって、入力対象物体
の形状を限定することなく、また虚の図形を生成したり
一旦得られたデータを再変換することなく、入力対象物
体の3次元形状を表現したソリッドモデルを自動的に生
成することが可能となる。
As described above in detail, according to the present invention, the closed loop is detected from the two-dimensional figure data of the three views showing the shape of the input target object and detected from these two-dimensional figure data. The feature amount is calculated for a convex closed loop, and each of the views is associated to generate a candidate primitive having the corresponding closed loop as the contour line of the constituent surface, and the attribute of the candidate primitive is configured for the primitive. By performing the spatial set calculation of the solid model of the candidate primitive using the attribute of the candidate primitive and the attribute of the candidate primitive, an imaginary figure is generated without limiting the shape of the input target object. It is possible to automatically generate a solid model that represents the three-dimensional shape of the input target object without having to reconvert the data once obtained. It made.

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

【図1】本発明の一実施例に係わる3次元図形データの
生成方法を処理部に分解して示す概念図である。
FIG. 1 is a conceptual diagram illustrating a method of generating three-dimensional graphic data according to an embodiment of the present invention by disassembling it into processing units.

【図2】正面図の2次元図形データの一例を示す図であ
る。
FIG. 2 is a diagram showing an example of two-dimensional graphic data of a front view.

【図3】直角三角柱のモデルプリミティブ図形を示す図
である。
FIG. 3 is a diagram showing a model primitive figure of a right-angled triangular prism.

【図4】閉ループの面図間での対応付けの方法を説明す
るための図である。
FIG. 4 is a diagram for explaining a method of associating closed-loop diagrams with each other.

【図5】図1の正面図閉ループ特徴量計算部106 処理の
内容を説明するための図である。
5 is a diagram for explaining the contents of the processing of the front view closed loop feature quantity calculation unit 106 in FIG. 1. FIG.

【図6】補助線を生成する方法を説明するための図であ
る。
FIG. 6 is a diagram for explaining a method of generating an auxiliary line.

【図7】3次元形状が2次元に縮退することを説明する
ための図である。
FIG. 7 is a diagram for explaining that a three-dimensional shape degenerates into two dimensions.

【図8】本発明を適用した第1の具体例を説明するため
の図
FIG. 8 is a diagram for explaining a first specific example to which the present invention is applied.

【図9】本発明を適用した上記第1の具体例を説明する
ための図
FIG. 9 is a diagram for explaining the first specific example to which the present invention is applied.

【図10】本発明を適用した上記第1の具体例を説明す
るための図
FIG. 10 is a diagram for explaining the first specific example to which the present invention is applied.

【図11】本発明を適用した第2の具体例を説明するた
めの図である。
FIG. 11 is a diagram for explaining a second specific example to which the present invention is applied.

【図12】本発明を適用した上記第2の具体例を説明す
るための図である。
FIG. 12 is a diagram for explaining the second specific example to which the present invention is applied.

【図13】本発明を適用した上記第2の具体例を説明す
るための図である。
FIG. 13 is a diagram for explaining the second specific example to which the present invention is applied.

【図14】従来のBーRepモデルを説明するための図で
ある。
FIG. 14 is a diagram for explaining a conventional B-Rep model.

【図15】従来のCGSモデルを説明するための図であ
る。
FIG. 15 is a diagram for explaining a conventional CGS model.

【符合の説明】[Explanation of sign]

101 2次元図形データ入力部 102 モデルプリミティブデータ入力部 103 正面図データ検索部 104 平面図データ検索部 105 側面図データ検索部 106 正面図閉ループ特徴量計算部 107 平面図閉ループ特徴量計算部 108 側面図閉ループ特徴量計算部 109 面図間対応処理部 110 候補プリミティブ生成部 111 集合演算処理部 112 ソリッドモデル生成部 501 最外周閉ループ検出部 502 最外周閉ループ凹凸判定部 503 最外周閉ループ補助線生成部 504 閉ループ検出部 505 特徴量初期設定部 506 凹凸判定部 507 形状判定部 508 特徴量計算部 509 閉ループ棄却処理部 510 補助線生成部 511 再帰処理制御部 512 最外周閉ループ形状判定部 101 Two-dimensional figure data input unit 102 Model primitive data input unit 103 Front view data search unit 104 Floor plan data search unit 105 Side view data search unit 106 Front view closed loop feature amount calculation unit 107 Plan view closed loop feature amount calculation unit 108 Side view Closed loop feature calculation unit 109 Plan correspondence processing unit 110 Candidate primitive generation unit 111 Set calculation processing unit 112 Solid model generation unit 501 Outermost closed loop detection unit 502 Outermost closed loop unevenness determination unit 503 Outermost closed loop auxiliary line generation unit 504 Closed loop Detection unit 505 Feature amount initial setting unit 506 Unevenness determination unit 507 Shape determination unit 508 Feature amount calculation unit 509 Closed loop rejection processing unit 510 Auxiliary line generation unit 511 Recursive processing control unit 512 Outermost closed loop shape determination unit

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】3次元形状を有する物体を互いに直交する
3つの平面に投影して得られる3個の面図を構成する2
次元図形データを入力する2次元図形データ入力処理
と、 前記3個の面図のそれぞれについて、前記2次元図形デ
ータに含まれる閉ループを検出する閉ループ検出処理
と、 前記3個の面図のそれぞれについて、前記検出された閉
ループが凹状であればこれに補助線を付加することによ
り凸状にする補助線付加処理と、 前記3個の面図のそれぞれについて、前記閉ループ検出
手段で検出された凸状の閉ループ及び前記補助線が付加
された凸状の閉ループについて、端点の座標値を含む特
徴量を計算する特徴量計算処理と、 前記3個の面図のそれぞれについて得られた凸状の閉ル
ープどうしを、それぞれについて計算された前記特徴量
に基づき対応付けることにより対応する3個の凸状の閉
ループの組を作成する面図間対応処理と、 前記対応付けた3個の凸状の閉ループの組から基本形状
立体を生成する基本形状立体生成処理と、 前記生成させた基本形状立体が複数の場合相互の集合演
算を行う処理とを含むことを特徴とする3次元図形デー
タの生成方法。
1. A three-dimensional diagram obtained by projecting an object having a three-dimensional shape onto three planes orthogonal to each other 2
Two-dimensional graphic data input processing for inputting three-dimensional graphic data, closed loop detection processing for detecting a closed loop included in the two-dimensional graphic data for each of the three views, and each of the three views If the detected closed loop is concave, an auxiliary line adding process is performed to add a convex line to the detected closed loop, and the convex shape detected by the closed loop detecting means for each of the three views. Of the closed loop and the convex closed loop to which the auxiliary line is added, a feature amount calculation process of calculating a feature amount including coordinate values of end points, and convex closed loops obtained for each of the three views. Corresponding to each other on the basis of the feature amount calculated for each, to create a set of three corresponding closed convex loops, It is characterized by including basic shape solid generation processing for generating a basic shape solid from a set of three closed convex loops, and processing for performing mutual set operation when there are a plurality of generated basic shape solids. A method of generating three-dimensional graphic data.
【請求項2】 請求項1において、 前記閉ループ検出処理は、前記各面図について、まず最
外周閉ループを検出する第1の閉ループ検出処理と、次
いでこの検出された最外周閉ループに包含される閉ルー
プを検出する第2の閉ループ検出処理とを含むことを特
徴とする3次元図形データの生成方法。
2. The closed loop detection process according to claim 1, wherein, for each of the floor plans, a first closed loop detection process for first detecting an outermost peripheral closed loop, and then a closed loop included in the detected outermost peripheral closed loop. And a second closed-loop detection process for detecting the three-dimensional figure data.
【請求項3】 請求項2において、 前記第2の閉ループ検出処理は、前記補助線付加処理に
よる補助線の付加を介在させながら反復されることを特
徴とする3次元図形データの生成方法。
3. The method for generating three-dimensional graphic data according to claim 2, wherein the second closed loop detection process is repeated while interposing the addition of the auxiliary line by the auxiliary line addition process.
【請求項4】 請求項3において、 前記第2の閉ループ検出処理は、既に検出済みの閉ルー
プと同一の閉ループを生じさせた凹状の閉ループを廃棄
する処理を含むことを特徴とする3次元図形データの生
成方法。
4. The three-dimensional graphic data according to claim 3, wherein the second closed loop detection process includes a process of discarding a concave closed loop that has generated the same closed loop as the already detected closed loop. How to generate.
【請求項5】 請求項4において、 前記特徴量は、所定の属性設定規則に基づき生成される
属性を含むことを特徴とする3次元図形データの生成方
法。
5. The method for generating three-dimensional graphic data according to claim 4, wherein the feature amount includes an attribute generated based on a predetermined attribute setting rule.
【請求項6】 請求項5において、 前記特徴量は、前記第2の閉ループ検出処理に伴う補助
線の付加の反復回数を再帰深さとして含むことを特徴と
する3次元図形データの生成方法。
6. The method for generating three-dimensional graphic data according to claim 5, wherein the feature quantity includes, as a recursive depth, the number of iterations of adding an auxiliary line accompanying the second closed loop detection processing.
【請求項7】 請求項6において、 前記所定の属性設定規則は、前記各再帰深さにおいて、 1.最外周の閉ループについては属性「+」を設定し、 2.最外周の閉ループ以外の閉ループであって、 2ー1.補助線を一部に含むものについては属性「−」
を設定し、 2ー2.隠れ線を一辺に持ち、かつこの隠れ線がこの閉
ループを包含する最外周閉ループに包含される外形線と
端点を共有するものについては属性「+」を設定し、 2ー2.前記2ー1.にも2ー2にも該当しないものに
ついては属性「0」を設定する ものであることを特徴とする3次元図形データの生成方
法。
7. The predetermined attribute setting rule according to claim 6, wherein: 1. Set the attribute “+” for the outermost closed loop, A closed loop other than the outermost closed loop, 2-1. Attribute "-" for those that include auxiliary lines as part
Set 2-2. The attribute "+" is set for those having a hidden line on one side, and this hidden line shares an end point with the contour line included in the outermost closed loop including this closed loop, and 2-2. 2-1. In addition, the method of generating three-dimensional graphic data is characterized in that the attribute "0" is set for items that do not fall under 2 or 2.
【請求項8】 請求項7において、 前記基本形状立体生成処理は、生成する基本形状立体が
前記集合演算処理において他の基本形状立体に加算され
ることを示す演算符号「+」又は他の基本立体から減算
されることを示す演算符号「−」を、前記対応付けられ
た3個の凸状の閉ループの属性に基づき生成する演算符
号の生成処理を含むことを特徴とする3次元図形データ
の生成方法。
8. The operation code “+” or another basic code according to claim 7, wherein the basic shape solid generation processing indicates that the basic shape solid to be generated is added to another basic shape solid in the set calculation processing. An operation code "-" indicating that the operation code is subtracted from a solid is generated based on the attributes of the associated three closed convex loops. Generation method.
【請求項9】 請求項8において、 前記各閉ループの属性に基づく演算符号の生成処理は、 前記対応付けられた3個の凸状の閉ループのうち少なく
とも一つが属性「−」を有するか又は全てが属性「0」
を有する場合には前記演算符号「−」を生成し、その他
の場合には前記演算符号「+」を生成処理を含むことを
特徴とする3次元図形データの生成方法。
9. The generation processing of an operational code based on the attribute of each closed loop according to claim 8, wherein at least one of the three associated closed closed loops has an attribute “−” or all of them. Has attribute "0"
The method for generating three-dimensional graphic data comprises the step of generating the operation code "-" when the above-mentioned is included, and the generation processing of the operation code "+" otherwise.
【請求項10】 請求項9において、 前記各閉ループの属性に基づく演算符号の生成処理は、 各閉ループについての再帰深さをゼロ以上の整数i,
j,k、ただしi≦j≦k、とした場合、 最小の再帰深さiの閉ループについては元の属性を、再
帰深さjの閉ループについては元の属性を(−1)j-i
倍した属性を、再帰深さkの閉ループについては元の属
性を(−1)K-i 倍した属性をそれぞれ用いることを特
徴とする3次元図形データの生成方法。
10. The generation processing of an operation code based on the attribute of each closed loop according to claim 9, wherein the recursion depth for each closed loop is an integer i of 0 or more,
j, k, where i ≦ j ≦ k, the original attribute is set for the closed loop with the minimum recursion depth i, and the original attribute is set to (−1) ji for the closed loop with the recursion depth j.
A method for generating three-dimensional graphic data, characterized in that an attribute obtained by multiplying an original attribute by (-1) Ki is used for a closed loop having a recursion depth k.
【請求項11】 請求項8乃至9において、 前記生成される基本形状立体は、前記対応付けられる3
個の凸状の閉ループのそれぞれが有する再帰深さのうち
最大のものをこの基本形状立体の再帰深さとして有し、
前記生成された基本形状立体どうしの集合演算は各基本
形状立体の再帰深さの大きなものから小さなものへと順
番に行われることを特徴すとる3次元図形データの生成
方法。
11. The basic shape solid generated according to claim 8 or 3,
Has the maximum of the recursion depth of each of the convex closed loop of the number as the recursion depth of this basic shape solid,
A method of generating three-dimensional graphic data, wherein the set operation of the generated basic shape solids is performed in order from a large recursive depth of each basic shape solid to a small recursive depth thereof.
JP4236527A 1992-08-12 1992-08-12 Method for generating three-dimension graphic data Withdrawn JPH0660153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4236527A JPH0660153A (en) 1992-08-12 1992-08-12 Method for generating three-dimension graphic data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4236527A JPH0660153A (en) 1992-08-12 1992-08-12 Method for generating three-dimension graphic data

Publications (1)

Publication Number Publication Date
JPH0660153A true JPH0660153A (en) 1994-03-04

Family

ID=17002012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4236527A Withdrawn JPH0660153A (en) 1992-08-12 1992-08-12 Method for generating three-dimension graphic data

Country Status (1)

Country Link
JP (1) JPH0660153A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6215493B1 (en) 1996-10-04 2001-04-10 Honda Giken Kogyo Kabushiki Kaisha Three-dimensional CAD system and method of converting two-dimensional CAD drawings to three-dimensional CAD drawings
US7103516B2 (en) 1998-07-14 2006-09-05 Fujitsu Limited Apparatus and method for optimizing three-dimensional model

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6215493B1 (en) 1996-10-04 2001-04-10 Honda Giken Kogyo Kabushiki Kaisha Three-dimensional CAD system and method of converting two-dimensional CAD drawings to three-dimensional CAD drawings
US7103516B2 (en) 1998-07-14 2006-09-05 Fujitsu Limited Apparatus and method for optimizing three-dimensional model

Similar Documents

Publication Publication Date Title
Herman et al. Incremental reconstruction of 3D scenes from multiple, complex images
Brenner Towards fully automatic generation of city models
Grimstead et al. Creating solid models from single 2D sketches
Xu et al. Reconstruction of scaffolds from a photogrammetric point cloud of construction sites using a novel 3D local feature descriptor
Guéziec et al. Cutting and stitching: Converting sets of polygons to manifold surfaces
US7133551B2 (en) Semi-automatic reconstruction method of 3-D building models using building outline segments
CN112633657B (en) Construction quality management method, device, equipment and storage medium
Pantoja-Rosero et al. Generating LOD3 building models from structure-from-motion and semantic segmentation
CN107680154B (en) View-based voxel geometric parameter extraction method
Fougerolle et al. Boolean operations with implicit and parametric representation of primitives using R-functions
Herman et al. Incremental acquisition of a three-dimensional scene model from images
CN112634455B (en) Method for repairing three-dimensional model ridge line by using cut triangular surface patches
CN112991424B (en) Fractal dimension calculation method and device based on octree algorithm
Pacheco et al. Reconstruction of high resolution 3D objects from incomplete images and 3D information
CN113971718A (en) Method for performing Boolean operation on three-dimensional point cloud model
US7388584B2 (en) Method and program for determining insides and outsides of boundaries
JPH0660153A (en) Method for generating three-dimension graphic data
Zlatanova et al. 3D object reconstruction from aerial stereo images
Zetu et al. Data input model for virtual reality-aided facility layout
Patel et al. Automatic CAD model topology generation
Kang et al. Extraction of concise and realistic 3-D models from real data
Anand et al. An algorithm for converting the boundary representation of a CAD model to its octree representation
JPH0981788A (en) Environment model input device
JP2003345840A (en) Method of generating three-dimensional model
Conesa et al. New advances in obtaining three-dimensional models from conical perspectives

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991102