JPH08147482A - Method and device for plotting dash line - Google Patents

Method and device for plotting dash line

Info

Publication number
JPH08147482A
JPH08147482A JP29098694A JP29098694A JPH08147482A JP H08147482 A JPH08147482 A JP H08147482A JP 29098694 A JP29098694 A JP 29098694A JP 29098694 A JP29098694 A JP 29098694A JP H08147482 A JPH08147482 A JP H08147482A
Authority
JP
Japan
Prior art keywords
dash line
length
cycle
new
pitch
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
JP29098694A
Other languages
Japanese (ja)
Inventor
Ayanori Takayanagi
文徳 高柳
Fumio Wakamatsu
文雄 若松
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.)
Toyo Electric Manufacturing Ltd
Original Assignee
Toyo Electric Manufacturing 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 Toyo Electric Manufacturing Ltd filed Critical Toyo Electric Manufacturing Ltd
Priority to JP29098694A priority Critical patent/JPH08147482A/en
Publication of JPH08147482A publication Critical patent/JPH08147482A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To uniformly distribute a dash line on a curved line like a circle and a circular arc, etc., so as to equalize the shape of the dash line at the junction point of a beginning point and an ending point. CONSTITUTION: Plotting data inputted from an input device 1 is sent to an interpolation processing part 6 through a plotting data processing part 4, and the interpolation processing part 6 interpolates the plotting data. In the case where the plotting data is the curved line such as the circular arc, the circle and an ellipse, etc., a circular circumference calculating part 7 calculates circumferential distance L from the beginning point to the ending point of the interpolated data. An interpolation mode calculating part 8 determines the number ns of new cycles from the circumferential distance L and the designated cycle length s1 of the dash line stored in a cycle table 5, and further, determines new cycle length s1' and each new pitch length Pk' in one cycle. A dash line control part 9 delivers dash line data to an output control part 10 so as to let it start plotting from a position shifted by the half portion of a new first pitch length Pi, and besides, let it end the plotting at the position shifted by the half portion of the first pitch length.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、円弧、楕円等を含む図
形の作図方法および装置に関し、さらに詳細には、円
弧、楕円等の曲線を破線、一点鎖線等のダッシュライン
で作図する際、ダッシュラインの終端調整を行うことが
できるダッシュラインの作図方法および装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for drawing a figure including an arc, an ellipse, etc., and more specifically, when drawing a curve such as an arc, an ellipse, etc. with a dash line such as a broken line or a dash-dot line. The present invention relates to a dash line drawing method and device capable of adjusting the dash line end.

【0002】[0002]

【従来の技術】プロッタ等の図形出力装置により、破
線、一点鎖線等のダッシュラインを含む図形を作図する
際、通常、ペンダウンとペンアッブを一定の間隔で繰り
返し、所望の図形を作図している。このため、円弧、楕
円等の曲線を作図する場合、図7(a)に示すように曲
線の長さによってはペンアップの状態で作図が終了し、
同図(b)に示すように、その終端における曲線の位置
が不明確となったり、同図(c)に示すように終端(始
点)におけるダッシュラインの形状が不均一となる場合
がある。
2. Description of the Related Art When a figure output device such as a plotter is used to draw a figure including a dash line such as a broken line or a dash-dot line, a pen-down and a pen-ab are usually repeated at regular intervals to draw a desired figure. Therefore, when drawing a curve such as an arc or an ellipse, depending on the length of the curve, the drawing ends in a pen-up state, as shown in FIG.
The position of the curve at the end may become unclear as shown in FIG. 7B, or the shape of the dash line at the end (starting point) may become uneven as shown in FIG.

【0003】従来、直線については、その端部をペンダ
ウンの状態で終了させるように終端調整を行うことは試
みられていたが、円弧、楕円等の曲線については、上記
終端調整は行われていなかった。
Conventionally, it has been attempted to adjust the end of a straight line so that the end of the straight line ends in a pen-down state, but the above-mentioned end adjustment is not performed for a curved line such as an arc or an ellipse. It was

【0004】[0004]

