JPH02115986A - Method for generating control of grid shape range of points data - Google Patents

Method for generating control of grid shape range of points data

Info

Publication number
JPH02115986A
JPH02115986A JP26804588A JP26804588A JPH02115986A JP H02115986 A JPH02115986 A JP H02115986A JP 26804588 A JP26804588 A JP 26804588A JP 26804588 A JP26804588 A JP 26804588A JP H02115986 A JPH02115986 A JP H02115986A
Authority
JP
Japan
Prior art keywords
contour
segments
data
contour line
segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP26804588A
Other languages
Japanese (ja)
Inventor
Kenji Kawahara
健二 川原
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.)
Hitachi Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Hitachi 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 Hitachi Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP26804588A priority Critical patent/JPH02115986A/en
Publication of JPH02115986A publication Critical patent/JPH02115986A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a processing quantity compared with a method to generate a segment at every triangular unit by a generating a contour segment in rectangular unit consisting of four pieces of data in the plotting of the contour of range of points data distributed in grid shape. CONSTITUTION:A processing to generate the segment of the contour at every rectangle consisting of the four pieces of data distributed in the grid shape is performed. In other words, the number of intersections of the circumference of the rectangle consisting of the four pieces of range of points data distributed in the grid shape with the height of a prescribed contour from a memory 13 in which the height of the contour is stored is found. A processing only to perform whether or not one or two segments of the contour are generated is performed according to the number of found intersections and an intersection pattern. In such a case, the crossing of the contours with different height is prevented from occurring by identifying the intersection pattern by setting a diagonal line in a specific direction for every rectangle. In such a way, it is possible to reduce the processing quantity to generate the segment compared with the method to perform the processing at every triangle.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、格子状点列データの等高線生成方法に関し、
特に処理量を削減できる汎用的な等高線の作図法に関す
る。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a contour line generation method for grid point sequence data.
In particular, it relates to a general-purpose contour line drawing method that can reduce the amount of processing.

〔従来の技術〕[Conventional technology]

従来のコンピュータ・ソフトウェアによる図形処理にお
いては、二次元差分法データに対する簡易で万能な等高
線作図アルゴリズムがなく、差分法の隣接する格子線で
囲まれる四角形を全て三角形に分割する方法が多く用い
られていた。
In conventional graphic processing using computer software, there is no simple and universal contour drawing algorithm for two-dimensional finite difference method data, and a method is often used in which all quadrangles surrounded by adjacent grid lines of the finite difference method are divided into triangles. Ta.

すなわち、従来の作図法は、例えば、特開昭60−65
380号公報に記載されているように、点列データに対
して3点のデータからなる三角形ごとに等高線のセグメ
ントを生成する処理を行っていた。この方法では、三次
元点列データメモリから曲面補間された三次元データを
読み取り、三角メツシュ・ジェネレータで三次元データ
を三角形に分割し、三角形単位で頂点に相当する内容を
メモリに格納した後、再び読み出して交点計算機で交点
計算を行っている。そして、等高値を検索し、連続等高
線を作成する。
That is, the conventional drawing method is, for example,
As described in Japanese Patent No. 380, a process is performed for point sequence data to generate a contour line segment for each triangle made up of data of three points. In this method, 3D data subjected to surface interpolation is read from a 3D point sequence data memory, the 3D data is divided into triangles by a triangular mesh generator, and the contents corresponding to the vertices of each triangle are stored in memory. I read it out again and use the intersection calculator to calculate the intersection. Then, search for contour values and create continuous contour lines.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、三゛角形に分割する方法では、四角形内では等
高線が折れて作図されてしまうという問題がある。また
、このような従来の方法では、格子状態に分布する点列
データに対して、4点からなる矩形ごとに等高線のセグ
メントを生成する処理については配慮されていなかった
。このため、三角形ごとの処理は四角形ごとの処理の2
倍の処理が必要であり、セグメント生成のための処理量
が多くなっていた。
However, the method of dividing into triangles has a problem in that the contour lines within the quadrilateral are broken. Further, in such conventional methods, no consideration is given to the process of generating contour line segments for each rectangle made up of four points for point sequence data distributed in a grid state. Therefore, the processing for each triangle is 2 times the processing for each rectangle.
This required twice as much processing, resulting in a large amount of processing for segment generation.

