JP2002117411A - Curve drawing method, curve drawing device, and storage medium with curve drawing program stored therein - Google Patents

Curve drawing method, curve drawing device, and storage medium with curve drawing program stored therein

Info

Publication number
JP2002117411A
JP2002117411A JP2000311595A JP2000311595A JP2002117411A JP 2002117411 A JP2002117411 A JP 2002117411A JP 2000311595 A JP2000311595 A JP 2000311595A JP 2000311595 A JP2000311595 A JP 2000311595A JP 2002117411 A JP2002117411 A JP 2002117411A
Authority
JP
Japan
Prior art keywords
curve
bezier curve
bezier
polygonal line
control point
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
JP2000311595A
Other languages
Japanese (ja)
Inventor
Yoshihiko Matsuo
義彦 松尾
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000311595A priority Critical patent/JP2002117411A/en
Publication of JP2002117411A publication Critical patent/JP2002117411A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a curve drawing method and curve drawing device capable of precisely performing the segment approximation of a curve with an arithmetic quantity smaller than in the past to performing the drawing, and a storage medium with curve drawing program stored therein. SOLUTION: This method comprises acquiring the control point line of a Bezier curve, segment-approximating the Bezier curve by use of the acquired control point line, and performing the drawing of the approximated polygonal line data. In the segment approximation, whether subdivision is performed or not is evaluated, and the curve concerned is subdivided only when the necessity of subdivision is evaluated. The segment approximation is recursively executed. The evaluation uses the chord length estimated value of the Bezier curve as evaluation reference.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータグラ
フィックスや印刷装置等において用いられる曲線描画方
法、曲線描画装置および曲線描画プログラムを記録した
記録媒体に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a curve drawing method, a curve drawing device, and a recording medium storing a curve drawing program used in computer graphics, a printing device, and the like.

【0002】[0002]

【従来の技術】アウトラインフォントのデザインや、C
AD(Computer AidedDesign)等
の分野では、ユーザ若しくはフォント作成者が所望する
曲線形状を忠実に、且つ簡易に表現できることが要求さ
れている。つまり、表現される曲線とその曲線を定義す
るための入力データとが直感的に近い曲線であるほど好
まれている。例えば、TrueTypeフォント(Mi
crosoft社)や、PostScript(Ado
be社)では、その曲線部分を表現するためにベジェ曲
線が利用されている。またCADシステムにおいても、
ベジェ曲線が広く利用されている。
2. Description of the Related Art Outline font design and C
In the field of AD (Computer Aided Design) and the like, it is required that a curve shape desired by a user or a font creator can be faithfully and easily expressed. In other words, it is preferable that the expressed curve and the input data for defining the curve are intuitively close curves. For example, TrueType font (Mi
Microsoft), PostScript (Ado)
Be) uses a Bezier curve to express the curved portion. Also in the CAD system,
Bezier curves are widely used.

【0003】図8は3次のベジェ曲線の例を示す図、図
9はド・カステリョの分割手法を用いたベジェ曲線の折
れ線近似方法を説明する図、図10は3次ベジェ曲線の
他の例を示す図、図11は3次ベジェ曲線の他の例を示
す図、図12は従来のベジェ曲線の再分割評価ステップ
で使用された評価関数例を示す図、図13は従来のベジ
ェ曲線の再分割評価ステップで使用された評価関数例を
示す図である。
FIG. 8 shows an example of a cubic Bezier curve, FIG. 9 shows a polygonal approximation method of the Bezier curve using the de Castello division method, and FIG. 10 shows another cubic Bezier curve. FIG. 11 is a diagram showing another example of a cubic Bezier curve, FIG. 12 is a diagram showing an example of an evaluation function used in a conventional subdivision evaluation step of a Bezier curve, and FIG. 13 is a conventional Bezier curve. FIG. 10 is a diagram showing an example of an evaluation function used in the subdivision evaluation step of FIG.

【0004】ここで、3次のベジェ曲線について説明す
る。図8には4個の頂点P0、P1、P2およびP3からな
る折れ線と、この折れ線P0、P1、P2、P3の端点P0
から端点P3に至る曲線P(t)とが示されている。こ
れらのうち曲線P(t)が3次のベジェ曲線である。こ
のベジェ曲線P(t)上の各点の位置ベクトルは、折れ
線P0、P1、P2、P3の構成点の位置ベクトルを用いて
次式(1)のように表現される。
Here, a cubic Bezier curve will be described. 4 vertices P 0 in FIG. 8, P 1, P and line consisting of 2 and P 3, the end point P 0 of the polygonal line P 0, P 1, P 2 , P 3
And the curve P (t) leading to the end point P 3 is shown from. Among these, the curve P (t) is a cubic Bezier curve. The position vector of each point on the Bezier curve P (t) is expressed by the following equation (1) using the position vectors of the constituent points of the polygonal lines P 0 , P 1 , P 2 , and P 3 .

【0005】 P(t)=(1−t)30+3(1−t)2tP1+3(1−t)t22+t33・・・(1) (0≦t≦1) tの値を0から1まで変化させると、上記式(1)によ
り与えられる位置ベクトルP(t)は、点P0から点P3
まで移動する。すなわち、P0がベジェ曲線P(t)の
始点であり、P3がベジェ曲線P(t)の終点である。
上記式(1)より明らかなように、ベジェ曲線P(t)
は折れ線P0、P1、P2、P3の各構成点の位置ベクトル
により一義的に決定される。折れ線P0、P1、P2、P3
は、ベジェ曲線P(t)の制御点列と呼ばれ、またその
各構成点P0〜P3は制御点と呼ばれる。また、ベジェ曲
線P(t)の始点P0と終点P3とを結ぶ直線P0、P3
ベースラインと呼ばれる。
P (t) = (1−t) 3 P 0 +3 (1−t) 2 tP 1 +3 (1−t) t 2 P 2 + t 3 P 3 (1) (0 ≦ t ≦ 1) When the value of t is changed from 0 to 1, the position vector P (t) given by the above equation (1) becomes from the point P 0 to the point P 3
Move up to. That is, P 0 is the start point of the Bezier curve P (t), and P 3 is the end point of the Bezier curve P (t).
As is clear from the above equation (1), the Bezier curve P (t)
Is uniquely determined by the position vectors of the constituent points of the polygonal lines P 0 , P 1 , P 2 , and P 3 . Lines P 0 , P 1 , P 2 , P 3
Is called a control point sequence of the Bezier curve P (t), and each of the constituent points P 0 to P 3 is called a control point. The straight lines P 0 and P 3 connecting the start point P 0 and the end point P 3 of the Bezier curve P (t) are called a baseline.

【0006】CADシステム等では、ユーザはマウス等
のポインティングデバイスを用いて制御点の位置ベクト
ルの指定を行い、コンピュータ側でこの制御点列に対応
したベジェ曲線を演算し、ディスプレイにそのベジェ曲
線の描画を行う、ということが一般に行われている。
In a CAD system or the like, a user specifies a position vector of a control point using a pointing device such as a mouse, calculates a Bezier curve corresponding to the control point sequence on the computer side, and displays the Bezier curve of the Bezier curve on a display. It is common practice to perform drawing.

【0007】ここで、ベジェ曲線の形状は、ユーザが入
力した制御点列の折れ線形状にほぼ従う。また、ベジェ
曲線の始点と終点における接線ベクトルの方向は、制御
点列の折れ線の最初の辺と最後の辺(図8の例では辺P
0、P1と辺P2、P3)の方向と各々正確に一致する。し
たがって、ユーザは出来上がりのベジェ曲線の形状をあ
る程度予測しながら制御点列の入力を行うことができ、
容易に所望の形状のベジェ曲線を得ることができる。そ
して、以上説明したベジェ曲線をコンピュータのディス
プレイ等に表示したり、印刷装置を用いて印刷する場合
には、ベジェ曲線を折れ線近似して表示や印刷を行うの
が一般的である。
Here, the shape of the Bezier curve substantially follows the polygonal shape of the control point sequence input by the user. The directions of the tangent vectors at the start point and end point of the Bezier curve are determined by the first side and the last side of the polygonal line of the control point sequence (side P in the example of FIG. 8).
0, respectively coincide exactly with the direction of P 1 and side P 2, P 3). Therefore, the user can input the control point sequence while predicting the shape of the completed Bezier curve to some extent,
A Bezier curve having a desired shape can be easily obtained. When the Bezier curve described above is displayed on a display of a computer or printed using a printing device, the Bezier curve is generally displayed and printed by approximating the Bezier curve with a polygonal line.

【0008】ここで、ベジェ曲線を折れ線近似する手法
については、いくつかの手法が開示されている。特に一
般的に知られているのは、ド・カステリョ(de Ca
stelijau)が開発したベジェ曲線の分割手法を
利用した折れ線近似手法である。この種の折れ線近似手
法では、ベジェ曲線を複数のベジェ曲線に分割し、例え
ば分割された各ベジェ曲線に対応する各ベースラインを
順に結んでいくことにより、元のベジェ曲線の折れ線近
似を行う。
[0008] Here, several methods have been disclosed as a method of approximating a Bezier curve with a polygonal line. Particularly commonly known is de Castello (de Ca
This is a polygonal line approximation method that uses a Bezier curve division method developed by Stelijau). In this kind of broken line approximation method, a Bezier curve is divided into a plurality of Bezier curves, and, for example, each base line corresponding to each of the divided Bezier curves is connected in order, thereby performing a broken line approximation of the original Bezier curve.

【0009】この場合、分割された各ベジェ曲線と各々
に対応した各ベースラインとがほぼ一致する場合であれ
ば、各ベースラインは元のベジェ曲線を十分よく近似し
ていると言える。しかしながら、各ベースラインの中に
元のベジェ曲線との間に大きなギャップがあるようなも
のが含まれている場合、そのようなベースラインが構成
する折れ線は恐らく元のベジェ曲線とは程遠いものとな
ってしまう。一方、ベジェ曲線をあまりに細かく分割し
たのでは、近似が完了するまでの演算時間が莫大なもの
となってしまうという問題点がある。
In this case, if each of the divided Bezier curves substantially corresponds to each of the corresponding baselines, it can be said that each of the baselines sufficiently approximates the original Bezier curve. However, if each baseline contains a large gap between it and the original Bezier curve, then the polygonal line that such a baseline would make is probably far from the original Bezier curve. turn into. On the other hand, if the Bezier curve is divided too finely, there is a problem that the calculation time until the approximation is completed becomes enormous.