【発明が解決しようとする課題】上記したように、従来
技術においては、円弧、楕円等の曲線をダッシュライン
で作図する場合、次のような問題点があった。 (1)ダッシュラインで円弧等の曲線作図を行うと、終
点がペンアップとなる場合があり、正しい作図結果が得
られない。 (2)全円のような始点と終点が一致する図形の場合、
始点と終点の接合点でダッシュラインの形状が一致せ
ず、不均一の図形となる。
As described above, in the prior art, when a curved line such as an arc or an ellipse is drawn by a dash line, there are the following problems. (1) When a curved line such as a circular arc is drawn on a dash line, the end point may be pen-up, and a correct drawing result cannot be obtained. (2) In the case of a figure where the start point and end point match, such as a full circle,
The shape of the dash line does not match at the junction of the start point and the end point, resulting in a non-uniform figure.

【0005】本発明は上記した従来技術の問題点を解決
するためになされたものであって、本発明の目的は、円
弧等の曲線をダッシュラインで作図する際、ダッシュラ
インを曲線上に均等に配分することができ、また、始点
と終点の接合点でダッシュラインの形状を一致させるこ
とができるダッシュラインの作図方法および装置を提供
することである。
The present invention has been made in order to solve the above-mentioned problems of the prior art. An object of the present invention is to draw a dash line evenly on a curved line when drawing a curved line such as an arc. It is an object of the present invention to provide a method and a device for drawing a dash line that can be distributed to each other and can match the shape of the dash line at the joining point of the start point and the end point.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するた
め、本発明の請求項1の発明は、図形出力装置により
円、楕円、円弧、楕円弧等の曲線をダッシュラインで作
図する際、上記作図する曲線のダッシュライン部分の周
長を求め、予め設定されたダッシュラインのサイクル長
と上記周長を比較して、新サイクル長を求め、さらに、
求めた新サイクル長と上記予め設定されたサイクル長、
および予め設定されたダッシュラインのピッチ長とから
サイクル内の新ピッチ長を算出し、求めた新ピッチの初
期ピッチ長の1/2の長さをシフトして、初期ピッチの
1/2の点からダッシュラインの描画を開始し、ダッシ
ュラインの最後のサイクルにおいて、初期ピッチ長の1
/2の点でダッシュラインの描画を終了するようにした
ものである。
In order to solve the above-mentioned problems, the invention according to claim 1 of the present invention is such that when drawing a curve such as a circle, an ellipse, an arc, an elliptic arc, etc. by a figure output device with a dash line, the above-mentioned drawing Calculate the circumference of the dash line part of the curve to be compared, calculate the new cycle length by comparing the cycle length of the preset dash line and the above circumference,
The new cycle length obtained and the preset cycle length above,
Also, the new pitch length in the cycle is calculated from the preset pitch length of the dash line, and 1/2 of the initial pitch length of the obtained new pitch is shifted to obtain a point of 1/2 of the initial pitch. Start drawing the dash line from, and in the last cycle of the dash line, the initial pitch length is 1
The drawing of the dash line is ended at the point of / 2.

【0007】本発明の請求項2の発明は、少なくとも一
部にダッシュラインを含む円、楕円、円弧、楕円弧等の
曲線を作図する作図装置において、各種ダッシュライン
のサイクル長およびピッチ長を設定するサイクルテーブ
ルと、円、楕円、円弧、楕円弧等の曲線のダッシュライ
ン部分の周長を求める手段と、上記サイクルテーブルに
設定されたダシュラインのサイクル長と上記周長を比較
して新サイクル長を求め、求めた新サイクル長と、上記
サイクルテーブルに設定されたサイクル長およびピッチ
長とからサイクル内の新ピッチ長を算出する手段と、上
記新サイクル長と新ピッチ長に基づきダッシュラインを
含む曲線の描画を制御する制御手段とを設け、上記制御
手段が、ダッシュラインを含む曲線を出力する際、求め
た新ピッチにおける初期ピッチの1/2の点からダッシ
ュラインの描画を開始させ、ダッシュラインの最後のサ
イクルにおいて、上記初期ピッチ長の1/2の点でダッ
シュラインの描画を終了させるように構成したものであ
る。
According to a second aspect of the present invention, in a drawing device for drawing a curve such as a circle, an ellipse, an arc, an elliptic arc, etc., which includes a dash line at least in part, the cycle length and pitch length of various dash lines are set. A new cycle length is calculated by comparing the cycle table and the means for determining the circumference of the dash line part of the curve such as circle, ellipse, arc, elliptic arc, etc. and the cycle length of the dash line set in the above cycle table and the above circumference. , A means for calculating a new pitch length in a cycle from the obtained new cycle length and the cycle length and pitch length set in the cycle table, and a curve including a dash line based on the new cycle length and the new pitch length. A control means for controlling drawing is provided, and when the control means outputs a curve including a dash line, the control should be performed at the new pitch obtained. The drawing of the dash line is started from the point of 1/2 of the initial pitch, and the drawing of the dash line is ended at the point of 1/2 of the initial pitch length in the last cycle of the dash line. .

