Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3166876B2 - Method of converting arc line data into curve part input of graphic processor - Google Patents
[go: Go Back, main page]

JP3166876B2 - Method of converting arc line data into curve part input of graphic processor - Google Patents

Method of converting arc line data into curve part input of graphic processor

Info

Publication number
JP3166876B2
JP3166876B2 JP13887392A JP13887392A JP3166876B2 JP 3166876 B2 JP3166876 B2 JP 3166876B2 JP 13887392 A JP13887392 A JP 13887392A JP 13887392 A JP13887392 A JP 13887392A JP 3166876 B2 JP3166876 B2 JP 3166876B2
Authority
JP
Japan
Prior art keywords
arc
radius
input
graphic
angle
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 - Lifetime
Application number
JP13887392A
Other languages
Japanese (ja)
Other versions
JPH05189578A (en
Inventor
潔 米山
昇 黒岩
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.)
Tokyo Gas Co Ltd
Original Assignee
Tokyo Gas Co 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 Tokyo Gas Co Ltd filed Critical Tokyo Gas Co Ltd
Priority to JP13887392A priority Critical patent/JP3166876B2/en
Publication of JPH05189578A publication Critical patent/JPH05189578A/en
Application granted granted Critical
Publication of JP3166876B2 publication Critical patent/JP3166876B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は地図等の図形を図形入力
装置により座標データとして入力すると共に、この入力
した座標データをデジタルデータとして記憶装置に記憶
してデータベース化し、記憶されたデータを必要に応じ
て表示装置により表示したり、出力装置により出図して
利用する、いわゆるコンピュータマッピングシステム等
の図形処理装置の曲線部分入力に於ける円弧の線データ
化方法に関するものである。
BACKGROUND OF THE INVENTION The present invention relates to a method for inputting a figure such as a map as coordinate data by means of a figure input device, storing the input coordinate data as digital data in a storage device, forming a database, and using the stored data. The present invention relates to a method for converting an arc into line data at the input of a curved part of a graphic processing device such as a so-called computer mapping system, which is displayed on a display device or displayed on an output device in accordance with the method.

【0002】[0002]

【従来の技術】マッピングシステムに於いて、地図等の
紙面に描かれている図形をデジタイザ等の図形入力装置
を用いて入力を行う際には、線分の入力作業と曲線部分
の入力作業が必要である。例えば地図の入力では、交差
点の近傍に於ける歩道縁は実際の形状に対応して曲線と
して描かれており、この曲線部分に対応した入力作業が
必要である。
2. Description of the Related Art In a mapping system, when a figure drawn on a paper such as a map is input using a figure input device such as a digitizer, a line segment input operation and a curve portion input operation are performed. is necessary. For example, when inputting a map, the sidewalk edge near the intersection is drawn as a curve corresponding to the actual shape, and an input operation corresponding to the curved portion is required.

【0003】地図を作成する平板測量法の原則として
は、このように曲線となっている歩道縁の数個所に順次
ポールを立てて忠実に測量を行った後に、自在曲線定規
や雲形定規を用いて形を整えながら描いていくので、実
際の曲線形状に正確に対応している。
As a rule of the flat plate surveying method for creating a map, poles are sequentially set up at several places on the side of the sidewalk which are curved as described above, and the survey is faithfully performed. Then, a free-form curve ruler or a cloud-shaped ruler is used. Since it draws while adjusting the shape, it accurately corresponds to the actual curved shape.

【0004】ところが、例えば縮尺1/500程度の地図を
利用して入力を行うマッピングシステムに於いては、例
えば歩道の幅員を2mとすると、地図上の上記曲線部分
は4mm程度にしかならないので、これは円弧として近似
しても実用上は全く差し支えない。そしてこの円弧は、
その中心位置、半径、開始角度及び終了角度により、円
弧自体として記憶することができる。
However, in a mapping system for performing input using a map of a scale of about 1/500, for example, if the width of the sidewalk is 2 m, the above curved portion on the map is only about 4 mm. Even if this is approximated as an arc, there is no problem in practice. And this arc is
The center position, radius, start angle and end angle can be stored as the arc itself.

【0005】しかしながらマッピングシステムに於いて
はデータベースに記憶された座標データをアフィン変換
することが頻繁に行われるため、円弧として記憶するの
は得策でなく、実際上は上記変換に容易に対応すること
ができるように曲線部分を多数の連続した線分の集合体
として記憶することが多い。
However, in a mapping system, affine transformation of coordinate data stored in a database is frequently performed. Therefore, it is not advisable to store the data as a circular arc. In many cases, the curve portion is stored as a set of many continuous line segments so that