本発明の目的は、このような従来の課題を解決し、三角
形ごとに処理を行う方法に比べて、セグメント生成のた
めの処理量を削減することができる格子状点列データの
等高線生成方法を提供することにある。
The purpose of the present invention is to solve such conventional problems and to provide a contour line generation method for grid point sequence data that can reduce the amount of processing for segment generation compared to the method of processing each triangle. It is about providing.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するため、本発明による格子状点列デー
タの等高線生成方法は、格子状に分布し、かつ高さを有
する二次元点列データと、等高線高さデータとから各々
セグメントを生成し、該セグメントで形成された等高線
を連結し、折れ線発生器により上記連結された等高線を
発生して、該等高線をグラフィック装置に表示する等高
線生成方法において、上記セグメントをプログラムによ
り自動的に生成する際に、4点のデータからなる矩形ご
とに周辺上の異なる交点の個数を調べ、交点数が2より
少ないときには等高線セグメントを生成せず、交点数が
2のときには例外の場合を除いて該2交点を始・終点と
する等高線セグメントを生成し、交点数が2より多いと
きには、4つの全頂点のデータ値が等高線高さと一致す
る場合を除き1等高線セグメントを生成し、3つの頂点
のデータ値が等高線高さと一致する場合には対角関係の
2頂点を始・終点とするセグメントを生成し。
In order to achieve the above object, the contour line generation method of grid point sequence data according to the present invention generates segments from two-dimensional point sequence data distributed in a grid pattern and having heights and contour line height data. , in a contour line generation method that connects contour lines formed by the segments, generates the connected contour lines using a polygonal line generator, and displays the contour lines on a graphic device, when the segments are automatically generated by a program. For each rectangle consisting of four points of data, the number of different intersections on the periphery is checked, and when the number of intersections is less than 2, contour line segments are not generated, and when the number of intersections is 2, the two intersections are generated except in exceptional cases. Generates a contour line segment with the start and end points as the starting and ending points, and if the number of intersections is more than 2, generates one contour line segment unless the data values of all four vertices match the contour line height, and the data values of three vertices match the contour line height. If it matches the contour line height, a segment is generated whose start and end points are the two diagonal vertices.

また1矩形に対し2つのセグメントを生成できる場合に
は、対角線で2分割してできる2つの三角形について、
各々交点を通るセグメントを生成することに特徴がある
Also, if two segments can be generated for one rectangle, then for the two triangles created by dividing the rectangle into two,
The feature is that a segment is generated that passes through each intersection.

〔作  用〕[For production]

本発明においては、格子状に分布する点列データに対し
て、4点からなる矩形ごとに等高線のセグメントを生成
する処理を行う。すなわち、格子状に分布する点列デー
タの4点からなる矩形について、その矩形の周と等高線
高さを格納したメモリから、所定の等高線高さとの交点
数を求める。
In the present invention, a process is performed to generate contour line segments for each rectangle made up of four points on point sequence data distributed in a grid pattern. That is, for a rectangle made up of four points of point sequence data distributed in a grid, the number of intersections with a predetermined contour line height is determined from a memory that stores the rectangle's circumference and contour line height.

求められた交点数と交点パターンに従って、等高線のセ
グメントを1本または2本生成するか、あるいは生成し
ないですます。この場合、各矩形に対して、特定方向の
対角線を基準に交点パターンを識別することにより、高
さの異なる等高線が交差しないようにする。これにより
、三角形ごとに処理を行う方法に比べて、セグメントを
生成するための処理量を減少させることが可能である。
Depending on the number of intersections and the intersection pattern, one, two, or no contour segments are generated. In this case, by identifying an intersection pattern for each rectangle based on a diagonal line in a specific direction, contour lines of different heights are prevented from intersecting. This makes it possible to reduce the amount of processing required to generate segments compared to a method in which processing is performed for each triangle.