【0010】そこで、この種のベジェ曲線を分割して近
似折れ線を求める手法では、評価ステップと分割ステッ
プとからなる折れ線近似処理を再帰的に繰り返すという
手順が採られる。以下、その手順について図9(a)〜
(d)を参照しながら説明する。
Therefore, in this kind of technique of dividing a Bezier curve to obtain an approximate polygonal line, a procedure of recursively repeating a polygonal line approximation process including an evaluation step and a division step is adopted. Hereinafter, the procedure will be described with reference to FIGS.
This will be described with reference to FIG.

【0011】先ず、図9(a)に示すような制御点列P
0、P1、P2、P3によって定義されたベジェ曲線P
(t)が与えられているものとすると、何らかの評価関
数を利用して、このベジェ曲線P(t)と対応する制御
点列との誤差を求める。そして、この誤差が許容範囲内
に収まっているか否かを評価する。以上が評価ステップ
である。
First, a control point sequence P as shown in FIG.
Bezier curve P defined by 0 , P 1 , P 2 , P 3
Assuming that (t) is given, an error between this Bezier curve P (t) and the corresponding control point sequence is obtained using some evaluation function. Then, it is evaluated whether or not this error is within an allowable range. The above is the evaluation step.

【0012】次に、上記誤差が許容範囲を越えている場
合には、上記分割ステップを実行する。すなわち、上記
ド・カステリョの分割手法により、図9(b)に例示す
るように、ベジェ曲線P(t)上に分割点P4を求め
る。そして、元のベジェ曲線P(t)を、始点をP0
終点をP4とするベジェ曲線と、始点をP4、終点をP3
とするベジェ曲線とに2分割する。
Next, if the error exceeds the allowable range, the dividing step is executed. That is, the dividing method of the de Casteljau, as illustrated in FIG. 9 (b), determine the division points P 4 on the Bezier curve P (t). Then, the original Bezier curve P (t) is set to a starting point P 0 ,
A Bezier curve end point and P 4, the start point P 4, the end point P 3
And a Bezier curve as follows.

【0013】次に、2分割した各ベジェ曲線を処理対象
として上記ステップを再び実行する。すなわち、始点を
0とし、終点をP4とするベジェ曲線と当該ベジェ曲線
のベースラインP0、P4との間の誤差を求める。そし
て、この誤差が許容範囲を越えている場合には、図9
(c)に例示するように、分割点P5を求め、当該ベジ
ェ曲線を2分割する。同様に、始点をP4とし、終点を
3とするベジェ曲線と当該ベジェ曲線のベースライン
4、P3との間の誤差を求め、誤差が許容範囲を越えて
いる場合には、図9(d)に例示するように、分割点P
6を求め、当該ベジェ曲線を2分割する。
Next, the above steps are executed again for each of the Bezier curves divided into two. That is, the error between the Bezier curve whose start point is P 0 and the end point is P 4 and the base lines P 0 and P 4 of the Bezier curve is obtained. If this error exceeds the allowable range, the error shown in FIG.
As illustrated (c), the calculated division points P 5, two dividing the Bezier curves. Similarly, an error between the Bezier curve whose start point is P 4 and the end point is P 3 and the base lines P 4 and P 3 of the Bezier curve is obtained. As illustrated in FIG. 9 (d), the dividing point P
6 is obtained and the Bezier curve is divided into two.

【0014】このようにベジェ曲線とこれに対応するベ
ースラインとの間の評価ステップおよび誤差が許容範囲
外である場合のベジェ曲線の分割ステップという2ステ
ップからなる処理を再帰的に繰り返し、誤差が許容範囲
内に収まることを以って分割を終了する。そして、この
分割終了時点において、分割された各ベジェ曲線のベー
スラインを元のベジェ曲線の近似折れ線とする。
As described above, a process consisting of the two steps of the evaluation step between the Bezier curve and the corresponding baseline and the step of dividing the Bezier curve when the error is outside the allowable range is recursively repeated, and the error is reduced. The division is terminated when it falls within the allowable range. Then, at the end of the division, the base line of each divided Bezier curve is set as an approximate broken line of the original Bezier curve.

【0015】以上説明したベジェ関数の折れ線近似手法
において、評価関数は、ベジェ曲線の折れ線近似を終了
するか否かの判断基準として使用するものであるから、
これを如何に定めるかは極めて重要である。この場合、
t=0.5に対応するベジェ曲線上の点とベースライン
との間の距離を誤差として評価するという簡便法も考え
られるが、3次以上のベジェ曲線の場合、図8に例示す
るような制御点列とベースラインの組が凸閉包を成すよ
うな単純な形状のものだけではなく、図10や図11に
例示されるような凸閉包を成さない複雑に曲がりくねっ
たベジェ曲線も存在する。
In the above described Bezier function polygonal line approximation method, the evaluation function is used as a criterion for determining whether or not to terminate the Bezier curve polygonal line approximation.
How this is determined is extremely important. in this case,
A simple method of evaluating the distance between the point on the Bezier curve corresponding to t = 0.5 and the base line as an error is also conceivable. However, in the case of a Bezier curve of third order or higher, as shown in FIG. There is not only a simple shape in which a set of a control point sequence and a baseline forms a convex hull, but also a complicated and winding Bezier curve that does not form a convex hull as illustrated in FIGS. 10 and 11. .

【0016】このような複雑な形状を成すベジェ曲線上
の点の選択が不適切であると、ベジェ曲線とベースライ
ンとがかけ離れたものであるにもかかわらず、両者の誤
差が小さいと評価され、ベジェ曲線の分割を行うことな
く粗い近似で終わってしまう恐れがある。したがって、
ベジェ曲線の折れ線近似を行う場合には、このような不
都合が発生しないような適切な評価関数を使用し、近似
終了の判断をする必要がある。以下、従来用いられてき
た評価関数の例について説明する。
If the selection of a point on the Bezier curve having such a complicated shape is inappropriate, it is evaluated that the error between the Bezier curve and the baseline is small even though they are far apart from each other. However, there is a possibility that the rough approximation ends without dividing the Bezier curve. Therefore,
When performing a polygonal line approximation of a Bezier curve, it is necessary to determine the end of the approximation by using an appropriate evaluation function that does not cause such inconvenience. Hereinafter, an example of a conventionally used evaluation function will be described.

【0017】先ず、特開平4−223577号公報は、
図12に例示するように、制御点列P0、P1、P2、P3
により定義されたベジェ曲線P(t)が与えられた場合
に、ベジェ曲線P(t)の始点および終点を除く2つの
制御点P1およびP2の各々からベースラインP0、P3
での各距離d1およびd2の両方を誤差とし、その誤差に
基づき近似終了の評価を行う技術を開示している。
First, JP-A-4-223577 discloses that
As illustrated in FIG. 12, the control point sequence P 0 , P 1 , P 2 , P 3
Given a Bezier curve P (t) defined by the following formulas, each of the two control points P 1 and P 2 except for the starting point and the ending point of the Bezier curve P (t) extends from each of the control points P 1 and P 2 to the baselines P 0 and P 3 . A technique is disclosed in which both distances d 1 and d 2 are used as errors, and the approximation end is evaluated based on the errors.

【0018】上述のように、ベジェ曲線の形は制御点列
が成す折れ線の形にほぼ従うので、この公報に記載の技
術によれば、ベジェ曲線とベースラインとの誤差を適切
に評価することができると考えられる。
As described above, the shape of the Bezier curve substantially follows the shape of the polygonal line formed by the control point sequence. Therefore, according to the technique described in this publication, it is necessary to appropriately evaluate the error between the Bezier curve and the baseline. It is thought that it is possible.

【0019】また、特開平5−223577号公報は、
ベジェ曲線のベースラインから当該ベジェ曲線上の最遠
点までの距離を誤差とし、その誤差に基づいて近似終了
の評価を行う技術を開示している。ここで、ベジェ曲線
上においてベースラインからの最遠点を求めることは一
般に容易ではない。そこで、同公報では、以下に概説す
る複雑な処理により最遠点を求めている。
Japanese Patent Application Laid-Open No. Hei 5-223577 discloses that
A technique is disclosed in which the distance from the base line of a Bezier curve to the farthest point on the Bezier curve is used as an error, and the approximation end is evaluated based on the error. Here, it is generally not easy to find the farthest point from the baseline on the Bezier curve. Therefore, in this publication, the farthest point is obtained by a complicated process outlined below.

【0020】先ず、図13に例示するように、XY座標
系において制御点列P0、P1、P2、P3により定義され
たベジェ曲線P(t)が与えられたとする。この場合、
このベジェ曲線P(t)の始点がOに位置し、且つベー
スラインP0、P3がX軸と一致するように制御点列およ
びベジェ曲線P(t)を回転移動するのである。
First, as illustrated in FIG. 13, it is assumed that a Bezier curve P (t) defined by a control point sequence P 0 , P 1 , P 2 , P 3 in an XY coordinate system is given. in this case,
The control point sequence and the Bezier curve P (t) are rotated so that the starting point of the Bezier curve P (t) is located at O and the baselines P 0 and P 3 coincide with the X axis.

【0021】次に、この回転後のベジェ曲線P(t)に
おいてdY/dX=0となるときのtの値τを求める。
そして、このτに対応したベジェ曲線上の点P(τ)を
上記最遠点とし、そのY座標を誤差として求めるもので
ある。
Next, the value τ of t when dY / dX = 0 in the Bezier curve P (t) after the rotation is obtained.
Then, a point P (τ) on the Bezier curve corresponding to τ is set as the farthest point, and its Y coordinate is obtained as an error.