【0006】このため従来は、図6に模式的に表した方
法により曲線部分を入力している。即ち、図6に示すよ
うな線を入力する場合、作業員はまず、曲線部分L2に至
る線分L1の始点p1と終点p2に入力用カーソル(図中x印
で模式的に示す。)を移動して、この線分の始点p1と終
点p2の座標を線分L1のデータとして入力する。次いで線
分L1の終点p2から次の線分L3の始点p8に至る曲線部分L2
を目分量で所定数に等分し、これに応じた曲線L2上の位
置P3,P4,P5,P6,P7に入力用カーソルを順次移動し
て、それらの座標を逐次入力する。そして次に線分L3の
始点p8と終点p9に順次入力用カーソルを移動して、それ
らの座標を線分L3のデータとして入力する。このように
して、曲線部分L2は、位置p2から順次p3,p4,p5,p6,
p7を経て位置p8に至る線分の集合として入力していた。
For this reason, conventionally, a curve portion is input by a method schematically shown in FIG. That is, when inputting a line as shown in FIG. 6, the worker firstly inputs an input cursor (indicated by an x mark in the figure) at the start point p1 and the end point p2 of the line segment L1 reaching the curved portion L2. Move and input the coordinates of the start point p1 and end point p2 of this line segment as data of the line segment L1. Next, a curved portion L2 from the end point p2 of the line segment L1 to the start point p8 of the next line segment L3
Is divided into a predetermined number by the unit of an eye, and the input cursor is sequentially moved to the positions P3, P4, P5, P6, and P7 on the curve L2 corresponding thereto, and their coordinates are sequentially input. Then, the input cursor is sequentially moved to the start point p8 and the end point p9 of the line segment L3, and their coordinates are input as data of the line segment L3. In this way, the curve portion L2 is sequentially changed from the position p2 to p3, p4, p5, p6,
It was input as a set of line segments from p7 to position p8.

【0007】[0007]

【発明が解決しようとする課題】このような従来の入力
方法では、次のような課題がある。 a.曲線部分を目分量で等分するので、曲線部分を構成
する多数の線分の長さが不揃いになる。 b.一般的に、紙面に描かれた線の幅は0.2mm以上あ
り、またデジタイザ等の入力精度は0.2mm程度であるの
で、前後する線分の相対関係では、0.5mm程度の凹凸を
生じることになる。この0.5mm程度の凹凸は、絶対値と
しては大きくないものとして無視されがちであるが、半
径4mm程度の円弧に対しては相対的に大きく、従って、
入力に苦労する割には見栄えが良くない。本発明はこの
ような課題を解決することを目的とするものである。
However, such a conventional input method has the following problems. a. Since the curved portion is equally divided by the amount of the eye, the lengths of many line segments constituting the curved portion are not uniform. b. In general, the width of a line drawn on the paper is 0.2 mm or more, and the input accuracy of a digitizer or the like is about 0.2 mm. Become. The irregularities of about 0.5 mm are often ignored as not being large in absolute value, but are relatively large for an arc having a radius of about 4 mm.
It doesn't look good despite struggling with typing. An object of the present invention is to solve such a problem.

【0008】[0008]

【課題を解決するための手段】上述した課題を解決する
ための手段を説明すると、本発明では、図形を座標デー
タとして入力する図形入力装置と、入力した座標データ
により図形を記憶する記憶装置とを設けると共に、前記
図形入力装置と記憶装置間に座標処理手段を介在させた
図形処理装置に於いて、この座標処理手段は、図形の曲
線部分を円弧で近似して出力する際、円弧を複数の等長
の弦に分割して、上記曲線部分の座標データを上記弦の
座標の集合として出力するようにし、この際、円弧の半
径を分割数決定の判定条件とし、この半径が第1の設定
半径よりも小さい場合には少ない方の第1の設定値に円
弧の角度を乗じた数、また第2の設定半径よりも大きい
場合には多い方の第2の設定値に円弧の角度を乗じた数
を分割数として決定すると共に、上記半径が第1の設定
半径と第2の設定半径間にある場合には、この半径と第
3の設定値と円弧の角度を乗じた数として、上記分割数
間に分割数を決定し、このように決定された分割数によ
り円弧を分割して、夫々の弦の座標を算出する方法を提
案する。
According to the present invention, there is provided a graphic input device for inputting a graphic as coordinate data, and a storage device for storing a graphic based on the input coordinate data. And a coordinate processing means in which a coordinate processing means is interposed between the graphic input device and the storage device, wherein the coordinate processing means outputs a plurality of circular arcs when approximating a curved portion of the graphic with the circular arc. of divided into strings of equal length, the coordinate data of the curved portion so as to output as a set of coordinates of the strings, this time, the arc of the semi
The diameter is used as a criterion for determining the number of divisions.
When the radius is smaller than the radius, the circle is set to the smaller first set value.
Number multiplied by the angle of the arc, and larger than the second set radius
In some cases, the number obtained by multiplying the second set value by the angle of the arc
Is determined as the number of divisions, and the radius is set to the first setting.
If this radius is between the radius and the second set radius, this radius and the second
As the number obtained by multiplying the set value of 3 and the angle of the arc, the above division number
The number of divisions is determined in between, and the number of divisions
To divide the arc and calculate the coordinates of each chord.
Plan.

【0009】[0009]

【作用】本発明に於いては、図形入力装置により図形を
座標データとして入力する作業に於いて、図形の曲線部
分を円弧で近似して出力する際、座標処理手段は、近似
する円弧を複数の等長の弦に分割して、夫々の座標を算
出する。そしてこれらの弦の座標の集合として上記曲線
部分の座標データを出力し、記憶装置に記憶する。この
際、近似する円弧は、その半径を判定条件とすると共
に、所定の弦の長さ及び隣接との相対角度を加味した数
の弦に分割して、それらの座標データの集合として出力
する。
According to the present invention, in the operation of inputting a graphic as coordinate data by a graphic input device, when a curve portion of the graphic is approximated by an arc and output, the coordinate processing means includes a plurality of approximate arcs. , And calculate the respective coordinates. Then, the coordinate data of the curved portion is output as a set of the coordinates of the strings, and stored in the storage device. this
At the same time, the approximated arc can be
To the given string length and the relative angle with the adjacent string
And output them as a set of coordinate data
I do.

【0010】[0010]