【0008】[0008]

【作用】本発明の請求項1および請求項2の発明におい
ては、少なくとも一部にダッシュラインを含む円、楕
円、円弧、楕円弧等の曲線を作図する際、予め設定され
たダッシュラインのサイクル長と作図する曲線のダッシ
ュライン部分の周長を比較して新サイクル長を求め、求
めた新サイクル長と予め設定されたサイクル長および予
め設定されたダッシュラインのピッチ長とからサイクル
内の新ピッチ長を算出し、求めた新ピッチの初期ピッチ
長の1/2の長さをシフトしてダッシュラインを描画し
ているので、ダッシュラインのサイクルを均一化するこ
とができ、ダッシュラインを正確に描画することができ
る。
According to the first and second aspects of the present invention, when a curve such as a circle, an ellipse, an arc, an elliptic arc, etc. including a dash line at least in part is drawn, the cycle length of the dash line set in advance is set. The new cycle length is calculated by comparing the circumference of the dash line part of the curve to be drawn with the new cycle length, and the new pitch in the cycle is calculated from the calculated new cycle length and the preset cycle length and preset dash line pitch length. The length is calculated, and the dash line is drawn by shifting half the initial pitch length of the calculated new pitch, so the dash line cycle can be made uniform and the dash line can be accurately displayed. Can be drawn.

【0009】[0009]

【実施例】図1は本発明の作図装置の一実施例を示す図
であり、同図は、プロッタにより図形を描画する場合の
実施例を示している。同図において、1は作図データを
入力する入力装置、2はプロッタ等の出力装置、3は処
理装置であり、処理装置3は、入力された作図データを
処理する作図データ処理部4と、ダッシュライン形状を
記憶するサイクル・テーブル5と、入力された作図デー
タを補間し、直線および曲線の描画データを生成する補
間処理部6と、描画される円弧等の曲線の長さを算出す
る円周算出部7と、ダッシュラインの終端調整を行う補
間モード算出部8と、上記補間モード算出部8の結果に
したがってダッシュラインの描画制御を行うダッシュラ
イン制御部9と、出力装置2を制御する出力制御部10
とを備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a diagram showing an embodiment of a drawing apparatus of the present invention, and FIG. 1 shows an embodiment in which a figure is drawn by a plotter. In the figure, 1 is an input device for inputting drawing data, 2 is an output device such as a plotter, 3 is a processing device, and the processing device 3 is a drawing data processing unit 4 for processing the input drawing data, and a dashboard. A cycle table 5 that stores the line shape, an interpolation processing unit 6 that interpolates the input drawing data to generate drawing data of straight lines and curves, and a circumference that calculates the length of a curve such as an arc to be drawn. A calculation unit 7, an interpolation mode calculation unit 8 that adjusts the end of the dash line, a dash line control unit 9 that controls drawing of the dash line according to the result of the interpolation mode calculation unit 8, and an output that controls the output device 2. Control unit 10
It has and.

【0010】上記サイクル・テーブル5は、予め指定さ
れている破線、一点鎖線、二点鎖線、任意鎖線等のダッ
シュラインのサイクル長s1 (以下、指定サイクル長と
いう)と1サイクル内の各ピッチ長PK (以下、指定ピ
ッチ長という:指定サイクル長と指定ピッチ長について
は図4に二点鎖線の例が示されている)を記憶するテー
ブルであり、初期値は予め設定されており、後述するよ
うに、作図データに応じてサイクル長およびピッチ長は
変更される。
The cycle table 5 has a cycle length s1 (hereinafter referred to as a designated cycle length) of a dash line such as a dashed line, a one-dot chain line, a two-dot chain line, an arbitrary chain line and the pitch length within one cycle. This is a table for storing PK (hereinafter referred to as designated pitch length: an example of the designated cycle length and designated pitch length is shown by the chain double-dashed line in FIG. 4), and the initial value is set in advance and will be described later. As described above, the cycle length and the pitch length are changed according to the drawing data.

