JPH05258066A - Specific face graphic preparing method - Google Patents

Specific face graphic preparing method

Info

Publication number
JPH05258066A
JPH05258066A JP4055541A JP5554192A JPH05258066A JP H05258066 A JPH05258066 A JP H05258066A JP 4055541 A JP4055541 A JP 4055541A JP 5554192 A JP5554192 A JP 5554192A JP H05258066 A JPH05258066 A JP H05258066A
Authority
JP
Japan
Prior art keywords
line
point
rectangle
pattern
graphic pattern
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
JP4055541A
Other languages
Japanese (ja)
Inventor
Masakazu Nagura
正計 名倉
Mitsuhiro Inagaki
充廣 稲垣
Tsuneko Kura
恒子 倉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP4055541A priority Critical patent/JPH05258066A/en
Publication of JPH05258066A publication Critical patent/JPH05258066A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To automatically prepare the various kinds of specific face graphics of a high quality by arranging a hachure graphic pattern without any clearance between two reference lines, that is, a normal head line and a normal tail line of an arbitrary shape. CONSTITUTION:The interval length of the two reference lines of the arbitrary shape is searched, the graphic pattern forming an arbitrary pattern is enlarged and reduced according to the interval length, and the graphic pattern is arranged without any clearance between the two reference lines, so that the specific face graphic can be prepared. For example, the hachure graphic pattern is arranged in the direction of the normal tail line from the position of a point (pz), that is, the hachure graphic pattern is arranged on a right angle (x, y) coordinate system in which the point (pz) is used as an origin and the direction of the normal tail line is used as an (x) axis. Then, the rectangle of the hachure graphic pattern is enlarged and reduced by using a distance Lz between the point (pz) and the normal head line as a reference. Thus, the hachure graphic pattern can be prepared by executing movement, rotation and enlargement (or reduction) processings between the two reference lines (normal tail line and the normal head line).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、特殊面図形生成方法に
係り、特に、パーソナルコンピュータ、グラフィックス
ワークステーション、プロッタ出力装置等の図形表示・
出力装置等、図形を取り扱う情報処理システムにおい
て、2本の任意の基準線の間に特殊な図形パターンを配
置して形成される特殊面図形をディスプレイ表示、プロ
ッタ出力する場合、高品質な特殊面図形を高速度に且つ
自動的に生成する特殊面図形生成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for generating a special surface figure, and more particularly, to displaying a figure on a personal computer, a graphics workstation, a plotter output device, or the like.
In an information processing system that handles graphics, such as an output device, a special surface with a special pattern formed by arranging a special pattern between two arbitrary reference lines The present invention relates to a special surface figure generation method for automatically generating a figure at high speed.

【0002】特殊面図形は、地図や各種設計図面中に多
く表現されている。図9は特殊面図形の一例を示す。同
図は、一例として、縮尺が1/250〜1/5000の
地形図(地図)中に数多く標記されている特殊面図形で
ある。
Many special surface figures are expressed in maps and various design drawings. FIG. 9 shows an example of a special surface figure. As an example, this figure is a special surface figure that is marked on many topographic maps (maps) with a scale of 1/250 to 1/5000.

【0003】例えば、図9(a)は地上の変形値の一つ
の壁岩を表すもので、壁岩とは、岩石が壁のようにガケ
状になっている地形が地図中に図9(a)のように描画
されている。図9(b)は人工的に作られた切土、盛土
の斜面及び自然に形成された土地の傾斜地である法面を
表す一種で、切土の斜面を描画したものである。このよ
うな図形は、地図のみならず、機械設計、建築設計など
に用いられる図面中にも多く描画されている。
For example, FIG. 9 (a) shows a wall rock with one of the deformation values on the ground. The wall rock is a terrain in which the rock is like a wall and is shown in FIG. 9 (a). Is drawn like. FIG. 9 (b) is a kind of cut slope, which is an artificial cut soil, a slope of an embankment, and a slope of a naturally formed land, and is a drawing of the slope of the cut soil. Such figures are often drawn not only in maps but also in drawings used for mechanical design, architectural design, and the like.

【0004】このような特殊面図形は、図9(a)に示
すように、斜面の下側の線を法尻線、斜面の上側の線を
法頭線と呼んでいる。これらの用語は、地図(地形図)
の製図に用いられる用語であるが、便宜上、本発明で
も、この用語を使用する。また、法尻線と、法頭線の2
本の基準線中に配置される1個1個の図形パターンを図
9(b)に示すような形状の図形を地図製図用語で“ケ
バ”図形と呼んでいるので、本発明の説明においてもケ
バ図形パターンと呼ぶことにする。
In such a special surface figure, as shown in FIG. 9A, the lower line of the slope is called the normal line and the upper line of the slope is called the normal line. These terms are maps (topographic maps)
Although it is a term used in the drawing, the term is also used in the present invention for convenience. In addition, 2 of the horizon and the hut line
Since each figure pattern arranged in the reference line of a book is called a "fluffy" figure in the map drawing terminology, a figure having a shape as shown in FIG. 9B is called. It is called a fluffy figure pattern.

【0005】図9のような特殊面図形で注意・着目すべ
きことは、法尻線、法頭線の2本の基準線の間隔に応じ
て、その中に配置されるケバ図形パターンのサイズ(大
きさ)が変化するということである。また、その基準線
の形状は単純な1本の直線ではなく、曲線的な形状は図
9(c)に示されるように任意の角度の折れ曲がり点を
含んだ複雑な形状をなしていることが多い。
What should be noted and paid attention to in the special surface figure as shown in FIG. 9 is the size of the fluff figure pattern arranged in the standard line according to the distance between the two reference lines, the sloping line and the sloping line. It means that (size) changes. Further, the shape of the reference line is not a simple straight line, and the curved shape has a complicated shape including bending points at arbitrary angles as shown in FIG. 9C. Many.

【0006】[0006]