【実施例】次に本発明の実施例を図について説明する。
まず図1は本発明の線データ化方法を適用する図形処理
装置の構成を概念的に表したもので、符号1はデジタイ
ザ等の図形入力装置、2はカーソル、そして3はタブレ
ット上に置いた地図等の図面であり、この図面3上に描
かれている図形はカーソル2により位置を指定して座標
データとして入力が行われる。符号4は磁気ディスク等
の記憶装置であり、上記図形入力装置1により入力され
た図形の座標データは、この記憶装置に記憶される。図
形入力装置1と記憶装置4間には座標処理手段5を介在
させており、この座標処理手段5には本発明方法を適用
する線データ化手段7を設けている。
Next, an embodiment of the present invention will be described with reference to the drawings.
First, FIG. 1 conceptually shows a configuration of a graphic processing apparatus to which the line data conversion method of the present invention is applied. Reference numeral 1 denotes a graphic input device such as a digitizer, 2 denotes a cursor, and 3 denotes a cursor placed on a tablet. A figure, such as a map, is drawn on the drawing 3 and its position is designated by the cursor 2 and input as coordinate data. Reference numeral 4 denotes a storage device such as a magnetic disk, and the coordinate data of the graphic input by the graphic input device 1 is stored in the storage device. A coordinate processing means 5 is interposed between the graphic input device 1 and the storage device 4, and the coordinate processing means 5 is provided with a line data converting means 7 to which the method of the present invention is applied.

【0011】 またこの実施例の図形処理装置に於いて
は、図形の曲線部分を近似する円弧は、図形入力装置1
により入力した、曲線部分の両側に位置する線分の座標
等を参照して演算により得る構成としており、この目的
のために座標処理手段5には円弧算出手段6を設けてい
る。
Further, in the graphic processing device of this embodiment, an arc approximating a curved portion of a graphic is represented by a graphic input device 1.
The coordinate processing means 5 is provided with an arc calculation means 6 for this purpose, which is obtained by calculation with reference to the coordinates of the line segments located on both sides of the curved portion, etc.

【0012】 以上の構成の図形処理装置は、複数台が共
通のホストコンピュータに接続されて制御されるのであ
るが、ホストコンピュータ等の構成要素は図示を省略し
ている。
A plurality of graphics processing apparatuses having the above configuration are connected to and controlled by a common host computer, but components such as the host computer are not shown.

【0013】 以上の構成に於いて、図形入力装置1によ
り図面3上に描かれている図形の入力作業を行う場合、
線分の入力に於いては座標処理手段5は、上記円弧算出
手段6と線データ化手段7を動作させず、従ってカーソ
ル2により入力された線分の始点と終点の座標データ
は、そのまま、または位置、角度及び伸縮に対応する座
標変換等の適宜の処理を経て属性と共に記憶装置4に記
憶される。
In the above configuration, when the graphic input device 1 performs the input operation of the graphic drawn on the drawing 3,
In the input of the line segment, the coordinate processing means 5 does not operate the arc calculating means 6 and the line data converting means 7, so that the coordinate data of the start point and the end point of the line segment inputted by the cursor 2 are not changed. Alternatively, the data is stored in the storage device 4 together with the attribute through appropriate processing such as coordinate conversion corresponding to the position, angle, and expansion / contraction.

【0014】 一方、曲線部分の入力に於いては座標処理
手段5はカーソル2等からの指示により円弧算出手段6
と線データ化手段7を動作させ、まず円弧算出手段6に
より入力すべき曲線部分の両側に位置する線分の座標デ
ータを参照して、この曲線部分を近似する円弧を算出す
ると共に、算出した円弧を線データ化手段7により複数
の等長の弦に分割して、夫々の座標を算出する。そして
これらの弦の座標の集合として上記曲線部分の座標デー
タを出力し、記憶装置4に記憶する。そこで次に円弧算
出手段6と本発明等の線データ化方法を適用する線デー
タ化手段7の具体的動作をフローチャート及び模式図形
を参照して説明する。
[0014] On the other hand, the coordinate processing means at the input of the curved portion 5 is circular arc calculation means according to an instruction from the two equal cursor 6
First, the arc calculating means 6 refers to the coordinate data of the line segments located on both sides of the curve part to be input by the arc calculating means 6 to calculate an arc approximating the curve part. The arc is divided into a plurality of equal-length chords by the line data converting means 7, and the respective coordinates are calculated. Then, the coordinate data of the curved portion is output as a set of the coordinates of these strings, and stored in the storage device 4. The specific operations of the arc calculating means 6 and the line data converting means 7 to which the line data converting method of the present invention is applied will be described below with reference to flowcharts and schematic diagrams.

【0015】 図2は、入力した分割数で円弧を分割して
線データ化する方法 を適用した線データ化手段7の具体
的動作を、円弧算出手段6の動作と共に示すフローチャ
ートであり、「6{」で括られたステップが円弧算出手
段6の動作、そして「7}」で括られたステップが線デ
ータ化手段7の動作に対応するものである。また図3、
図4は夫々の動作を表した模式図形である。まず図2、
図3により、円弧算出手段6の動作を説明する。
FIG . 2 shows a case where an arc is divided by the inputted division number.
It is a flowchart which shows the specific operation | movement of the line data conversion means 7 to which the method of converting into line data was applied with operation | movement of the arc calculation means 6, and the step enclosed by "6 @" shows operation of the arc calculation means 6, and " Steps enclosed by “7}” correspond to the operation of the line data converting means 7. FIG.
FIG. 4 is a schematic diagram showing each operation. First, FIG.
The operation of the arc calculating means 6 will be described with reference to FIG.