〔実施例〕〔Example〕

以下、本発明の一実施例を、図面により詳細に説明する
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第4図は、本発明の一実施例を示す等高線描画処理装置
のブロック図である。
FIG. 4 is a block diagram of a contour line drawing processing device showing one embodiment of the present invention.

第4図において、11は格子状に分布し、それぞれ高さ
を持つ二次元点列データを格納しておくための点列デー
タ格納メモリ、12は点列データ格納メモリ11からデ
ータを読み出すためのデータ読取り部、13は描画する
等高線の高さのデータを平面的に配列したものを格納す
る等高線高さ格納メモリ、14は本発明の中心をなす処
理部であって、データ読取り部12により読み取られた
座標値とメモリ13から所定の等高線高さとの交点計算
を行い、等高線セグメント座標を生成するためのセグメ
ント生成部、15は生成されたセグメントを格納するた
めのセグメント格納メモリ、16はセグメント格納メモ
リ15に格納されているセグメント座標を取り出し、そ
れらのセグメントを連結して等高級を作成するための等
高級連結部、17は連結されたセグメント群をグラフィ
ック装置18に出力するために折れ線を発生する折れ線
発生部、18は発生された折れ線を表示するためのグラ
フィック装置である。
In FIG. 4, 11 is a point sequence data storage memory for storing two-dimensional point sequence data that is distributed in a grid pattern and each has a height, and 12 is a point sequence data storage memory for reading data from the point sequence data storage memory 11. A data reading unit 13 is a contour line height storage memory that stores data on the heights of contour lines to be drawn arranged in a plane; 14 is a processing unit which is the center of the present invention, and is read by the data reading unit 12; A segment generation unit calculates the intersection between the generated coordinate values and a predetermined contour line height from the memory 13 and generates contour line segment coordinates; 15 is a segment storage memory for storing the generated segments; 16 is a segment storage unit An equi-level linking unit extracts the segment coordinates stored in the memory 15 and connects the segments to create an equi-level unit; 17 generates a polygonal line to output the connected segment group to the graphic device 18; A polygonal line generation unit 18 is a graphic device for displaying the generated polygonal line.

本発明においては、このような構成の処理装置により、
セグメント主成部14内でプログラムにより自動的に4
点のデータからなる矩形ごとにセグメントを生成し、そ
れらのセグメントを連結して、データの尾根と谷に該当
する部分、つまり格子点を通る等高級を作成する。
In the present invention, a processing device having such a configuration can:
4 automatically by the program within the segment main section 14.
A segment is generated for each rectangle made of point data, and these segments are connected to create parts corresponding to the ridges and valleys of the data, that is, equilevels that pass through the grid points.

第2図は、第1図の装置により描画された等高線描画例
を示す図である。
FIG. 2 is a diagram showing an example of contour lines drawn by the apparatus shown in FIG. 1.