【従来の技術】図9に示す特殊面図形を計算機で取り扱
える情報として作成する第1の従来の方法は、予めその
ような図形を紙の上に人間が製図しておき、それをスキ
ャナ装置等を用いて入力し、ベクトル情報に変換する方
法が一般的(且つ原始的)な方法である。
2. Description of the Related Art A first conventional method for creating a special surface figure shown in FIG. 9 as information that can be handled by a computer is that a person draws such a figure on paper in advance, and the figure is drawn by a scanner device or the like. Is a general (and primitive) method of inputting with the use of and converting into vector information.

【0007】また、第2の従来の方法として、計算機シ
ステム上で作成する方法もある。この第2の従来の方法
は1個1個の基本図形パターンを記号(シンボルあるい
は、マーク)パターンとして登録しておき、人間(オペ
レータ)がディスプレイとマウスカーソルを用い、1個
1個の記号パターンの位置、回転方向及びサイズを入力
することによって作成する。
Further, as a second conventional method, there is a method of creating it on a computer system. In this second conventional method, each basic figure pattern is registered as a symbol (symbol or mark) pattern, and a human (operator) uses a display and a mouse cursor to make each symbol pattern one by one. Create by entering the position, rotation direction and size of the.

【0008】もう少し高度な第3の従来の方法として、
2本の基準線が各々1本の直線のみからなることを条件
としてケバ図形パターンの横方向のサイズは変えずに、
縦方向(法頭線間方向)のみ伸縮させて、単純に配置す
る技術も開発されている。
As a third, more advanced, conventional method,
Without changing the lateral size of the fluffy figure pattern, provided that the two reference lines each consist of only one straight line,
Technology has also been developed that simply extends and contracts by expanding and contracting only in the vertical direction (direction between the frontal lines).

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記の
従来の方法では、一般的な地図や各種設計図面に数多く
描画されている、複雑な形状の基準線で形成される特殊
面図形の作成は困難であり、上記の位置、回転方向及び
サイズを1個1個の記号パターンに対してオペレータが
各記号パターン毎に入力する方法に頼わざるを得ないの
が現状である。
However, with the above-mentioned conventional method, it is difficult to create a special surface figure formed by a complex-shaped reference line, which is often drawn on a general map or various design drawings. In the present situation, the operator is forced to rely on a method of inputting the above-mentioned position, rotation direction and size for each symbol pattern for each symbol pattern.

【0010】即ち、オペレータの負担は大きく、多大の
作業時間がかかると共に1個1個の記号パターンを経験
と勘で入力するため、高度な作業が要求されると共に、
品質の悪いものしか作成できない。
That is, the burden on the operator is large, it takes a lot of work time, and since each symbol pattern is input with experience and intuition, a high degree of work is required and
Only poor quality can be created.

【0011】また、上記の従来の技術で説明したよう
な、人間が紙の上に描く(製図する)方法でも、特殊な
製図技能と長い経験を積んだ人でないと、品質のよい特
殊面図形を作成・描画することは極めて困難であるとい
う問題がある。
Further, even in the method of drawing (drafting) on a paper sheet by a person as described in the above-mentioned prior art, unless the person has special drawing skill and long experience, a high quality special surface figure is obtained. There is a problem that it is extremely difficult to create and draw.

【0012】本発明は上記の点に鑑みなされたもので、
一般的な地図や各種設計図面に使用されている複雑な形
状の基準線で形成される特殊面図形が自動的に作成でき
る特殊面図形生成方法を提供することを目的とする。
The present invention has been made in view of the above points,
An object of the present invention is to provide a special surface figure generation method capable of automatically creating a special surface figure formed by a reference line having a complicated shape used in a general map or various design drawings.

【0013】[0013]

【課題を解決するための手段】図1は本発明の原理説明
図である。
FIG. 1 illustrates the principle of the present invention.

【0014】本発明は、2本の任意形状の基準線の間隔
長を求め(ステップ1)、間隔長に応じて、任意の絵柄
を形成する図形パターンを拡大・縮小し(ステップ
2)、図形パターンを該2本の基準線の間に隙間なく配
置し(ステップ3)、特殊面図形を生成する。
According to the present invention, the interval length between two reference lines of arbitrary shape is obtained (step 1), and the graphic pattern forming an arbitrary pattern is enlarged / reduced according to the interval length (step 2). The pattern is arranged between the two reference lines without any gap (step 3) to generate a special surface figure.

【0015】[0015]

【作用】本発明は、2本の基準線(法頭線と法尻線)の
距離を自動的に算出し、その距離に応じて、配置すべき
ケバ図形パターンのサイズを伸縮させながら、その処理
を再帰的に繰り返し、法尻線上で隙間なく配置すること
により、任意形状で表現された2本の基準線の中に高品
質な特殊面図形を自動生成することができる。
According to the present invention, the distance between two reference lines (the front line and the rear line) is automatically calculated, and the size of the fluffy graphic pattern to be arranged is expanded or contracted according to the distance. By repeating the process recursively and arranging it without gaps on the slope line, it is possible to automatically generate a high-quality special surface figure in the two reference lines expressed in arbitrary shapes.

【0016】[0016]

【実施例】先ず、本実施例を説明するに先立ち、本実施
例の説明で用いる用語等の定義を行う。
First, prior to describing this embodiment, terms and the like used in the description of this embodiment will be defined.

【0017】図2は法尻線・法頭線とケバ図形パターン
の座標形を説明するための図を示す。法尻線と法頭線の
2本の基準線は、それぞれ任意形状の線分(ベクトル;
v)列で表現されるものとし、法尻線Jを J={vj;1≦j≦J} で表し、法頭線Tを T={vt=1≦t≦T} で表す。法尻線J及び法頭線Tは図2(a)に示すよう
に、直角XY座表上に表現されるものとする。
FIG. 2 is a diagram for explaining the coordinate shapes of the sloping line / slanting line and the fluffy graphic pattern. The two reference lines, the hump line and the hump line, are line segments (vectors;
v) It is assumed that it is expressed by a column, and the normal line J is represented by J = {vj; 1 ≦ j ≦ J} and the normal line T is represented by T = {vt = 1 ≦ t ≦ T}. As shown in FIG. 2A, the slope line J and the slope line T are expressed on the right-angle XY seat.