【0022】[0022]

【発明が解決しようとする課題】以上概観したように、
従来の曲線近似データ変換方式においては、評価ステッ
プと分割ステップからなる処理を再帰的に繰り返すこと
によって曲線の折れ線近似を行っている。このような再
帰的な処理により曲線の折れ線近似を行う場合には、不
適切な状態で近似終了してしまう不具合を避ける必要が
ある。そのためには、上記特開平4−223577号公
報や特開平5−223577号公報に開示されているよ
うな評価関数を使用し、ベジェ曲線と制御点列との誤差
を正確に求めることが要求される。
SUMMARY OF THE INVENTION As outlined above,
In the conventional curve approximation data conversion method, a broken line approximation of a curve is performed by recursively repeating a process including an evaluation step and a division step. When a curved line approximation is performed by such a recursive process, it is necessary to avoid a problem that the approximation is terminated in an inappropriate state. For that purpose, it is required to accurately obtain an error between the Bezier curve and the control point sequence using an evaluation function as disclosed in the above-mentioned Japanese Patent Application Laid-Open Nos. Hei 4-223577 and Hei 5-223577. You.

【0023】しかし、一方で、ベジェ曲線の折れ線近似
は、評価ステップおよび分割ステップの再帰的繰り返し
により行われるものであるが、折れ線近似が終了するま
での時間を短くするためには、評価ステップの実行時間
を極力短くすることが要求される。しかしながら、例え
ば上記特開平4−223577号公報に開示の技術で
は、評価の際に制御点列の2つの構成点からベースライ
ンまでの距離を求める演算をしなければならないので、
1回の評価当りの演算時間が長くなってしまう。また、
特開平5−223577号公報に開示の技術では、ベー
スラインからベジェ曲線上の最遠点までの1種類の距離
を求めればよいが、この最遠点を求めるための準備とし
て図形回転処理を行わなければならず、1回の評価当た
りの演算時間が長くなってしまう。
However, on the other hand, the polygonal line approximation of the Bezier curve is performed by recursive repetition of the evaluation step and the division step. In order to shorten the time until the polygonal line approximation is completed, the evaluation step is not performed. It is required to minimize the execution time. However, for example, in the technique disclosed in Japanese Patent Laid-Open No. 4-223577, it is necessary to perform an operation to obtain a distance from two constituent points of a control point sequence to a baseline at the time of evaluation.
The calculation time per evaluation becomes long. Also,
According to the technique disclosed in Japanese Patent Application Laid-Open No. Hei 5-223577, one type of distance from the base line to the farthest point on the Bezier curve may be obtained, but a figure rotation process is performed as preparation for obtaining this farthest point. And the calculation time per evaluation becomes long.

【0024】このように、従来の技術においては、曲線
の折れ線近似を正確に行おうとすると、そのために評価
ステップにおける演算時間が長くなってしまい、折れ線
近似が終了し描画が行われるまでの所要時間が長くなっ
てしまうという問題があった。
As described above, in the prior art, if the approximation of the broken line of the curve is to be performed accurately, the calculation time in the evaluation step becomes longer, and the time required until the approximation of the broken line is completed and the drawing is performed is performed. There was a problem that would be long.

【0025】そこで、本発明は、以上説明した事情に鑑
みてなされたものであり、従来よりも少ない演算量で正
確に曲線の折れ線近似を行い、その描画を行うことがで
きる曲線描画方法、曲線描画装置および曲線描画プログ
ラムを記録した記録媒体を提供することを目的とする。
Accordingly, the present invention has been made in view of the circumstances described above, and a curve drawing method and a curve drawing method capable of accurately performing a broken line approximation of a curve with a smaller amount of calculation than in the past and performing the drawing. It is an object of the present invention to provide a recording device that records a drawing device and a curve drawing program.

【0026】[0026]

【課題を解決するための手段】この課題を解決するため
に、本発明の曲線描画方法は、ベジェ曲線を折れ線近似
して描画する曲線描画方法であって、前記ベジェ曲線の
制御点列を取得し、取得された前記制御点列を用いて当
該ベジェ曲線を折れ線近似し、近似された折れ線データ
の描画を行う構成としたものである。より詳しくは、前
記折れ線近似は、再分割を行うか否かを評価し、再分割
が必要と評価された場合にのみ対象となる曲線を再分割
する。そして、前記折れ線近似は、再帰的に実行され
る。また、前記評価は、前記ベジェ曲線の弦長さ見積値
と、前記ベジェ曲線の弧長さ見積値とを評価基準として
利用する。
In order to solve this problem, a curve drawing method according to the present invention is a curve drawing method for drawing a Bezier curve by polygonal approximation, and obtains a control point sequence of the Bezier curve. Then, the Bezier curve is approximated by a broken line using the obtained control point sequence, and the approximated broken line data is drawn. More specifically, the polygonal line approximation evaluates whether or not subdivision is performed, and subdivides a target curve only when it is determined that subdivision is necessary. Then, the polygonal line approximation is performed recursively. The evaluation uses a chord length estimated value of the Bezier curve and an arc length estimated value of the Bezier curve as evaluation criteria.

【0027】これにより、描画対象のベジェ曲線を評価
ステップと分割ステップの再帰的繰り返しによって最適
な折れ線に近似する際に、当該ベジェ曲線の制御点列デ
ータを利用して、簡便に曲線の弦長さ見積値および弧長
さ見積値を計算する方法を確立することができ、それら
を利用することで評価ステップを計算負荷の小さい簡易
な演算で済ませることが可能になる。
Thus, when the Bezier curve to be drawn is approximated to an optimal polygonal line by recursive repetition of the evaluation step and the dividing step, the chord length of the curve is easily obtained by utilizing the control point sequence data of the Bezier curve. It is possible to establish a method of calculating the estimated value of the length and the estimated value of the arc length, and by using them, the evaluation step can be completed by a simple operation with a small calculation load.

【0028】[0028]

【発明の実施の形態】本発明の請求項1に記載の発明
は、ベジェ曲線を折れ線近似して描画する曲線描画方法
であって、前記ベジェ曲線の制御点列を取得し、取得さ
れた前記制御点列を用いて当該ベジェ曲線を折れ線近似
し、近似された折れ線データの描画を行うことを特徴と
する曲線描画方法であり、計算負荷の小さい簡易な演算
で高速に高品質な描画を行うことができるという作用を
有する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The invention according to claim 1 of the present invention is a curve drawing method for drawing a Bezier curve by polygonal line approximation, wherein the control point sequence of the Bezier curve is obtained, This is a curve drawing method characterized by approximating the Bezier curve with a polygonal line using a control point sequence and rendering the approximated polygonal line data, and performing high-speed, high-quality rendering with a simple operation with a small calculation load. It has the effect of being able to.

【0029】本発明の請求項2に記載の発明は、請求項
1記載の発明において、前記折れ線近似は、再分割を行
うか否かを評価し、再分割が必要と評価された場合にの
み対象となる曲線を再分割することを特徴とする曲線描
画方法であり、描画対象のベジェ曲線を評価ステップと
分割ステップの再帰的繰り返しによって最適な折れ線に
近似する際に、当該ベジェ曲線の制御点列データを利用
して、簡便に曲線の弦長さ見積値および弧長さ見積値を
計算する方法を確立し、それらを利用することで評価ス
テップを計算負荷の小さい簡易な演算で済ませることが
可能になるようにしており、高速に高品質な描画を行う
ことができるという作用を有する。
According to a second aspect of the present invention, in the first aspect of the present invention, the polygonal line approximation evaluates whether or not subdivision is performed, and only when it is evaluated that subdivision is necessary. A curve drawing method characterized by subdividing a target curve, and when a Bezier curve to be drawn is approximated to an optimal polygonal line by recursive repetition of an evaluation step and a division step, a control point of the Bezier curve is used. A method to easily calculate the estimated value of the chord length and the estimated arc length of the curve using the column data is established, and by using them, the evaluation step can be completed with a simple operation with a small calculation load. This makes it possible to perform high-speed drawing at high speed.

【0030】本発明の請求項3に記載の発明は、請求項
2記載の発明において、前記折れ線近似は、再帰的に実
行されることを特徴とする曲線描画方法であり、描画対
象のベジェ曲線を評価ステップと分割ステップの再帰的
繰り返しによって最適な折れ線に近似する際に、当該ベ
ジェ曲線の制御点列データを利用して、簡便に曲線の弦
長さ見積値および弧長さ見積値を計算する方法を確立
し、それらを利用することで評価ステップを計算負荷の
小さい簡易な演算で済ませることが可能になるようにし
ており、高速に高品質な描画を行うことができるという
作用を有する。
According to a third aspect of the present invention, there is provided the curve drawing method according to the second aspect, wherein the polygonal line approximation is performed recursively. When approximating the optimal polygonal line by recursive repetition of the evaluation step and the division step, the estimated chord length and the estimated arc length of the curve are easily calculated using the control point sequence data of the Bezier curve. By using these methods, the evaluation step can be completed by a simple calculation with a small calculation load by using these methods, and has the effect that high-quality drawing can be performed at high speed.

【0031】本発明の請求項4に記載の発明は、請求項
2記載の発明において、前記評価は、前記ベジェ曲線の
弦長さ見積値と、前記ベジェ曲線の弧長さ見積値とを評
価基準として利用することを特徴とする曲線描画方法で
あり、描画対象のベジェ曲線を評価ステップと分割ステ
ップの再帰的繰り返しによって最適な折れ線に近似する
際に、当該ベジェ曲線の制御点列データを利用して、簡
便に曲線の弦長さ見積値および弧長さ見積値を計算する
方法を確立し、それらを利用することで評価ステップを
計算負荷の小さい簡易な演算で済ませることが可能にな
るようにしており、高速に高品質な描画を行うことがで
きるという作用を有する。
According to a fourth aspect of the present invention, in the second aspect of the present invention, the evaluation includes evaluating an estimated chord length of the Bezier curve and an estimated arc length of the Bezier curve. This is a curve drawing method characterized by using it as a reference, and when the Bezier curve to be drawn is approximated to an optimal polygonal line by recursive repetition of an evaluation step and a division step, control point sequence data of the Bezier curve is used. Then, a method for easily calculating the estimated chord length and the estimated arc length of the curve is established, and by using them, the evaluation step can be completed with a simple operation with a small calculation load. And has the effect that high-quality drawing can be performed at high speed.