第2図において、e、+はデータ値〉実線の等高級の高
さを満足する部分であり、e、−は逆にデータ値く実線
の等高級の高さを満足する部分であり、0はデータ値=
実線の等高級の高さを満足する部分であり、・は交点で
あって、ここでは1〜4のケース(これらについては、
第3図で説明する)についてのみ示している。また、第
2図では、図示された実線の等高級よりも高さの高い等
高級の一例を破線で示している。
In Figure 2, e, + is the part that satisfies the height of the equigrade of the data value > solid line, and e, - is the part that satisfies the height of the equigrade of the solid line, conversely, 0 is the data value =
It is the part that satisfies the height of the solid line, and ・ is the intersection point, and here cases 1 to 4 (for these,
(Explained in FIG. 3) are shown. Further, in FIG. 2, an example of the equivalent class having a higher height than the illustrated solid line equivalent class is shown by a broken line.

ここでは、実線の等高級は、左下部分と中央部分と右上
部分の3つが示されている。この場合、左下の等高級と
の交点2個と、中央の等高級との交点2個とが同一の矩
形4に存在するようなケースを、2セグメント生成のケ
ースと呼ぶ。なお、交点が3個の矩形でも、2セグメン
ト生成の場合がある。また、中央の等高級で、等高級が
1つの矩形1内の4頂点のうち、2箇所で交差する場合
を゛22頂例外ケースと呼ぶ。さらに、右上部の4個の
交点は、実線の等高級高さと同一の高さを有する頂点の
交点であって、これらが1つの矩形3に含まれているの
で、これを4頂点ケースと呼ぶ。
Here, three solid line equilevels are shown: the lower left part, the center part, and the upper right part. In this case, a case in which two intersections with the lower left equal high-level and two intersections with the central equal high-level exist in the same rectangle 4 is called a two-segment generation case. Note that even for a rectangle with three intersection points, two segments may be generated. Furthermore, the case where the central equilevels intersect at two of the four vertices in one rectangle 1 is called a 22-vertex exception case. Furthermore, the four intersections on the upper right are the intersections of vertices that have the same height as the constant height of the solid line, and since these are included in one rectangle 3, this is called a 4-vertex case. .

また、その下方の矩形は、3頂点ケー入と呼ばれるもの
で、1つの矩形2内の4頂点のうちの3つの点が等高級
と同一高さであり、そのうちの2つの頂点間に等高級が
引かれる。この等高級の方向を、基準となる対角線方向
と呼ぶ。
In addition, the rectangle below it is called a three-vertex case, in which three of the four vertices in one rectangle 2 are at the same height as the equivalent height, and between two of them is drawn. This direction of equal height is called the reference diagonal direction.

次に、各ケースの定義をする。Next, we will define each case.

(a)  II’2頂点例外ケースj1は。(a) II’2 Vertex exception case j1 is.

基準の対角線を挟んで向い合う2頂点におけるデータ値
が等高級高さと一致しくそれらの2頂点が交点)、他の
2頂点におけるデータ値が共に等高級高さより大(また
は小)である場合を言う。
When the data values at two vertices facing each other across the diagonal line of the standard match the equi-height height and those two vertices intersect), and the data values at the other two vertices are both larger (or smaller) than the equi-height height. To tell.

(b)  li’3頂点ケースJ2は、3つの頂点にお
けるデータ値が等高級高さと一致する場合(3頂点が交
点)を言う。
(b) The li'3 vertex case J2 refers to a case where the data values at three vertices match the equi-height heights (three vertices intersect).