【0018】ケバ図形パターンKは、任意の絵柄を表す
線分(ベクトル;v)の集合とし、K={vk;1≦k
≦K}で表す。法尻線Jと法頭線Tがベクトル列である
のに対して、ケバ図形パターンKはベクトル群であるの
が、両者の違いである。また、ケバ図形パターンKは、
図2(b)に示すように、矩形(長方形、横方向の長さ
をΔx,縦方向の長さをΔy)の内部(内側)に形成さ
れるものとする。但し、必ずしも矩形に接するベクトル
がなくともよい。
The fluffy graphic pattern K is a set of line segments (vectors; v) representing an arbitrary picture, and K = {vk; 1≤k.
≦ K}. The difference between them is that the skirt line J and the front line T are vector sequences, while the fluffy graphic pattern K is a vector group. Further, the fluffy graphic pattern K is
As shown in FIG. 2B, it is assumed that it is formed inside (inside) of a rectangle (rectangle, length in the horizontal direction is Δx, length in the vertical direction is Δy). However, there is no need to have a vector that touches the rectangle.

【0019】図2(b)に示すように、ケバ図形パター
ンKの矩形(以下単に矩形)の左下隅の点を原点とした
直角xy座標系で表現されるものとする。図2(b)で
太い実線で示した線分がケバ図形パターンKを表し、破
線で示される矩形の外枠の線は、実際のケバ図形パター
ンKを形成する線分ではない。また、その矩形のケバ図
形パターンKの矩形の下側の線(x座標軸上の線)が法
尻線J上に置かれるものとする。
As shown in FIG. 2B, it is assumed that it is expressed in a right-angled xy coordinate system with a point at the lower left corner of the rectangle (hereinafter simply referred to as a rectangle) of the fluffy graphic pattern K as the origin. The line segment shown by the thick solid line in FIG. 2B represents the fluffy graphic pattern K, and the line of the rectangular outer frame shown by the broken line is not the line segment forming the actual fluffy graphic pattern K. Further, it is assumed that the lower line (the line on the x coordinate axis) of the rectangle of the rectangular fluffy graphic pattern K is placed on the skirt line J.

【0020】上記の条件のもとに、以下に本発明の実施
例について説明する。
Under the above conditions, the embodiments of the present invention will be described below.

【0021】但し、以下説明・理解の簡素化のために、
法尻線Jのベクトル列の方向に対して左側に法頭線Tが
存在するものとし、法尻線Jと法頭線Tはお互いに交差
・接触することがないものとする。また、法尻線J上に
は折れ曲がり点が存在せず、折れ曲がり点で分割され
た、任意の本数の曲線的形状のベクトル列であるとす
る。但し、法頭線Tに関する特別な制約は設けず、後述
する法尻線J上の折れ曲がり点に対応した法頭線T上の
点で分割されているものとする。そのような条件のもと
での法尻線J・法頭線Tが図2(a)に示される。
However, in order to simplify the following description and understanding,
It is assumed that there is a stigma T on the left side of the direction of the vector line of the sloping line J, and the sloping line J and the sloping line T do not intersect or contact each other. Further, it is assumed that there is no bending point on the slope line J, and the vector string is an arbitrary number of curvilinear shapes divided by the bending points. However, it is assumed that there is no special restriction on the front line T, and that the division is made at the point on the front line T corresponding to the bending point on the rear end line J described later. The skirt line J and ridge line T under such conditions are shown in FIG.

【0022】図3は本発明の一実施例の処理手順を示す
図である。同図に従って、本発明の一実施例の処理手順
の概要を説明する。 (ステップ11) ケバ図形パターンを作成する。 (ステップ12) 2本の基準線(法尻線、法頭線)を
作成する。 (ステップ13) 法尻線を長さ1の単位で分割し、そ
の分割点の点列を求める。 (ステップ14) 点列の各点の垂線を作成し、法頭線
との交点を各点毎に算出する。 (ステップ15) 点列の各点毎の法頭線と距離を算出
する。 (ステップ16) 法頭線との距離を基準にして、ケバ
図形パターンを形成する矩形を矩形拡縮する。 (ステップ17) ステップ16の矩形拡縮配置処理に
より矩形を法尻線上に隙間なく配置し、“あまり”が生
じた場合にはステップ18へ移行し、“不足”が生じた
場合にはステップ19に移行する。 (ステップ18) 矩形配置処理において、横方向の倍
率を僅かに大きくして、上記矩形拡縮配置処理(矩形拡
大配置処理)を行い、ステップ20に移行する。 (ステップ19) ステップ17の矩形拡縮処理におい
て、横方向の倍率を僅かに小さくして、上記の矩形拡縮
配置処理(矩形縮小配置処理)を行い、ステップ20に
移行する。 (ステップ20) 矩形拡縮配置処理において、“あま
り”、“不足”がなくなるまで繰り返すよう制御する。
FIG. 3 is a diagram showing a processing procedure of an embodiment of the present invention. The outline of the processing procedure of the embodiment of the present invention will be described with reference to FIG. (Step 11) A fluffy figure pattern is created. (Step 12) Two reference lines (a hump line and a hump line) are created. (Step 13) The ridge line is divided into units of length 1, and the point sequence of the division points is obtained. (Step 14) A perpendicular line of each point in the point sequence is created, and an intersection with the normal line is calculated for each point. (Step 15) Calculate the normal line and distance for each point in the point sequence. (Step 16) The rectangle forming the fluffy graphic pattern is scaled up or down on the basis of the distance from the frontal line. (Step 17) The rectangles are arranged on the skirt line without any space by the rectangle expansion / contraction arrangement process in step 16, and if “too much” occurs, the process proceeds to step 18, and if “insufficiency” occurs, the process proceeds to step 19. Transition. (Step 18) In the rectangular arrangement processing, the magnification in the horizontal direction is slightly increased to perform the rectangular enlargement / reduction arrangement processing (rectangle enlargement arrangement processing), and the routine proceeds to step 20. (Step 19) In the rectangular enlargement / reduction processing of step 17, the above-mentioned rectangular enlargement / reduction arrangement processing (rectangle reduction arrangement processing) is performed by slightly reducing the magnification in the horizontal direction, and the process proceeds to step 20. (Step 20) In the rectangular enlargement / reduction arrangement processing, control is repeated until “too much” and “insufficiency” are eliminated.