【0011】図2、図3は図1に示した処理部3におけ
る処理を示すフローチャートであり、同図を参照しなが
ら本実施例におけるダッシュラインの作図処理について
説明する。図1において、入力装置1から作図データを
入力すると、作図データは作図データ処理部4で処理さ
れ、補間処理部6に送られる。補間処理部6は入力され
た作図データが直線が否か判別し(図2のステップ10
0)、作図データが直線の場合には直線補間を行う(ス
テップ101)。また、作図データが円、楕円の場合に
は、円、楕円の補間を行う(ステップ102)。なお、
補間方法は、種々の周知な手法を用いることができここ
では詳述しない。
2 and 3 are flowcharts showing the processing in the processing unit 3 shown in FIG. 1. The drawing processing of the dash line in this embodiment will be described with reference to the same drawings. In FIG. 1, when drawing data is input from the input device 1, the drawing data is processed by the drawing data processing unit 4 and sent to the interpolation processing unit 6. The interpolation processing unit 6 determines whether the input drawing data is a straight line (step 10 in FIG. 2).
0), if the drawing data is a straight line, linear interpolation is performed (step 101). If the drawing data is a circle or an ellipse, the circle or the ellipse is interpolated (step 102). In addition,
As the interpolation method, various well-known methods can be used and will not be described in detail here.

【0012】次にダッシュラインモードの開始モード
か、ダッシュライン中であるかを判別し(ステップ10
3)、ダッシュラインモードの開始モードの場合、円周
算出部7は補間処理部6で生成された補間曲線データに
ついてダッシュラインの始点から終点までの円周距離L
を算出する(ステップ104)。補間モード算出部8
は、円周算出部7で算出した円周距離Lと、サイクル・
テーブル5に格納されているダッシュラインの指定サイ
クル長s1 から次の式(1)〜(3)により新サイクル
数ns を求める。さらに、式(4),(5)により、新
サイクル長s1'と、1サイクル内の各新ピッチ長Pk'を
求める(ステップ105)。 (L/s1 )=n 余り…m m=0 のときns =n (1) m<ΔL のときns =n (2) m≧ΔL のときns =n+1 (3) なお、ΔLは以下の範囲で必要に応じて調整可能であ
る。
Next, it is judged whether the dash line mode is the start mode or the dash line is in progress (step 10
3) In the case of the start mode of the dash line mode, the circumference calculation unit 7 determines the circumference distance L from the start point to the end point of the dash line for the interpolation curve data generated by the interpolation processing unit 6.
Is calculated (step 104). Interpolation mode calculator 8
Is the circumference distance L calculated by the circumference calculation unit 7 and the cycle
The new cycle number ns is calculated from the specified cycle length s1 of the dash line stored in the table 5 by the following equations (1) to (3). Further, the new cycle length s1 'and each new pitch length Pk' within one cycle are obtained from the equations (4) and (5) (step 105). (L / s1) = n remainder ... m m = 0 when n s = n (1) When m <ΔL ns = n (2) When m ≧ ΔL ns = n + 1 (3) Note that ΔL is in the following range It can be adjusted as needed.

【0013】0<ΔL<(第1ピッチ長P1 /2) (L/ns )=新サイクル長s1' (4) 新第kピッチ長Pk' =指定第kピッチ長Pk ×(s1'/s1 )(5) である。0 <ΔL <(first pitch length P1 / 2) (L / ns) = new cycle length s1 '(4) new kth pitch length Pk' = designated kth pitch length Pk * (s1 '/ s1) ) (5) Is.

【0014】図5は指定サイクル長と新サイクル長の関
係を説明する図であり、同図はダッシュラインが破線の
場合を示している。同図において、(a)はサイクルテ
ーブル5に格納されているダッシュライン(破線)のピ
ッチ長P1 ,P2 、(b)は指定サイクル長s1 を示
し、(c)は新サイクル長s1'を示し、また、(d)は
新ピッチ長P1',P2'を示している。
FIG. 5 is a diagram for explaining the relationship between the designated cycle length and the new cycle length, which shows the case where the dash line is a broken line. In the figure, (a) shows the pitch lengths P1 and P2 of the dash lines (broken lines) stored in the cycle table 5, (b) shows the designated cycle length s1, and (c) shows the new cycle length s1 '. Further, (d) shows the new pitch lengths P1 'and P2'.