(c)[r44頂ケース」3は。(c) [r44 top case” 3.

4つの全頂点におけるデータ値が、等高級高さと一致す
る場合(4頂点が交点)を言う。
This refers to the case where the data values at all four vertices match the equal height heights (the four vertices intersect).

第3図は、矩形と等高級高さとの交点パターンを示す図
である。
FIG. 3 is a diagram showing an intersection pattern between a rectangle and equal heights.

第3図において、1〜4の数字が付けられた矩形は、第
2図に対応するものであって、1が2頂点例外ケース、
2が3頂点ケース、3が4頂点ケース、4が2セグメン
ト生成のためのケースである。4頂点ケース3、および
2頂点例外ケース1は、それぞれ1つの場合しかないが
、3頂点ケース2は左上から右下のセグメントと、右上
から左下のセグメントの2つの場合がある。また、2セ
グメント生成のケース4は、−点鎖線内に示すように5
つの場合がある。すなわち、上2つの場合のように、左
上から右下に並行して2つのセグメントが引かれるが、
左側は囲まれた部分が周囲よりも高い場合であり、右側
は囲まれた部分が周囲よりも低い場合である。また、下
3つの場合のように、左上から右下に並行して2つのセ
グメントが引かれるが、そのうちの1つのセグメントが
ない場合と、並行する2つのセグメントが3つのうちの
1つで交差する場合である。
In FIG. 3, rectangles numbered 1 to 4 correspond to those in FIG. 2, where 1 is the two-vertex exception case,
2 is a 3-vertex case, 3 is a 4-vertex case, and 4 is a case for generating 2 segments. There is only one case of the 4-vertex case 3 and the 2-vertex exception case 1, but there are two cases of the 3-vertex case 2: a segment from the upper left to the lower right, and a segment from the upper right to the lower left. In addition, in case 4 of 2-segment generation, 5
There are two cases. In other words, as in the above two cases, two segments are drawn in parallel from the top left to the bottom right, but
The left side is when the enclosed part is higher than the surrounding area, and the right side is when the enclosed area is lower than the surrounding area. Also, as in the three cases below, two segments are drawn in parallel from the upper left to the lower right, but one of the segments is missing, and the two parallel segments intersect at one of the three. This is the case.

第3図の右上の12個の矩形は、いずれも頂点でない位
置に等高級との交点が2つあるものであり、右上から左
下、左上から右下、縦横の各方向にセグメントが引かれ
る。
The 12 rectangles in the upper right of FIG. 3 each have two intersections with the equi-high grade at positions that are not vertices, and segments are drawn from the upper right to the lower left, from the upper left to the lower right, and in the vertical and horizontal directions.

第3図の右下に示される10個の矩形は、いずれも頂点
の1〜4個が等高級と等しい高さを有するものである。
The ten rectangles shown in the lower right of FIG. 3 all have one to four vertices of equal height.

この中に2頂点例外ケース1と4頂点ケース3も含まれ
ている。
This includes 2-vertex exception case 1 and 4-vertex exception case 3.

第1図は、第4図におけるセグメント生成部の処理フロ
ーチャートである。
FIG. 1 is a processing flowchart of the segment generation unit in FIG. 4.

第2図および第3図を参照しながら、第1図によりセグ
メント生成処理を詳述する。
The segment generation process will be explained in detail with reference to FIG. 1 while referring to FIGS. 2 and 3.

いま、格子状に分布する点列データがメモリ11に、ま
た描画する等高級の高さがメモリ13に、それぞれ格納
されているものとする。先ず、メモリ13から所定の等
高級高さを入力しくステップ101)、次にメモリ11
データ読取り部12を介して読み取ったデータについて
、1矩形分のデータを取り出す(ステップ102)。こ
の矩形データと等高級高さとの交点計算を行い、矩形同
上の異なる交点の個数を調べる(ステップ103,10
4)。交点が2より小さい場合(つまり、1個のとき)
、交点が2の場合、および交点が2より大きい場合(つ
まり、3個と4個のとき)の3つの場合がある。
It is now assumed that point sequence data distributed in a lattice pattern is stored in the memory 11, and high-grade heights such as those to be drawn are stored in the memory 13. First, input a predetermined equivalent height from the memory 13 (step 101), then input the height from the memory 11.
Data for one rectangle is extracted from the data read through the data reading section 12 (step 102). Calculate the intersections between this rectangle data and the equivalent height, and check the number of different intersections of the rectangle (steps 103 and 10).
4). When the number of intersection points is less than 2 (that is, when there is 1)
There are three cases: , the number of intersections is 2, and the number of intersections is greater than 2 (that is, 3 and 4).

(i)交点数く2の場合 この場合には、等高線セグメントの生成は行わず、デー
タの終りでなければ5次の矩形データの取り出しを行い
(ステップ111,102)、処理を繰り返す。また、
データの終りであれば、処理を終了する(ステップ11
1)。
(i) When the number of intersections is 2: In this case, contour line segments are not generated, and if it is not the end of the data, quintic rectangular data is extracted (steps 111 and 102), and the process is repeated. Also,
If it is the end of the data, the process ends (step 11
1).

(ii)交点数=2の場合 この場合には、「2頂点例外ケースj1のときを除いて
、2交点を始・終点とする等高線セグメントの生成を行
い、これをメモリ15に格納する(ステップ108)。
(ii) When the number of intersections = 2 In this case, ``Except for the two-vertex exception case j1, generate a contour line segment with the two intersections as the start and end points, and store this in the memory 15 (step 108).