【0023】(ステップ21) 上記の処理で配置され
た矩形内にケバ図形パターンを移行・拡大(縮小)・回
転させて配置する。
(Step 21) The fluffy graphic pattern is moved, enlarged (reduced), and rotated in the rectangle arranged by the above processing.

【0024】次に、本発明の処理手順の各ステップにつ
いて詳細に説明する。
Next, each step of the processing procedure of the present invention will be described in detail.

【0025】ステップ11:まず、矩形の内部に任意の
絵柄を形成するケバ図形パターンKを通常のCAD的な
手法で作成する。これは、用意すべきケバ図形パターン
Kの数だけ予め作成し、ケバ図形パターン種として記憶
する。この作成方法は、机上で予め作成し、それを計算
機に登録してもよいし、上記サイズ(Δx,Δy)の矩
形をディスプレイ上に表示し、その中にマウスカーソル
を用いて絵柄を形成するベクトルの1本1本を入力して
作成してもよく、本作成方法は従来の技術で容易に可能
である。なお、矩形サイズ(Δx,Δy)はケバ図形パ
ターン種毎に任意に設定するものである。
Step 11: First, a fluffy figure pattern K for forming an arbitrary picture inside a rectangle is created by a usual CAD-like method. This is created in advance for the number of fluffy graphic patterns K to be prepared and stored as fluffy graphic pattern types. This creation method may be created in advance on a desk and registered in a computer, or a rectangle of the above size (Δx, Δy) may be displayed on the display, and a pattern may be formed therein by using a mouse cursor. It may be created by inputting each vector one by one, and this creating method can be easily performed by a conventional technique. The rectangle size (Δx, Δy) is arbitrarily set for each fluffy graphic pattern type.

【0026】ステップ12:法尻線Jと法頭線Tの2本
の基準線(ベクトル列)を作成する。この処理も単純
に、ディスプレイとマウスカーソル等を用いて、通常の
CAD的な方法で作成される。なお、この基準線は、本
発明の実施例を実現する都度作成する必要はなく、予め
別の何らかの方法で作成されたものを用いてもよい。即
ち、同様の情報が予め作成されていれば、その基準線の
中に特殊面図形を生成してもよい。
Step 12: Create two reference lines (vector columns) of the normal line J and the normal line T. This processing is also simply created by a normal CAD method using a display and a mouse cursor. The reference line does not need to be created each time the embodiment of the present invention is implemented, and may be created in advance by some other method. That is, if similar information is created in advance, the special surface figure may be generated in the reference line.

