JPH0132545B2 - - Google Patents

Info

Publication number
JPH0132545B2
JPH0132545B2 JP17354383A JP17354383A JPH0132545B2 JP H0132545 B2 JPH0132545 B2 JP H0132545B2 JP 17354383 A JP17354383 A JP 17354383A JP 17354383 A JP17354383 A JP 17354383A JP H0132545 B2 JPH0132545 B2 JP H0132545B2
Authority
JP
Japan
Prior art keywords
contour
coordinates
segment
coordinate
triangle
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.)
Expired
Application number
JP17354383A
Other languages
Japanese (ja)
Other versions
JPS6065380A (en
Inventor
Hiroaki Igarashi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP17354383A priority Critical patent/JPS6065380A/en
Publication of JPS6065380A publication Critical patent/JPS6065380A/en
Publication of JPH0132545B2 publication Critical patent/JPH0132545B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/20Contour coding, e.g. using detection of edges

Description

【発明の詳細な説明】 (a) 発明の技術分野 本発明は互いに直交する(X、Y、Z)軸から
なる空間内の曲面を、XY面に平行な面、例えば
標高Z=Zoの平面で切断した時に形成される曲
面の切り口の輪郭線である等高線を求める等高線
追跡処理方法の改善に関するものである。
[Detailed Description of the Invention] (a) Technical Field of the Invention The present invention relates to a curved surface in a space consisting of mutually perpendicular (X, Y, Z) axes, to a plane parallel to the XY plane, for example, a plane with an altitude of Z=Zo. The present invention relates to an improvement in a contour line tracing processing method for obtaining contour lines, which are the contour lines of the cut end of a curved surface formed when cutting the curved surface.

(b) 従来技術と問題点 等高線をデータ処理装置により求める従来の等
高線追跡処理方法について、第1図の三角形メツ
シユ化とテーブルの関係を示す図を参照して説明
する。曲面上の複数の座標(Xi、Yl、Zi;i=
1、2、3、…)が入力されると、先ず座標の互
いに近接する3つの座標点を公知の手法により検
出し、その3点を頂点とする三角形を構成要素に
して、曲面の近似平面である三角形メツシユを形
成する。
(b) Prior Art and Problems A conventional contour tracing processing method for obtaining contour lines using a data processing device will be described with reference to FIG. 1, which shows the relationship between triangular meshing and a table. Multiple coordinates on the curved surface (Xi, Yl, Zi; i=
1, 2, 3, ...) is input, first, three coordinate points that are close to each other are detected using a known method, and triangles with the three points as vertices are used as constituent elements to create an approximate plane of the curved surface. form a triangular mesh.

そして、三角形メツシユを構成する複数の三角
形に、それぞれの三角形を識別するための三角形
識別符号(例えば、I、J、K、…)を付与する
と共に、三角形の頂点を識別するための頂点符号
(例えば、、、、…)を付与する(第1図
aの三角形メツシユ図参照)。
Then, a triangle identification code (for example, I, J, K, ...) for identifying each triangle is assigned to a plurality of triangles constituting the triangle mesh, and a vertex code (for example, I, J, K, etc.) for identifying the vertices of the triangle is assigned For example, , , , .

また、三角形の頂点符号と頂点符号に対応する
頂点の座標の関係を示す図(第1図bの三角頂点
の座標テーブル図参照)と、互いに辺を共有し合
う三角形を示す図(第1図cの三角形メツシユテ
ーブル図参照)と、三角形の三角形識別符号と頂
点の関係を示す図(第1図dの三角形の頂点テー
ブル図参照)に示すような三角形メツシユの等高
線を求めるためのテーブルを作成する。
Additionally, there is a diagram showing the relationship between the vertex codes of triangles and the coordinates of the vertices corresponding to the vertex codes (see the coordinate table of the triangle vertices in Figure 1b), and a diagram showing triangles that share sides with each other (Figure 1). A table for finding the contour lines of a triangle mesh as shown in the diagram showing the relationship between triangle identification codes and vertices (see the triangle vertex table diagram in Figure 1d). create.

次に、三角形メツシユを構成する複数の三角形
の中から任意に抽出した一つの三角形、例えば三
角形Iのなかに標高Z=Zoの等高線が存在する
か、夫とも存在しないかの判定処理を第3図に示
す方法を使用して実行する。
Next, a third process is performed to determine whether a contour line of elevation Z=Zo exists in one triangle arbitrarily extracted from among the plurality of triangles that make up the triangle mesh, for example, triangle Perform it using the method shown in the figure.

この判定処理は先ず第1図dから三角形Iの頂
点符号(、、)と、第1図bから頂点符号
(、、)に対応する各頂点の座標(X1、
Y1、Z1)、(X2、Y2、Z2)、及び(X3、Y3、Z3)
を読み出すことから始める。
This determination process begins with the coordinates (X1,
Y1, Z1), (X2, Y2, Z2), and (X3, Y3, Z3)
Start by reading out.

そして、データ処理装置に予め入力した標高値
“Zo”と、座標(X1、Y1、Z1)、(X2、
Y2、Z2)、及び(X3、Y3、Z3)のZ座標の値
であるZ1、Z2、Z3とを使用して、三角形Iのな
かにZ=Zoの等高線が有るか無いかを判定する。
Then, the altitude value "Zo" inputted in advance into the data processing device and the coordinates (X1, Y1, Z1), (X2,
Using Z1, Z2, and Z3, which are the Z coordinate values of Y2, Z2) and (X3, Y3, Z3), it is determined whether or not there is a contour line of Z=Zo in triangle I.

この判定処理は、Z0がZ1とZ2の間の数値はど
うか、Z1とZ3の間の数値かどうか、Z2とZ3の間
の数値がどうかを調べることで行う。
This determination process is performed by checking whether Z 0 is a numerical value between Z1 and Z2, whether it is a numerical value between Z1 and Z3, and whether it is a numerical value between Z2 and Z3.

そして、例えばZ0がZ1とZ2の間、及びZ2とZ3
の間の数値であれば、等高線は三角形Iのなかに
1本存在することになる。
And for example Z 0 is between Z1 and Z2, and Z2 and Z3
If the value is between, triangle I will have one contour line.

三角形Iのなかの等高線を線分として考えて、
これを等高線分“I′”とすると、等高線分“I′”
の両端の座標は、頂点と頂点を結んだ辺上の
一点aと、頂点と頂点を結んだ辺上の一点b
を結ぶ線分となる。
Considering the contour lines in triangle I as line segments,
If this is a contour line segment “I′”, the contour line segment “I′”
The coordinates of both ends are one point a on the side connecting the vertices and one point b on the side connecting the vertices.
It becomes a line segment that connects.

三角形Iは微小な平面三角形であるから、等高
線は2本以上存在することはなく、また等高線分
“I′”の両端の座標は比例計算により求められる。
Since triangle I is a minute planar triangle, there are no more than two contour lines, and the coordinates of both ends of contour line segment "I'" are determined by proportional calculation.

等高線分“I′”の両端の座標(a、b)のX、
Y座標を比例計算で求めると、一端の座標は
〔X1+(X2−X1)(Zo−Z1)/(Z2−Z1)、Y1+
(Y2−Y1)(Zo−Z1)/(Z2−Z1)〕、他端の座
標は〔X3+(X2−X3)(Zo−Z3)/(Z2−Z3)、
Y3+(Y2−Y3)(Zo−Z3)/(Z2−Z3)〕であ
る。
X of the coordinates (a, b) of both ends of the contour segment “I′”,
When determining the Y coordinate by proportional calculation, the coordinate of one end is [X1 + (X2 - X1) (Zo - Z1) / (Z2 - Z1), Y1 +
(Y2−Y1) (Zo−Z1)/(Z2−Z1)], the coordinates of the other end are [X3+(X2−X3)(Zo−Z3)/(Z2−Z3),
Y3+(Y2-Y3)(Zo-Z3)/(Z2-Z3)].

そして、上記のようにして三角形Iのなかに存
在するZ=Zoの等高線の等高線分“I′”の両端の
座標(Xa、Ya;Xb、Yb)が求まると、データ
処理装置は座標を記憶して三角形Iのなかの等高
線分“I′”の両端の座標を求める処理は完了す
る。
Then, when the coordinates (Xa, Ya; Then, the process of determining the coordinates of both ends of the contour line segment "I'" in triangle I is completed.

次いで、データ処理装置は第1図cから三角形
Iに隣接する三角形Jを選択し、三角形Iと三角
形Jの互いに共有する辺、即ち頂点と頂点を
結ぶ線上の座標のZ=Zoとなる点の座標として
三角形Iの等高線分“I′”の他端の座標bである
〔X3+(X2−X3)(Zo−Z3)/(Z2−Z3)、Y3+
(Y2−Y3)(Zo−Z3)/(Z2−Z3)〕を採用す
る。
Next, the data processing device selects triangle J adjacent to triangle I from FIG. The coordinates are the coordinates b of the other end of the contour segment "I'" of triangle I [X3 + (X2 - X3) (Zo - Z3) / (Z2 - Z3), Y3 +
(Y2−Y3) (Zo−Z3)/(Z2−Z3)] is adopted.

更に、等高線分“J′”の他端の座標を求める為
に、第1図dによつて頂点を抽出し、頂点と
頂点を結ぶ辺に、また頂点と頂点を結ぶ辺
に、標高Z=Zoとなる点が存在するか否かを前
述した手法で判定する。
Furthermore, in order to find the coordinates of the other end of the contour line segment "J'", extract the vertices according to Figure 1 d, and add the altitude Z= to the side connecting the vertices and the side connecting the vertices. It is determined whether a point corresponding to Zo exists or not using the method described above.

例えば、頂点と頂点を結ぶ線上にZ=Zo
となる点cがあると判定すると、この点の座標
(Xc、Yc)を比例計算により求める。
For example, Z=Zo on the line connecting the vertices
If it is determined that there is a point c, the coordinates (Xc, Yc) of this point are determined by proportional calculation.

そして、上記比例計算により求められた三角形
Jのなかの等高線分“J′”の両端(b、c)の座
標を記憶して三角形J内で等高線分を求める処理
は完了する。
Then, the coordinates of both ends (b, c) of the contour line segment "J'" in the triangle J determined by the above proportional calculation are stored, and the process of determining the contour line segment in the triangle J is completed.

これ以降も、次々と隣接する三角形に対する前
記処理を実行して各三角形内の等高線分を求めて
行き、全ての三角形について等高線分を求める処
理が完了すると三角形メツシユのZ=Zoの等高
線の全てが等高線分として求められることにな
る。
From now on, the above process will be performed for adjacent triangles one after another to find the contour line segments within each triangle, and when the process of finding the contour line segments for all triangles is completed, all the contour lines of Z = Zo of the triangle mesh will be It will be found as contour segments.

隣接する三角形の検索は第1図cを参照するこ
とになるが、隣接する三角形は1ないし2個存在
するから三角形の選択順と等高線の連結順が密接
に関係し、メツシユ数が多数になつた時は等高線
の連なりに予期しない輪郭が現れる危険がある。
To search for adjacent triangles, refer to Figure 1c, but since there are one or two adjacent triangles, the order in which triangles are selected and the order in which contour lines are connected are closely related, resulting in a large number of meshes. There is a risk that unexpected contours will appear in the series of contour lines.

尚、判定処理で三角形IにZ=Zoの等高線分
がないと判定すると、別の三角形、例えば三角形
Kについて三角形Jに実施したと同じ判定処理を
実行する。
Note that if it is determined in the determination process that triangle I does not have a contour segment with Z=Zo, the same determination process as performed for triangle J is executed for another triangle, for example, triangle K.

然し、等高線を求める従来技術は、精密度を出
すためにはメツシユを細かくする必要があり、そ
の為に三次元の複数の座標(Xi、Yi、Zi)や、
第1図の各種テーブルなどを記憶させるための記
憶領域が増加することと、各三角形内の等高線分
を求める度毎に、第1図cによつて隣接する三角
形を順序的に検索するためのデータ読み出が必要
であつた為に、等高線分を求める処理速度が遅く
なる問題があつた。
However, in the conventional technology for calculating contour lines, it is necessary to make the mesh finer in order to achieve precision, and for that purpose, multiple three-dimensional coordinates (Xi, Yi, Zi),
The storage area for storing the various tables shown in Figure 1 increases, and each time a contour line segment within each triangle is calculated, it is necessary to sequentially search for adjacent triangles using Figure 1 c. Since it was necessary to read data, there was a problem in that the processing speed for determining contour segments was slow.

(c) 発明の目的 以上従来の欠点に鑑み本発明は、データ処理装
置の記憶部の領域の縮小と、処理速度の高速化の
計れる等高線追跡処理方法を提供することを目的
とするものである。
(c) Purpose of the Invention In view of the above-mentioned drawbacks of the prior art, it is an object of the present invention to provide a contour tracing processing method capable of reducing the storage area of a data processing device and increasing the processing speed. .

(d) 発明の構成 前記課題は、複数の空間座標点に座標点番号を
割り当て、当該座標点対応に座標値を入力し、隣
接する3つの座標点を頂点座標として形成した三
角平面に識別符号を割当て、3つの座標点番号を
三角平面の頂点符号に設定し、それぞれの三角平
面毎に三角平面を構成する頂点間を結ぶ線分上の
座標値が共通の指定値に一致した時の対応座標値
を該線分上で産出し、2線分間に架かる等高線分
の両端座標を算出してメモリに記憶することで三
角平面間の等高線を追跡するシステムにおいて、
メモリから第1の等高線分を抽出し、等高線分の
一端座標を始点にして、同一座標を一端に持つ第
2の等高線分をメモリ内で検索抽出して連結順序
を確立し、第2の等高線分の他端座標と同一な座
標を一端に持つ第3の等高線分を検索抽出して連
結順序を確立する順方向の追跡手順を遂行し、追
跡手順の遂行過程で同一座標を持つ等高線分がメ
モリ内に無くなるまでは追跡手順を反復すると共
に、第1の等高線分の他端座標を始点とする第4
の等高線分をメモリ内で検索抽出して連結順序を
確立する逆方向の追跡手順を遂行し、順方向と逆
方向の追跡手順が完了した時は、二つの追跡手順
で抽出した等高線分の共通な等高線分を除いて連
結順序付けたことを特徴とする等高線追跡処理方
法により解決される。
(d) Structure of the Invention The above problem is to assign coordinate point numbers to a plurality of spatial coordinate points, input coordinate values corresponding to the coordinate points, and create an identification code on a triangular plane formed by three adjacent coordinate points as vertex coordinates. and set the three coordinate point numbers to the vertex codes of the triangular plane, and what to do when the coordinate values on the line segment connecting the vertices that make up the triangular plane for each triangular plane match the common specified value. In a system that traces contour lines between triangular planes by generating coordinate values on the line segment, calculating the coordinates of both ends of a contour line segment spanning two line segments, and storing it in memory,
Extract the first contour segment from the memory, use the coordinates of one end of the contour segment as the starting point, search and extract the second contour segment that has the same coordinates at one end in the memory to establish the connection order, and then create the second contour line. A forward tracking procedure is performed to establish a connection order by searching and extracting a third contour segment whose one end has the same coordinates as the other end coordinates, and in the process of performing the tracking procedure, a contour segment with the same coordinates is found. The tracking procedure is repeated until there are no more left in the memory, and the fourth contour segment whose starting point is the other end coordinate of the first contour segment is
When the forward and backward tracing steps are completed, the common contour segments extracted by the two tracing steps are executed. This problem is solved by a contour line tracing processing method characterized in that contour line segments are excluded and connected in order.

(e) 発明の実施例 本発明の実施例について第2図ないし第4図を
参照して詳しく説明する。
(e) Embodiments of the invention Examples of the invention will be described in detail with reference to FIGS. 2 to 4.

図において、1は第1図bの三角頂点の座標テ
ーブル、2は三角メツシユジエネレータ、3は第
1図dの三角形の頂点テーブル、5は情報取り出
し部、6は等高値格納メモリ、7は交点計算部、
8は等高線分テーブル、9と10は連結検索部、
11はソーテテイング部、12は等高線座標テー
ブルをそれぞれ示す。
In the figure, 1 is a coordinate table of the triangular vertices shown in FIG. 1b, 2 is a triangular mesh generator, 3 is a vertex table of the triangle shown in FIG. is the intersection calculation part,
8 is a contour line segment table, 9 and 10 are connected search parts,
Reference numeral 11 indicates a sorting section, and reference numeral 12 indicates a contour coordinate table.

三角頂点の座標テーブル1には互いに直交する
X軸、Y軸、及びZ軸からなる三次元空間内の曲
面上の複数の座標(Xi、Yi、Zi)が入力されて
記憶される(i=1、2、3、…)。
A plurality of coordinates (Xi, Yi, Zi) on a curved surface in a three-dimensional space consisting of mutually orthogonal X, Y, and Z axes are input and stored in the triangular vertex coordinate table 1 (i= 1, 2, 3,…).

三角メツシユジエネレータ2は三角頂点の座標
テーブル1から前記座標を読みだして、公知の技
法によつて該座標の互いに隣接する座標を頂点と
する三角形を構成要素に、前記曲面の近似面であ
る三角メツシユを形成する。
The triangular mesh generator 2 reads out the coordinates from the coordinate table 1 of the triangular vertices, and uses known techniques to create an approximate surface of the curved surface using triangles whose vertices are adjacent to the coordinates as constituent elements. Form a triangular mesh.

前記三角形を要素とする前記三角メツシユは、
前記複数の座標(Xi、Yi、Zi)の間隔を細かく
して多数の座標を入力することにより、前記曲面
に極めて良く近似した曲線にできる。
The triangular mesh having the triangle as an element is
By making the intervals between the plurality of coordinates (Xi, Yi, Zi) fine and inputting a large number of coordinates, a curve that closely approximates the curved surface can be obtained.

即ち、前記三角メツシユジエネレータ2は、前
記三角メツシユを構成する複数の前記三角形を識
別するためにそれぞれに三角形識別符号(例え
ば、I、J、K、…)を、また該三角形の頂点に
は頂点符号(例えば、、、、…)を付与し
て三角形識別符号と該三角形識別符号に対応する
頂点符号のデータをメモリ3に記入するととも
に、頂点符号を三角頂点の座標テーブル1の座標
対応位置へ記入する。
That is, the triangular mesh generator 2 assigns a triangle identification code (for example, I, J, K, . . . ) to each triangle in order to identify the plurality of triangles constituting the triangular mesh, and also assigns a triangle identification code (for example, I, J, K, . . . ) to each vertex of the triangle. assigns a vertex code (for example,,,,...), writes the data of the triangle identification code and the vertex code corresponding to the triangle identification code in the memory 3, and also writes the vertex code into the coordinate correspondence of the coordinate table 1 of the triangle vertex. Fill in the position.

次に、情報取り出し部5は三角形の頂点テーブ
ル3からテーブル3の最初に位置する三角形Iを
読み出すと共に、頂点符号(、、)も同時
に読み出す。
Next, the information retrieval unit 5 reads the triangle I located at the beginning of the triangle vertex table 3 from the triangle vertex table 3, and simultaneously reads the vertex code (,,).

そして、テーブル1からは頂点符号(、、
)に対応した3つの頂点の座標(Xi、Yi、
Zi;i=1、2、3)を読み出す(第3図を参
照)。
From Table 1, the vertex codes (,,
) The coordinates of the three vertices (Xi, Yi,
Zi; i=1, 2, 3) (see Figure 3).

等高線格納メモリ6は三角形を構成要素とする
三角メツシユにおいて、求めたい等高線の等高値
を任意の値で出力できるように構成されている。
The contour storage memory 6 is configured to be able to output contour values of contour lines to be determined in a triangular mesh having triangles as an arbitrary value.

交点計算部7は、情報取り出し部5より頂点の
座標(Xi、Yi、Zi;i=1、2、3)を入力す
ると共に、等高線格納メモリ6からは求めたい等
高線の等高値、例えばZ=Zoの値を読みだす。
The intersection calculation unit 7 inputs the coordinates of the vertices (Xi, Yi, Zi; i=1, 2, 3) from the information retrieval unit 5, and also inputs the contour value of the contour line to be calculated, for example, Z= from the contour storage memory 6. Read the value of Zo.

次いで、交点計算部7は座標(Xi、Yi、Zi;
i=1、2、3)とZ0とを基にして、座標(Xi、
Yi、Zi;i=1、2、3)で形成される三角形
Iの中に“Zo”の等高線の線分である等高線分
“I′”が存在するか、夫とも存在しないかを各々
の座標点のZ成分と“Zo”を比較することで判
定する。
Next, the intersection calculation unit 7 calculates the coordinates (Xi, Yi, Zi;
Based on i=1, 2, 3) and Z 0 , the coordinates (Xi,
In the triangle I formed by Yi, Zi; i = 1, 2, 3), check whether the contour segment “I′” which is the contour line segment of “Zo” exists or not. Determination is made by comparing the Z component of the coordinate point and "Zo".

例えば、三角形Iのなかの線分〜、〜
の中に“Zo”の等高線分“I′”が存在すると判定
されると、等高線分“I′”の両端の座標(Xa、
Ya;Xb、Yb)を前記したと同じ方法の比例計
数により求めた後に、等高線分“I′”の両端の座
標(Xa、Ya;Xb、Yb)を対応させて第4図a
のテーブルに入力して、三角形Iの等高線分
“I′”を求める処理は完了する。
For example, a line segment in triangle I ~, ~
When it is determined that the contour line segment “I′” of “Zo” exists within the contour line segment “I′”, the coordinates (Xa,
Ya;
The process of determining the contour segment "I'" of triangle I is completed by inputting the data into the table shown in FIG.

そして、三角形Iで実施したと同じ処理を他の
三角形に実施して次々と三角形(J、K、…、
N)内の等高線分の両端の座標(c、d、c、
…、h)(第4図b)を求め、第4図aのテーブ
ル8に記入する。
Then, the same process as performed on triangle I is performed on other triangles one after another (J, K,...
Coordinates (c, d, c,
..., h) (Fig. 4b) is determined and entered in Table 8 of Fig. 4a.

尚、三角メツシユを構成する三角形のなかにZ0
の等高線が存在しないと判定されると直ちに別の
三角形の処理に移行する。
Furthermore, there is Z 0 in the triangles that make up the triangular mesh.
As soon as it is determined that the contour line does not exist, processing of another triangle is started.

連結検索部9は、交点計算部7が求めた全ての
等高線分の両端の座標がそれぞれ対応されて入力
された第4図aのテーブル8から、任意に一つの
等高線分、例えば等高線分“L′”の両端の座標
Xc、Yc;Xd、Ydを対にして読みだす(第4図
b参照)。
The connection search unit 9 arbitrarily selects one contour line segment, for example, the contour line segment “L”, from the table 8 of FIG. Coordinates of both ends of ′”
Read out Xc, Yc; Xd, Yd as a pair (see Figure 4b).

そして、等高線分“L′”の一端の座標(Xd、
Yd)を記点座標として定める。
Then, the coordinates (Xd,
Yd) as the marking point coordinates.

次いで、連結検索部9は、テーブル8に対にし
て格納された複数の等高線分の始点と終点の座標
を検索して、いずれか一端の座標が起点座標
(Xd、Yd)と同一の座標を有する線分を検出し
て連結する。
Next, the connection search unit 9 searches for the coordinates of the start point and end point of the plurality of contour line segments stored in pairs in the table 8, and finds the coordinates of one end of which are the same as the start point coordinates (Xd, Yd). Detect and connect line segments that have

そして、次には上記検索により検出された線分
の他端の座標と同じ座標を有する線分を上記した
と同様な方法により次々と検出して、検出された
該座標を検出順に連結して行く。
Next, line segments having the same coordinates as the coordinates of the other end of the line segment detected by the above search are successively detected in the same manner as described above, and the detected coordinates are connected in the order of detection. go.

連結された最終端の座標と同じ座標を有する座
標がなくなると、連結順に前記座標をソーテイン
グ部11に入力する。
When there are no coordinates that have the same coordinates as the coordinates of the final end of the connection, the coordinates are input to the sorting unit 11 in the order of connection.

例えば、上記手順を第4図を用いて説明する。 For example, the above procedure will be explained using FIG. 4.

等高線分“L′”の前記起点座標をdとする。 Let d be the coordinates of the starting point of the contour segment "L'".

連結検索部9はテーブル8に対して格納された
複数の等高線分の両端の座標を検索して、このd
と同じ座標を一端に有する等高線分“M′”を検
出する。
The connection search unit 9 searches for the coordinates of both ends of the plurality of contour line segments stored in the table 8, and searches for this d
Detect a contour segment “M′” that has the same coordinates at one end as .

次に、この等高線分“M′”の他端と座標がe
とすると、一端の座標がeである等高線分がテー
ブル8を検索しても検出されないから、連結検索
部9は座標“d、e”を連結順にソーテイング部
11に入力する。
Next, the other end of this contour segment “M′” and the coordinate are e
Then, the contour line segment whose one end coordinate is e is not detected even if the table 8 is searched, so the connection search unit 9 inputs the coordinates “d, e” to the sorting unit 11 in the order of connection.

また、連結検索部10は、前記等高線分“L′”
の他端の座標cをもう一方の起点座標として、連
結検索部9が行つたと同じ処理を実行する。
Further, the connection search unit 10 searches the contour line segment “L′”
The same process as that performed by the connected search unit 9 is executed using the coordinate c of the other end as the other starting point coordinate.

そして、前記連結検索部10が連結した座標を
ソーテイング部11に入力すると前記等高線分
“L′”が構成要素となつている一つの等高線の全
等高線分の座標の検索が完了する。
Then, when the connected coordinates of the connected search section 10 are input to the sorting section 11, the search for the coordinates of all contour segments of one contour line of which the contour line segment "L'" is a constituent element is completed.

例えば、前記等高線分“L′”の他端に座標をc
とすると、連結検索部10が連結した座標“c、
b、a”を連結順にソーテイング部11に入力す
ることで前記等高線分“L′”が一つの構成要素と
なつている一つの等高線の全等高線分の座標の検
索が完了する。
For example, set the coordinates c to the other end of the contour segment “L′”.
Then, the coordinates “c,” connected by the connection search unit 10 are
By inputting "b, a" to the sorting unit 11 in the order of connection, the search for the coordinates of all contour segments of one contour line of which the contour segment "L'" is one constituent element is completed.

ソーテイング部11には、連結検索部9が等高
線分“L′”の一端の座標を起点座標として連結さ
れた座標“d、e”と、連結検索部10が等高線
分“L′”の他端を起点座標として連結した座標
“c、b、a”とを入力する。
In the sorting unit 11, the connection search unit 9 searches the coordinates “d, e” which are connected using the coordinates of one end of the contour line segment “L′” as the starting point coordinates, and the connection search unit 10 searches for the coordinates “d, e” that are connected using the coordinates of one end of the contour line segment “L′”. Input the connected coordinates "c, b, a" using the starting point coordinates.

そして、ソーテイング部11は、座標“d、
e”と、座標“c、b、a”が開曲線の等高線を
構成するのか、夫とも閉曲線の等高線を構成する
のかを該座標により判定をする。
Then, the sorting unit 11 selects the coordinates “d,
It is determined based on the coordinates whether "e" and the coordinates "c, b, a" constitute contour lines of an open curve or contour lines of a closed curve.

この判定の結果、開曲線であるからソーテイン
グ部11は、前記座標の並びのそれぞれの終端座
標であるe、若しくはaを起点する一つの座標の
並びに構成する。
As a result of this determination, since it is an open curve, the sorting unit 11 forms a single coordinate sequence starting from e or a, which is the terminal coordinate of each of the coordinate sequences.

例えば、aを起点座標とする並びで構成する
と、“a、b、c、d、e”となる。
For example, if the coordinates are composed of a sequence with a as the starting point coordinate, it becomes "a, b, c, d, e".

そして、ソーテイング部11は上記並びの順に
上記座標を第4図cのテーブル12に入力する。
前記判定の結果が閉曲線である場合、ソーテイン
グ部11は連結検索部9から入力された座標だけ
をそのままの順序でテーブル12に入力する。
Then, the sorting unit 11 inputs the coordinates in the order of the arrangement into the table 12 of FIG. 4c.
If the result of the determination is a closed curve, the sorting unit 11 inputs only the coordinates input from the connection search unit 9 into the table 12 in the same order.

この後、連結検索部9、連結検索部10はZo
の等高線の別の座標、すなわち第4図aの等高線
分“O′”、“N′”の検索をするために、未検索に
なつているテーブル8内の等高線分について上記
した処理を繰り返して実施し、連結された
“O′”、“N′”についてソーテイング部11で開、
閉の処理を含めた処理を行う。
After this, the linked search unit 9 and the linked search unit 10
In order to search for other coordinates of the contour line, that is, contour line segments "O'" and "N'" in Figure 4a, repeat the above process for the contour line segments in Table 8 that have not yet been searched. The sorting unit 11 opens the connected “O′” and “N′”.
Performs processing including closing processing.

そして、前記テーブル8に格納されたZoの等
高線分が全部検索済になると、Zoの等高線が全
て求められたことになる。
When all the contour line segments of Zo stored in the table 8 have been searched, it means that all the contour lines of Zo have been found.

(f) 発明の効果 以上詳細に説明したように本発明の等高線追跡
処理方法は等高線分の算出順序が三角形の隣接に
関係が無く算出できるから等高線の開、閉、及び
同一標高の等高線が二カ所以上に現れても漏れな
く検出することができる。
(f) Effects of the Invention As explained in detail above, the contour line tracing processing method of the present invention can calculate contour line segments without regard to the adjacency of triangles. Even if it appears in more than one place, it can be detected without omission.

従つて、等高線の追跡ロジツクを簡単にすると
共に、データ処理装置の記憶領域と処理量の減少
を計れるものとなり、等高線を追跡する上で利点
の多いものとなる。
Therefore, the logic for tracing contour lines can be simplified, and the storage area and processing amount of the data processing device can be reduced, which has many advantages in tracing contour lines.

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

第1図は三角形メツシユ化とテーブルの関係を
示す図、同図aは三角形メツシユ図、同図bは三
角頂点の座標テーブル、同図cは三角形メツシユ
テーブル、同図dは三角形の頂点テーブル、第2
図は本発明の等高線追跡処理方法を示す一実施例
のブロツク図、第3図は等高線分算出図、第4図
は等高線分追跡説明図である。 図において、1は三角頂点の座標テーブル、2
は三角メツシユジエネレータ、3は三角形の頂点
テーブル、5は情報取り出し部、6は等高値格納
メモリ、7は交点計算部、8は等高線分テーブ
ル、9と10は連結検索部、11はソーテイング
部、12は等高線座標テーブルをそれぞれ示す。
Figure 1 is a diagram showing the relationship between triangle meshing and tables, Figure a is a triangle mesh diagram, Figure b is a coordinate table of triangle vertices, Figure c is a triangle mesh table, Figure d is a triangle vertex table. , second
The figure is a block diagram of an embodiment of the contour line tracing processing method of the present invention, FIG. 3 is a contour line segment calculation diagram, and FIG. 4 is a contour line segment tracing explanatory diagram. In the figure, 1 is a coordinate table of triangle vertices, 2
is a triangular mesh generator, 3 is a triangle vertex table, 5 is an information extraction unit, 6 is a contour value storage memory, 7 is an intersection calculation unit, 8 is a contour line segment table, 9 and 10 are a connection search unit, and 11 is a sorting unit. Sections 12 and 12 respectively show contour line coordinate tables.

Claims (1)

【特許請求の範囲】 1 複数の空間座標点に座標点番号(、、
…)を割り当て、当該座標点対応に座標値(Xi、
Yi、Zi;i=1、2、…)を入力し、 隣接する3つの座標点を頂点座標として形成し
た三角平面に識別符号(I)を割当て、該3つの座標
点番号を当該三角平面(I)の頂点符号に設定し、そ
れぞれの三角平面毎に三角平面を構成する頂点間
を結ぶ線分上の座標値(Z)が共通の指定値
(Zo)に一致した時の対応座標値(X、Y)を該
線分上で産出し、2線分間に架かる等高線分
(Zs=Ze=Zo)の両端座標(Xs、Ys;Xe、Ye)
を算出してメモリに記憶することで三角平面間の
等高線を追跡するシステムにおいて、 該メモリから第1の等高線分(Xs、Ys;Xe、
Ye)を抽出し、 該等高線分の一端座標(Xe、Ye)を始点に
し、同一座標を一端に持つ第2の等高線分を該メ
モリ内で検索抽出して連結順序を確立し、該第2
の等高線分の他端座標と同一な座標を一端に持つ
第3の等高線分を検索抽出して連結順序を確立す
る順方向の追跡手順を遂行し、該追跡手順の遂行
過程で同一座標を持つ等高線分がメモリ内に無く
なるまでは追跡手順を反復すると共に、 該第1の等高線分の他端座標(Xs、Ys)を始
点とする第4の等高線分を該メモリ内で検索抽出
して連結順序を確立する逆方向の追跡手順を遂行
し、 該順方向と逆方向の追跡手順が完了した時は該
二つの追跡手順で抽出した等高線分の共通な等高
線分を除いて連結順序付けたことを特徴とする等
高線追跡処理方法。
[Claims] 1 Coordinate point numbers (,,,
) and assign the coordinate values (Xi,
Yi, Zi; i = 1, 2, ...), assign an identification code (I) to a triangular plane formed with three adjacent coordinate points as vertex coordinates, and assign the three coordinate point numbers to the triangular plane ( I), and the corresponding coordinate value ( X, Y) is produced on the line segment, and both end coordinates (Xs, Ys; Xe, Ye) of the contour line segment (Zs = Ze = Zo) spanning the two lines
In a system that traces contour lines between triangular planes by calculating and storing it in memory, the first contour line segment (Xs, Ys;
Ye), the coordinates (Xe, Ye) of one end of the contour line segment are the starting point, a second contour line segment having the same coordinates at one end is searched and extracted in the memory to establish a connection order, and the second
A forward tracing procedure is performed to establish a connection order by searching and extracting a third contour segment whose one end has the same coordinates as the coordinates of the other end of the contour segment, and in the process of performing the tracing procedure, a third contour segment having the same coordinates as the other end coordinate of the contour segment The tracing procedure is repeated until there are no more contour segments in the memory, and at the same time, a fourth contour segment whose starting point is the coordinates (Xs, Ys) of the other end of the first contour segment is searched and extracted in the memory and connected. Perform a backward tracing procedure to establish the order, and when the forward and backward tracing procedures are completed, confirm that the contour line segments extracted in the two tracing procedures have been connected and ordered by excluding common contour segments. Characteristic contour line tracing processing method.
JP17354383A 1983-09-19 1983-09-19 Tracking system of contour line Granted JPS6065380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17354383A JPS6065380A (en) 1983-09-19 1983-09-19 Tracking system of contour line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17354383A JPS6065380A (en) 1983-09-19 1983-09-19 Tracking system of contour line

Publications (2)

Publication Number Publication Date
JPS6065380A JPS6065380A (en) 1985-04-15
JPH0132545B2 true JPH0132545B2 (en) 1989-07-05

Family

ID=15962477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17354383A Granted JPS6065380A (en) 1983-09-19 1983-09-19 Tracking system of contour line

Country Status (1)

Country Link
JP (1) JPS6065380A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02232690A (en) * 1989-03-04 1990-09-14 Brother Ind Ltd Data converting device

Also Published As

Publication number Publication date
JPS6065380A (en) 1985-04-15

Similar Documents

Publication Publication Date Title
US4809201A (en) Graphic display region defining technique
KR900003123B1 (en) Method for evaluating free surface and n.c. system
Krishnan et al. An efficient surface intersection algorithm based on lower-dimensional formulation
EP0611076A2 (en) Method and system for producing mesh representations of objects
US20080021882A1 (en) Method and apparatus for retrieving a 3-dimensional model
US6862560B1 (en) Machining simulation method and apparatus
JPH11197993A (en) Method for extracting feature shape from three-dimensional shape data
JPH0132545B2 (en)
CN113034515A (en) Bounding box tree-based polygon clipping method, electronic device and storage medium
JP2002207504A (en) Method and apparatus for producing three-dimensional shape data
Herman Representation and incremental construction of a three-dimensional scene model
US6400363B1 (en) Drawing candidate line segments extraction system, drawing candidate line segments extraction method, solid model synthesis system, and solid model synthesis method
Durix et al. Skeleton-based multiview reconstruction
JPH0896164A (en) Device and method for compositing solid model
Bilodeau et al. Generic modeling of 3d objects from single 2d images
JP3305395B2 (en) Figure division device
JP2596698B2 (en) How to generate contours
CN113255283B (en) Global wiring method for rapidly removing closed loop and redundant nodes
JPH0962721A (en) Method for conversion from two-dimensional cad diagram to three-dimensional cad diagram
CN115861353A (en) Vein determination method, vein determination device, electronic equipment and storage medium
JP3156544B2 (en) Circuit extraction device
Van Gool Projectice subgroups for grouping
Kuo A systematic approach towards reconstructing 3D curved models from multiple 2D views
Peng et al. Surface reconstruction from dexel data for virtual sculpting
JP3324589B2 (en) Contour line drawing method, drawing system using this method, and recording medium recording the drawing method