【0032】本発明の請求項5に記載の発明は、請求項
4記載の発明において、前記ベジェ曲線の弦長さ見積値
として、前記制御点列を順につないだ折れ線の長さを利
用することを特徴とする曲線描画方法であり、計算負荷
の小さい簡易な演算で済ませることが可能になるという
作用を有する。
According to a fifth aspect of the present invention, in the fourth aspect of the present invention, a length of a broken line connecting the control point sequence in order is used as the estimated chord length of the Bezier curve. And has an effect that it is possible to perform a simple calculation with a small calculation load.

【0033】本発明の請求項6に記載の発明は、請求項
4記載の発明において、前記ベジェ曲線の弧長さ見積値
として、前記制御点列の始点と終点を結ぶ直線の長さを
利用することを特徴とする曲線描画方法であり、計算負
荷の小さい簡易な演算で済ませることが可能になるとい
う作用を有する。
According to a sixth aspect of the present invention, in the fourth aspect of the present invention, a length of a straight line connecting a start point and an end point of the control point sequence is used as the estimated arc length of the Bezier curve. This is a curve drawing method characterized by performing a simple calculation with a small calculation load.

【0034】本発明の請求項7に記載の発明は、請求項
4記載の発明において、前記評価は、前記ベジェ曲線の
弦長さ見積値と前記ベジェ曲線の弧長さ見積値との演算
により得られる結果と、予め規定された許容誤差値との
比較によりなされることを特徴とする曲線描画方法であ
り、計算負荷の小さい簡易な演算で済ませることが可能
になるという作用を有する。
According to a seventh aspect of the present invention, in the fourth aspect, the evaluation is performed by calculating an estimated chord length of the Bezier curve and an estimated arc length of the Bezier curve. This is a curve drawing method characterized by being performed by comparing an obtained result with a predetermined allowable error value, and has an effect that a simple operation with a small calculation load can be performed.

【0035】本発明の請求項8に記載の発明は、請求項
7記載の発明において、前記演算は、差演算であること
を特徴とする曲線描画方法であり、計算負荷の小さい簡
易な演算で済ませることが可能になるという作用を有す
る。
According to an eighth aspect of the present invention, there is provided a curve drawing method according to the seventh aspect, wherein the operation is a difference operation. It has the effect of being able to complete.

【0036】本発明の請求項9に記載の発明は、ベジェ
曲線を折れ線近似して描画する曲線描画装置であって、
前記ベジェ曲線の制御点列を取得する入力手段と、取得
された前記制御点列を用いて当該ベジェ曲線を折れ線近
似する折れ線近似手段と、近似された折れ線データの描
画を行う出力手段とを有することを特徴とする曲線描画
装置であり、計算負荷の小さい簡易な演算で高速に高品
質な描画を行うことができるという作用を有する。
According to a ninth aspect of the present invention, there is provided a curve drawing device which draws a Bezier curve by approximating a polygonal line,
Input means for acquiring the control point sequence of the Bezier curve, polygonal line approximation means for polygonal approximation of the Bezier curve using the acquired control point sequence, and output means for drawing approximated polygonal line data This is a curve drawing device characterized by the fact that high-quality drawing can be performed at high speed with a simple calculation with a small calculation load.

【0037】本発明の請求項10に記載の発明は、請求
項9記載の発明において、前記折れ線近似手段は、さら
に再分割を行うか否かを評価する評価手段と、この評価
手段において再分割が必要と判断された場合にのみ再分
割を実行する再分割手段とを有することを特徴とする曲
線描画装置であり、描画対象のベジェ曲線を評価ステッ
プと分割ステップの再帰的繰り返しによって最適な折れ
線に近似する際に、当該ベジェ曲線の制御点列データを
利用して、簡便に曲線の弦長さ見積値および弧長さ見積
値を計算する方法を確立し、それらを利用することで評
価ステップを計算負荷の小さい簡易な演算で済ませるこ
とが可能になるようにしており、高速に高品質な描画を
行うことができるという作用を有する。
According to a tenth aspect of the present invention, in the ninth aspect of the present invention, the broken line approximating means further evaluates whether or not to perform the subdivision. And a subdivision means for performing subdivision only when it is determined that the Bezier curve to be rendered is an optimal polygonal line by recursively repeating an evaluation step and a division step. When approximating, the method of easily calculating the estimated chord length and the estimated arc length of the curve using the control point sequence data of the Bezier curve is established, and the evaluation step is performed by using them. Can be completed by a simple operation with a small calculation load, and has an effect that high-quality drawing can be performed at high speed.

【0038】本発明の請求項11に記載の発明は、請求
項9記載の発明において、前記折れ線近似手段は、再帰
的に実行されることを特徴とする曲線描画装置であり、
描画対象のベジェ曲線を評価ステップと分割ステップの
再帰的繰り返しによって最適な折れ線に近似する際に、
当該ベジェ曲線の制御点列データを利用して、簡便に曲
線の弦長さ見積値および弧長さ見積値を計算する方法を
確立し、それらを利用することで評価ステップを計算負
荷の小さい簡易な演算で済ませることが可能になるよう
にしており、高速に高品質な描画を行うことができると
いう作用を有する。
An eleventh aspect of the present invention is the curve drawing apparatus according to the ninth aspect, wherein the broken line approximating means is recursively executed.
When approximating the Bezier curve to be drawn to the optimal polygonal line by recursive repetition of the evaluation step and the division step,
A method for easily calculating the estimated chord length and the estimated arc length of the curve using the control point sequence data of the Bezier curve is established, and the evaluation step is simplified by using the calculated data. This makes it possible to perform high-quality drawing at high speed.

【0039】本発明の請求項12に記載の発明は、請求
項10記載の発明において、前記評価手段は、前記ベジ
ェ曲線の弦長さ見積値と、前記ベジェ曲線の弧長さ見積
値とを評価基準として利用することを特徴とする曲線描
画装置であり、描画対象のベジェ曲線を評価ステップと
分割ステップの再帰的繰り返しによって最適な折れ線に
近似する際に、当該ベジェ曲線の制御点列データを利用
して、簡便に曲線の弦長さ見積値および弧長さ見積値を
計算する方法を確立し、それらを利用することで評価ス
テップを計算負荷の小さい簡易な演算で済ませることが
可能になるようにしており、高速に高品質な描画を行う
ことができるという作用を有する。
According to a twelfth aspect of the present invention, in the tenth aspect of the present invention, the evaluation means calculates the chord length estimated value of the Bezier curve and the arc length estimated value of the Bezier curve. A curve drawing device characterized by using as an evaluation criterion.When approximating a Bezier curve to be drawn to an optimal polygonal line by recursive repetition of an evaluation step and a division step, control point sequence data of the Bezier curve is used. Using this method, a method for easily calculating the estimated chord length and the estimated arc length of a curve can be established, and by using these methods, the evaluation step can be completed with a simple operation with a small calculation load. This has the effect that high-quality drawing can be performed at high speed.

【0040】本発明の請求項13に記載の発明は、請求
項12記載の発明において、前記ベジェ曲線の弦長さ見
積値として、前記制御点列を順につないだ折れ線の長さ
を利用することを特徴とする曲線描画装置であり、計算
負荷の小さい簡易な演算で済ませることが可能になると
いう作用を有する。
According to a thirteenth aspect of the present invention, in the twelfth aspect, a length of a polygonal line connecting the control point sequence in order is used as the estimated chord length of the Bezier curve. And has an effect that it is possible to perform a simple calculation with a small calculation load.

【0041】本発明の請求項14に記載の発明は、請求
項12記載の発明において、前記ベジェ曲線の弧長さ見
積値として、前記制御点列の始点と終点を結ぶ直線の長
さを利用することを特徴とする曲線描画装置であり、計
算負荷の小さい簡易な演算で済ませることが可能になる
という作用を有する。
According to a fourteenth aspect of the present invention, in the twelfth aspect of the present invention, a length of a straight line connecting a start point and an end point of the control point sequence is used as the estimated arc length of the Bezier curve. This is a curve drawing device characterized by performing a simple operation with a small calculation load.

【0042】本発明の請求項15に記載の発明は、請求
項12記載の発明において、前記評価手段は、前記ベジ
ェ曲線の弦長さ見積値と前記ベジェ曲線の弧長さ見積値
との演算により得られる結果と、予め規定された許容誤
差値との比較により評価することを特徴とする曲線描画
装置であり、計算負荷の小さい簡易な演算で済ませるこ
とが可能になるという作用を有する。
According to a fifteenth aspect of the present invention, in the twelfth aspect of the invention, the evaluation means calculates a chord length estimated value of the Bezier curve and an arc length estimated value of the Bezier curve. This is a curve drawing device characterized by evaluating by comparing a result obtained by the above with a predetermined allowable error value, and has an effect that a simple calculation with a small calculation load can be performed.

【0043】本発明の請求項16に記載の発明は、請求
項15記載の発明において、前記演算は、差演算である
ことを特徴とする曲線描画装置であり、計算負荷の小さ
い簡易な演算で済ませることが可能になるという作用を
有する。
According to a sixteenth aspect of the present invention, in the fifteenth aspect, the operation is a difference operation, wherein the operation is a difference operation. It has the effect of being able to complete.