【0027】ステップ13:このステップ以降の処理が
本発明における主眼とする処理である。ベクトル列で表
現された法尻線Jを直角XY座標系における座標の単位
(1)の長さで分割し、その点列(Zで表す。以下法尻
線点列)をp1,p2,p3,…とする。即ち、法尻線
点列Zは Z={pz;1≦z≦Z} を得る。法尻線点列Zには、法尻線Jの始終点を含むと
共に、各点は、座標値(Xz ,Yz)を持つ。
Step 13: The processing after this step is the main processing in the present invention. The normal line J represented by a vector sequence is divided by the length of the coordinate unit (1) in the right-angle XY coordinate system, and the sequence of points (represented by Z; hereinafter the standard sequence of the regular lines) is defined as p1, p2, p3. , ... That is to say, the quasi-bottom line point sequence Z obtains Z = {pz; The trailing edge line point Z includes the start and end points of the trailing edge line J, and each point has a coordinate value (Xz, Yz).

【0028】ステップ14,ステップ15:ステップ1
3のようにして得られた各点に対して、法尻線Jの方向
の左側に垂線を以下のように求める。垂線と法頭線Tと
の交点(cz;法頭線交点)を求め、さらに、その法頭
線交点czとの距離(Lz ;法頭線距離)を求める。
Step 14, Step 15: Step 1
For each point obtained as described in No. 3, a perpendicular is found on the left side in the direction of the slope line J as follows. An intersection (cz; frontal line intersection) between the perpendicular and the frontal line T is obtained, and further, a distance (Lz; normal line distance) from the frontal line intersection cz is obtained.

【0029】図4は本発明の一実施例の法尻線への垂
線、法頭線との法頭線交点を算出する処理を説明するた
めの図を示す。点(p(z−q),p(z+q))を先
ず求める。点p(z−q)と点p(z+q)の2点を結
ぶ直線(H)に対して点pzから直角方向に作成した半
直線を上述の垂線Lとする。但し、z≦q,z≧(Z−
q)である点pzにおいては、点pq,及び点p(Z−
q)の法頭線交点cz及び法頭線距離Lz を代入する。
このようにして、法尻線交点czは座標値(Xcz,Y
cz)を持つ。これを改めて法尻線点列Zを Z={pz,cz,Lz;1≦z≦Z} とする。
FIG. 4 is a diagram for explaining a process for calculating a normal line to a normal line and an intersection of the normal line with the normal line according to an embodiment of the present invention. First, the point (p (z−q), p (z + q)) is obtained. A straight line (H) connecting the two points of the point p (z−q) and the point p (z + q) is perpendicular to the point pz and is defined as the perpendicular line L. However, z ≦ q, z ≧ (Z−
q), a point pz and a point p (Z-
Substitute the intersection point cz and the distance Lz of the normal line of q).
In this way, the intersection point cz of the tail line is coordinate value (Xcz, Y
cz). This is again set to Z = {pz, cz, Lz; 1 ≦ z ≦ Z} for the modal tail line point sequence Z.

【0030】なお、法頭線交点czを求める際に、法頭
線Tとの法頭線交点czが求められない場合、法頭線T
の最初のベクトルをその始点方向に伸ばした半直線との
法頭線交点czを求めるか、法頭線Tの最後のベクトル
の終点方向に伸ばした半直線交点を求め、上記法頭線交
点czとすればよい。また、法頭線Tとの法頭線交点c
zが複数個求められたときは、法頭線距離Lz が最も短
いものを法頭線距離Lzとする。
When obtaining the intersection point cz of the front line, if the intersection point cz of the front line with the front line T cannot be obtained, the front line T
Of the front line of the last vector of the normal line T is found, and the intersection point cz of the above normal line is calculated. And it is sufficient. In addition, the crest line intersection c with the crest line T
When a plurality of z's are obtained, the one having the shortest normal line distance Lz is set as the normal line distance Lz.

【0031】ステップ16:図5は本発明の一実施例の
法尻線上のある点から法尻線の方向に向かってケバ図形
パターンの矩形を配置する方法を説明するための図を示
す。
Step 16: FIG. 5 is a diagram for explaining a method of arranging rectangles of a fluffy graphic pattern from a point on the skirt line to the direction of the skirt line according to an embodiment of the present invention.

【0032】仮に、点pzの位置からその法尻線Jの方
向にケバ図形パターンKが配置されるものとして、即
ち、図5に示すように点pzを原点、法尻線Jの方向
(前述のHの方向)をx軸とみなした直角xy座標系上
にケバ図形パターンKが配置されるものとして、その点
pzにおける法頭線距離Lzを基準に、次のようにケバ
図形パターンKの矩形を拡縮処理する。但し、ケバ図形
パターンKを形成するベクトル群の拡縮処理を行わず、
矩形のみに対して処理する。即ち、前述したケバ図形パ
ターンKの矩形のy軸方向のサイズΔyに対して、比率
Mz(=Lz/Δy)を求める。その比率Mを用いてケ
バ図形パターンKの矩形をx軸、y軸の両方向に拡大
(あるいは、縮小)する。
Assuming that the fluffy graphic pattern K is arranged from the position of the point pz in the direction of the skirt line J, that is, as shown in FIG. (Direction of H) is regarded as the x-axis and the fluff figure pattern K is arranged on the right-angle xy coordinate system, and the fluff figure pattern K of the fluff figure pattern K is set as follows on the basis of the normal distance Lz at the point pz. Scale the rectangle. However, the scaling of the vector group forming the fluffy graphic pattern K is not performed,
Process only on rectangles. That is, the ratio Mz (= Lz / Δy) is calculated for the size Δy of the rectangle of the fluffy graphic pattern K in the y-axis direction. Using the ratio M, the rectangle of the fluffy graphic pattern K is enlarged (or reduced) in both the x-axis and y-axis directions.

【0033】その結果、矩形のy軸方向の長さはLzに
なり、x軸方向の長さはLzになり、x軸方向の長さは
Mz×Δxに変換される。このステップは、任意の点p
z(及びその点がもつ上記情報)を基準にして処理され
る。このステップ以降の処理を矩形拡縮処理と呼ぶ。な
お、直角xy座標系は、上述したように、点pzに対し
て与えられるもので、法尻線点列Zを構成する各点毎に
異なる。
As a result, the length of the rectangle in the y-axis direction becomes Lz, the length in the x-axis direction becomes Lz, and the length in the x-axis direction is converted into Mz × Δx. This step is
It is processed based on z (and the above-mentioned information that the point has). The processing from this step onward is called the rectangle scaling processing. The right-angle xy coordinate system is given to the point pz as described above, and differs for each point constituting the normal-edge line point sequence Z.

【0034】ステップ17:ステップ16の矩形拡縮処
理を繰り返し、矩形を法尻線J上に次のように隙間なく
配置する。図6は本発明の一実施例の矩形を拡縮して配
置した時の“あまり”と“不足”が生じる現象を説明す
るための図である。 ここで作成される矩形をw1とする。矩形w1のx軸
方向のサイズは、M1×Δxであるから、次に法尻線J
上に配置される矩形の左下隅の点はpr1(r1=M1
×Δx)になる。 次に、点pr1に対して法頭線距離Lr1を用いて矩
形拡縮処理を行い、矩形w2を求める。 矩形w2のx軸方向のサイズはM2×Δxであるか
ら、次に法尻線J上に配置される矩形の左下隅の点はp
r2(r2=M2×Δx+r1)になる。 点Pr2に対して法頭線距離Lr2を用いて矩形拡縮
配置処理を行い、矩形w3を求める。 矩形拡縮配置処理を繰り返し、矩形w1,w2,w3
…,ww が得られる。
Step 17: The rectangle expansion / contraction processing of Step 16 is repeated to arrange the rectangles on the normal line J without any gap as follows. FIG. 6 is a diagram for explaining a phenomenon in which "too much" and "insufficiency" occur when a rectangle is enlarged and reduced and arranged according to an embodiment of the present invention. The rectangle created here is w1. The size of the rectangle w1 in the x-axis direction is M1 × Δx.
The point at the lower left corner of the rectangle placed above is pr1 (r1 = M1
× Δx). Next, a rectangle w2 is obtained by performing a rectangle expansion / contraction process on the point pr1 using the normal distance Lr1. Since the size of the rectangle w2 in the x-axis direction is M2 × Δx, the point at the lower left corner of the rectangle arranged next on the skirt line J is p.
It becomes r2 (r2 = M2 × Δx + r1). Rectangle scaling is performed on the point Pr2 using the normal distance Lr2 to obtain a rectangle w3. Repeat the rectangle scaling arrangement processing to obtain rectangles w1, w2, w3
..., w w can be obtained.

【0035】ステップ18:この矩形拡縮配置処理を実
行すると、図6(a)に示すように法尻線Jの終点の近
傍で、“あまり”が生じたり,図6(b)に示すよう
に、“不足”が生じたりする。“あまり”と“不足”
は,法尻線Jの最後に配置した矩形ww のx軸方向のサ
イズ(Mw ×Δx)の半分((Mw ×Δx)/2)以内
になるものとする。即ち、“あまり”がその値((Mw
×Δx)/2)以上である時は、もう一回矩形拡縮配置
処理を繰り返し、“不足”が生じるようにする。新たに
配置された矩形をMw とする。なお、図6において、2
本の基準線を2本の直線J,Tで描いているのは、単に
作画の簡単化のためである。
Step 18: When this rectangular enlargement / reduction arranging process is executed, "too much" occurs near the end point of the skirt line J as shown in FIG. 6 (a), or as shown in FIG. 6 (b). , "Insufficiency" may occur. “Too much” and “Not enough”
Is within half ((Mw × Δx) / 2) of the size (Mw × Δx) in the x-axis direction of the rectangle w w arranged at the end of the skirt line J. That is, "too much" is the value ((Mw
When it is × Δx) / 2) or more, the rectangle scaling arrangement processing is repeated once more so that “insufficiency” occurs. Let the newly arranged rectangle be Mw. In FIG. 6, 2
The reason why the reference line of the book is drawn by the two straight lines J and T is simply to simplify the drawing.

【0036】上記の矩形拡縮配置処理で、上記の“あま
り”が生じた場合、矩形拡縮処理における矩形のx軸方
向のサイズ(M2×Δx)を求める際に、わずかにその
サイズを強制的に大きくする。即ち、十分に小さな値
(Δd;例えば、0.05など)分大きくする。言い換
えれば、点pzにおけるx軸方向のサイズを (Mz×Δx)×(1+Δd) として、矩形拡縮処理を行い、同時に矩形拡縮配置処理
を行う。この処理を矩形拡大配置処理という。
When the above "too much" occurs in the above-mentioned rectangle expansion / contraction arrangement processing, when the size (M2 × Δx) of the rectangle in the rectangle expansion / contraction processing is obtained, the size is slightly forced. Enlarge. That is, the value is increased by a sufficiently small value (Δd; for example, 0.05). In other words, the size of the point pz in the x-axis direction is set to (Mz × Δx) × (1 + Δd), the rectangular scaling processing is performed, and the rectangular scaling placement processing is performed at the same time. This processing is referred to as rectangular enlargement arrangement processing.

【0037】ステップ19:上記の矩形拡縮配置処理で
法尻線Jの最後に配置した矩形ww のx軸方向のサイズ
が法尻線Jより大きい場合(“不足”が生じた場合)、
矩形拡縮処理における矩形x軸方向のサイズ(Mz×Δ
x)を求める際に、わずかにそのサイズを強制的に小さ
くする。即ち、十分に小さな値(Δd;例えば、0.0
5など)分小さくする。言い換えれば、点pzにおける
x軸方向のサイズを (Mz×Δx)×(1−Δd) として、矩形拡縮処理を行い、同時に矩形拡縮配置処理
を行う。この処理を矩形縮小配置処理という。
Step 19: If the size in the x-axis direction of the rectangle w w placed at the end of the skirt line J in the above-described rectangle scaling arrangement process is larger than the skirt line J (when “insufficiency” occurs).
Size of the rectangle in the x-axis direction (Mz × Δ
When determining x), the size is forced to be slightly smaller. That is, a sufficiently small value (Δd; for example, 0.0
5 etc.). In other words, the size of the point pz in the x-axis direction is set to (Mz × Δx) × (1−Δd), and the rectangular scaling process is performed, and at the same time, the rectangular scaling placement process is performed. This process is called a rectangle reduction arrangement process.

【0038】ステップ20:上記の矩形拡大処理を行っ
たとき、“あまり”が生じる場合もあり、“不足”が生
じる場合もある。また、矩形縮小配置処理を行ったと
き、“あまり”が生じる場合もあり、“不足”が生じる
場合もある。これは、法尻線Jと法頭線Tの形状が任意
であり、法尻線点列Zの各点pzにおける法頭線距離L
zに規則性がないため、このような現象が生じる。
Step 20: When the above rectangle enlargement processing is performed, "too much" may occur and "insufficiency" may occur. Further, when the rectangular reduction arrangement processing is performed, "too much" may occur and "insufficiency" may occur. This is because the shape of the sloping line J and the sloping line T is arbitrary, and the sloping line length L at each point pz of the sloping line point sequence Z
This phenomenon occurs because z has no regularity.

【0039】そこで、“あまり”及び“不足”の状況に
応じて矩形拡大配置処理及び矩形縮小配置処理を繰り返
し、それを“あまり”あるいは、“不足”が無くなるま
で繰り返す。そのとき、Δdの値が十分に小さければ
“あまり”及び“不足”が除々に小さくなる。
Therefore, the rectangle enlargement arrangement processing and the rectangle reduction arrangement processing are repeated according to the "too much" and "insufficient" situations, and are repeated until the "too much" or "insufficient" disappears. At this time, if the value of Δd is sufficiently small, “too much” and “insufficient” become gradually smaller.

【0040】“あまり”及び“不足”が小さくなったと
き、Δdの値が一定であると矩形拡大配置処理と矩形縮
小配置処理を交互に繰り返す信号現象が生じる恐れがあ
る。そこで、矩形拡縮配置処理を繰り返すに従って、Δ
dの値も徐々に小さくしていくことによって(例えばΔ
d=0.04, 0.03, 0.02, 0.01…)その振動現象が少なく
なる。しかしながら、完全に、“あまり”や“不足”を
0(ゼロ)にすることは、演算回数が増加してしまい、
得策ではない。
When “too much” and “insufficiency” are small, if the value of Δd is constant, a signal phenomenon may occur in which the rectangular enlargement arrangement processing and the rectangular reduction arrangement processing are alternately repeated. Therefore, as the rectangle scaling process is repeated, Δ
By gradually decreasing the value of d (for example, Δ
d = 0.04, 0.03, 0.02, 0.01 ...) The vibration phenomenon is reduced. However, completely setting "too much" or "insufficient" to 0 (zero) increases the number of calculations,
Not a good idea.

【0041】そこで、本発明で生成した特殊面図形をデ
ィスプレイ表示したとき、人間(オペレータ)の目でみ
て、殆ど気がつかない程度になったとき、繰り返しの処
理を中止する。実際には、“あまり”や“不足”が最後
に配置された矩形ww のx軸方向のサイズの数%になっ
たとき、その繰り返し処理を中止すれば、人間には満足
できることが実験的に確認されている。
Therefore, when the special surface figure generated according to the present invention is displayed on the display, when it becomes almost unnoticeable to human eyes, the repetitive processing is stopped. In practice, when "too much" or "insufficiency" reaches a few% of the size of the finally arranged rectangle w w in the x-axis direction, it can be satisfied to humans by stopping the repeated processing. Has been confirmed.

【0042】ステップ21:以上のように、配置された
それぞれの矩形の中に、ステップ11で作成されたケバ
図形パターンKを直角XY座標系上に表現された2本の
基準線(法尻線J,法頭線T)の間に、移動・回転・拡
大(あるいは縮小)処理し、その2本の基準線の間にケ
バ図形パターンKを生成する。
Step 21: As described above, in each of the rectangles thus arranged, the fluffy figure pattern K created in Step 11 is represented on the rectangular XY coordinate system by two reference lines (normal tail lines). Moving, rotating, and enlarging (or contracting) processing is performed between J and the normal line T, and a fluffy graphic pattern K is generated between the two reference lines.

【0043】以上の処理で特殊なケバ図形パターンKを
2本の基準線の間に法尻線J上において、隙間なく配置
された特殊面図形を自動作成できる。
By the above processing, the special surface figure in which the special fluffy figure pattern K is arranged on the skirt line J between the two reference lines without any gap can be automatically created.

【0044】なお、上記の説明で、ケバ図形パターンK
はベクトル(線分)を表したが、その絵柄をベクトル
(線分)だけでなく、別の形状の図形(例えば、円弧
等)を用いてもよい。また、法尻線Jと法頭線Tの2本
の基準線もベクトル(線分)列で表現しているが、法尻
線点列Z及び法頭線交点czが求められれば、ベクトル
だけでなく、別の形状の図形(例えば、円弧等)が混在
していてもよい。
In the above description, the fluffy figure pattern K
Represents a vector (line segment), but the design may use not only a vector (line segment) but also a figure of another shape (for example, an arc). Further, the two reference lines of the hump line J and the hump line T are also expressed by a vector (segment) line, but if the hump line point sequence Z and the hump line intersection point cz are obtained, only the vector is obtained. Alternatively, figures of different shapes (for example, arcs, etc.) may be mixed.

【0045】また、本実施例はケバ図形パターンKの矩
形の下側の線が法尻線J上にあるものとして、説明した
が、本発明はその例に限定されることなく、例えば、そ
の矩形をx軸方向に2分した中央線が法尻線J上になる
ように配置処理してもよい。また、法頭線Tは法尻線J
の方向の左側に存在するものとして説明してきたが、定
義さえしていれば、その逆の側に存在していても構わな
い。
Further, although the present embodiment has been described on the assumption that the lower line of the rectangle of the fluffy graphic pattern K is on the skirt line J, the present invention is not limited to this example, and, for example, Arrangement processing may be performed so that the center line obtained by dividing the rectangle into two in the x-axis direction is on the skirt line J. In addition, the front line T is the bottom line J
Although it has been described as existing on the left side of the direction of, it may exist on the opposite side as long as it is defined.

【0046】さらに、上記の説明では、説明と理解の簡
単化のために2本の基準線を法尻線の折れ曲がり点で分
割したものとしているが、折れ曲がり点で2本の基準線
を分割する手法について説明する。
Further, in the above description, the two reference lines are divided at the bending points of the skirt line for the sake of simplification of explanation and understanding. However, the two reference lines are divided at the bending points. The method will be described.

【0047】ベクトル列上の折れ曲がり点を検出する方
法は、例えば、文献「名倉正計『ヒューマンインタフェ
ースを重視した地図認識編集システム(AI-CHASER)』、
第 6回NICOGRAPH 論文コンテスト、論文集,pp.356-369,
1990 」に明らかにされているように、従来の技術によ
り処理可能である。
A method for detecting a bending point on a vector sequence is described in, for example, the document “Masashige Nagura“ Map Recognition Editing System Emphasizing Human Interface (AI-CHASER) ”,
6th NICOGRAPH Paper Contest, Papers, pp.356-369,
It can be processed by conventional techniques as disclosed in "1990".

【0048】図7は本発明の他の実施例の法尻線や法頭
線が折れ曲がり点を含む場合を説明するための図であ
る。上記の従来の方法で、図7の◎印で示す法尻線上の
折れ曲がり点を検出できる。また、それに対応する法頭
線上に△印で示される対応点の検出も従来の技術で容易
に検出できる。
FIG. 7 is a diagram for explaining a case where the buttock line and the cusp line include a bending point according to another embodiment of the present invention. With the above-mentioned conventional method, it is possible to detect a bending point on the slope line indicated by a double circle in FIG. Further, the detection of the corresponding points indicated by Δ on the normal line corresponding thereto can also be easily detected by the conventional technique.

【0049】そして、それらの折れ曲がり点で分割され
た法尻線と法頭線の対(J1,T1),(J2,T
2),(J3,T3)のそれぞれに対して、上述の特殊
面図形生成処理を行えばよい。但し、折れ曲がり点が鋭
角に折れ曲がっているとき、その折れ曲がり点の近傍の
ケバ図形パターンを配置しないようにすると、見た目に
見やすくなることもあり、これらの工夫は対象とするケ
バ図形パターンの絵柄の性質に応じて処理すればよい。
Then, the pairs of the tail line and the head line (J1, T1), (J2, T) divided by those bending points are used.
2) and (J3, T3), the above-mentioned special surface figure generation process may be performed. However, when the bending point is bent at an acute angle, it may be easier to see if you do not arrange the fluff figure pattern near the bending point. It may be processed according to.