以下、交点数〈2の場合と同じ処理を繰り返す(ステッ
プ111,102)。
Thereafter, the same process as in the case where the number of intersections is <2 is repeated (steps 111 and 102).

(iii)交点数〉2の場合 rf4頂点ケースJ3の場合には、セグメントを生成し
ない(ステップ106)。また、「3頂点ケースJ2の
場合には、3頂点におけるデータ値が等高級高さと一致
する場合であるが、このときには対角線にある2頂点を
始・終点とするセグメントを生成して、これを格納する
(ステップ110)。
(iii) When the number of intersections>2 In the rf4 vertex case J3, no segment is generated (step 106). In addition, "In the case of 3 vertices case J2, the data values at the 3 vertices match the equi-height heights. In this case, a segment whose start and end points are the 2 vertices on the diagonal is generated and this is Store (step 110).

その他の場合には、「2セグメントの生成」4の場合に
該当し、矩形を基準の対角線で2分割して形成される2
つの三角形につ゛いて、各々交点を通るセグメントを生
成して、これを格納する(ステップ109)。すなわち
、この場合には、1矩形に対して、2つのセグメントが
生成される。以下。
In other cases, it corresponds to case 4 of "Generation of 2 segments", and 2 segments are formed by dividing the rectangle into 2 along the standard diagonal line.
For each of the three triangles, a segment passing through the intersection is generated and stored (step 109). That is, in this case, two segments are generated for one rectangle. below.

交点数く2の場合と同じような処理を繰り返す(ステッ
プ111,102)。
The same process as in the case where the number of intersections is 2 is repeated (steps 111 and 102).

ところで、「2頂点例外ケースj1におし\ては、第2
図の1に示すように、等高線セグメントを生成すると、
破線で示す他の等高級を同時表示した際に交差してしま
うことがわかる。これは、「2セグメントの生成」4の
場合の矩形の分割対角線方向との関連で発生する。これ
は、第3図に示す交点パターンを1つずつ調べることに
より、「2頂点例外ケースj1のみが、他の等高級と交
差する可能性のあることがわかる。
By the way, in the two-vertex exception case j1, the second
As shown in Figure 1, when generating contour segments,
It can be seen that when other equivalent levels indicated by broken lines are displayed simultaneously, they intersect. This occurs in relation to the diagonal direction of the rectangle division in case 4 of "Generation of 2 Segments". This is because by examining the intersection patterns shown in FIG. 3 one by one, it can be seen that only the two-vertex exception case j1 has a possibility of intersecting with other equal-high-level cases.

本実施例においては、格子状に分布する点列データに対
して、矩形単位に等高線セグメントの生成を行うことが
できるので、三角形単位に処理する場合に比べて処理量
が削減できる。その削減量の概算を以下に示す。
In this embodiment, contour line segments can be generated in units of rectangles for point sequence data distributed in a grid pattern, so the amount of processing can be reduced compared to the case where processing is performed in units of triangles. The approximate amount of reduction is shown below.

〔1〕三角形単位に行うセグメント生成処理に比べて、
セグメント生成の処理量を約2/3に削減することがで
きる。
[1] Compared to segment generation processing performed on a triangular basis,
The processing amount of segment generation can be reduced to about ⅔.