【0015】前記式(2)(3)が成立する場合には、
同図に示すように、指定サイクル長s1 >新サイクル長
s1'となり、指定ピッチ長P1 ,P2 を(新サイクル長
s1'/指定サイクル長s1 )倍することにより、新ピッ
チ長P1',P2'が算出される。補間モード算出部8にお
いて新サイクル長s1'と新ピッチ長Pk'が算出される
と、ダッシュライン制御部9は上記新サイクル長s1'と
新ピッチ長Pk'に基づき、ダッシュラインの補間処理を
行い(ペンのアップとダウンのタイミングを定め)、出
力制御部10にダッシュライン・データを渡して、ダッ
シュラインの描画を開始させる(ステップ106、10
7)。その際、ダッシュライン制御部9は、図6(a)
に示すように、新第1ピッチ長P1 の1/2分シフトし
た位置から描画を開始させ、また、第1ピッチ長の1/
2分シフトした位置で描画を終了させる。
When the above equations (2) and (3) are satisfied,
As shown in the figure, the specified cycle length s1> the new cycle length s1 ', and the new pitch lengths P1' and P2 are obtained by multiplying the specified pitch lengths P1 and P2 by (new cycle length s1 '/ specified cycle length s1). 'Is calculated. When the new cycle length s1 'and the new pitch length Pk' are calculated in the interpolation mode calculation unit 8, the dash line control unit 9 performs the dash line interpolation processing based on the new cycle length s1 'and the new pitch length Pk'. Then, the dash line data is passed to the output control unit 10 to start drawing the dash line (steps 106 and 10).
7). At that time, the dash line control unit 9 is shown in FIG.
As shown in, drawing is started from a position shifted by 1/2 of the new first pitch length P1, and 1 / pitch of the first pitch length.
The drawing is finished at the position shifted by 2 minutes.

【0016】そして、ダッシュラインの描画が終了する
まで、次のピッチのダッシュラインデータを設定しなが
らダッシュラインの補間処理を繰り返し、出力制御部1
0にダッシュラインを描画させる(図3のステップ10
9、108、図2の106、107)。その後、出力す
る図形が円弧、楕円等の曲線であるか判別し(図3のス
テップ110)、円弧等の曲線でない場合には終了し、
円弧等の曲線の場合には、図3のステップ111で曲線
等の描画が終了したか判別し、上記と同様に、円弧等の
描画が終了するまで、前記ステップ102からステップ
111までの処理を繰り返す。
Until the drawing of the dash line is completed, the dash line interpolation processing is repeated while setting the dash line data of the next pitch, and the output control unit 1
0 to draw a dash line (step 10 in FIG. 3)
9, 108, 106, 107 in FIG. 2). After that, it is determined whether the output graphic is a curved line such as an arc or an ellipse (step 110 in FIG. 3), and if it is not a curved line such as an arc, the process ends.
In the case of a curved line such as a circular arc, it is determined in step 111 of FIG. 3 whether or not the drawing of the curved line or the like is completed, and similarly to the above, the processing from step 102 to step 111 is performed until the drawing of the circular arc or the like is completed. repeat.

【0017】その結果、その終点部がかならずペンダウ
ン状態となる図形を描画することができ、円弧、全円の
場合には、図1および図6(b)(c)に示すように終
端部が明確な円弧あるいはダッシュラインが均一な全円
を描画することができる。なお、上記実施例において
は、プロッタにより図形を出力する場合を示したが、本
発明は上記実施例に限定されるものではなく、例えば、
ディスプレイ等の表示装置に図形を出力する場合等、種
々の周知な図形出力装置に適用することができる。
As a result, it is possible to draw a figure in which the end point is always in the pen-down state, and in the case of an arc or a full circle, the end point is changed as shown in FIGS. 1 and 6 (b) (c). It is possible to draw a complete circle with a clear arc or dash line. In the above embodiment, the case where the figure is output by the plotter has been shown, but the present invention is not limited to the above embodiment.
The present invention can be applied to various well-known graphic output devices such as when a graphic is output to a display device such as a display.

【0018】[0018]