【0050】また、図8は本発明の一実施例に基づいて
生成された各種特殊面図形の一例を示す。同図に示すよ
うな特殊面図形をディスプレイ上に表示したり、プロッ
タ出力装置に出力する場合、ケバ図形パターンの種類に
応じて2本の基準線を含めて表示する場合と、その2本
の基準線あるいは、その一方を表示しなかったりするこ
とがある。この表示及び出力制御も容易に従来の技術で
実現することができる。
FIG. 8 shows an example of various special plane figures generated based on the embodiment of the present invention. When displaying a special surface figure as shown in the figure on the display or outputting it to the plotter output device, it is displayed with two reference lines depending on the type of the fluff figure pattern, The reference line or one of them may not be displayed. This display and output control can be easily realized by the conventional technique.

【0051】[0051]

【発明の効果】上述のように、本発明によれば、任意の
形状の法頭線と法尻線の2本の基準線間に隙間なく、ケ
バ図形パターンを配置する方法により、図8及び図9に
示すような種々の高品質の特殊面図形を自動的に生成す
ることができる。
As described above, according to the present invention, a method of arranging a fluff figure pattern without a gap between two reference lines of a normal line and a skirt line of an arbitrary shape can be used as shown in FIG. Various high quality special surface figures as shown in FIG. 9 can be automatically generated.