【0016】 まずステップS101に於いては、曲線部分の
前後の線分AB,CDが入力される。この前後の線分AB,CD
の入力データは、図3中のA,B,C,Dの座標、(Xa,Y
a)、(Xb,Yb)、(Xc,Yc)、(Xd,Yd)である。
尚、このステップS101またはその前後のステップでは、
適宜に曲線部分の入力に対応する指令が図形入力装置1
から座標処理手段5に与えられる。
[0016] First in step S101, the front and rear of the line segment AB of the curve portions, CD is input. Line segments AB and CD before and after this
Are the coordinates of A, B, C, and D in FIG. 3, (Xa, Y
a), (Xb, Yb), (Xc, Yc), and (Xd, Yd).
In step S101 or steps before and after this step,
The command corresponding to the input of the curve portion is appropriately given by the graphic input device 1.
To the coordinate processing means 5.

【0017】 次いでステップS102に於いては、前後の線
分AB,CDの交点P(Xp,Yp)の座標を算出する。この交点P
の座標は、例えば次の連立方程式を解くことにより算出
することができる。 (Xa-Xb)Yp+(Yb-Ya)Xp+YaXb-XaYb=0 (Xc-Xd)Yp+(Yd-Yc)Xp+YcXd-XcYd=0
[0017] Then in step S102 calculates the coordinates of the front and rear of the line segment AB, the intersection of the CD P (Xp, Yp). This intersection P
Can be calculated, for example, by solving the following simultaneous equations. (Xa-Xb) Yp + (Yb-Ya) Xp + YaXb-XaYb = 0 (Xc-Xd) Yp + (Yd-Yc) Xp + YcXd-XcYd = 0

【0018】 次いでステップS103では、各線分AB,CDに
於いて円と接する新たな2点B′、C′の座標(Xb′,Y
b′)、(Xc′,Yc′)を算出する。この2点は、入力し
た各線分の交点P側の端点B,Cの夫々と交点P間の距離の
和を2等分した値が、交点Pと新たな端点B′、C′間の距
離となるように算出する。即ち PB′= PC′= (pb+pc)
/2となる端点B′、C′を算出する。これはL1=PB,L2=C
P,L=(L1+L2)/2とすると、次式のように求めることが
できる。 Xb′=(L/L1)(Xb-Xp)+Xp Yb′=(L/L1)(Yb-Yp)+Yp Xc′=(L/L1)(Xc-Xp)+Xp Yc′=(L/L1)(Yc-Yp)+Yp
[0018] In step S103 Next, each line segment AB, the new two-point B in contact with the circle at the CD ', C' coordinates (Xb ', Y
b ′) and (Xc ′, Yc ′) are calculated. The value obtained by dividing the sum of the distances between the intersection points P and the end points B and C on the intersection point P side of each input line segment by two into two is the distance between the intersection points P and the new end points B 'and C'. It is calculated so that That is, PB '= PC' = (pb + pc)
Calculate the end points B 'and C' that are / 2. This is L1 = PB, L2 = C
Assuming that P and L = (L1 + L2) / 2, the following equation can be obtained. Xb '= (L / L1) (Xb-Xp) + Xp Yb' = (L / L1) (Yb-Yp) + Yp Xc '= (L / L1) (Xc-Xp) + Xp Yc' = (L / L1) (Yc-Yp) + Yp

【0019】 次いでステップS104では、ステップS103で
算出した端点B′、C′を、各線分の端点として登録し、
以降は曲線部分を挾む線分は、AB′,C′Dと変更して取
り扱う。
[0019] Next, at step S104, the end point B calculated at step S103 ', C', and registered as the end points of each line segment,
Hereinafter, the line segment sandwiching the curved portion is changed to AB ', C'D and handled.