【発明の効果】以上説明したように、本発明において
は、円、楕円、円弧、楕円弧等の曲線をダッシュライン
で出力する際、予め設定されたダッシュラインのサイク
ル長と出力する曲線の周長を比較して新サイクル長を求
め、求めた新サイクル長と予め設定されたサイクル長お
よび予め設定されたダッシュラインのピッチ長とからサ
イクル内の新ピッチ長を算出し、求めた新ピッチの初期
ピッチ長の1/2の長さをシフトしてダッシュラインの
描画を開始するようにしたので、ダッシュラインのサイ
クルを均等化することができる。
As described above, according to the present invention, when a curve such as a circle, an ellipse, an arc, and an elliptic arc is output as a dash line, the cycle length of a preset dash line and the circumference of the curve to be output are set. The new cycle length in the cycle is calculated from the calculated new cycle length, the preset cycle length and the preset pitch length of the dash line, and the initial value of the calculated new pitch is calculated. Since the drawing of the dash line is started by shifting the length of 1/2 of the pitch length, the dash line cycle can be equalized.

【0019】このため、プロッタ等によりダッシュライ
ンを含む図形を出力する際、正確かつ見栄えよい図面を
描画することができる。
Therefore, when a figure including a dash line is output by a plotter or the like, it is possible to draw an accurate and attractive drawing.

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

【図1】本発明の実施例の作図装置の構成を示す図であ
る。
FIG. 1 is a diagram showing a configuration of a drawing apparatus according to an embodiment of the present invention.

【図2】本発明の実施例の動作を示すフローチャートで
ある。
FIG. 2 is a flowchart showing the operation of the embodiment of the present invention.

【図3】本発明の実施例の動作を示すフローチャート
(続き)である。
FIG. 3 is a flowchart (continuation) showing the operation of the embodiment of the present invention.

【図4】指定サイクル長、指定ピッチ長の関係を説明す
る図である。
FIG. 4 is a diagram illustrating a relationship between a designated cycle length and a designated pitch length.

【図5】指定サイクル長、新サイクル長、新ピッチ長の
関係を説明する図である。
FIG. 5 is a diagram illustrating a relationship among a designated cycle length, a new cycle length, and a new pitch length.

【図6】本発明の実施例のダッシュラインの描画結果を
示す図である。
FIG. 6 is a diagram showing a result of drawing a dash line according to the embodiment of the present invention.

【図7】従来のダッシュラインの描画結果を示す図であ
る。
FIG. 7 is a diagram showing a result of drawing a conventional dash line.

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

1 入力装置 2 出力装置 3 処理装置 4 作図データ処理部 5 サイクルテーブル 6 補間処理部 7 円周算出部 8 補間モード算出部 9 ダッシュライン制御部 10 出力制御部 1 Input Device 2 Output Device 3 Processing Device 4 Drawing Data Processing Section 5 Cycle Table 6 Interpolation Processing Section 7 Circumference Calculation Section 8 Interpolation Mode Calculation Section 9 Dash Line Control Section 10 Output Control Section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 図形出力装置により円、楕円、円弧、楕
円弧等の曲線をダッシュラインで作図する際、 上記作図する曲線のダッシュライン部分の周長を求め、 予め設定されたダッシュラインのサイクル長と上記周長
を比較して、新サイクル長を求め、 さらに、求めた新サイクル長と上記予め設定されたサイ
クル長、および予め設定されたダッシュラインのピッチ
長とからサイクル内の新ピッチ長を算出し、 求めた新ピッチの初期ピッチ長の1/2の長さをシフト
して、初期ピッチの1/2の点からダッシュラインの描
画を開始し、 ダッシュラインの最後のサイクルにおいて、初期ピッチ
長の1/2の点でダッシュラインの描画を終了すること
を特徴とするダッシュラインの作図方法。
1. When drawing a curve such as a circle, an ellipse, an arc or an elliptic arc with a dash line by a figure output device, the circumference of the dash line portion of the curve to be drawn is calculated, and the preset cycle length of the dash line is obtained. Then, the new cycle length is calculated by comparing the above-mentioned circumference with the above-mentioned circumference, and the new cycle length within the cycle is calculated from the calculated new cycle length, the preset cycle length, and the preset dash line pitch length. Shift the calculated initial pitch length of the new pitch by 1/2, start drawing the dash line from the point of 1/2 of the initial pitch, and set the initial pitch in the last cycle of the dash line. A method of drawing a dash line, characterized in that drawing of the dash line is finished at a point of 1/2 of the length.
【請求項2】 少なくとも一部にダッシュラインを含む
円、楕円、円弧、楕円弧等の曲線を作図する作図装置に
おいて、 各種ダッシュラインのサイクル長およびピッチ長を設定
するサイクルテーブルと、 円、楕円、円弧、楕円弧等の曲線のダッシュライン部分
の周長を求める手段と、 上記サイクルテーブルに設定されたダシュラインのサイ
クル長と上記周長を比較して新サイクル長を求め、求め
た新サイクル長と、上記サイクルテーブルに設定された
サイクル長およびピッチ長とからサイクル内の新ピッチ
長を算出する手段と、 上記新サイクル長と新ピッチ長に基づきダッシュライン
を含む曲線の描画を制御する制御手段とを設け、 上記制御手段は、ダッシュラインを含む曲線を出力する
際、求めた新ピッチにおける初期ピッチの1/2の点か
らダッシュラインの描画を開始させ、ダッシュラインの
最後のサイクルにおいて、上記初期ピッチ長の1/2の
点でダッシュラインの描画を終了させることを特徴とす
る作図装置。
2. A plotting apparatus for plotting a curve such as a circle, an ellipse, an arc, an elliptic arc including a dash line at least in part, and a cycle table for setting cycle lengths and pitch lengths of various dash lines, and a circle, an ellipse, A means for obtaining the perimeter of the dash line portion of a curve such as an arc, an elliptic arc, etc. and a new cycle length obtained by comparing the perimeter with the cycle length of the dash line set in the above cycle table and the new cycle length obtained, A means for calculating a new pitch length in the cycle from the cycle length and the pitch length set in the cycle table, and a control means for controlling the drawing of a curve including a dash line based on the new cycle length and the new pitch length. The control means, when outputting a curve including a dash line, has a half of the initial pitch in the obtained new pitch. From to initiate the drawing of the dashed line, in the last cycle of dashed lines, drawing and wherein the to finish drawing the dashed line in terms of 1/2 of the initial pitch length.
JP29098694A 1994-11-25 1994-11-25 Method and device for plotting dash line Pending JPH08147482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29098694A JPH08147482A (en) 1994-11-25 1994-11-25 Method and device for plotting dash line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29098694A JPH08147482A (en) 1994-11-25 1994-11-25 Method and device for plotting dash line