【0052】また、任意の絵柄を設定できるケバ図形パ
ターンを各種取り揃えておくだけで、任意の形状の無限
の特殊面図形を自動生成及びその表示が可能となるた
め、実用的価値は極めて高い。
Further, since it is possible to automatically generate and display an infinite special surface figure having an arbitrary shape by simply preparing various kinds of fluffy figure patterns capable of setting an arbitrary picture, the practical value is extremely high.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】法尻線・法頭線とケバ図形パターンの座標系を
説明するための図である。
FIG. 2 is a diagram for explaining a coordinate system of a skirt line / slope line and a fluffy graphic pattern.

【図3】本発明の一実施例の処理手順を示す図である。FIG. 3 is a diagram showing a processing procedure of an embodiment of the present invention.

【図4】本発明の一実施例の法尻線上のある点から法頭
線への垂線、法頭線との法頭線交点を算出する処理を説
明するための図である。
FIG. 4 is a diagram for explaining a process of calculating a normal line from a certain point on a normal line to a normal line and an intersection of the normal line with the normal line according to an embodiment of the present invention.

【図5】本発明の一実施例の法尻線上のある点から法尻
線の方向に向かってケバ図形パターンの矩形を配置する
方法を説明するための図である。
FIG. 5 is a diagram for explaining a method of arranging rectangles of a fluffy graphic pattern from a point on a skirt line in a direction of the skirt line according to an embodiment of the present invention.

