JPH02236677A - Shape conversion method and device - Google Patents
Shape conversion method and deviceInfo
- Publication number
- JPH02236677A JPH02236677A JP1058454A JP5845489A JPH02236677A JP H02236677 A JPH02236677 A JP H02236677A JP 1058454 A JP1058454 A JP 1058454A JP 5845489 A JP5845489 A JP 5845489A JP H02236677 A JPH02236677 A JP H02236677A
- Authority
- JP
- Japan
- Prior art keywords
- shape
- line segment
- approximate model
- degree
- line
- 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.)
- Granted
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は,CAEなとの分野で用いられるコンピュータ
による形状変換方法および装置に係り,特に、形状の分
類、識別を必要とするモデリング,メッシュ分割に好適
な形状変換方法および装置に関する.
〔従来の技術〕
CAEにおいては,境界形状が面一線一点とつながる構
造データ,及び面、線の方程式や点の座標などの幾荷デ
ータで表現されている.これらのデータをもとにした形
状認識手法として、従来、最も一般的に用いられてまた
方法として、四分水法(2次元)及び八分水法(3次元
)があり、「有限要素分割のための改良された四分水法
Jマークエー・エリーとマークエス・シェファードIE
EE CG&A 1983年1月P39〜4 6
(A Modified Quadtree Appr
oach toFinite E1am+ant
Mesh Generatjon Mark A
.Yerry and Mark S . Shaph
ard I E E E CO&A January
1 9 8 3 )にも詳説されテイる。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a shape conversion method and apparatus by computer used in fields such as CAE, and in particular, to modeling and meshing that require shape classification and identification. This article relates to a shape conversion method and device suitable for segmentation. [Prior art] In CAE, a boundary shape is expressed by structural data that connects each point on a surface, as well as component data such as equations of surfaces and lines and coordinates of points. Conventionally, the most commonly used shape recognition methods based on these data are the four-division method (two-dimensional) and the eight-division method (three-dimensional). Improved quadripartite method for J Mark A. Ely and Mark S. Shepherd IE
EE CG&A January 1983 P39-4 6
(A Modified Quadtree Appr.
oach to Finite E1am+ant
Mesh Generator Mark A
.. Yerry and Mark S. Shaph
ard IEE CO&A January
It is also explained in detail in 1983).
ここでは、説明を簡単にするため、第17A図に示す2
次元形状を例にとってこの手法を説明する.
まず、この図形を基準となる正方形(基準正方形)の中
に入れこの正方形の一辺の長さが2nとなるような整数
座標系を設定する.そして、基準正方形を小さな正方形
に4等分して,各領域と前記図形を形成する境界線の関
係を次のように分類する.
(1)正方形が境界線の内側にある
(2)正方形が境界線の外側にある
(3)正方形が境界線を含む
ここで、(3)と判定された正方形のみを再び4等分し
、上記のチェックを行う.このような操作を適当な形状
解像度に対応するレベルまで続ける.正方形の一辺が基
準正方形の1/8になるまで分割した結果が第17B図
でこれに対応するツリー構造は第17C図で表される,
また.1ランク解像度を上げると第17D図のようにな
る.そして、形状認識においては、第17C図のツリー
構造をもとに、形状の概略特性を判定する.第17C図
に記入された数字は,分割されてできた正方形領域と対
象図形を形成する境界線との関係を示し、前記三つの分
類に対応している.〔発明が解決しようとする課題〕
上記従来技術においては、形状そのものの全体的図形特
性を把握することは困難で登録図形(比較対象となる図
形)から形がゆがんでくると、認識率が累進的に低下す
る欠点があった.また,近似モデルを作成するにも,対
象形状の各辺をどの座標軸に平行にするかに関して統一
的な理論は確立されておらず、多分にあいまいさを含ん
でいる.本発明の課題は、任意の形状を図形特性が保存
でき、かつ分類が容易にできるような近似モデルに形状
変換を行うにある.
(課題を解決するための手段〕
上記の課題は、任意形状を直線線分のみからなる形状に
変換する手段を備えた形状変換装置に、該直線線分を座
標軸に平行な線分に変換する手段を備えることにより達
成される.
直線線分を座標軸に平行な線分に変換する手段が、メン
バシップ関数を用いて演算を行なうあいまい演算部を備
えている請求項1に記載の形状変換装置としてもよい.
また,上記課題は,任意形状の境界線または稜線を複数
の直線線分で近似し,それぞれの線分の座標軸への近似
度を0から1の変数で表現し,あいまいルールにより該
変数を全体的に修正して各線分をいずれかの座標軸に平
行に割り当て、最終的に一つの近似モデルに収束させる
形状変換方法によっても達成される。Here, in order to simplify the explanation, the 2
This method will be explained using a dimensional shape as an example. First, place this figure in a standard square (reference square) and set an integer coordinate system such that the length of one side of this square is 2n. Then, divide the reference square into four small squares, and classify the relationship between each area and the boundary line forming the figure as follows. (1) The square is inside the boundary line. (2) The square is outside the boundary line. (3) The square includes the boundary line. Here, only the squares determined as (3) are divided into four again, Perform the above checks. Continue these operations until the level corresponds to an appropriate shape resolution. The result of dividing the square until one side becomes 1/8 of the reference square is shown in Figure 17B, and the corresponding tree structure is shown in Figure 17C.
Also. When the resolution is increased by one rank, it becomes as shown in Figure 17D. In shape recognition, the general characteristics of the shape are determined based on the tree structure shown in FIG. 17C. The numbers written in Fig. 17C indicate the relationship between the divided square areas and the boundary line forming the target figure, and correspond to the three categories mentioned above. [Problems to be Solved by the Invention] In the above-mentioned conventional technology, it is difficult to grasp the overall graphical characteristics of the shape itself, and as the shape becomes distorted from the registered figure (the figure to be compared), the recognition rate progressively increases. There was a drawback that the performance decreased. Furthermore, when creating an approximate model, there is no unified theory regarding which coordinate axes to make each side of the target shape parallel to, and there is a lot of ambiguity involved. The problem of the present invention is to transform an arbitrary shape into an approximate model that can preserve the graphical characteristics and facilitate classification. (Means for solving the problem) The above problem is achieved by using a shape conversion device that is equipped with a means for converting an arbitrary shape into a shape consisting only of straight line segments, and converting the straight line segments into line segments parallel to the coordinate axes. The shape conversion device according to claim 1, wherein the means for converting a straight line segment into a line segment parallel to the coordinate axes includes an ambiguous operation unit that performs an operation using a membership function. In addition, in the above task, a boundary line or ridge line of an arbitrary shape is approximated by multiple straight line segments, and the degree of approximation of each line segment to the coordinate axis is expressed as a variable between 0 and 1. This can also be achieved by a shape transformation method that globally modifies the variables, assigns each line segment parallel to one of the coordinate axes, and finally converges to one approximate model.
また、任意形状の境界線または稜線を複数の直線線分で
近似し、隣接する線分が,一直線上にあるか、互いに垂
直になるように前記線分を変換して形状を形成する形状
変換方法としてもよい.また,任意形状の境界線または
稜線を複数の直線線分で近似し、それぞれの線分が座標
軸となす角度を計算し、計算された角度および予め設定
されたあいまいルールに基づくメンバシップ関数により
前記線分をいずれかの座標軸に平行に割り当てて、前記
任意形状の近似モデルを作成する形状変換方法としても
よい.
また、あいまいルールが、少なくとも、線分となす角が
最も小さい座標軸の方向へなるべく該線分が割り当てら
れることと、互に隣接する二つの線分はそのなす角が一
定角よりも小さいほどなるべく異なる方向に、なす角が
一定角よりも大きいほどなるべく同じ方向に割り当てら
れることと,を含んでいる請求項5に記載の形状変換方
法としてもよい.
また、与えられた形状の境界面または境界線の近似モデ
ルと、該境界面または境界線に含まれる穴の近似モデル
と,を独立に作成したのち,与えられた前記実形状にお
いて穴に関係なく滑らかな格子を形成し、実形状におい
て穴を形成する頂点がどの格子点に対応するかをもとに
して近似モデルにおける穴の境界形状に対する相対位置
を決定することを特徴とする形状変換方法としてもよい
.さらに,近似モデルの形状の位相的特性を保持したま
ま、該近似モデルを構成する線分の長さを、単位長さの
最小の整数倍に変換することを特徴とする形状変換方法
としてもよい.
〔作用〕
任意形状が,直線線分のみからなる形状に変換され,さ
らに該直線線分が,いずれかの座標軸に平行に変換され
るので、前記任意形状は座標軸に平行な直線のみで構成
された図形に変換される.メンバシップ関数を用いて演
算を行うあいまい演算部は、あらかじめ定められたあい
まいルールに従って、それぞれの線分が,どの座標軸に
平行に変換されるべきかを選定する.
任意形状の近似モデル作成にあたっては、まず,該任意
形状のすべての稜線(3次元形状の場合)もしくは境界
線(2次元形状の場合)が直線線分によって近似され,
各線分と座標軸(XyytZ軸)とがなす角度が算出さ
れる.次に各線分をどの座標軸に平行にするかの割り当
てを行うにあたり、すくなくとも次の二つの基本となる
あいまいルールが用いられる.
■各線分はなるべくなす角が最も小さい座標軸の方向へ
割り当てられる。Shape transformation also involves approximating a boundary line or ridgeline of an arbitrary shape with multiple straight line segments, and converting the line segments so that adjacent line segments are on a straight line or perpendicular to each other to form a shape. It can also be used as a method. In addition, a boundary line or ridge line of an arbitrary shape is approximated by multiple straight line segments, the angle that each line segment makes with the coordinate axis is calculated, and the calculated angle and a membership function based on a preset ambiguity rule are used to A shape conversion method may be used in which a line segment is assigned parallel to one of the coordinate axes to create an approximate model of the arbitrary shape. In addition, the ambiguity rule requires that a line segment is assigned as much as possible in the direction of the coordinate axis that has the smallest angle with the line segment, and that two adjacent line segments are assigned as much as possible as the angle between them is smaller than a certain angle. The shape conversion method according to claim 5 may include the step of assigning different directions to the same direction as the angles formed are larger than a certain angle. In addition, after independently creating an approximate model of the boundary surface or boundary line of a given shape and an approximate model of the hole included in the boundary surface or boundary line, A shape conversion method characterized by forming a smooth lattice and determining the relative position of the hole in the approximate model with respect to the boundary shape based on which lattice points correspond to the vertices forming the hole in the actual shape. Good too. Furthermore, it may be a shape conversion method characterized by converting the length of a line segment constituting the approximate model to the minimum integral multiple of the unit length while maintaining the topological characteristics of the shape of the approximate model. .. [Operation] The arbitrary shape is transformed into a shape consisting only of straight line segments, and the straight line segments are further transformed to be parallel to one of the coordinate axes, so that the arbitrary shape is composed only of straight lines parallel to the coordinate axes. It will be converted into a shape. The fuzzy calculation part, which performs calculations using membership functions, selects which coordinate axis each line segment should be transformed parallel to, according to predetermined fuzzy rules. When creating an approximate model of an arbitrary shape, first, all the edges (in the case of a three-dimensional shape) or boundary lines (in the case of a two-dimensional shape) of the arbitrary shape are approximated by straight line segments,
The angle between each line segment and the coordinate axes (XyytZ axes) is calculated. Next, when assigning which coordinate axis each line segment should be parallel to, at least the following two basic fuzzy rules are used. ■Each line segment is assigned as far as possible to the direction of the coordinate axis that forms the smallest angle.
■隣り合う2辺は、そのなす角が一定角よりも小さいほ
ど、なるべく異なる座標軸の方向へ割り当てられ、なす
角が一定角よりも大きいほど、なるべく同じ方向に割り
当てられる.
そして,このルールの持つあいまいさを表現する為にフ
ァジィ理論におけるメンバーシップ関数が用いられる.
まず、各線分の座標軸への近似度がOから1で表される
.この場合,座標軸となす角がO度に近いほど近似度は
1に近づき、なす角が90度に近いほど近似度は0に近
づく.さらに、隣り合う2辺に関して、2辺のなす角を
もとに同方向度が−1から1で表される.この場合、2
辺のなす角が180度に近いほど同方向度は1に近づき
、90度までに−1にまで変化し,90度以下で−1で
一定となる.
次に、隣り合う2辺に関して,座標軸への近似度及び同
方向度をもとに・互いの辺への影響度が計算される.こ
の場合,同方向度が正の場合は,例えば影響を与える辺
のX方向近似度は影響を受ける辺のX方向近似度を高く
し、Y,Z方向近似度を低くする働きをする.また,同
方向度が負の場合は,例えば影響を与える辺のY方向近
似度は影響を受ける辺のY方向近似度を低<b,x,z
方向近似度を高くする働きをする.そして、このような
影響度が数量で表され,この影響度によって、各辺のx
,y,z座標軸それぞれへの近似度が修正される.
すべての辺の修正が終われば、修正された近似度をもと
に、同様にして隣り合う2辺に関して影響度が算出され
、これにより再び座標軸への近似度が修正される.この
ような演算が繰り返し行われ、すべての辺に関して、各
座標軸への近似度のうち1方向への近似度が充分1に近
付けば、その状態を収束状態として、各辺の方向割り当
てが決定される。■The smaller the angle between two adjacent sides is than a certain angle, the more they are assigned to different coordinate axes, and the larger the angle that they form, the more they are assigned to the same direction. Membership functions in fuzzy theory are used to express the ambiguity of this rule.
First, the degree of approximation of each line segment to the coordinate axis is expressed from 0 to 1. In this case, the closer the angle to the coordinate axis is to 0 degrees, the closer the degree of approximation is to 1, and the closer the angle to the coordinate axis is to 90 degrees, the closer the degree of approximation is to 0. Furthermore, for two adjacent sides, the degree of same direction is expressed from -1 to 1 based on the angle formed by the two sides. In this case, 2
The closer the angle between the sides is to 180 degrees, the closer the degree of same direction is to 1, changes to -1 by 90 degrees, and remains constant at -1 below 90 degrees. Next, for two adjacent sides, the degree of influence on each other is calculated based on the degree of approximation to the coordinate axes and the degree of same direction. In this case, if the degree of co-direction is positive, for example, the degree of approximation in the X direction of the influencing side will work to increase the degree of approximation in the X direction of the affected side, and decrease the degree of approximation in the Y and Z directions. In addition, if the same direction is negative, for example, the Y-direction approximation of the influencing side is lower than the Y-direction approximation of the affected side < b, x, z
It works to increase the degree of directional approximation. Then, this degree of influence is expressed as a quantity, and depending on this degree of influence, x of each side is
, y, and z coordinate axes are corrected. Once all edges have been corrected, the degree of influence is calculated for two adjacent sides in the same way based on the corrected degree of approximation, and the degree of approximation to the coordinate axes is thereby corrected again. Such calculations are repeated, and when the degree of approximation in one direction to each coordinate axis for all sides approaches 1, the direction assignment of each side is determined with that state as a convergence state. Ru.
各辺の方向割り当てが決定すれば、ループ(図形)ごと
に近似モデル上での各辺の長さの決定が行われる.この
際、基本的な線長決定の方法として、以下の方法が用い
られる.第15図に示すように、2次元図形が、座標軸
に平行な線分のみで構成されるとループをたどれば各線
分の向きは4方向に分類される.そこで,それぞれの線
分に対応する実形状の線分の各方向成分の線分長の方向
ごとの合計が算出され、実形状での方向1と方向2に対
応する線分の線分長の合計の平均値が近似モデル上での
方向1と方向2を持つ線分の線分長の合計に設定され、
方向3と方向4に関しても同じ操作が行われる.そして
,近似モデル上での同じ方向の線分の線分長の合計値が
決まれば、この合計値が実形状での線分長の比に応じ座
標軸に平行に割り当てられた各直線線分の長さとして比
例配分され、各辺の近似モデル上での長さの決定が行わ
れる。このようにして.幾何特性及び位相特性をできる
だけ保存した座標軸に平行な線分のみで構成される近似
モデルが作成される.各構成単位(境界形状及び該形状
に含まれる穴)ごとの近似モデルが構成されたのち,適
当な単位長さが設定され、すべての辺がこの単位長さの
整数倍になるように修正され,この単位長さをもとに境
界形状及び穴形状独立に格子を張られる。そして、近似
モデルの境界形状に格子が張れれば,曲線座標変換法を
用いて、この格子が穴を考慮しない実形状に写像される
.
ここで、曲線座標変換法とは,第9図に示すように,直
交格子をもとにして、任意形状に均一な格子を形成する
数学的手法をいう。Once the direction assignment of each side is determined, the length of each side on the approximate model is determined for each loop (figure). At this time, the following method is used as a basic method for determining line length. As shown in Figure 15, if a two-dimensional figure is composed only of line segments parallel to the coordinate axes, the orientation of each line segment can be classified into four directions if a loop is followed. Therefore, the sum for each direction of the line segment length of each direction component of the line segment of the real shape corresponding to each line segment is calculated, and the line segment length of the line segment corresponding to direction 1 and direction 2 in the real shape is calculated. The average value of the sum is set to the sum of the line segment lengths of the line segments with direction 1 and direction 2 on the approximate model,
The same operation is performed for directions 3 and 4. Once the total value of the line segment lengths of line segments in the same direction on the approximate model is determined, this total value is calculated for each straight line segment assigned parallel to the coordinate axis according to the ratio of the line segment lengths in the actual shape. The length is distributed proportionally, and the length is determined on the approximate model of each side. In this way. An approximate model consisting only of line segments parallel to the coordinate axes is created, preserving the geometric and topological properties as much as possible. After an approximate model is constructed for each constituent unit (boundary shape and hole included in the shape), an appropriate unit length is set, and all sides are modified so that they are integral multiples of this unit length. , based on this unit length, a grid is created independently for the boundary shape and hole shape. Then, if a grid can be placed on the boundary shape of the approximate model, this grid is mapped to the real shape without considering holes using the curve coordinate transformation method. Here, the curve coordinate conversion method is a mathematical method of forming a uniform grid in an arbitrary shape based on an orthogonal grid, as shown in FIG.
実形状の境界内部に格子が張れれば、穴の特徴点に最も
近い格子点が求められ,近似モデルの境界内部に張られ
た格子の上での対応が取られ,穴の近似モデルの境界形
状の近似モデルに対する相対位置の最適化が図られ、穴
を含んだ全体的近似モデルが構成される。If a grid can be drawn inside the boundary of the actual shape, the grid points closest to the feature points of the hole are found, and correspondence is taken on the grid drawn inside the boundary of the approximate model, and the boundary of the approximate model of the hole is calculated. The relative position of the shape relative to the approximate model is optimized, and an overall approximate model including holes is constructed.
全体的近似モデルができれば、第16図に示されるよう
に、近似モデルの位相状態が保持されることを前提に、
各辺が最小の整数値を取るように変換された認識モデル
が構成される。この認識モデルの各辺には対応する近似
モデルの各辺の長さが属性として与えられる.
認識モデルの認識は、次の手順で行われる。Once the overall approximate model is created, as shown in Figure 16, assuming that the phase state of the approximate model is maintained,
A recognition model is constructed in which each side is transformed so that it takes the minimum integer value. Each edge of this recognition model is given the length of each edge of the corresponding approximate model as an attribute. Recognition of the recognition model is performed in the following steps.
■認識モデルの大きさ(NX,NY)による分類■認識
モデルの形状による分類
■各辺の対応線分の線長をもとにした比較以上3段階の
認識手順により、もとの任意形状に相当する登録図形が
選び出される。■Classification by the size of the recognition model (NX, NY) ■Classification by the shape of the recognition model ■Comparison based on the line length of the corresponding line segment on each side Using the above three-step recognition procedure, the original arbitrary shape can be created. A corresponding registered figure is selected.
第1図は本発明の実施例の全体構成を示すブロック図で
ある.任意形状設定部8に接続してキーボード2.タブ
レット3、およびマウス4などの構成要素からユーザに
より形状の直接入力が行われる図形入力部1が設けられ
,該図形入力部1はさらに,表示制御部6を有するCR
Tディスプレー5に接続されている.前記任意形状設定
部8の入力側には,さらに、形状読取部7が接続され、
任意形状設定部8の出力側には,曲線変換部9や幾何演
算部10で得られた情報をもとに各辺の座標軸への近似
度や隣り合う2辺の同方向度を算出する形状情報生成部
11が接続されている.該形状情報生成部11は、さら
に、近似モデル生成部15に接続され,前記幾何演算部
10は形状情報生成部11および近似モデルを生成部1
5に接続されている。近似モデル生成部15はさらに全
体近似モデル生成部18に接続され、全体近似モデル生
成部18は認識モデル生成部19に接続されている.認
識モデル生成部19は、認識結果表示部22に接続され
、認識結果表示部22はさらに前記CRTディスプレー
5に接続されている。形状情報生成部11には,さらに
、任意形状の稜線(境界線)を直線近似する曲線変換部
9およびファジィ演算を行って決定された各辺の座標軸
方向べの方向割当てにより、位相的に形状が成立するか
どうかを確認する整合確認部14が接続されている。FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention. A keyboard 2. is connected to the arbitrary shape setting section 8. A graphic input unit 1 is provided in which a user directly inputs a shape from components such as a tablet 3 and a mouse 4, and the graphic input unit 1 further includes a CR having a display control unit 6.
Connected to T display 5. A shape reading section 7 is further connected to the input side of the arbitrary shape setting section 8,
On the output side of the arbitrary shape setting section 8, there is a shape that calculates the degree of approximation of each side to the coordinate axes and the degree of same direction of two adjacent sides based on the information obtained from the curve conversion section 9 and the geometric calculation section 10. An information generation unit 11 is connected. The shape information generation section 11 is further connected to an approximate model generation section 15, and the geometric operation section 10 generates the shape information generation section 11 and the approximate model from the generation section 1.
5. The approximate model generating section 15 is further connected to an overall approximate model generating section 18 , and the overall approximate model generating section 18 is connected to a recognition model generating section 19 . The recognition model generation section 19 is connected to a recognition result display section 22, and the recognition result display section 22 is further connected to the CRT display 5. The shape information generation section 11 further includes a curve conversion section 9 for linearly approximating the ridgeline (boundary line) of an arbitrary shape, and the direction assignment of the coordinate axes of each side determined by performing fuzzy calculations to generate the shape topologically. A matching confirmation unit 14 is connected to confirm whether or not the following holds true.
前記近似モデル生成部15には、形状情報をもとに、あ
いまいルールに従って各辺の座標軸への近似度を修正す
るファジィ演算部13および前記整合確認部14が接続
され、ファジィ演算部13には、形状変換を行ううえで
の種々のルールを設定するあいまいルール設定部12が
接続されている.幾何演算部10から得られた幾何デー
タおよびファジィ演算部13から得られた位相データを
もとに近似モデルを構成する前記近似モデル生成部15
には、近似モデルに張った正方格子をもとに曲線座標変
換法を用いて実形状に格子を生成する写像演算部16が
接続され、該写像演算部16は、この格子を用いて穴の
境界形状に対する相対位置を検出する相対位置算出部1
7を介して、前記全体近似モデル生成部18に接続され
ている.また,近似モデルを認識モデルに変換する前記
認識モデル生成部19に接続して、認識モデルをもとに
基本図形データベース2lに登録された図形との照合を
行う認識演算部2.0が設けられ、該認識演算部20に
は、基本図形が登録された基本図形データベース21が
接続されている.認識演算部2oはまた、認識演算部2
0の演算結果を表示する認識結果表示部22に接続され
ている.前記幾何演算部は各直線と座標軸、及び隣り合
う辺がなす角の計算や実形状をもとにした近似モデルの
各辺の長さの計算を行う.全体近似モデル生成部18は
、近似モデル生成部15および相対位置算出部17から
与えられる情報をもとに、境界形状及び穴の近似モデル
を組み合わせて全体的近似モデルを構成する.前記CR
Tディスプレイ5は、また任意形状設定部8に接続され
ている.上述のあいまいルール設定部12とファジィ演
算部13とがあいまい演算部30Aを形成し、該あいま
い演算部30Aと,幾何演算部10と、形状情報生成部
11と、整合確認部14と、近似モデル生成部15とが
、直線線分を座標軸に平行な線分に変換する手段30を
なしている.次に、上記実施例の動作を説明する.図形
入力部1又は図形読みとり部7より任意形状設定部8に
第2図に示される2次元の形状aが入力されると,曲線
変換部9により,その形状の曲線部が直線近似された形
状bが生成される.形状bを構成する各線分がX軸又は
y軸に平行な方向に割り当てられ、第2図の形状Cのよ
うな近似モデルに変換される。The approximate model generation unit 15 is connected to the fuzzy calculation unit 13 that corrects the degree of approximation of each side to the coordinate axes according to the ambiguity rule based on the shape information, and the consistency confirmation unit 14. , is connected to an ambiguous rule setting section 12 that sets various rules for performing shape conversion. The approximate model generation unit 15 constructs an approximate model based on the geometric data obtained from the geometric calculation unit 10 and the topological data obtained from the fuzzy calculation unit 13.
is connected to a mapping calculation unit 16 that generates a grid in a real shape using a curved coordinate transformation method based on a square grid stretched on an approximate model, and the mapping calculation unit 16 uses this grid to calculate the shape of the hole. Relative position calculation unit 1 that detects the relative position with respect to the boundary shape
7, it is connected to the overall approximate model generation section 18. Further, a recognition calculation unit 2.0 is provided which is connected to the recognition model generation unit 19 that converts an approximate model into a recognition model and performs matching with figures registered in the basic figure database 2l based on the recognition model. A basic figure database 21 in which basic figures are registered is connected to the recognition calculation unit 20. The recognition calculation unit 2o also includes the recognition calculation unit 2
It is connected to a recognition result display section 22 that displays the calculation result of 0. The geometric calculation section calculates the angles formed by each straight line, coordinate axes, and adjacent sides, and calculates the length of each side of an approximate model based on the actual shape. The overall approximate model generation section 18 constructs an overall approximate model by combining the boundary shape and hole approximate models based on the information provided from the approximate model generation section 15 and the relative position calculation section 17. Said CR
The T display 5 is also connected to an arbitrary shape setting section 8. The above-mentioned fuzzy rule setting unit 12 and fuzzy calculation unit 13 form a fuzzy calculation unit 30A, and the fuzzy calculation unit 30A, the geometric calculation unit 10, the shape information generation unit 11, the consistency confirmation unit 14, and the approximate model The generation unit 15 constitutes means 30 for converting a straight line segment into a line segment parallel to the coordinate axes. Next, the operation of the above embodiment will be explained. When the two-dimensional shape a shown in FIG. 2 is input to the arbitrary shape setting section 8 from the figure input section 1 or the figure reading section 7, the curved portion of the shape is linearly approximated by the curve conversion section 9. b is generated. Each line segment constituting shape b is assigned to a direction parallel to the X-axis or y-axis, and converted into an approximate model such as shape C in FIG. 2.
この近似モデルの構成方法について説明する.まず、近
似モデルの位相情報(各線分をX+ y軸のいずれに平
行に割り当てるかの情報)の生成に関し、次の4つの基
本ルールがあいまいルールとして用いられる.
ルール1:各線はなるべくなす角が最も小さい座標軸の
方向に平行に割り当てられる.ルール2:隣り合う2辺
に関して、なす角が別に定められる一定角よりも小さい
ほどなるべく異なる座標軸の方向に割り当てられ、なす
角が前記一定角よりも大きいほど、なるべく同じ座標軸
の方向に割り合てられる.
ルール3:傾きの変化率の少ない線群は、なるべく1つ
の方向に割り当てられる.
ルール4:平行な#I群は,なるべく同じ方向に割り当
てられる.
ルール1は各線分が座標軸となす角をもとにして得られ
る座標軸への近似度の初期設定により実現される.X軸
およびy軸への近似度は第3A図、および第3B図に示
されるように,横軸にX軸またはy軸となす角(Ox,
θy)をとり,縦軸にX軸方向又はy軸方向の近似度P
x,Py (0≦Px≦1,0≦Py≦1)をとったメ
ンバーシップ関数で示される.線分がいずれかの座標軸
となす角がO度に近いほど近似度は1に近すき,なす角
が90°に近いほど近似度は0に近ずくように定義され
る.
また、ルール2は近似度と隣り合う2辺の間の関係であ
る同方向度とをもとにする、各辺の座標軸への近似度の
修正によって実現される。隣り合う2辺の同方向度PR
は,隣り合う該2辺のなす角θBを横軸にとり,同方向
度PR(−1≦Pyt≦1)1)を縦軸にとった第3C
図に示されるようなメンバシップ関数で示される.この
場合,同方向度は2辺のなす角が180度に近ずくほど
1に近ずき,なす角が180度から90度に近ずくにつ
れー1にまで変化し、90度以下では、−1で一定であ
る.
近似度の修正に関し、第4図に示される2本の線分■■
を例にとって説明する.まず、第3A図により、線分■
のX軸近似度Px,y軸近似度pyはそれぞれ0.8,
0.2で線分■のx,y軸近似度は、それぞれ0.4,
0.6であり,2辺のなす角が108度であることから
,第3C図により、線分■■の同方向度PRは−0.6
であり,これは2辺が異なる方向の座標軸に割り当てら
れる強さが0.6であることを意味する.そこで,これ
らの値をもとに,まず、線分のから線分■への影響度が
算出される.なお,影響度は近似度を修正する度合いを
示すものとして定義される.影響度の算出は,次の4項
目の演算を行うことにより実現される.
(i)線分■のX軸から線分■のX軸への影響度Qxx
線分■■からなる2辺は、同方向度が前述のように負の
ため,a分■のXらしさは、線分■のXらしさを否定す
る。第5A図のように、腺分■のX軸方向近似度は0.
8、線分■の非X軸方向近似度は0.6であるから線分
■のX軸から線分■のX軸への影響度Q x xは、下
記(1)式により算出される.
Qxx−(腺分■のX軸方向近似度)×(線分■の非X
軸方向近似度)X(同方向度)
・・・・・・(1)
=0.8X0.6X(−0.6)=−0.288(n)
線分■のy軸から線分■のX軸への影響度Qyx
線分■■からなる2辺は、同方向度が負のため,線分■
のyらしさは、線分■のXらしさを肯定する.第5B図
のように、線分■のy軸方向近似度は0.2,線分■の
X軸方向近似度は0.4であるから,線分■のy軸から
線分■のX軸への影響度Qyxは下記(2)式により算
出される.Qyx=(線分■のy軸方向近似度)×(線
分■のX軸方向近似度)×(同方向度X(−1))・・
・・・・(2)
=0.2x0.4x(−0.6)X(−1)=0.04
8(nu)腺分■のX軸から線分■のy軸への影響度Q
xy
線分■■からなる2辺は、同方向度が負のため、線分■
のXらしさは、線分■のyらしさを肯定する.第5C図
に示すように、線分■のX軸方向近似度は0.8,線分
■のy軸方向近似度は0.6であるから、線分■のX軸
から線分■のy軸のへ影響度Qxyは、下記(3)式に
より算出される.Qxy=(線分■のX軸方向近似度)
×(腺分■のy軸方向近似度)X(同方向度X (−1
))・・・・・・(3)
=0.8X0.6(−0.6)X(−1)=0.288
(〜)線分■のy軸から線分■のy軸への影響度Qyy
線分■■からなる2辺は同方向度が負のため、線分■の
yらしさは,線分■のyらしさを否定する.第5D図の
ように、腺分■のy軸方向近似度は0.2、線分■のy
軸方向近似度は0.4であるから、線分■のy軸から線
分■のy軸への影響度Qyyは、下記(4)式により算
出される.Qyy=(線分■のy軸方向近似度)×(腺
分■の非y軸方向近似度)×(同方向度)
・・・・・・(4)
=0.2X0,4X(−0.6)=−0.048(i)
〜(履)の計算により、線分■のX軸方向近似度への影
響度は、
Qxx+Qyx=−0.288+0.048=−0.2
4線分■のy軸方向近似度への影響度は
Qxy+Qyy”−0.288−0.048=0.24
となる.近似度の修正は、第3A図,第3B図によって
算出された近似度に(影響度×計算定数)を加えること
により実行される.例えば、計算定数0.1のときは、
線分■のX軸方向近似度は、0.4から
0.4+(−0.24)X0.1=0.376に減少し
、y軸方向近似度は0.6から0.6 +(0.2 4
)x O.1 = 0.6 2 4に増加し、線分■の
方向割り当ては,y軸方向に傾く.また同様に線分■か
ら線分■への影響度を計算することにより、線分■の方
向割り当てがX軸方向に傾く結果が得られる.
上述の演算を対象図形の曲線部が直線近似されて得られ
た図形(第2図の形状b)における隣り合う2辺のすべ
ての組に関しておこない,全体的に近似度を修正する.
次に、修正された近似度をもとに影響度を算出し,再び
近似度を修正する.このような操作を繰返えせば、各辺
(線分)の近似度が一般的にある一つの方向の近似度(
例えばX軸方向近似度)が1に収束し、他の方向の近似
度(例えばy軸方向近似度)がOに収束する。そして,
この収束状態における方向割り当てを採用することによ
り、第2図の形状bから形状Cへの変換にみるような、
近似モデルの位相情報の生成を実行することができる.
なお,2次元図形に関しては−(XF)F)X(xty
)で4項目の演算により近似度が修正されるが、3次元
図形に関しては、(xt yt z)×(X,)’t
Z)で9項目の演算により、近似度が修正される。We will explain how to construct this approximate model. First, the following four basic rules are used as ambiguous rules regarding the generation of the phase information of the approximate model (information on which of the X+Y axes parallel to which each line segment is assigned). Rule 1: Each line should be parallel to the direction of the coordinate axis that makes the smallest angle. Rule 2: Regarding two adjacent sides, the smaller the angle they make is smaller than a separately determined fixed angle, the more they are assigned to different coordinate axes, and the larger the angle is larger than the fixed angle, the more they are assigned to the same coordinate axes. It will be done. Rule 3: Groups of lines with a small rate of change in slope are assigned to one direction as much as possible. Rule 4: Parallel #I groups are allocated in the same direction as much as possible. Rule 1 is realized by initializing the degree of approximation to the coordinate axes, which is obtained based on the angle that each line segment makes with the coordinate axes. The degree of approximation to the X-axis and y-axis is determined by the angle (Ox,
θy), and the degree of approximation P in the X-axis direction or y-axis direction is plotted on the vertical axis.
It is represented by a membership function that takes x, Py (0≦Px≦1, 0≦Py≦1). It is defined that the closer the angle a line segment makes with any coordinate axis is 0 degrees, the closer the degree of approximation is to 1, and the closer the angle it makes to 90 degrees, the closer the degree of approximation is to 0. Further, Rule 2 is realized by modifying the degree of approximation of each side to the coordinate axis based on the degree of approximation and the degree of same direction, which is the relationship between two adjacent sides. Same direction of two adjacent sides PR
is the third C, where the horizontal axis is the angle θB formed by the two adjacent sides, and the degree of same direction PR (-1≦Pyt≦1)1) is the vertical axis.
It is represented by a membership function as shown in the figure. In this case, the degree of same direction approaches 1 as the angle between the two sides approaches 180 degrees, changes to -1 as the angle approaches 90 degrees from 180 degrees, and below 90 degrees, - It is constant at 1. Regarding the correction of the degree of approximation, the two line segments shown in Figure 4
Let's explain using an example. First, according to Figure 3A, line segment ■
The X-axis approximation degree Px and y-axis approximation degree py are respectively 0.8,
0.2, the x and y axis approximations of line segment ■ are 0.4 and 0.4, respectively.
0.6, and the angle formed by the two sides is 108 degrees, so according to Figure 3C, the degree of same direction PR of the line segment ■■ is -0.6
, which means that the strength assigned to the coordinate axes of the two sides in different directions is 0.6. Therefore, based on these values, first, the degree of influence from the line segment to the line segment ■ is calculated. Note that the degree of influence is defined as indicating the degree to which the degree of approximation is modified. Calculating the degree of influence is achieved by calculating the following four items. (i) Degree of influence from the X-axis of the line segment ■ to the X-axis of the line segment , deny the X-likeness of line segment ■. As shown in Fig. 5A, the degree of approximation in the X-axis direction of the glandular segment ■ is 0.
8. Since the degree of approximation in the non-X-axis direction of line segment ■ is 0.6, the degree of influence Q x x from the X-axis of line segment ■ to the X-axis of line segment ■ is calculated by the following formula (1). .. Qxx - (approximation degree of gland segment ■ in the X-axis direction) × (non-X of line segment ■
Axial direction approximation) X (same direction) ・・・・・・(1) = 0.8
Influence degree Qyx from the y-axis of the line segment ■ to the X-axis of the line segment
The y-likeness of , affirms the X-likeness of the line segment ■. As shown in Figure 5B, the degree of approximation of the line segment ■ in the y-axis direction is 0.2, and the degree of approximation in the X-axis direction of the line segment ■ is 0.4. The degree of influence Qyx on the axis is calculated using equation (2) below. Qyx = (approximation degree of line segment ■ in y-axis direction) × (approximation degree of line segment ■ in X-axis direction) × (degree of same direction X (-1))...
...(2) =0.2x0.4x(-0.6)X(-1)=0.04
8 (nu) Degree of influence Q from the X-axis of the gland segment ■ to the y-axis of the line segment ■
The two sides consisting of the xy line segment ■■ have a negative degree of same direction, so the line segment ■■
The X-likeness of the line segment ■ affirms the y-likeness of the line segment ■. As shown in Figure 5C, the degree of approximation in the X-axis direction of line segment ■ is 0.8, and the degree of approximation in the y-axis direction of line segment ■ is 0.6. The degree of influence Qxy on the y-axis is calculated by the following equation (3). Qxy=(approximation degree of line segment ■ in the X-axis direction)
× (degree of approximation in the y-axis direction of the gland)
))・・・・・・(3) =0.8X0.6(-0.6)X(-1)=0.288
(~) Influence degree Qyy from the y-axis of the line segment ■ to the y-axis of the line segment Denies the y-likeness. As shown in Figure 5D, the degree of approximation in the y-axis direction of the gland segment ■ is 0.2, and the y-axis direction of the line segment ■
Since the degree of approximation in the axial direction is 0.4, the degree of influence Qyy from the y-axis of the line segment ■ to the y-axis of the line segment ■ is calculated by the following equation (4). Qyy = (degree of approximation in y-axis direction of line segment ■) × (degree of approximation in non-y-axis direction of gland segment ■) × (degree of same direction) ...... (4) = 0.2X0, 4X (-0 .6)=-0.048(i)
Based on the calculation of ~(), the influence of line segment ■ on the degree of approximation in the X-axis direction is: Qxx+Qyx=-0.288+0.048=-0.2
The influence of the 4 line segments ■ on the degree of approximation in the y-axis direction is Qxy+Qyy"-0.288-0.048=0.24
becomes. The degree of approximation is corrected by adding (degree of influence x calculation constant) to the degree of approximation calculated in FIGS. 3A and 3B. For example, when the calculation constant is 0.1,
The degree of approximation in the X-axis direction of line segment ■ decreases from 0.4 to 0.4 + (-0.24) 0.2 4
) x O. 1 = 0.6 2 4, and the direction assignment of the line segment ■ is tilted in the y-axis direction. Similarly, by calculating the degree of influence from line segment ■ to line segment ■, a result is obtained in which the direction assignment of line segment ■ is tilted toward the X-axis direction. The above calculation is performed on all pairs of two adjacent sides of the figure (shape b in Figure 2) obtained by linear approximation of the curved part of the target figure, and the degree of approximation is corrected overall.
Next, the degree of influence is calculated based on the corrected degree of approximation, and the degree of approximation is corrected again. By repeating these operations, the degree of approximation of each side (line segment) will generally be the degree of approximation in one direction (
For example, the degree of approximation in the X-axis direction) converges to 1, and the degree of approximation in other directions (for example, the degree of approximation in the y-axis direction) converges to O. and,
By adopting the direction assignment in this convergence state, as shown in the transformation from shape b to shape C in Figure 2,
It is possible to generate phase information for approximate models. Regarding two-dimensional figures, -(XF)F)X(xty
), the degree of approximation is corrected by four operations, but for three-dimensional figures, (xt yt z) × (X,)'t
Z), the degree of approximation is corrected through nine calculations.
また、上記のように基本的なあいまいルールは4つであ
るが.この他に相互の距離がほぼ等しい二つの線群の構
成線分は、第6図の例に示すように,すべて同じ方向割
り当てとする,3次元のひとつの面に3方向の割り当て
が存在してはならないなどの補助ルールがあり、これら
のルールを適宜設定することにより、効率的に近似モデ
ルが生成される.
次に上記の方法で得られた方向割り当てによって位相的
に形状が成立するかどうかの判定を行う方法について第
7A図および第7B図を例にとって説明する.任意形状
の対象図形fの曲線部を直線近似した形状が生成され、
該形状から近似モデルを生成するための各線分の方向割
り当てと,該形状を反時計回りに辿る時の線分の方向と
を,!+#’/”* X−t Y−で表現した.x”,
y+はそれぞれ、X軸、y軸方向に平行で、その数値が
増加する方向、X″″,y−はそれぞれ、X軸、y軸方
向に平行でその数値が減少する方向に割当てられた線分
を示す.第7A図の形状gelは形状fに対して割り当
てられた線分の方向の例を示し、形状gと形状iの違い
は、形状gにおいては、左上部の線分がX−を割り当て
られているのに対し、形状iにおいては対応する線分が
y+を割り当てられている点にある。それぞれの図を割
り当てられたX軸,y軸に平行な線分で近似モデル化す
ると、形状gは形状hに、形状iは形状jとなる。X軸
,y軸に平行な線分のみで構成された図形を反時計方向
に辿るとき,各線分で構成される角のまわり方は、第7
B図に示される8種類のいずれかとなり、それぞれのま
わり方に第7B図のそれぞれの角に記入された角番号を
つける.形状hおよび形状jの各角部に記入された数字
はこの角番号である。Also, as mentioned above, there are four basic ambiguous rules. In addition, as shown in the example in Figure 6, the constituent line segments of two line groups with approximately the same distance from each other are all assigned the same direction, and there are three directions assigned to one three-dimensional surface. There are auxiliary rules such as ``must not'', and by setting these rules appropriately, an approximate model can be generated efficiently. Next, a method for determining whether a shape is established topologically based on the direction assignment obtained by the above method will be explained using FIGS. 7A and 7B as an example. A shape that is a linear approximation of the curved part of the target figure f of an arbitrary shape is generated,
Assign the direction of each line segment to generate an approximate model from the shape, and the direction of the line segment when tracing the shape counterclockwise! +#'/"*X-t Y-expressed.x",
y+ is a line parallel to the X-axis and y-axis, respectively, in the direction in which the numerical value increases, and X'''', y- is a line parallel to the X-axis and y-axis, respectively, in the direction in which the numerical value decreases. Indicates the minute. The shape gel in Figure 7A shows an example of the direction of the line segment assigned to the shape f, and the difference between the shape g and the shape i is that in the shape g, the upper left line segment is assigned X-. In contrast, in shape i, the corresponding line segment is at the point assigned y+. When each figure is approximated as a model using line segments parallel to the assigned X-axis and y-axis, the shape g becomes the shape h, and the shape i becomes the shape j. When tracing a figure made up of only line segments parallel to the X and Y axes in a counterclockwise direction, the way around the angle made up of each line segment is
It will be one of the eight types shown in Figure B, and each corner will be given the corner number written on each corner in Figure 7B. The numbers written on each corner of shapes h and j are the corner numbers.
割り当てられた線分の方向で位相的に整合がとれている
ならば、割り当てられた線分を反時計方向に辿った場合
,角番号の合計は1oになり、時計方向に線分を辿った
場合、含番号の合計は−10になるという性質がある.
第7A図に示されるように、この性質をもとに、割り当
てられた線分方向で構成される図形の位相的整合がとれ
ているがどうかの判定が行われる.
なお,位相的整合が得られない場合の対応策の一つとし
て、過去の演算結果を参照して,あいまい度の高い辺か
ら現在の方向割り当てを変更し,整合がとれる割り当て
パターンを探索する方法がある.
次に,近似モデルの幾何情報の生成(各辺の長さの決定
)に関して説明する.
第8図の形状mに示すように、ループ(図形を形成する
境界IX)を1方向にたどれば,近似モデルの各辺の向
きは図の■〜■の4方向に分類され、■方向に分類され
る辺の長さの合計と■方向に分類される辺の長さの合計
は等しい。第8図の形状nに示すような実形状に関して
,■方向の辺の合計値と■方向の辺の合計値の平均値を
とり,これを近似モデルの■及び■方向に分類される辺
の長さの合計値として設定する.また,■方向及び■方
向に関しても同様とする.これにより,近似モデルにお
ける各方向の辺の長さの合計値は決定されるから、各方
向に関して、実形状における各辺の長さの比をもとに、
合計長さが比例分割されて、近似モデルの各辺の長さと
して設定され、第8図の形状Oに示すように各ループご
との近似モデルが完成する.
ここで、この近似モデルの応用例を述べる。まず、曲線
座標変換法に関して説明する.曲線座標変換法とは、第
9図に示すように、任意形状pとこれに対応する座標軸
に平行な直線のみで構成される格子形状γが設定された
とき、写像演算を行うことによって、任意形状に均一な
格子を発生させた形状qを得る手法をいう.
ゆえに,任意形状が設定されたとき、本発明を用いて近
似モデルを作成し,近似モデルの各辺が単位長さの整数
倍になるように形状を修正し、この単位長さをもとに格
子を張って格子形状とじて設定し,これに曲線座標変換
法を適用すれば,任意形状の有限要素への自動分割が行
われる.第10図に2次元および3次元の図形の自動分
割の例を示す。If the assigned line segment direction is topologically consistent, if the assigned line segment is traced counterclockwise, the sum of the corner numbers will be 1o, and if the assigned line segment is traced clockwise. In this case, there is a property that the sum of the included numbers is -10.
As shown in FIG. 7A, based on this property, it is determined whether or not the topological matching of the figures formed by the assigned line segment directions is achieved. One countermeasure when topological consistency cannot be obtained is to refer to past calculation results, change the current direction assignment starting from the edge with the highest degree of ambiguity, and search for an assignment pattern that achieves consistency. There is. Next, we will explain the generation of geometric information for the approximate model (determining the length of each side). As shown in shape m in Figure 8, if the loop (boundary IX that forms the figure) is traced in one direction, the orientation of each side of the approximate model is classified into four directions from ■ to ■ in the figure, and the ■ direction The sum of the lengths of the sides classified in the ■ direction is equal to the sum of the lengths of the sides classified in the ■ direction. Regarding the real shape shown in shape n in Figure 8, take the average value of the total value of the sides in the ■ direction and the total value of the sides in the ■ direction, and use this as the average value of the sides classified in the ■ and ■ directions of the approximate model. Set as the total length value. The same applies to the ■ direction and ■ direction. This determines the total length of the sides in each direction in the approximate model, so for each direction, based on the ratio of the lengths of each side in the actual shape,
The total length is divided proportionally and set as the length of each side of the approximate model, and an approximate model for each loop is completed as shown in shape O in Figure 8. Here, we will describe an application example of this approximate model. First, we will explain the curve coordinate transformation method. The curve coordinate conversion method is, as shown in Figure 9, when an arbitrary shape p and a lattice shape γ consisting only of straight lines parallel to the corresponding coordinate axes are set, an arbitrary shape can be transformed by performing a mapping operation. This is a method to obtain a shape q that generates a uniform grid. Therefore, when an arbitrary shape is set, an approximate model is created using the present invention, the shape is modified so that each side of the approximate model is an integral multiple of the unit length, and based on this unit length, If you set up a grid and set it as a grid shape, and apply the curve coordinate transformation method to this, automatic division into finite elements of arbitrary shapes will be performed. FIG. 10 shows an example of automatic division of two-dimensional and three-dimensional figures.
次に、穴を含んだ形状の近似モデルの作成に関して説明
する.まず、第11A図に示すように、近似モデルに関
して、境界形状、及び穴形状独立に各辺が単位長さの整
数倍になるように形状を修正し、この長さをもとに格子
を張る.次に、第11B図に示すように,この格子をも
とに曲線座標変換法を用いて実形状の境界形状に格子を
発生させ,穴の特徴点がどの格子に最も近いかを求め,
近似モデルの境界形状に張られた格子の上での対応をと
る.そして,第11C図に示すように,近似モデルの境
界形状に張られた格子の上で格子を張った穴形状の近似
モデルを動かし、対応する点どおしの差の合計値が最小
になる位置が探し出され、穴形状の境界形状に対する相
対位置が決定され、第11D図のような全体的近似モデ
ルが作成される.
この手法により、穴を持った任意形状の格子形状も自動
作成可能で、これにより,第12図のように穴のあいた
任意形状に関する有限要素分割も自動化される.
次に近似モデルをもとにしだ詔識モデルの構成方法と、
これを用いた認識方法について説明する.全体的近似モ
デルができれば、第13A図に示すように,近似モデル
の位相状態を保持することを前提に、各辺が最小の整数
値をとるように変形された認識モデルが構成される。こ
の認識モデルの各辺には,対応する近似モデルの辺の長
さが属性として与えられる。Next, we will explain how to create an approximate model of a shape that includes holes. First, as shown in Figure 11A, the shape of the approximate model is modified so that each side is an integral multiple of the unit length independently of the boundary shape and hole shape, and a grid is created based on this length. .. Next, as shown in Figure 11B, a grid is generated on the boundary shape of the actual shape using the curve coordinate transformation method based on this grid, and it is determined to which grid the feature point of the hole is closest.
Correspondence is taken on a grid stretched over the boundary shape of the approximate model. Then, as shown in Figure 11C, move the hole-shaped approximate model with a lattice on the lattice stretched over the boundary shape of the approximate model until the sum of the differences between corresponding points is minimized. The position is found, the relative position of the hole shape to the boundary shape is determined, and an overall approximate model as shown in FIG. 11D is created. Using this method, it is possible to automatically create a lattice shape with holes in an arbitrary shape, and as a result, finite element division of arbitrary shapes with holes as shown in Figure 12 can also be automated. Next, we will explain how to construct a Shida Sensei model based on the approximate model,
We will explain the recognition method using this. Once the overall approximate model is created, as shown in FIG. 13A, a recognition model is constructed in which each side is transformed to take the minimum integer value on the premise that the phase state of the approximate model is maintained. Each edge of this recognition model is given the length of the edge of the corresponding approximate model as an attribute.
また,穴の相対位置を表現するために、第13B図に示
すように、近似モデルの境界形状,穴形状独立に、最も
左の辺に属するY座標が最小の点が検出され,境界形状
の対応点と各穴形状の対応点との実形状における距離が
属性として設定される.
そして,認識モデルをもとに、次の3つの手順に従って
認識が実行される。In addition, in order to express the relative position of the hole, as shown in Figure 13B, the point with the smallest Y coordinate belonging to the leftmost side is detected independently of the boundary shape and hole shape of the approximate model, and The distance between the corresponding point and the corresponding point of each hole shape in the actual shape is set as an attribute. Then, recognition is performed according to the following three steps based on the recognition model.
(1)第13C図に示すように認識モデルの大きさ(N
X,NY) により分類.NX,NYはそれぞれX軸方
向、y軸方向の認識モデルの各辺に与えられている前記
属性値の合計された値である。(1) As shown in Figure 13C, the size of the recognition model (N
Classified by X, NY). NX and NY are the summed values of the attribute values given to each side of the recognition model in the X-axis direction and the y-axis direction, respectively.
(it)認識モデルの形状による分類
(m)モデルに与えられた属性(対応線分の長さ、穴の
相対位!!)による比較、
この認識方法の適用例を以下に説明する.第14図に示
すような、2次元の形状So,toが与えられた場合を
考える.まず、形状Soに関しては,視点位置の変更に
よって,第14図S1,S,に示すように種々の形状変
形が考えられるが、これらはすべて第14図83で示す
同一の認識モデルに置き換えられる.また、形状toも
同じ認識モデルに置き換えられるが、第14図S,tに
示すように、認識モデルの属性により形状Soは形状t
oとはっきり区別される.このように、この発明を用い
ることにより、もとの形状からのゆがみによる影響を受
けにくい図形認識が行われる.
上述の説明では,2次元図形について説明したが、3次
元図形の場合は,図形の稜線をまず、直線線分に近似し
、その後同様の手法が適用される.従来、近似モデルの
作成にあたっては,画一的な数学的手法で作成するのは
無理であったが、本実施例によれば、メンバシップ関数
を用いることにより、形状変換に関する種々の変換ルー
ルの数学的表現が可能となり、人のもつあいまいさを含
んだ判断を反映した普遍的形状変換方法が確立された.
また、穴形状の境界形状に対する相対位置の決定にあた
っては,曲線座標変換法を用いた均一格子の生成により
境界形状のゆがみによる悪影響が低減された.さらに近
似モデルから変換形成された認識モデルにより図形認識
を行うことにより、ある認識形状がもとの形状から変形
していても、その影響を受けにくい認識結果が得られる
とともに、認識するに際し、その手順を3段階に分ける
ことにより、認識作業が効率化された.〔発明の効果〕
本発明によれば、任意の形状に対し、座標軸に平行な直
線からなる近似モデルが自動生成されるので、この近似
モデルに格子を張って、曲線座標変換法を適用すること
ができ、任意形状を自動的に有限要素分割することを可
能にする効果がある.(it) Classification based on the shape of recognition models (m) Comparison based on attributes given to models (length of corresponding line segments, relative position of holes!!) An example of application of this recognition method is explained below. Consider the case where two-dimensional shapes So and to are given as shown in FIG. First, regarding the shape So, various shape deformations are possible as shown in FIG. 14, S1 and S, by changing the viewpoint position, but these are all replaced by the same recognition model shown in FIG. 14, 83. In addition, the shape to is also replaced with the same recognition model, but as shown in FIG.
It is clearly distinguished from o. In this way, by using this invention, figure recognition is performed that is less susceptible to the effects of distortion from the original shape. The above explanation deals with two-dimensional figures, but in the case of three-dimensional figures, the edges of the figure are first approximated to straight line segments, and then the same method is applied. Conventionally, when creating an approximate model, it was impossible to create it using a uniform mathematical method, but according to this example, by using membership functions, various transformation rules related to shape transformation can be created. Mathematical expression has become possible, and a universal shape conversion method has been established that reflects human judgment, including ambiguity.
In addition, when determining the relative position of the hole shape to the boundary shape, the negative effects of boundary shape distortion were reduced by generating a uniform grid using the curved coordinate transformation method. Furthermore, by performing figure recognition using a recognition model converted from an approximate model, it is possible to obtain recognition results that are less affected by deformation even if a certain recognized shape is deformed from the original shape, and also to By dividing the procedure into three stages, recognition work has been made more efficient. [Effects of the Invention] According to the present invention, an approximate model consisting of straight lines parallel to the coordinate axes is automatically generated for any shape, so a grid can be placed on this approximate model and a curved coordinate transformation method can be applied. This has the effect of making it possible to automatically divide an arbitrary shape into finite elements.
第1図は本発明を適用した実施例である形状変換装置の
概要構成を示すブロック図,第2図は近似モデルへの変
換手順の例を示す平面図、第3A図〜第3C図はメンバ
シップ関数の例を示すグラフ,第4図は直線線分と座標
軸とがなす角度の例を示す説明図、第5A図〜第5D図
は近似度の例を示すグラフ、第6図は形状のあいまい処
理の例を示す平面図,第7A図〜第7B図は近似モデル
の位相整合の確認方法の例を示す説明図、第8図は近似
モデルの各線分の長さの決定方法を示す平面図,第9図
は曲線座標変換法の例を示す平面図、第10.12図は
図形の有限要素分割を行った例を示す平面図、第11A
図〜第11D図は穴のあいた形状の近似モデル作成手順
を示す平面図、第13A図〜第13C図は認識モデルの
作成手順を示す平面図、第14図は近似モデルを用いた
図形認識手順を示す平面図、第15図は近似モデルを構
成する線分の方向性を説明する平面図,第16図は、近
似モデルから認識モデルへの変化を説明する平面図で,
第17A図〜第17D図は,従来の図形認識方法の例を
示す図である.
30・・・直線線分を座標軸に平行な線分に変換する手
段,30A・・・あいまい演算部。
第1図Fig. 1 is a block diagram showing the general configuration of a shape conversion device that is an embodiment of the present invention, Fig. 2 is a plan view showing an example of the conversion procedure to an approximate model, and Figs. 3A to 3C are members. A graph showing an example of the ship function, Fig. 4 is an explanatory diagram showing an example of the angle between a straight line segment and a coordinate axis, Figs. A plan view showing an example of ambiguity processing, Figures 7A and 7B are explanatory diagrams showing an example of a method for confirming phase matching of an approximate model, and Figure 8 is a plane view showing a method for determining the length of each line segment of an approximate model. Figure 9 is a plan view showing an example of the curve coordinate transformation method, Figures 10 and 12 are plan views showing an example of finite element division of a figure, and Figure 11A is a plan view showing an example of the curve coordinate conversion method.
Figures 11D to 11D are plan views showing the procedure for creating an approximate model of a shape with a hole, Figures 13A to 13C are plan views showing the procedure for creating a recognition model, and Figure 14 is a figure recognition procedure using the approximate model. FIG. 15 is a plan view illustrating the direction of the line segments that make up the approximate model, and FIG. 16 is a plan view illustrating the change from the approximate model to the recognition model.
Figures 17A to 17D are diagrams showing examples of conventional figure recognition methods. 30... Means for converting a straight line segment into a line segment parallel to the coordinate axes, 30A... Ambiguous calculation unit. Figure 1
Claims (1)
段を備えた形状変換装置において、該直線線分を座標軸
に平行な線分に変換する手段を備えたことを特徴とする
形状変換装置。 2、直線線分を座標軸に平行な線分に変換する手段が、
メンバシップ関数を用いて演算を行なうあいまい演算部
を備えていることを特徴とする請求項1に記載の形状変
換装置。 3、任意形状の境界線または稜線を複数の直線線分で近
似し、それぞれの線分の座標軸への近似度を0から1の
変数で表現し、あいまいルールにより該変数を全体的に
修正して各線分をいずれかの座標軸に平行に割り当て、
最終的に一つの近似モデルに収束させる形状変換方法。 4、任意形状の境界線または稜線を複数の直線線分で近
似し、隣接する線分が、一直線上にあるか、互いに垂直
になるように前記線分を変換して形状を形成する形状変
換方法。 5、任意形状の境界線または稜線を複数の直線線分で近
似し、それぞれの線分が座標軸となす角度を計算し、計
算された角度および予め設定されたあいまいルールに基
づくメンバシップ関数により前記線分をいずれかの座標
軸に平行に割り当てて、前記任意形状の近似モデルを作
成する形状変換方法。 6、あいまいルールが、少なくとも、線分となす角が最
も小さい座標軸の方向へなるべく該線分が割り当てられ
ることと、互に隣接する二つの線分はそのなす角が一定
角よりも小さいほどなるべく異なる方向に、なす角が一
定角よりも大きいほどなるべく同じ方向に割り当てられ
ることと、を含んでいることを特徴とする請求項5に記
載の形状変換方法。 7、与えられた形状の境界面または境界線の近似モデル
と、該境界面または境界線に含まれる穴の近似モデルと
、を独立に作成したのち、与えられた前記実形状におい
て穴に関係なく滑らかな格子を形成し、実形状において
穴を形成する頂点がどの格子点に対応するかをもとにし
て近似モデルにおける穴の境界形状に対する相対位置を
決定することを特徴とする形状変換方法。 8、近似モデルの形状の位相的特性を保持したまま、該
近似モデルを構成する線分の長さを、単位長さの最小の
整数倍に変換することを特徴とする形状変換方法。[Scope of Claims] 1. A shape converting device equipped with means for converting an arbitrary shape into a shape consisting only of straight line segments, comprising means for converting the straight line segments into line segments parallel to coordinate axes. Characteristic shape conversion device. 2. The means for converting a straight line segment into a line segment parallel to the coordinate axes is
2. The shape conversion device according to claim 1, further comprising an ambiguous operation section that performs an operation using a membership function. 3. Approximate a boundary line or ridgeline of an arbitrary shape with multiple straight line segments, express the degree of approximation of each line segment to the coordinate axis as a variable between 0 and 1, and modify the variable as a whole using an ambiguous rule. to assign each line segment parallel to one of the coordinate axes,
A shape conversion method that ultimately converges to one approximate model. 4. Shape transformation in which a boundary line or ridge line of an arbitrary shape is approximated by a plurality of straight line segments, and the line segments are transformed so that adjacent line segments are on a straight line or perpendicular to each other to form a shape. Method. 5. Approximate a boundary line or ridgeline of an arbitrary shape with multiple straight line segments, calculate the angle that each line segment makes with the coordinate axis, and use the membership function based on the calculated angle and a preset ambiguity rule to A shape conversion method that creates an approximate model of the arbitrary shape by assigning line segments parallel to one of the coordinate axes. 6. The ambiguity rule is that the line segment is assigned as much as possible in the direction of the coordinate axis that has the smallest angle with the line segment, and that the angle between two adjacent line segments is smaller than a certain angle, the more the line segment is assigned as possible. 6. The shape conversion method according to claim 5, further comprising the step of assigning different directions to the same direction as the angles formed are larger than a certain angle. 7. After independently creating an approximate model of the boundary surface or boundary line of a given shape and an approximate model of the hole included in the boundary surface or boundary line, A shape conversion method characterized by forming a smooth lattice and determining a relative position of a hole in an approximate model with respect to a boundary shape based on which lattice point corresponds to a vertex forming a hole in the actual shape. 8. A shape conversion method characterized by converting the lengths of line segments constituting the approximate model to the minimum integral multiple of the unit length while maintaining the topological characteristics of the shape of the approximate model.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1058454A JP2920195B2 (en) | 1989-03-10 | 1989-03-10 | Shape conversion method and device |
| JP10204887A JPH1196400A (en) | 1989-03-10 | 1998-07-21 | Shape conversion method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1058454A JP2920195B2 (en) | 1989-03-10 | 1989-03-10 | Shape conversion method and device |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10204887A Division JPH1196400A (en) | 1989-03-10 | 1998-07-21 | Shape conversion method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02236677A true JPH02236677A (en) | 1990-09-19 |
| JP2920195B2 JP2920195B2 (en) | 1999-07-19 |
Family
ID=13084871
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1058454A Expired - Lifetime JP2920195B2 (en) | 1989-03-10 | 1989-03-10 | Shape conversion method and device |
| JP10204887A Pending JPH1196400A (en) | 1989-03-10 | 1998-07-21 | Shape conversion method |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10204887A Pending JPH1196400A (en) | 1989-03-10 | 1998-07-21 | Shape conversion method |
Country Status (1)
| Country | Link |
|---|---|
| JP (2) | JP2920195B2 (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0785304A (en) * | 1993-09-20 | 1995-03-31 | Sony Corp | Graphic editing device |
| WO2003016031A1 (en) * | 2001-08-16 | 2003-02-27 | Riken | Rapid prototyping method and device using v-cad data |
| US7174236B2 (en) | 2001-08-16 | 2007-02-06 | Riken | Ultra-precise processing method and apparatus for inhomogeneous material |
| US7321366B2 (en) | 2002-02-28 | 2008-01-22 | Riken | Method and program for converting boundary data into cell inner shape data |
| US7333104B2 (en) | 2001-12-04 | 2008-02-19 | Riken | Method and program of converting three-dimensional shape data into cell internal data |
| US7372460B2 (en) | 2003-07-16 | 2008-05-13 | Riken | Method and program for generating volume data from boundary representation data |
| US7486289B2 (en) | 2002-06-19 | 2009-02-03 | International Business Machines Corporation | Recognition model generation and structured mesh generation system and method |
| US7898540B2 (en) | 2005-09-12 | 2011-03-01 | Riken | Method and program for converting boundary data into cell inner shape data |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4657042B2 (en) * | 2005-07-19 | 2011-03-23 | 富士通株式会社 | Printed circuit board analysis model generation apparatus and program |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6272071A (en) * | 1985-09-26 | 1987-04-02 | Hitachi Ltd | Coordinate grid generation support method and device |
| JPS63656A (en) * | 1986-06-20 | 1988-01-05 | Hitachi Ltd | Supporting method for generation of coordinate grid |
-
1989
- 1989-03-10 JP JP1058454A patent/JP2920195B2/en not_active Expired - Lifetime
-
1998
- 1998-07-21 JP JP10204887A patent/JPH1196400A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6272071A (en) * | 1985-09-26 | 1987-04-02 | Hitachi Ltd | Coordinate grid generation support method and device |
| JPS63656A (en) * | 1986-06-20 | 1988-01-05 | Hitachi Ltd | Supporting method for generation of coordinate grid |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0785304A (en) * | 1993-09-20 | 1995-03-31 | Sony Corp | Graphic editing device |
| WO2003016031A1 (en) * | 2001-08-16 | 2003-02-27 | Riken | Rapid prototyping method and device using v-cad data |
| US7174236B2 (en) | 2001-08-16 | 2007-02-06 | Riken | Ultra-precise processing method and apparatus for inhomogeneous material |
| US7406361B2 (en) | 2001-08-16 | 2008-07-29 | Riken | Rapid prototyping method and apparatus using V-CAD data |
| US7333104B2 (en) | 2001-12-04 | 2008-02-19 | Riken | Method and program of converting three-dimensional shape data into cell internal data |
| US7321366B2 (en) | 2002-02-28 | 2008-01-22 | Riken | Method and program for converting boundary data into cell inner shape data |
| US7486289B2 (en) | 2002-06-19 | 2009-02-03 | International Business Machines Corporation | Recognition model generation and structured mesh generation system and method |
| US7372460B2 (en) | 2003-07-16 | 2008-05-13 | Riken | Method and program for generating volume data from boundary representation data |
| US7898540B2 (en) | 2005-09-12 | 2011-03-01 | Riken | Method and program for converting boundary data into cell inner shape data |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH1196400A (en) | 1999-04-09 |
| JP2920195B2 (en) | 1999-07-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Pham | Offset curves and surfaces: a brief survey | |
| CN109711018B (en) | Two-dimensional to three-dimensional house type design method | |
| US5774124A (en) | Finite element modeling method and computer system for converting a triangular mesh surface to a quadrilateral mesh surface | |
| Biermann et al. | Approximate boolean operations on free-form solids | |
| Gupta et al. | Variational solid modeling for tolerance analysis | |
| US4864520A (en) | Shape generating/creating system for computer aided design, computer aided manufacturing, computer aided engineering and computer applied technology | |
| US5903458A (en) | System and method for forming geometric features using global reparametrization | |
| US5990897A (en) | Methods for automatically generating a three-dimensional geometric solid from two-dimensional view sets including automatic segregation of open, closed and disjoint curves into views using their center of gravity | |
| CN101110127B (en) | Computer-implemented process for creating a parametric surface | |
| Hormann et al. | Remeshing triangulated surfaces with optimal parameterizations | |
| KR20050086463A (en) | System and method for performing domain decomposition for multiresolution surface analysis | |
| US6578189B2 (en) | Hexahedral mesh generation method and device | |
| KR20070017070A (en) | Parametric surface creation process with required geometric continuity | |
| US6844876B2 (en) | Apparatus and method for generating 3D graphics | |
| JPH02236677A (en) | Shape conversion method and device | |
| Hormann et al. | Quadrilateral Remeshing. | |
| KR101032397B1 (en) | 3D shape representation device and method using spherical coordinate system | |
| CN120765875A (en) | Indoor space visual presentation system and method | |
| Docampo-Sánchez et al. | A regularization approach for automatic quad mesh generation | |
| CN115408785B (en) | Adaptive Compensation Method and System for 3D Models | |
| Hitschfeld-Kahler | Generation of 3D mixed element meshes using a flexible refinement approach | |
| Kuriyama et al. | Discrete parameterization for deforming arbitrary meshes | |
| CN119620681B (en) | Free-form surface processing track generation method based on conformal mapping | |
| CN113591356A (en) | Construction method of non-uniform irregular spline basis function with reserved sharp features | |
| Lysak et al. | Interpretation of line drawings with multiple views |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080430 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090430 Year of fee payment: 10 |
|
| EXPY | Cancellation because of completion of term |