【0044】本発明の請求項17に記載の発明は、ベジ
ェ曲線を折れ線近似して出力する曲線描画プログラムを
記録した記録媒体において、前記曲線描画プログラム
が、前記ベジェ曲線の制御点列を取得する入力処理と、
取得された前記制御点列を用いて当該ベジェ曲線を折れ
線近似する折れ線近似処理と、近似された折れ線データ
の描画を行う出力処理とを具備することを特徴とする記
録媒体であり、記録媒体が配付されたユーザは描画プロ
グラムをパーソナルコンピュータ等にインストールして
当該曲線の描画方法を実施することができるという作用
を有する。
According to a seventeenth aspect of the present invention, in a recording medium recording a curve drawing program for outputting a Bezier curve by approximating the Bezier curve by a polygonal line, the curve drawing program acquires a control point sequence of the Bezier curve. Input processing,
A recording medium characterized by comprising a polygonal line approximation process for performing a polygonal line approximation on the Bezier curve using the obtained control point sequence, and an output process for drawing approximated polygonal line data. The distributed user has an effect that the drawing program can be installed in a personal computer or the like to execute the curve drawing method.

【0045】以下、本発明の実施の形態について、図1
から図7を用いて説明する。なお、これらの図面におい
て同一の部材には同一の符号を付しており、また、重複
した説明は省略されている。
Hereinafter, an embodiment of the present invention will be described with reference to FIG.
This will be described with reference to FIG. In these drawings, the same members are denoted by the same reference numerals, and duplicate description is omitted.

【0046】図1は、本発明の一実施の形態である曲線
描画装置の構成を示すブロック図である。この曲線描画
装置は、描画対象であるベジェ曲線を折れ線近似変換
し、その近似折れ線データを描画する機能を有するもの
であり、CPU101、ROM102、RAM103、
入力部104、出力部105およびこれらを相互に接続
するバス106により構成されている。
FIG. 1 is a block diagram showing the configuration of a curve drawing device according to an embodiment of the present invention. This curve drawing device has a function of performing a polygonal line approximation conversion of a Bezier curve to be rendered and rendering the approximated polygonal line data. The CPU 101, the ROM 102, the RAM 103,
It comprises an input unit 104, an output unit 105 and a bus 106 interconnecting them.

【0047】入力部104は、描画対象であるベジェ曲
線を特定する情報(以下、「曲線情報」という。)をホ
ストコンピュータ(図示省略)から通信路107を介し
て受け取る手段である。ここで曲線情報にはそのベジェ
曲線を定義する制御点列データが含まれている。このベ
ジェ曲線の折れ線近似を行う場合には、制御点列データ
が入力値として入力部104に与えられる。
The input unit 104 is a means for receiving information for specifying a Bezier curve to be drawn (hereinafter referred to as “curve information”) from a host computer (not shown) via a communication path 107. Here, the curve information includes control point sequence data defining the Bezier curve. When performing the polygonal line approximation of the Bezier curve, the control point sequence data is provided to the input unit 104 as an input value.

【0048】CPU101は、入力部104を介して制
御点列データを受け取り、ROM102に記憶された曲
線描画プログラムに従って、当該ベジェ曲線を折れ線近
似し、その近似折れ線を描画する処理を行う。
The CPU 101 receives the control point sequence data via the input unit 104, performs a line approximation on the Bezier curve according to a curve drawing program stored in the ROM 102, and performs a process of drawing the approximate line.

【0049】RAM103は、入力の制御点列データや
出力の近似折れ線データを表す情報の記憶手段として使
用される他、折れ線近似変換が行われる際にCPU10
1によって作業用に利用されるワークメモリとしても使
用される。
The RAM 103 is used as storage means for information representing input control point sequence data and output approximate polygonal line data, and is used by the CPU 10 when performing polygonal line approximation conversion.
1 is also used as a work memory used for work.

【0050】出力部105は、CPU101による制御
の下、近似折れ線データの描画を行う手段であって、当
該近似折れ線データから描画用のビットマップデータを
作成し、可視情報として出力する。例えば、かかる可視
情報を記録紙に印刷する電子写真方式、インクジェット
方式等のプリンタ、あるいはCRT等のディスプレイ装
置がこの出力部105として使用される。
The output unit 105 is a means for drawing approximate polygonal line data under the control of the CPU 101. The output unit 105 creates bitmap data for rendering from the approximate polygonal line data and outputs it as visible information. For example, an electrophotographic printer, an inkjet printer, or a display device such as a CRT that prints such visible information on recording paper is used as the output unit 105.

【0051】次に本発明の実施の形態の動作について説
明する。
Next, the operation of the embodiment of the present invention will be described.

【0052】図2は、CPU101により実行される曲
線描画処理の内容を示すものである。この図2に示すよ
うに、本実施の形態における曲線描画処理は、曲線デー
タ入力処理(ステップS1)、折れ線近似処理(ステッ
プS2)および出力処理(ステップS3)から成り立っ
ている。
FIG. 2 shows the contents of the curve drawing process executed by the CPU 101. As shown in FIG. 2, the curve drawing process according to the present embodiment includes a curve data input process (step S1), a broken line approximation process (step S2), and an output process (step S3).

【0053】先ず、曲線データ入力処理(ステップS
1)では、描画対象のベジェ曲線に対応する曲線情報を
外部から取り込み、その中より制御点列データを抽出し
て、制御点列データファイルF1としてRAM103に
一時保存する。ここで、制御点列データは、当該ベジェ
曲線を表現するために必要な制御点の位置座標を含んで
いる。
First, the curve data input processing (step S
In 1), curve information corresponding to a Bezier curve to be drawn is fetched from outside, control point sequence data is extracted therefrom, and temporarily stored in the RAM 103 as a control point sequence data file F1. Here, the control point sequence data includes position coordinates of control points necessary for expressing the Bezier curve.

【0054】次に、折れ線近似処理(ステップS2)で
は、RAM103に保存されている上記制御点列データ
ファイルF1を読み出し、折れ線データに近似して、結
果の折れ線データを近似折れ線データファイルF2とし
てRAM103内に一時保存する。
Next, in the polygonal line approximation processing (step S2), the control point sequence data file F1 stored in the RAM 103 is read out, approximated to the polygonal line data, and the resulting polygonal line data is set as an approximate polygonal line data file F2. To save temporarily.

【0055】次に、出力処理(ステップS3)では、R
AM103に保存されている近似折れ線データファイル
F2を読み出して、これを基に描画用のビットマップデ
ータを作成し、可視情報として描画する。以上がCPU
101により実行される曲線描画処理の概要である。
Next, in the output processing (step S3), R
The approximate broken line data file F2 stored in the AM 103 is read, and bitmap data for drawing is created based on the read data, and drawn as visible information. The above is the CPU
3 is an outline of a curve drawing process executed by the CPU 101;

【0056】図3は、上記折れ線近似処理(ステップS
2)の詳細な処理内容を示すものである。この図3に示
すように、本実施の形態では、制御点列データファイル
F1により特定されるベジェ曲線を予め2分割し、第1
および第2のベジェ曲線とする(ステップS21)。
FIG. 3 shows the broken line approximation processing (step S
This shows the detailed processing contents of 2). As shown in FIG. 3, in the present embodiment, the Bezier curve specified by the control point sequence data file F1 is divided into two in advance, and the first
And a second Bezier curve (step S21).

【0057】図4は、このステップS21におけるベジ
ェ曲線の分割手法を説明するフローチャートである。以
下、図5に例示する制御点列P0、P1、P2、P3により
定義された3次のベジェ曲線P(t)の2分割を行う場
合を例に、本実施の形態におけるベジェ曲線の分割方法
について説明する。
FIG. 4 is a flowchart for explaining the method of dividing the Bezier curve in step S21. Hereinafter, the Bezier according to the present embodiment will be described with an example in which a third-order Bezier curve P (t) defined by control point sequences P 0 , P 1 , P 2 , and P 3 illustrated in FIG. A method of dividing a curve will be described.

【0058】先ず、ステップS101では、制御点P0
〜P3の各位置ベクトルを用いて下記の式(2)〜
(4)の演算を行う。
First, at step S101, the control point P 0
~P following equation (2) using the position vector of the 3-
The calculation of (4) is performed.

【0059】L1=(P0+P1)/2・・・(2) H=(P1+P2)/2・・・(3) R2=(P2+P3)/2・・・(4) この演算により、制御点列P0、P1、P2、P3における
ベースラインP0、P3を除く3辺、すなわち、図5に示
す辺P0、P1,P1、P2およびP2、P3の各中点L1
HおよびR2の位置ベクトルが得られる。
L 1 = (P 0 + P 1 ) / 2 (2) H = (P 1 + P 2 ) / 2 (3) R 2 = (P 2 + P 3 ) / 2. (4) By this calculation, three sides of the control point sequence P 0 , P 1 , P 2 , P 3 except for the base lines P 0 , P 3 , that is, the sides P 0 , P 1 , P 1 , P 2 and each midpoint L 1 of P 2 and P 3 ,
The position vectors of H and R 2 are obtained.

【0060】次に、ステップS102では、ステップS
101において得られた各中点L1、HおよびR2の位置
ベクトルを用いて以下の演算を行い、中点L1およびH
を結ぶ辺の中点L2並びに中点HおよびR2を結ぶ辺の中
点R1の各位置ベクトルを求める。
Next, in step S102, step S
The following calculation is performed using the position vectors of the respective midpoints L 1 , H and R 2 obtained in step 101 to obtain the midpoints L 1 and H
Obtain each position vector of the center point R 1 of the side connecting the midpoints of the sides L 2 and the middle point H and R 2 connecting.

【0061】L2=(L1+H)/2・・・(5) R1=(H+R2)/2・・・(6) 次に、ステップS103では、ステップS102におい
て得られた各中点L2およびR1を結ぶ辺の中点L3の位
置ベクトルを以下の演算により求める。
L 2 = (L 1 + H) / 2 (5) R 1 = (H + R 2 ) / 2 (6) Next, in step S103, each midpoint obtained in step S102 is obtained. the position vectors of L 2 and the side of the midpoint L 3 connecting the R 1 obtained by calculation below.