Publications (1)

Publication Number Publication Date
JPH08147482A true JPH08147482A (en) 1996-06-07

Family

ID=17762990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29098694A Pending JPH08147482A (en) 1994-11-25 1994-11-25 Method and device for plotting dash line

Country Status (1)

Country Link
JP (1) JPH08147482A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011210164A (en) * 2010-03-30 2011-10-20 Fujifilm Corp Page description data processing apparatus, method and program
US8941878B2 (en) 2010-03-30 2015-01-27 Fujifilm Corporation Page description data processing apparatus, page description data processing method, and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011210164A (en) * 2010-03-30 2011-10-20 Fujifilm Corp Page description data processing apparatus, method and program
US8941878B2 (en) 2010-03-30 2015-01-27 Fujifilm Corporation Page description data processing apparatus, page description data processing method, and recording medium

Similar Documents

Publication Publication Date Title
JPH08147482A (en) Method and device for plotting dash line
JPH0710482B2 (en) Non-circular creation device
JP3308642B2 (en) Vertical deflection waveform generator
US5051942A (en) Method and apparatus for calculating filter factors
JPH0639439A (en) Data correcting method for radius bending
CN112068487B (en) Interpolation control method, interpolation control device and readable storage medium
JP3844149B2 (en) Parameter value correction output device
JP3304772B2 (en) Automatic programming device for coil spring forming machine
JPS6333167B2 (en)
JP2612614B2 (en) Equalizing characteristics setting method
JPH11341888A (en) Motor controller
JPH04205482A (en) Method and device for clipping segment
JPH1049691A (en) Method and device for tracing dot sequence with bezier curve
JPH0368087A (en) System for generating variable length slash by picture data
JPH0676070A (en) Method and device for plotting thick line
JPH0863619A (en) Device and method for automatically preparing part
JPH0796444A (en) Workpiece shape data correcting device
JPH07181944A (en) Outline font drawing device
JPH05135183A (en) Control point data processor
JPH06131486A (en) Method and device for creating curve changing in shape unsimilarly with size
JP2676832B2 (en) Bezier curve approximation circuit
JPH0689347A (en) Automatic generation system for axis scale
JPH0558093A (en) Drawing method for intermittent line
JPH05205041A (en) Method and device for curve approximation
JPH07120364B2 (en) Time chart creation device