【0020】 次いでステップS105では、上述した端点
B′、C′から垂線を立て、その交点Oの座標(X0,Y0
と上記端点B′、C′から交点Oまでの距離、即ち端点
B′、C′に於いて線分AB′,C′Dに接する円の半径Rを算
出する。交点Oの座標(X0,Y0)は、例えば次式の連立
方程式を解くことにより算出することができ、 (Ya-Yb′)Y0+(Xa-Xb′)X0-(Ya-Yb′)Yb′-(Xa-X
b′)Xb′= 0 (Yc′-Yd)Y0+(Xc′-Xd)X0-(Yc′-Yd)Yc′-(Xc′
-Xd)Xc′= 0 また半径Rは次式で示すピタゴラスの定理を用いて算出
することができる。 R2=(Xb′-X02+(Yb′-Y02
[0020] Next, at step S105, the above-mentioned end point
A perpendicular is drawn from B 'and C', and the coordinates of the intersection O (X 0 , Y 0 )
And the distance from the end points B 'and C' to the intersection O, that is, the end point
The radius R of the circle tangent to the line segments AB 'and C'D in B' and C 'is calculated. The coordinates (X 0 , Y 0 ) of the intersection O can be calculated, for example, by solving the following simultaneous equations: (Ya−Yb ′) Y 0 + (Xa−Xb ′) X 0 − (Ya− Yb ') Yb'-(Xa-X
b ′) Xb ′ = 0 (Yc′-Yd) Y 0 + (Xc′-Xd) X 0- (Yc′-Yd) Yc ′-(Xc ′
-Xd) Xc ′ = 0 The radius R can be calculated using the Pythagorean theorem shown by the following equation. R 2 = (Xb′-X 0 ) 2 + (Yb′-Y 0 ) 2

【0021】 以上に説明したステップS101〜S105を経る
ことにより、上記曲線部分を近似する円弧が算出され
る。この円弧算出手段6の方法では曲線部分の入力に関
して、その曲線部分に対応する入力は不要であって、そ
の端点の座標が得られれば良く、これらの座標は線分の
入力により得られるので入力作業が簡単である。
[0021] Through the steps S101~S105 explained above, an arc that approximates the curved portion is calculated. In the method of the arc calculating means 6, regarding the input of the curved portion, the input corresponding to the curved portion is unnecessary, and only the coordinates of the end point need to be obtained. Work is easy.

【0022】 円弧算出手段6に於ける円弧の算出手法
は、以上に説明した手法の他、入力すべき曲線部分の前
後に位置する線分の座標データと円弧の半径を入力し
て、これらのデータから算出する手法や、入力すべき曲
線部分の前後に位置する線分の座標データと曲線部分上
の1点の座標を入力して、これらのデータから算出する
手法等の適宜の手法を適用することができる。
The method of calculating the arc in the arc calculating means 6 is, in addition to the above-described method, inputting coordinate data of a line segment located before and after a curve to be inputted and the radius of the arc. Appropriate methods such as a method of calculating from data, a method of inputting coordinate data of a line segment located before and after a curve to be input and a coordinate of one point on the curve and calculating from these data are applied. can do.

【0023】 次に、入力した分割数で円弧を分割して線
データ化する方法を適用した線データ化手段7の具体的
動作を説明する。 まずステップS106に於いては、ベクト
ルAB′に対して、上記D点が左側にあるか、右側にある
かを判定する。この際、左側にある場合は図4中に記載
のθ0は正で、右側にあるときは負であるとする。この
判定方法は、例えば F=(Ya-Yb′)Yd-(Xa-Xb′)Xd+YaXb-XaYb としたときに、 SGN(F)×SGN(Ya-Yb) の値が正の
時には左側にD点があり、負の時には右側にあるとして
判定を行うことができる。尚、SGNは正負の符号のみを
表示する関数である。
Next, by dividing the circular arc division number input line
Specifics of the line data conversion means 7 to which the data conversion method is applied
The operation will be described. First, in step S106, it is determined whether the point D is on the left side or the right side of the vector AB '. At this time, when it is on the left side, θ0 described in FIG. 4 is positive, and when it is on the right side, it is negative. This determination method is, for example, when F = (Ya-Yb ') Yd- (Xa-Xb') Xd + YaXb-XaYb, and when the value of SGN (F) × SGN (Ya-Yb) is positive, There is a point D, and when it is negative, it can be determined that it is on the right side. SGN is a function that displays only positive and negative signs.

【0024】 次いでステップS107に於いては、円弧の角
度θ0を算出する。この角度θ0は三角関数の余弦定理を
用いて次式のように求めることができる。 |θ0|=arccos〔1-{(Xb′-Xc′)2+(Yb′-Yc′)2}/
2R2〕 従ってステップS106に於ける正負判定と共に示すと、円
弧の角度θ0は次式のように表すことができる。 θ0=SGN(F)×SGN(Ya-Yb)・|θ0|
[0024] is in step S107 and then, calculates the arc angle theta 0. The angle θ 0 can be obtained by the following equation using the cosine theorem of a trigonometric function. | θ 0 | = arccos [1-{(Xb′-Xc ′) 2 + (Yb′-Yc ′) 2 } /
2R 2 ] Accordingly, when shown together with the positive / negative judgment in step S106, the arc angle θ 0 can be expressed as the following equation. θ 0 = SGN (F) × SGN (Ya-Yb) · | θ 0 |

【0025】 次いでステップS108では、システムの座標
の基準、例えばX座標に対しての、円弧の開始角度θs
を次式により算出する。 θs=arctan{(Yb′-Y0)/(Xb′-X0)}
[0025] Next, at step S108, the system of coordinates of the reference, for example, the relative X-coordinate, arc start angle θs
Is calculated by the following equation. θs = arctan {(Yb'-Y 0 ) / (Xb'-X 0 )}

【0026】 次いでステップS109では円弧の分割数nを
入力する。この分割数nの入力は、このステップS109に
先行する適宜のステップ、例えばステップS101、または
ステップS105とステップS106間等の適所に於いて行うこ
とができる。
[0026] Then entering the division number n of the arcs at step S109. The input of the division number n can be performed at an appropriate step preceding this step S109, for example, at an appropriate place such as step S101, or between step S105 and step S106.

【0027】 次いでステップS110に於いては、以上のス
テップに於いて算出した値に基づいて、次式により各弦
の座標を算出する。即ち、Δθ=θ0/nとして、i番目
(但しi=1〜n-1)の弦の座標(Xqi,Yqi)は、夫々次式
より算出する。 Xqi=cos(θs+iΔθ)+X0 Yqi=cos(θs+iΔθ)+Y0
[0027] Then in step S110, based on the value calculated at the above step, and calculates the coordinates of each string by the following equation. That is, assuming that Δθ = θ 0 / n, the coordinates (Xqi, Yqi) of the i-th (where i = 1 to n−1) chord are calculated by the following equations, respectively. Xqi = cos (θs + iΔθ) + X 0 Yqi = cos (θs + iΔθ) + Y 0

【0028】 以上のステップS106〜S110を経ることによ
り、上記曲線部分を近似する円弧を、入力した分割数n
で複数の等長の弦に分割して、これらの弦の座標の集合
を算出することができる。これらのステップから成る線
データ化方法では、分割数nを、入力により指定してい
るが、本発明では、円弧の半径Rを判定条件とする線デ
ータ化方法により決定するものである。 即ち、図5は、
かかる方法に対応する線データ化手段7の実施例の具体
的動作を表したフローチャートであり、この方法に於い
て、ステップS501、S502、S503は上述した線データ化方
法に対応する線データ化手段7のステップS106、S107,
S108と同様である。
[0028] Through the above steps S106 to S110, the division number n of the arc that approximates the curved part, entered
Can be divided into a plurality of equal-length strings, and a set of coordinates of these strings can be calculated. Line consisting of these steps
In the data conversion method, the number of divisions n is specified by input.
However, in the present invention, the line data is determined using the radius R of the circular arc as a determination condition.
It is determined by the data conversion method. That is, FIG.
5 is a flowchart showing a specific operation of the embodiment of the line data conversion means 7 corresponding to such a method. In this method, steps S501, S502, S503 correspond to the line data conversion means corresponding to the line data conversion method described above. 7, steps S106, S107,
Same as S108.

【0029】 次いで、この線データ化方法では、ステッ
プS504に於いて、上記円弧算出手段6等で算出した円弧
の半径Rと、予め設定した半径R0(第1の設定半径)と
を比較する。
[0029] Then, in this line data reduction method, in step S504, compares the radius R of the arc calculated at arc calculating means 6, etc., the radius R 0 set in advance and (first setting radius) .

【0030】 比較の結果、R≦R0の場合には、ステップS
505に分岐し、このステップS505に於いて、少ない方の
第1の設定値a0に上記ステップS502で求めた円弧の角度
θ0を乗じた数を分割数nと決定する。即ち、a0・θ0→ n
とする。
[0030] Comparison of the results, in the case of R ≦ R 0, the step S
Branches to 505, in the step S505, determines that division number n of the number obtained by multiplying the arc angle theta 0 obtained in the first set value a 0 the smaller the above step S502. In other words, a 0 · θ 0 → n
And

【0031】 一方、ステップS504に於ける比較の結果、
R>R0の場合には、ステップS506に分岐し、このステッ
プS506に於いて、再度円弧の半径Rを第2の設定半径K/a
と比較する。実際上は、円弧の半径Rに設定値a(第3の
設定値)を乗じた値を、設定値Kと比較している。
[0031] On the other hand, the results of in comparison to step S504,
If R> R0, the process branches to step S506, where the radius R of the arc is again set to the second set radius K / a.
Compare with In practice, the value obtained by multiplying the radius R of the arc by the set value a (third set value) is compared with the set value K.

【0032】 比較の結果、a・R>Kの場合には、ステップ
S508に分岐し、上記設定値K(第2の設定値)に円弧の
角度θ0を乗じた数を分割数nとして決定する。即ち、K・
θ0→ nとする。
The comparison of the results, in the case of a · R> K, the step
The process branches to S508, and the number obtained by multiplying the set value K (second set value) by the angle θ 0 of the arc is determined as the division number n. That is, K
Let θ 0 → n.

【0033】 一方、ステップS506に於ける比較の結果、
a・R≦Kの場合には、ステップS507に分岐し、上記円弧の
半径Rに第3の設定値aと円弧の角度θ0を乗じた数を分
割数nとして決定する。即ち、a・R・θ0→ nとする。
[0033] On the other hand, the results of in comparison to step S506,
If a · R ≦ K, the process branches to step S507, and the number obtained by multiplying the radius R of the arc by the third set value a and the angle θ 0 of the arc is determined as the division number n. That is, a · R · θ 0 → n.

【0034】 このようにして分割数nを決定した後は、
上記ステップS110と同様なステップS509に於いて、各弦
の座標を算出する。
After the division number n is determined in this way,
In step S509 similar to step S110, the coordinates of each string are calculated.

【0035】 上述した各設定値の具体例を次に説明す
る。一般的に、マッピングシステムに於ける表示装置
は、任意の縮尺で表示できるものではあるが、通常は1/
500縮尺で利用することが多く、この縮尺では、例えば
歩道縁の半径は少なくとも2mmはあり、多くは3〜4mmと
なることが多い。この程度の半径では、例えば90度の円
弧に対して10程度の分割数が見栄えと所要記憶容量との
兼ね合いで適当である。このような点を考慮して、実施
例では第1の設定半径R0=5mm、第1の設定値a0=1/9とし
ている。このような設定値に於いては、R=5mmまでは90
度の円弧に対して分割数n=a0・θ0=90・1/9=10となって10
個の弦に分割されることになる。この場合R=5mmに於い
ては弦の長さは0.78mmとなり、例えば表示装置としての
CRTの表示が約0.2mmのドット、出力装置としての静電プ
ロッタの出力が約0.1mmのドットであることから、通
常、目視上では円弧として十分に満足する形状が得られ
る。勿論、分割数nが、これ以上となるように上記設定
値を変更することもでき、これは上述したように見栄え
と所要記憶容量との兼ね合いで決定すれば良い。
[0035] Next will be described a specific example of the setting values described above. In general, the display device in the mapping system can be displayed at any scale, but usually 1 /
It is often used at a scale of 500. At this scale, for example, the radius of the sidewalk edge is at least 2 mm, and often 3 to 4 mm. With such a radius, for example, a division number of about 10 for an arc of 90 degrees is appropriate in terms of a balance between appearance and required storage capacity. In consideration of such a point, in the embodiment, the first set radius R 0 is 5 mm and the first set value a 0 is 1/9. At these settings, up to R = 5 mm, 90
The number of divisions for the arc of degree is n = a 0・ θ 0 = 90 ・ 1/9 = 10 and 10
Will be split into strings. In this case, when R = 5mm, the string length is 0.78mm, for example, as a display device
Since the display of the CRT is about 0.2 mm dots and the output of the electrostatic plotter as an output device is about 0.1 mm dots, a shape that is sufficiently satisfactory as a circular arc is usually obtained visually. Of course, the set value can be changed so that the number of divisions n becomes greater than this, and this may be determined based on the balance between appearance and required storage capacity as described above.

【0036】 一方、Rが5mm以上の円弧を入力する必要性
は、例えば国道等の重要道路の歩道や、道路がカーブし
ている個所に対して生じる。このように大きな半径で
は、隣接する弦の相対角度が1度以下では目視上あまり
気にならない点に着目し、この実施例では、第2の設定
半径K/a=50mmとするとともに、上記相対角度が9/10度と
なるように各設定値を決定している。即ち、第3の設定
値a=1/45、第2の設定値K=10/9としている。
On the other hand, need R to enter the arc than 5mm, for example sidewalks and important roads national roads such as occur for places where the road is curved. At such a large radius, attention is paid to the fact that the relative angle between adjacent strings is not so much visually noticeable when the relative angle is less than 1 degree. In this embodiment, the second set radius K / a is set to 50 mm, and Each set value is determined so that the angle is 9/10 degrees. That is, the third set value a = 1/45 and the second set value K = 10/9.

【0037】 上述したように設定値を決定することによ
り、Rが5mm〜50mmの円弧については、Rに比例して分割
数nが増加して行き、その間、弦は一定の長さ0.78mmと
なる。
[0037] By determining the set value as described above, for the arc R is 5 mm to 50 mm, continue to increase the number of divisions n in proportion to R, while the strings and fixed length 0.78mm Become.

【0038】 以上に説明した本発明の線データ化方法で
は、円弧の半径を判定条件とすると共に、弦の長さ及び
隣接との相対角度を考慮して、円弧の分割数を決定し、
この決定された分割数により自動的に分割角度を設定し
て等分割するので、先にテーブル等から分割角度を選択
して、選択した分割角度により分割を行うもののように
端数処理が必要でなく、従って見栄え良く、そして所要
記憶容量の点で効率的な、円弧の分割を行うことができ
る。
In the line data conversion method of the present invention described above, the number of arc divisions is determined in consideration of the radius of the arc and the length of the chord and the relative angle between adjacent strings .
The division angle is automatically set according to the determined number of divisions.
First, select the division angle from a table etc.
And split it according to the selected split angle.
Arc division can be performed without fractional processing , and thus good looking and efficient in terms of required storage capacity.

【0039】[0039]

【発明の効果】本発明は以上の通り、地図等に於いて実
際の形状に対応した曲線として描かれている曲線部分を
円弧として近似して座標データ化する場合に於いて、こ
の円弧を、決定された分割数で自動的に等分割された凹
凸のない弦として入力することができ、入力作業が容易
であると共に、先にテーブル等から分割角度を選択し
て、選択した分割角度により分割を行うもののように端
数処理が必要でなく、従って見栄えが良く、所要記憶容
量の点で効率的な円弧の分割を行うことができるという
効果がある。
As described above, according to the present invention, in the case where a curve portion drawn as a curve corresponding to an actual shape on a map or the like is approximated as an arc and converted into coordinate data, this arc is It is possible to input as a chord without any irregularities automatically divided equally by the determined number of divisions , and the input operation is easy, and the division angle can be selected first from a table etc.
To the end as if splitting by the selected split angle.
No number processing is required, so it looks good and requires the required storage
It is possible to perform efficient arc division in terms of quantity
effective.

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

【図1】本発明方法を適用する図形処理装置の構成を概
念的に表した説明図である。
FIG. 1 is an explanatory diagram conceptually showing the configuration of a graphic processing apparatus to which the method of the present invention is applied.

【図2】本発明と共通するステップを有する線データ化
方法に対応する線データ化手段の具体的動作例と、この
方法を適用する円弧を、入力した座標データにより算出
する円弧算出手段の具体的動作例とを表したフローチャ
ートである。
FIG. 2 is a line data conversion having steps common to the present invention .
6 is a flowchart illustrating a specific operation example of a line data conversion unit corresponding to the method and a specific operation example of an arc calculation unit that calculates an arc to which the method is applied based on input coordinate data.

【図3】図2に示すに於いて、円弧算出手段の動作を
表した模式図形である。
FIG. 3 is a schematic diagram showing an operation of an arc calculating means in the example shown in FIG. 2;

【図4】図2に示すに於いて、線データ化手段の動作
を表した模式図形である。
FIG. 4 is a schematic diagram showing an operation of a line data converting means in the example shown in FIG. 2;

【図5】本発明の線データ化方法に対応する線データ化
手段の実施例の具体的動作を表したフローチャートであ
る。
FIG. 5 is a flowchart showing a specific operation of the embodiment of the line data conversion means corresponding to the line data conversion method of the present invention .

【図6】従来に於ける、曲線部分の入力方法を表した模
式図形である。
FIG. 6 is a schematic diagram showing a conventional method of inputting a curved portion.

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

1 図形入力装置 2 カーソル 3 図面 4 記憶装置 5 座標処理手段 6 円弧算出手段 7 線データ化手段 DESCRIPTION OF SYMBOLS 1 Graphic input device 2 Cursor 3 Drawing 4 Storage device 5 Coordinate processing means 6 Arc calculation means 7 Line data conversion means

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 11/20 110 G06T 11/60 300 G06T 11/80 G09G 5/20 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06T 11/20 110 G06T 11/60 300 G06T 11/80 G09G 5/20

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 図形を座標データとして入力する図形入
力装置と、入力した座標データにより図形を記憶する記
憶装置とを設けると共に、前記図形入力装置と記憶装置
間に座標処理手段を介在させた図形処理装置に於いて、
この座標処理手段は、図形の曲線部分を円弧で近似して
出力する際、この曲線部分を近似する円弧を複数の等長
の弦に分割して、上記曲線部分の座標データを上記弦の
座標の集合として出力するようにし、この際、円弧の半
径を分割数決定の判定条件とし、この半径が第1の設定
半径よりも小さい場合には少ない方の第1の設定値に円
弧の角度を乗じた数、また第2の設定半径よりも大きい
場合には多い方の第2の設定値に円弧の角度を乗じた数
を分割数として決定すると共に、上記半径が第1の設定
半径と第2の設定半径間にある場合には、この半径と第
3の設定値と円弧の角度を乗じた数として、上記分割数
間に分割数を決定し、このように決定された分割数によ
り円弧を分割して、夫々の弦の座標を算出することを特
徴とする図形処理装置の曲線部分入力に於ける円弧の線
データ化方法
1. A graphic input device for inputting a graphic as coordinate data, a storage device for storing a graphic based on the input coordinate data, and a graphic processing device interposed between the graphic input device and the storage device. In the processing equipment,
The coordinate processing means divides the arc approximating the curved part into a plurality of equal-length chords and outputs the coordinate data of the curved part when the curve part of the figure is approximated by an arc and output. so as to output as a set, this time, the arc of the semi
The diameter is used as a criterion for determining the number of divisions.
When the radius is smaller than the radius, the circle is set to the smaller first set value.
Number multiplied by the angle of the arc, and larger than the second set radius
In some cases, the number obtained by multiplying the second set value by the angle of the arc
Is determined as the number of divisions, and the radius is set to the first setting.
If this radius is between the radius and the second set radius, this radius and the second
As the number obtained by multiplying the set value of 3 and the angle of the arc, the above division number
The number of divisions is determined in between, and the number of divisions
Divide the arc and calculate the coordinates of each chord.
Of a circular arc in the input of a curved part of a graphic processing device
Data conversion method
JP13887392A 1991-10-24 1992-05-29 Method of converting arc line data into curve part input of graphic processor Expired - Lifetime JP3166876B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13887392A JP3166876B2 (en) 1991-10-24 1992-05-29 Method of converting arc line data into curve part input of graphic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13887392A JP3166876B2 (en) 1991-10-24 1992-05-29 Method of converting arc line data into curve part input of graphic processor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP3305495A Division JPH05120402A (en) 1991-10-24 1991-10-24 Curve part input mechanism in graphic processor

Publications (2)

Publication Number Publication Date
JPH05189578A JPH05189578A (en) 1993-07-30
JP3166876B2 true JP3166876B2 (en) 2001-05-14

Family

ID=15232111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13887392A Expired - Lifetime JP3166876B2 (en) 1991-10-24 1992-05-29 Method of converting arc line data into curve part input of graphic processor

Country Status (1)

Country Link
JP (1) JP3166876B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1927954B1 (en) * 2006-12-01 2019-05-15 Harman Becker Automotive Systems GmbH Terrain modeling based on curved surface area
JP6494230B2 (en) * 2014-10-01 2019-04-03 株式会社日立システムズ Geographic information vectorization support system and geographic information vectorization support method

Also Published As

Publication number Publication date
JPH05189578A (en) 1993-07-30

Similar Documents

Publication Publication Date Title
US20040001061A1 (en) Approximation of catmull-clark subdivision surfaces by bezier patches
JP3166876B2 (en) Method of converting arc line data into curve part input of graphic processor
JPH0561407A (en) Figure processor
JP2868666B2 (en) Electronic typesetting device for typesetting along any line
JP3166875B2 (en) Arc calculation method for curve section input of figure processing device
Jamet Estimation of the interpolation error for quadrilateral finite elements which can degenerate into triangles
JPH05120402A (en) Curve part input mechanism in graphic processor
Wang et al. The termination criterion for subdivision of the rational Bézier curves
JPH0613213B2 (en) Block setting method for character image data compression
JP6655438B2 (en) Traverse survey data processing device
JPH1049691A (en) Method and device for tracing dot sequence with bezier curve
JPH0644348A (en) Quadrature drawing preparing device
JP2520434B2 (en) Line approximation method
JPS6114514B2 (en)
JPH08202341A (en) Graphic editing device
JP3535598B2 (en) Figure data matching method
JP2753227B2 (en) Drawing management method and apparatus
JP3089740B2 (en) Line drawing device
JP3123902B2 (en) Graphic drawing system
CN119150513A (en) Grid cell adjustment method, device, equipment and storage medium
JPS60222975A (en) Picture drawing device
JP3254328B2 (en) Ellipse data processing device
JPH06259525A (en) Character arrangement method
JP2756349B2 (en) How to draw 3D drawings
JPH04275605A (en) Variable fillet curved surface creating method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080309

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090309

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090309

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100309

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100309

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120309

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120309

Year of fee payment: 11