【0062】L3=(L2+R1)/2・・・(7) ここで、上記中点L3は、ベジェ曲線P(t)上のt=
0.5に対応した点と正確に一致する。そこで、この中
点L3を分割点とし、元のベジェ曲線P(t)を分割点
3の左側のベジェ曲線LEFT(t)と右側のベジェ
曲線RIGHT(t)に分割する。
L 3 = (L 2 + R 1 ) / 2 (7) Here, the above-mentioned middle point L 3 is represented by t = t on the Bezier curve P (t).
It exactly matches the point corresponding to 0.5. Therefore, the middle point L 3 and division points, to divide the original Bezier curve P (t) on the left side of the Bezier curve LEFT division point L 3 (t) and the right side of the Bezier curve RIGHT (t).

【0063】次に、ステップS104では、上記分割に
より得られたベジェ曲線LEFT(t)およびベジェ曲
線RIGHT(t)の各制御点列データを作成する。こ
こで、ベジェ曲線LEFT(t)の制御点列データは、
当該ベジェ曲線の制御点L0、L1、L2およびL3の各位
置ベクトルにより構成されている。なお、制御点L
0は、元のベジェ曲線の制御点P0に対応している。した
がって、制御点P0の位置ベクトルがそのまま制御点L0
の位置ベクトルとして使用される。
Next, in step S104, control point sequence data of the Bezier curve LEFT (t) and the Bezier curve RIGHT (t) obtained by the above division are created. Here, the control point sequence data of the Bezier curve LEFT (t) is
The Bezier curve is constituted by position vectors of control points L 0 , L 1 , L 2 and L 3 . Note that the control point L
0 corresponds to the control point P 0 of the original Bezier curve. Therefore, the position vector of the control point P 0 is directly used as the control point L 0.
Used as the position vector of

【0064】また、ベジェ曲線RIGHT(t)の制御
点データは、当該ベジェ曲線の制御点R0、R1、R2
よびR3の各位置ベクトルにより構成されている。な
お、制御点R0は、ベジェ曲線LEFT(t)の制御点
3と一致している。したがって、制御点L3の位置ベク
トルがそのまま制御点R0の位置ベクトルとして使用さ
れる。また、制御点R3は、元のベジェ曲線の制御点P3
に対応している。したがって、制御点P3の位置ベクト
ルがそのまま制御点R3の位置ベクトルとして使用され
る。
The control point data of the Bezier curve RIGHT (t) is constituted by the position vectors of the control points R 0 , R 1 , R 2 and R 3 of the Bezier curve. Note that the control point R 0 coincides with the control point L 3 of the Bezier curve LEFT (t). Therefore, the position vector of a control point L 3 is directly used as a position vector of a control point R 0. The control point R 3 is the control point P 3 of the original Bezier curve.
It corresponds to. Therefore, the position vector of a control point P 3 is directly used as a position vector of a control point R 3.

【0065】このように本分割手法によれば、元のベジ
ェ曲線の各制御点の位置ベクトルのみを用いた演算を行
うことにより、当該ベジェ曲線を2分割し、分割した各
ベジェ曲線について各々の制御点の位置ベクトルからな
る制御点列データを求めることができる。以上が図3の
ステップS21において行われるベジェ曲線の2分割処
理の詳細である。
As described above, according to the present division method, by performing an operation using only the position vector of each control point of the original Bezier curve, the Bezier curve is divided into two, and each of the divided Bezier curves is Control point sequence data composed of control point position vectors can be obtained. The above is the details of the Bezier curve splitting process performed in step S21 of FIG.

【0066】このようにして描画対象であるベジェ曲線
の2分割処理が終了すると、ステップS21では、分割
により得られた第1のベジェ曲線の各制御点の位置ベク
トルからなる第1の制御点列データF11と、第2のベ
ジェ曲線の各制御点の位置ベクトルからなる第2の制御
点列データF12とをRAM103に保存する。
When the two-division processing of the Bezier curve to be drawn is completed in this way, in step S21, a first control point sequence consisting of the position vectors of the control points of the first Bezier curve obtained by the division is obtained. Data F11 and second control point sequence data F12 including the position vector of each control point of the second Bezier curve are stored in the RAM 103.

【0067】なお、上記ステップS21では、2分割を
行っているが、これもあくまでも例示であり、3以上の
分割を行うことを妨げるものではない。上記ステップS
21において3以上のn個のベジェ曲線への分割を行う
場合には、第1〜第nの各ベジェ曲線が、次に説明する
ステップS22の処理対象となる。
In step S21, the division into two is performed. However, this is merely an example, and does not prevent the division into three or more. Step S above
When dividing into three or more n Bezier curves at 21, each of the first to n-th Bezier curves is a processing target of step S22 described below.

【0068】次に、ステップS22では、ステップS2
1により得られた第1のベジェ曲線、および第2のベジ
ェ曲線の各々に対して、折れ線近似処理を実行する。以
下、図6に示すフローチャートを参照し、この折れ線近
似処理内容について説明する。
Next, in step S22, step S2
For each of the first Bezier curve and the second Bezier curve obtained in step 1, a polygonal line approximation process is performed. Hereinafter, the content of the broken line approximation processing will be described with reference to the flowchart shown in FIG.

【0069】先ず、ステップS201では、折れ線近似
対象である曲線と、当該曲線を近似した近似折れ線との
誤差を所定の評価関数により評価する。なお、この評価
関数の具体例については後述する。
First, in step S201, an error between a curve to be approximated by a polygonal line and an approximate polygonal line approximating the curve is evaluated by a predetermined evaluation function. A specific example of the evaluation function will be described later.

【0070】次に、ステップS202では、ステップS
201において求めた誤差が許容範囲内か否かを評価す
る。ここで、誤差が許容範囲を越えている場合には、以
下説明するステップS203〜S205を実行する。
Next, in step S202, step S202
It is evaluated whether the error obtained in 201 is within an allowable range. Here, when the error exceeds the allowable range, steps S203 to S205 described below are executed.

【0071】先ず、ステップS203では折れ線近似の
対象であるベジェ曲線を2個のベジェ曲線LEFT
(t)およびRIGHT(t)に分割する。このベジェ
曲線の2分割は、既に図4および図5を参照して説明し
た分割手法により行うことができる。
First, in step S203, the Bezier curve to be subjected to the polygonal line approximation is transformed into two Bezier curves LEFT.
(T) and RIGHT (t). The division of the Bezier curve into two can be performed by the division method already described with reference to FIGS. 4 and 5.

【0072】次に、ステップS204では、ステップS
203において分割された一方のベジェ曲線LEFT
(t)を折れ線近似の対象として、この図6に示すルー
チンを再帰的に呼び出す。
Next, in step S204, step S204
One Bezier curve LEFT divided at 203
The routine shown in FIG. 6 is called recursively with (t) as the target of the polygonal line approximation.

【0073】次に、ステップS205では、ステップS
203において分割された他方のベジェ曲線RIGHT
(t)を折れ線近似の対象として、この図6に示すルー
チンを再帰的に呼び出す。
Next, in step S205, step S205
The other Bezier curve RIGHT divided at 203
The routine shown in FIG. 6 is called recursively with (t) as the target of the polygonal line approximation.

【0074】このような再帰呼び出しは、呼び出された
後のステップS201の評価処理において、折れ線近似
の対象であるベジェ曲線と当該ベジェ曲線の制御点列と
の間の誤差が許容範囲内であると評価されるまで繰り返
すこととなる。
Such a recursive call is performed when the error between the Bezier curve to be broken-line approximation and the control point sequence of the Bezier curve is within an allowable range in the evaluation processing in step S201 after being called. Repeat until evaluated.

【0075】再帰呼び出しの繰り返しの後、上記誤差が
許容範囲内になった場合には、ステップS202からス
テップS206へと進む。そして、分割の繰り返しの結
果、最終的に得られた各ベジェ曲線のベースラインを順
につないでいった折れ線のデータを近似折れ線データフ
ァイルF2としてRAM103内に保存し、出力処理
(図2のステップS3)に引き渡す。以上がステップS
22における折れ線近似処理の詳細である。
If the error falls within the allowable range after the recursive call is repeated, the process proceeds from step S202 to step S206. Then, as a result of the repetition of the division, the data of the polygonal lines obtained by sequentially connecting the base lines of the Bezier curves finally obtained is stored in the RAM 103 as the approximate polygonal data file F2, and the output processing (step S3 in FIG. 2) ). The above is Step S
22 is a detail of the polygonal line approximation processing in FIG.

【0076】既に説明したように、本実施の形態では、
折れ線近似処理の対象は、元の描画対象であるベジェ曲
線を2分割した第1および第2のベジェ曲線であるた
め、図7および図8に例示するような単純な形状をなし
ている。このため、以上の具体例において説明するよう
な簡単な評価関数を用いたとしても、ベジェ曲線と近似
折れ線との間の誤差を適切に求めることができる。した
がって、本実施の形態によれば、少ない演算量で、正確
に曲線の折れ線近似を行い、その描画を行うことができ
る。
As described above, in the present embodiment,
Since the target of the polygonal line approximation processing is the first and second Bezier curves obtained by dividing the Bezier curve as the original drawing target into two, it has a simple shape as illustrated in FIGS. 7 and 8. For this reason, even if a simple evaluation function as described in the above specific example is used, the error between the Bezier curve and the approximate broken line can be appropriately obtained. Therefore, according to the present embodiment, it is possible to accurately perform a polygonal line approximation of a curve with a small amount of calculation and to perform drawing.