(セグメント生成の処理量)弁(データ単位数)* (
データ単位当りの交点計算数) の算出式において、本実施例では、(データ単位数)が
2つの三角形を1つの矩形単位で扱えるので、処理量は
1/2となり、また(データ単位当りの交点計算数)は
、データ単位の辺の数に比例するので、三角形に比べて
矩形は4/3である。
(Segment generation processing amount) Valve (number of data units) * (
In the calculation formula for (number of intersection points per data unit), in this example, (number of data units) can handle two triangles in one rectangular unit, so the processing amount is halved, and (number of data units) Since the number of intersection points calculated is proportional to the number of sides of a data unit, the number of intersection points is 4/3 for a rectangle compared to a triangle.

従って、処理量の比は、 (1/2)  申 (4/3)  =2/3となる。Therefore, the ratio of throughput is (1/2) Monkey (4/3) = 2/3.

〔2〕三角形単位に行うセグメント生成処理に比べて、
生成するセグメントの数も約2/3に削減することがで
きる。従って、等高級のプロット数も約2/3に削減で
きる。
[2] Compared to segment generation processing performed on a triangular basis,
The number of generated segments can also be reduced by about 2/3. Therefore, the number of equal-level plots can also be reduced to about 2/3.

すなわち、これを第3図で説明すると、等高級高さが矩
形の頂点のデータ値と一致することはまれであるため1
図の上3段のパターンのみについて考えれば充分である
。ここにおけるセグメント数は、全部で16である。そ
れに対して、矩形を一定方向の対角線で分割して2つの
三角形単位に処理すると、セグメント数は24になるこ
とがわかる。従って、一般に、等高級のプロット数の比
はセグメント数の比であるから、16/24=2/3と
なる。
In other words, to explain this using Figure 3, since it is rare for the equivalent height to match the data value of the vertex of the rectangle, 1
It is sufficient to consider only the patterns in the top three rows of the diagram. The number of segments here is 16 in total. On the other hand, if the rectangle is divided along diagonals in a certain direction and processed into two triangular units, the number of segments will be 24. Therefore, in general, the ratio of the number of plots of equal grade is the ratio of the number of segments, so 16/24=2/3.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、格子状に分布す
る点列データの等高線描画において、4点のデータから
なる矩形単位に等高線セグメントを生成できるので、三
角形単位にセグメントを生成する場合に比べて、処理量
を削減することが可能である。
As explained above, according to the present invention, contour line segments can be generated in rectangular units consisting of data of four points in contour line drawing of point sequence data distributed in a grid pattern, so when generating segments in triangular units, In comparison, it is possible to reduce the amount of processing.

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

第1図は本発明の一実施例を示すセグメント生成部の処
理フローチャート、第2図は第1図の処理による等高線
描画例を示す図、第3図は第1図の処理における矩形と
等高級高さとの交点パターンを示す図、第4図は本発明
の一実施例を示す等高線描画処理装置のブロック図であ
る。 11:点列データ格納メモリ、12:データ読取り部、
13:等高級高さ格納メモリ、14:セグメント生成部
、15:セグメント格納メモリ、16:等高級連結部、
17:折れ線発生器、18ニゲラフイツク装置。 第 図 +・、・データ値〉実線の等高級高さ 0 ・・・  //  wm    //く 交点(1〜4のケースについてのみ示す)第 図
FIG. 1 is a processing flowchart of the segment generation unit showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of contour line drawing by the processing of FIG. 1, and FIG. FIG. 4, which is a diagram showing an intersection pattern with height, is a block diagram of a contour line drawing processing device showing an embodiment of the present invention. 11: point sequence data storage memory, 12: data reading section,
13: Equal grade height storage memory, 14: Segment generation section, 15: Segment storage memory, 16: Equal grade connection section,
17: Broken line generator, 18 Nigella hook device. Fig. +・,・Data value> Equivalent height of solid line 0 ... // wm //ku intersection (shown only for cases 1 to 4) Fig.

Claims (1)

【特許請求の範囲】[Claims] 1、格子状に分布し、かつ高さを有する二次元点列デー
タと、等高線高さデータとから各々セグメントを生成し
、該セグメントで形成された等高線を連結し、折れ線発
生器により上記連結された等高線を発生して、該等高線
をグラフィック装置に表示する等高線生成方法において
、上記セグメントをプログラムにより自動的に生成する
際に、4点のデータからなる矩形ごとに周辺上の異なる
交点の個数を調べ、交点数が2より少ないときには等高
線セグメントを生成せず、交点数が2のときには例外の
場合を除いて該2交点を始・終点とする等高線セグメン
トを生成し、交点数が2より多いときには、4つの全頂
点のデータ値が等高線高さと一致する場合を除き、等高
線セグメントを生成し、3つの頂点のデータ値が等高線
高さと一致する場合には対角関係の2頂点を始・終点と
するセグメントを生成し、また1矩形に対し2つのセグ
メントを生成できる場合には、対角線で2分割してでき
る2つの三角形について、各々交点を通るセグメントを
生成することを特徴とする格子状点列データの等高線生
成方法。
1. Generate segments from two-dimensional point sequence data distributed in a grid pattern and having heights and contour line height data, connect the contour lines formed by the segments, and use a polygonal line generator to generate the above-mentioned connected lines. In a contour line generation method that generates contour lines and displays the contour lines on a graphic device, when automatically generating the above segments by a program, the number of different intersection points on the periphery is calculated for each rectangle consisting of four points of data. When the number of intersection points is less than 2, a contour line segment is not generated; when the number of intersection points is 2, a contour line segment with the two intersection points as the start and end points is generated, except in exceptional cases; when the number of intersection points is greater than 2, a contour line segment is generated. , unless the data values of all four vertices match the contour line height, a contour line segment is generated, and if the data values of three vertices match the contour line height, two diagonal vertices are used as the start and end points. If two segments can be generated for one rectangle, a lattice point sequence that is characterized by generating segments that pass through the intersection of two triangles created by dividing the triangle into two along the diagonal line. How to generate data contours.
JP26804588A 1988-10-26 1988-10-26 Method for generating control of grid shape range of points data Pending JPH02115986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26804588A JPH02115986A (en) 1988-10-26 1988-10-26 Method for generating control of grid shape range of points data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26804588A JPH02115986A (en) 1988-10-26 1988-10-26 Method for generating control of grid shape range of points data

Publications (1)

Publication Number Publication Date
JPH02115986A true JPH02115986A (en) 1990-04-27

Family

ID=17453115

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26804588A Pending JPH02115986A (en) 1988-10-26 1988-10-26 Method for generating control of grid shape range of points data

Country Status (1)

Country Link
JP (1) JPH02115986A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8251684B2 (en) 2006-05-09 2012-08-28 Yanmar Co., Ltd. Trochoid pump providing axial regulation of a driving shaft

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8251684B2 (en) 2006-05-09 2012-08-28 Yanmar Co., Ltd. Trochoid pump providing axial regulation of a driving shaft

Similar Documents

Publication Publication Date Title
JP3344597B2 (en) Method and apparatus for tessellating graphic images
AU2012390266B2 (en) A computer graphics method for rendering three dimensional scenes
US6600485B1 (en) Polygon data generation method and image display apparatus using same
JPH05506730A (en) image generator
KR920006291B1 (en) Solid modelling method
JP2837584B2 (en) How to create terrain data
JPH02115986A (en) Method for generating control of grid shape range of points data
JPH09223248A (en) Three-dimensional processing method for two-dimensional graphic data
JPH03149678A (en) Method for forming composite graphic
JP2004348708A (en) Polygon creation method for geographical information system, and its device
JPH07271847A (en) Method and device for modeling formation ground
JP2530373B2 (en) Wiring method and device using octagonal representation
JP2852813B2 (en) Spatial enhancement of vertices for changes in detail level
JP4514943B2 (en) Image creating method and apparatus
JPH11144093A (en) Method and device for analytic mesh generation
Maghrabi et al. Removal of hidden lines by recursive subdivision
JPH06259507A (en) Graphic dividing device
JP2667454B2 (en) Plotting device
JPS63178372A (en) Polyhedral shape forming device
JPH0330189B2 (en)
JPH0348554B2 (en)
JPS61265677A (en) System for calculating and processing hidden outline and hidden surface
JPH05342311A (en) Space division system for curved surface
JPH09282493A (en) Method and device for arithmetic processing of three-dimensional graphic data
JPH03240881A (en) Display device for surface