【図6】本発明の一実施例の矩形を拡縮して配置したと
きの“あまり”と“不足”が生じる現象を説明するため
の図である。
FIG. 6 is a diagram for explaining a phenomenon in which “too much” and “insufficiency” occur when a rectangle is enlarged and reduced and arranged according to an embodiment of the present invention.

【図7】本発明の他の実施例である法尻線や法頭線が折
れ曲がり点を含む場合を説明するための図である。
FIG. 7 is a diagram for explaining a case where a buttock line and a cusp line according to another embodiment of the present invention include a bending point.

【図8】本発明の一実施例に基づいて生成された各種特
殊面図形の一例を示す図である。
FIG. 8 is a diagram showing an example of various special surface graphics generated based on an embodiment of the present invention.

【図9】特殊面図形の一例を示す図である。FIG. 9 is a diagram showing an example of a special surface figure.

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

J 法尻線 T 法頭線 K ケバ図形パターンの矩形 cz 法頭線交点 H 直線 L 垂線 Lz 法頭線距離 pz 任意の点 w1 〜ww 矩形 J1〜J3 法尻線上の点 T1〜T3 法頭線上の点 Z 法尻線点列 p1〜p3 点列Method J butt line T Hoatamasen K fluff rectangular cz Hoatama line intersection H line L perpendicular Lz Hoatama line distance pz any point w 1 to w w rectangular J1~J3 Hoshiri line of points T1~T3 method of the figure Point on the head line Z method tail line point sequence p1 to p3 point sequence

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2本の任意形状の基準線の間隔長を求
め、 該間隔長に応じて、任意の絵柄を形成する図形パターン
を拡大または縮小し、 該図形パターンを該2本の基準線の間に隙間なく配置
し、 特殊面図形を生成することを特徴とする特殊面図形生成
方法。
1. A distance between two reference lines of arbitrary shape is obtained, a graphic pattern forming an arbitrary pattern is enlarged or reduced according to the distance, and the graphic pattern is converted into the two reference lines. A special surface figure generation method characterized by generating special surface figures by arranging them with no space between them.
JP4055541A 1992-03-13 1992-03-13 Specific face graphic preparing method Pending JPH05258066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4055541A JPH05258066A (en) 1992-03-13 1992-03-13 Specific face graphic preparing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4055541A JPH05258066A (en) 1992-03-13 1992-03-13 Specific face graphic preparing method

Publications (1)

Publication Number Publication Date
JPH05258066A true JPH05258066A (en) 1993-10-08

Family

ID=13001579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4055541A Pending JPH05258066A (en) 1992-03-13 1992-03-13 Specific face graphic preparing method

Country Status (1)

Country Link
JP (1) JPH05258066A (en)

Similar Documents

Publication Publication Date Title
US6844876B2 (en) Apparatus and method for generating 3D graphics
JP3515689B2 (en) 3D polygon display device using hierarchical polygon data
JP2512080B2 (en) Display device having multi-window function
US6856312B1 (en) Method for generating three-dimensional form data and apparatus therefor
JPH087126A (en) Projection drawing preparing method
JP2837584B2 (en) How to create terrain data
JPH06309395A (en) Picture preparing device
JPH05258066A (en) Specific face graphic preparing method
JP2996933B2 (en) Drawing display device
JP2010039680A (en) Image processor, image processing program, and image processing method
JP2009070183A (en) Figure drawing device, figure drawing method, figure drawing program, and recording medium with this program recorded
JP3389388B2 (en) Drawing editing device
JP3524380B2 (en) Broken line drawing device, broken line drawing method, and storage medium
JPH05135146A (en) Method and apparatus for moving and deforming graphic
JP3065364B2 (en) Cutout mask making method and apparatus
JP3267364B2 (en) Graphic processing apparatus and method
JPH05258072A (en) Specific face graphic preparing method
JP2755299B2 (en) Image processing method
JP3304255B2 (en) Bezier curve approximation device
JP2002092649A (en) Device and method for processing image and storage medium
JPH0350686A (en) Graphic processing system
JPH0383183A (en) Broken line drawing system
JP2780496B2 (en) Clipping method for drawing equipment
JP2536948B2 (en) Three-point specified circular arc detection method and device
JPS6359684A (en) Display system for convex polygon and straight line