【0077】次に、図9(a)〜(d)を参照し、評価
関数の具体例について説明する。先ず、図7(a)に例
示するように、制御点列P0、P1、P2、P3により定義
された3次のベジェ曲線P(t)が折れ線近似の対象と
して与えられているものとする。各制御点の座標をP0
(X0,Y0)、P1(X1,Y1)、P2(X2,Y2)、P
3(X3,Y3)とおくと、制御点列を順につないだ折れ
線の長さをα、制御点列始終点を結ぶ線分(ベースライ
ン)長さをβ、sqrt()を平方根演算として、 α=Σ[sqrt{(XI+1−XI2+(YI+1−YI2}] ・・・(8) (Iは0から3までの整数) β=sqrt{(X3−X02+(Y3−Y02}・・・(9) で与えられる。
Next, a specific example of the evaluation function will be described with reference to FIGS. 9 (a) to 9 (d). First, as exemplified in FIG. 7A, a cubic Bezier curve P (t) defined by control point sequences P 0 , P 1 , P 2 , and P 3 is given as an object of the polygonal line approximation. Shall be. Set the coordinates of each control point to P 0
(X 0 , Y 0 ), P 1 (X 1 , Y 1 ), P 2 (X 2 , Y 2 ), P
3 (X 3 , Y 3 ), the length of the polygonal line connecting the control point sequence in order is α, the length of the line segment (base line) connecting the start and end points of the control point sequence is β, and the square root operation of sqrt () as, α = Σ [sqrt {( X I + 1-X I) 2 + (Y I + 1-Y I) 2}] ··· (8) ( integer I is from 0 to 3) β = sqrt {( X 3 −X 0 ) 2 + (Y 3 −Y 0 ) 2 } (9)

【0078】図7(b)〜(d)は、再分割が繰り返さ
れた場合の分割された各ベジェ曲線に対応する制御点列
およびベースラインの変化を表したものである。これよ
り分かるように、分割を繰り返すごとに両者の形状は近
づいていくことが分かる。これはベジェ曲線の持つ基本
的な数学的性質に基づいており、分割数→∞のとき、
α,β→「ベジェ曲線の実際の曲線長さ」となるので、
評価ステップにおいてαとβの差を評価関数として利用
することで、簡便に再分割を行うか否かの判定を行うこ
とができる。以上が評価関数の具体例についての説明で
ある。
FIGS. 7B to 7D show changes in the control point sequence and the base line corresponding to each of the divided Bezier curves when the re-division is repeated. As can be seen, each time the division is repeated, the shapes of the two approaches each other. This is based on the basic mathematical property of the Bezier curve.
α, β → “actual curve length of Bezier curve”
By using the difference between α and β as an evaluation function in the evaluation step, it is possible to easily determine whether or not to perform subdivision. The above is the description of the specific example of the evaluation function.

【0079】なお、以上説明した本実施の形態はあくま
でも本発明の例示である。本発明はその趣旨を逸脱しな
い範囲で上記実施の形態に様々な変形を加えて実施する
ことができる。例えば以下のような他の実施の形態が考
えられる。
The above-described embodiment is merely an example of the present invention. The present invention can be implemented by adding various modifications to the above embodiment without departing from the spirit thereof. For example, the following other embodiments can be considered.

【0080】なお、上記の実施の形態では、ベジェ曲線
を例として、ド・カステリョの分割手法により分割を行
ったが、本発明の実施に当っては、これに限らず、他の
分割手法を用いてもよい。
In the above embodiment, the division is performed by the de Castello division method using the Bezier curve as an example. However, the present invention is not limited to this, and other division methods may be used. May be used.

【0081】また、上記の実施の形態では、3次のベジ
ェ曲線を描画対象として挙げたが、4次以上のベジェ曲
線の描画に本発明を適用してもよい。例えば、分割手法
としてド・カステリョの分割手法を用いれば、これは一
般次元(3次以上)に対して定義されている手法なので
容易に拡張できる。
In the above embodiment, a cubic Bezier curve is described as an object to be drawn. However, the present invention may be applied to drawing a quaternary or higher-order Bezier curve. For example, if De Castello's division method is used as the division method, since this method is defined for general dimensions (third or higher), it can be easily extended.

【0082】さらに、上記の実施の形態では、折れ線近
似が終了した時点で、最終的に分割された各ベジェ曲線
のベースラインを近似折れ線として出力するようにした
が、各ベジェ曲線の制御点列の外郭辺を近似折れ線とし
て出力するようにしてもよい。
Further, in the above embodiment, when the approximation of the polygonal line is completed, the base line of each finally divided Bezier curve is output as an approximate polygonal line. May be output as an approximate polygonal line.

【0083】さらに、上記の実施の形態における描画プ
ログラムをFD(フロッピー(登録商標)ディスク)等
の記録媒体に記録してユーザに配付し、ユーザが描画プ
ログラムをパーソナルコンピュータ等にインストール
し、本発明に係る曲線の描画方法を実施するようにして
もよい。
Further, the drawing program in the above embodiment is recorded on a recording medium such as an FD (Floppy (registered trademark) disk) and distributed to the user, and the user installs the drawing program on a personal computer or the like, and May be implemented.

【0084】そして、上記の実施の形態のブロック図で
は、CPU、ROM、RAM、入力部、出力部が同一の
装置に搭載されているように構成されているが、これら
は、異なる複数の装置上に存在していてもよい。例え
ば、現在ではパーソナルコンピュータの能力が高いの
で、折れ線近似処理の演算に使用されるCPU、RO
M、RAMはパーソナルコンピュータ上のものを使用
し、描画を行う出力部のみ別の装置として、通信路を介
してパーソナルコンピュータと出力部を結ぶような構成
を採ることも妨げない。
In the block diagram of the above embodiment, the CPU, the ROM, the RAM, the input unit, and the output unit are configured to be mounted on the same device. May be present above. For example, since a personal computer has a high capability at present, the CPU and RO used for the calculation of the polygonal line approximation processing are used.
The M and RAM are those on a personal computer, and the output unit for performing drawing is a separate device, which does not prevent a configuration in which the personal computer and the output unit are connected via a communication path.

【0085】[0085]

【発明の効果】以上のように、本発明によれば、描画対
象のベジェ曲線を評価ステップと分割ステップの再帰的
繰り返しによって最適な折れ線に近似する際に、当該ベ
ジェ曲線の制御点列データを利用して、簡便に曲線の弦
長さ見積値および弧長さ見積値を計算する方法を確立
し、それらを利用することで評価ステップを計算負荷の
小さい簡易な演算で済ませることが可能になるように構
成したので、高速に高品質な描画を行うことができると
いう有効な効果が得られる。
As described above, according to the present invention, when a Bezier curve to be drawn is approximated to an optimal polygonal line by recursive repetition of the evaluation step and the dividing step, the control point sequence data of the Bezier curve is obtained. Using this method, a method for easily calculating the estimated chord length and the estimated arc length of a curve can be established, and by using these methods, the evaluation step can be completed with a simple operation with a small calculation load. With such a configuration, an effective effect that high-quality drawing can be performed at high speed can be obtained.

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

【図1】本発明の一実施の形態における曲線描画装置の
構成を表すブロック図
FIG. 1 is a block diagram illustrating a configuration of a curve drawing device according to an embodiment of the present invention.

【図2】本発明の一実施の形態における曲線描画プログ
ラムの処理内容を示すフローチャート
FIG. 2 is a flowchart showing processing contents of a curve drawing program according to one embodiment of the present invention;

【図3】本発明の一実施の形態における折れ線近似処理
の処理内容を示すフローチャート
FIG. 3 is a flowchart showing processing contents of a polygonal line approximation processing according to an embodiment of the present invention;

【図4】本発明の一実施の形態におけるベジェ曲線の分
割手法を示すフローチャート
FIG. 4 is a flowchart illustrating a method of dividing a Bezier curve according to an embodiment of the present invention.

【図5】本発明の一実施の形態におけるベジェ曲線の分
割手法を示す図
FIG. 5 is a diagram showing a method of dividing a Bezier curve according to an embodiment of the present invention.

【図6】本発明の一実施の形態における分割後のベジェ
曲線の折れ線近似処理の処理内容を示すフローチャート
FIG. 6 is a flowchart showing processing contents of a broken line approximation processing of a Bezier curve after division according to an embodiment of the present invention;

【図7】本発明の一実施の形態における評価関数を示す
FIG. 7 is a diagram showing an evaluation function according to an embodiment of the present invention.

【図8】3次のベジェ曲線の例を示す図FIG. 8 is a diagram showing an example of a cubic Bezier curve.

【図9】ド・カステリョの分割手法を用いたベジェ曲線
の折れ線近似方法を説明する図
FIG. 9 is a view for explaining a polygonal line approximation method for a Bezier curve using a de Castello division method;

【図10】3次ベジェ曲線の他の例を示す図FIG. 10 is a diagram showing another example of a cubic Bezier curve.

【図11】3次ベジェ曲線の他の例を示す図FIG. 11 is a diagram showing another example of a cubic Bezier curve.

【図12】従来のベジェ曲線の再分割評価ステップで使
用された評価関数例を示す図
FIG. 12 is a diagram showing an example of an evaluation function used in a conventional Bezier curve subdivision evaluation step.

【図13】従来のベジェ曲線の再分割評価ステップで使
用された評価関数例を示す図
FIG. 13 is a diagram illustrating an example of an evaluation function used in a conventional Bezier curve subdivision evaluation step.

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

101 CPU 102 ROM 103 RAM 104 入力部 105 出力部 106 バス 101 CPU 102 ROM 103 RAM 104 Input unit 105 Output unit 106 Bus

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】ベジェ曲線を折れ線近似して描画する曲線
描画方法であって、 前記ベジェ曲線の制御点列を取得し、 取得された前記制御点列を用いて当該ベジェ曲線を折れ
線近似し、 近似された折れ線データの描画を行うことを特徴とする
曲線描画方法。
1. A curve drawing method for drawing a Bezier curve by a polygonal line approximation, obtaining a control point sequence of the Bezier curve, using the acquired control point sequence to perform a polygonal line approximation on the Bezier curve, A curve drawing method characterized by drawing approximated line data.
【請求項2】前記折れ線近似は、再分割を行うか否かを
評価し、再分割が必要と評価された場合にのみ対象とな
る曲線を再分割することを特徴とする請求項1に記載の
曲線描画方法。
2. The method according to claim 1, wherein the polygonal line approximation evaluates whether or not subdivision is performed, and subdivides a target curve only when it is determined that subdivision is necessary. Curve drawing method.
【請求項3】前記折れ線近似は、再帰的に実行されるこ
とを特徴とする請求項2に記載の曲線描画方法。
3. The curve drawing method according to claim 2, wherein the polygonal line approximation is performed recursively.
【請求項4】前記評価は、前記ベジェ曲線の弦長さ見積
値と、前記ベジェ曲線の弧長さ見積値とを評価基準とし
て利用することを特徴とする請求項2に記載の曲線描画
方法。
4. The curve drawing method according to claim 2, wherein the evaluation uses an estimated value of a chord length of the Bezier curve and an estimated value of an arc length of the Bezier curve as evaluation criteria. .
【請求項5】前記ベジェ曲線の弦長さ見積値として、前
記制御点列を順につないだ折れ線の長さを利用すること
を特徴とする請求項4に記載の曲線描画方法。
5. The curve drawing method according to claim 4, wherein a length of a polygonal line connecting the control point sequence in order is used as the estimated chord length of the Bezier curve.
【請求項6】前記ベジェ曲線の弧長さ見積値として、前
記制御点列の始点と終点を結ぶ直線の長さを利用するこ
とを特徴とする請求項4に記載の曲線描画方法。
6. The curve drawing method according to claim 4, wherein a length of a straight line connecting a start point and an end point of the control point sequence is used as the estimated arc length of the Bezier curve.
【請求項7】前記評価は、前記ベジェ曲線の弦長さ見積
値と前記ベジェ曲線の弧長さ見積値との演算により得ら
れる結果と、予め規定された許容誤差値との比較により
なされることを特徴とする請求項4に記載の曲線描画方
法。
7. The evaluation is performed by comparing a result obtained by calculating an estimated value of the chord length of the Bezier curve and an estimated value of the arc length of the Bezier curve with a predetermined allowable error value. The curve drawing method according to claim 4, wherein:
【請求項8】前記演算は、差演算であることを特徴とす
る請求項7に記載の曲線描画方法。
8. The method according to claim 7, wherein the calculation is a difference calculation.
【請求項9】ベジェ曲線を折れ線近似して描画する曲線
描画装置であって、 前記ベジェ曲線の制御点列を取得する入力手段と、 取得された前記制御点列を用いて当該ベジェ曲線を折れ
線近似する折れ線近似手段と、 近似された折れ線データの描画を行う出力手段とを有す
ることを特徴とする曲線描画装置。
9. A curve drawing device which draws a Bezier curve by approximating the Bezier curve by a polygonal line, comprising: input means for acquiring a control point sequence of the Bezier curve; and a polygonal line drawing the Bezier curve using the acquired control point sequence. A curve drawing device, comprising: a polygonal line approximation unit for approximation; and an output unit for rendering approximated polygonal line data.
【請求項10】前記折れ線近似手段は、さらに再分割を
行うか否かを評価する評価手段と、この評価手段におい
て再分割が必要と判断された場合にのみ再分割を実行す
る再分割手段とを有することを特徴とする請求項9に記
載の曲線描画装置。
10. A polygonal line approximation means for evaluating whether or not to perform further subdivision, and a subdivision means for executing subdivision only when the evaluation means determines that subdivision is necessary. The curve drawing device according to claim 9, comprising:
【請求項11】前記折れ線近似手段は、再帰的に実行さ
れることを特徴とする請求項9に記載の曲線描画装置。
11. The curve drawing device according to claim 9, wherein said polygonal line approximating means is executed recursively.
【請求項12】前記評価手段は、前記ベジェ曲線の弦長
さ見積値と、前記ベジェ曲線の弧長さ見積値とを評価基
準として利用することを特徴とする請求項10に記載の
曲線描画装置。
12. The curve drawing according to claim 10, wherein said evaluation means uses a chord length estimated value of said Bezier curve and an arc length estimated value of said Bezier curve as evaluation criteria. apparatus.
【請求項13】前記ベジェ曲線の弦長さ見積値として、
前記制御点列を順につないだ折れ線の長さを利用するこ
とを特徴とする請求項12に記載の曲線描画装置。
13. The estimated chord length of the Bezier curve:
13. The curve drawing device according to claim 12, wherein a length of a polygonal line connecting the control point sequence in order is used.
【請求項14】前記ベジェ曲線の弧長さ見積値として、
前記制御点列の始点と終点を結ぶ直線の長さを利用する
ことを特徴とする請求項12に記載の曲線描画装置。
14. An arc length estimation value of the Bezier curve,
13. The curve drawing device according to claim 12, wherein a length of a straight line connecting a start point and an end point of the control point sequence is used.
【請求項15】前記評価手段は、前記ベジェ曲線の弦長
さ見積値と前記ベジェ曲線の弧長さ見積値との演算によ
り得られる結果と、予め規定された許容誤差値との比較
により評価することを特徴とする請求項12に記載の曲
線描画装置。
15. The evaluation means evaluates by comparing the result obtained by calculating the estimated chord length of the Bezier curve and the estimated arc length of the Bezier curve with a predetermined allowable error value. The curve drawing device according to claim 12, wherein the curve drawing is performed.
【請求項16】前記演算は、差演算であることを特徴と
する請求項15に記載の曲線描画装置。
16. The curve drawing device according to claim 15, wherein the calculation is a difference calculation.
【請求項17】ベジェ曲線を折れ線近似して出力する曲
線描画プログラムを記録した記録媒体において、 前記曲線描画プログラムが、前記ベジェ曲線の制御点列
を取得する入力処理と、 取得された前記制御点列を用いて当該ベジェ曲線を折れ
線近似する折れ線近似処理と、 近似された折れ線データの描画を行う出力処理とを具備
することを特徴とする記録媒体。
17. A recording medium on which a curve drawing program for outputting a Bezier curve by approximating the Bezier curve by a polygonal line is recorded, wherein the curve drawing program obtains a control point sequence of the Bezier curve, and the obtained control points A recording medium comprising: a polygonal line approximation process for approximating the Bezier curve using a column; and an output process for drawing approximated polygonal line data.
JP2000311595A 2000-10-12 2000-10-12 Curve drawing method, curve drawing device, and storage medium with curve drawing program stored therein Pending JP2002117411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000311595A JP2002117411A (en) 2000-10-12 2000-10-12 Curve drawing method, curve drawing device, and storage medium with curve drawing program stored therein

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000311595A JP2002117411A (en) 2000-10-12 2000-10-12 Curve drawing method, curve drawing device, and storage medium with curve drawing program stored therein

Publications (1)

Publication Number Publication Date
JP2002117411A true JP2002117411A (en) 2002-04-19

Family

ID=18791328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000311595A Pending JP2002117411A (en) 2000-10-12 2000-10-12 Curve drawing method, curve drawing device, and storage medium with curve drawing program stored therein

Country Status (1)

Country Link
JP (1) JP2002117411A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010053176A1 (en) * 2008-11-07 2010-05-14 Necシステムテクノロジー株式会社 Bezier curve drawing device, bezier curve drawing method, and recording medium
JP2010272120A (en) * 2009-05-25 2010-12-02 Fujitsu Ltd Method and system for approximating curve, and method and device for controlling graphic display
CN109933932A (en) * 2019-03-21 2019-06-25 山东女子学院 A kind of method for optimizing route and system based on Bézier curve
CN113327264A (en) * 2021-06-01 2021-08-31 星觅(上海)科技有限公司 Trajectory fitting method, device, equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010053176A1 (en) * 2008-11-07 2010-05-14 Necシステムテクノロジー株式会社 Bezier curve drawing device, bezier curve drawing method, and recording medium
JP2010113624A (en) * 2008-11-07 2010-05-20 Nec System Technologies Ltd Device and method for drawing bezier curve and program
JP2010272120A (en) * 2009-05-25 2010-12-02 Fujitsu Ltd Method and system for approximating curve, and method and device for controlling graphic display
CN109933932A (en) * 2019-03-21 2019-06-25 山东女子学院 A kind of method for optimizing route and system based on Bézier curve
CN109933932B (en) * 2019-03-21 2022-09-20 山东女子学院 Bezier curve-based path optimization method and system
CN113327264A (en) * 2021-06-01 2021-08-31 星觅(上海)科技有限公司 Trajectory fitting method, device, equipment and storage medium
CN113327264B (en) * 2021-06-01 2023-01-13 星觅(上海)科技有限公司 Trajectory fitting method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP3318914B2 (en) System and method for rendering Bezier splines
US8773439B2 (en) Approximation of stroked higher-order curved segments by quadratic bèzier curve segments
JP4216871B2 (en) Font data storage and retrieval method and apparatus
EP0577131A2 (en) System and method of hybrid forward differencing to render bézier splines
JPH0916146A (en) Character and symbol pattern generating device
JP3037854B2 (en) Character generation method and device
JP4625269B2 (en) CHARACTER IMAGE GENERATION DEVICE, CHARACTER IMAGE GENERATION METHOD, DISPLAY CONTROL DEVICE, CHARACTER IMAGE GENERATION PROGRAM, AND DISPLAY CONTROL PROGRAM
JP2002117411A (en) Curve drawing method, curve drawing device, and storage medium with curve drawing program stored therein
US20060101103A1 (en) Representing implicit curves of procedural geometric surfaces
JPH06274149A (en) Method and device for varying width of outline font
JP2005538438A (en) Apparatus and method for processing variable print documents
JP3146771B2 (en) Font rasterizing apparatus and method
US7425959B2 (en) Representation of implicit curves for procedural surfaces
JPH11203489A (en) Method and device for plotting bezier curve and recording medium storing bezier curve plotting program
JPH06282658A (en) Method and device for generating curved line data
US11682146B2 (en) Vector object path segment editing
KR940001106B1 (en) Image processing method and apparatus therefor
JPH1120273A (en) Device and method for image processing
JPH05314268A (en) Method and device for extracting curved line
JPH07334326A (en) Printing system and method for presenting necessary recording time thereof
JPH0264598A (en) Graphic character developing method
JP3087511B2 (en) Data converter
JP2000322048A (en) Outline font evaluation device and evaluation method
JPH06168337A (en) Paint-out processing method
JP2700124B2 (en) Graphic display method and apparatus for implementing the same