JPH09212666A - Bejer curve approximation device - Google Patents

Bejer curve approximation device

Info

Publication number
JPH09212666A
JPH09212666A JP3756196A JP3756196A JPH09212666A JP H09212666 A JPH09212666 A JP H09212666A JP 3756196 A JP3756196 A JP 3756196A JP 3756196 A JP3756196 A JP 3756196A JP H09212666 A JPH09212666 A JP H09212666A
Authority
JP
Japan
Prior art keywords
bezier curve
straight line
division
point
area
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.)
Granted
Application number
JP3756196A
Other languages
Japanese (ja)
Other versions
JP3304255B2 (en
Inventor
Yasuhide Sato
康英 佐藤
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.)
Kyocera Corp
Original Assignee
Kyocera Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Corp filed Critical Kyocera Corp
Priority to JP3756196A priority Critical patent/JP3304255B2/en
Publication of JPH09212666A publication Critical patent/JPH09212666A/en
Application granted granted Critical
Publication of JP3304255B2 publication Critical patent/JP3304255B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To extremely increase the Bejer curve division processing speed by deciding the end of the division processing according to a fact whether a reference point is included in an area of the prescribed width that is defined by a straight line set parallel to a straight line that connects together the start and end points of a Bejer curve. SOLUTION: When an area decision means decides that a reference point P9 is included in a prescribed area, a y-intercept calculation means calculates a y-intercept (b) of the straight line that is set parallel to a straight line P0 P3 and also passes through the point P9 . Then the area decision means decides whether the y-interception (b) is included in an area C formed between the y-intercepts b1 and b2 . If the y-intercept (b) is not included in the area C, a division end decision means decides that the division operation of a Bejer curve division means is further necessary. If the y-intercept (b) is included in the area C, the division end decision means decides that the point P9 is included in an area having the division decision reference value H0 based on the line P0 P3 and discontinues the subsequent division processing of the Bejer curve division means.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ベジェ曲線作成方
法に関し、特にベジェ曲線を直線で近似して作成するベ
ジェ曲線近似装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Bezier curve creating method, and more particularly to a Bezier curve approximating apparatus for approximating a Bezier curve with a straight line.

【0002】[0002]

【従来の技術】従来のベジェ曲線から近似直線の作成方
法としては、図13に示すように、始点P0,2つの制
御点P1,P2,及び終点P3の4点を特定することによ
りベジェ曲線Sを描く方法がある。このベジェ曲線Sは
短い直線をつなぎ合わせて描かれる擬似曲線であり、特
にそのベジェ曲線Sの分割のときの基準点P9は次のよ
うな中点分割を繰り返す処理により求められる。すなわ
ち、線分P01,P12,P23の各々を真中で分割す
る中点P4,P5,P6を求め、次に線分P45,P56
の各々の中点P7,P8を求め、そして最後に線分P78
の中点として前記基準点P9を求めることができる。
2. Description of the Related Art As a conventional method of creating an approximate straight line from a Bezier curve, as shown in FIG. 13, a starting point P 0 , two control points P 1 , P 2 and an end point P 3 are specified. There is a method of drawing the Bezier curve S. The Bezier curve S is a pseudo-curve drawn by connecting short straight lines. In particular, the reference point P 9 when the Bezier curve S is divided is obtained by repeating the following midpoint division. That is, the midpoints P 4 , P 5 , P 6 dividing the line segments P 0 P 1 , P 1 P 2 , P 2 P 3 in the middle are obtained, and then the line segments P 4 P 5 , P 5 P 6
Obtains each of the middle point P 7, P 8 of, and finally the line segment P 7 P 8
The reference point P 9 can be obtained as the midpoint of.

【0003】この後基準点P9と線分P03との距離h
を求め、この距離hが分割判定基準値より大きいと判定
されたときは基準点P9を境(基準)にして分割し、前
記4点P0,P1,P2,P3の代わりに、新たな4点
0,P4,P7,P9と、もう1組の4点P9,P8
6,P3の2組に分割し、各々の4点について上述した
と同様の処理を行う。その結果求められた曲線S上の基
準点P10,P11が、それぞれ線分P09,P93迄の距
離が分割判定基準値より小さいと判定されたときは、短
い直線をつなぎ合わせた擬似曲線Sが本当の曲線とみな
して差支えない位の曲線に近づいたと判定して、それ以
上曲線Sについて上述したような分割処理をやらないで
ベジェ曲線の作成を終了するような手法として、ベジェ
曲線作成方法が従来あった。
After this, the distance h between the reference point P 9 and the line segment P 0 P 3
When it is determined that the distance h is larger than the division determination reference value, division is performed with the reference point P 9 as a boundary (reference), and instead of the four points P 0 , P 1 , P 2 , P 3 , New 4 points P 0 , P 4 , P 7 , P 9 and another set of 4 points P 9 , P 8 ,
It is divided into two sets of P 6 and P 3 , and the same processing as described above is performed for each of the 4 points. When it is determined that the reference points P 10 and P 11 on the curve S obtained as a result are distances to the line segments P 0 P 9 and P 9 P 3 are smaller than the division determination reference value, a short straight line is drawn. A method in which it is determined that the connected pseudo curve S has approached a curve that can be regarded as a real curve and it does not matter, and the creation of the Bezier curve is terminated without performing the above-described division processing on the curve S any further. As a conventional method, there is a method of creating a Bezier curve.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前記基
準点P9と線分P03との距離hを計算するには、P9
座標を(x9,y9)、P0の座標を(x0,y0)、P3
座標を(x3,y3)とすると、次のような式(1)によ
り計算しなければならない。
However, in order to calculate the distance h between the reference point P 9 and the line segment P 0 P 3 , the coordinates of P 9 are (x 9 , y 9 ), the coordinates of P 0 . Where (x 0 , y 0 ) and the coordinates of P 3 are (x 3 , y 3 ), it must be calculated by the following equation (1).

【0005】 h={(x9−x0)×(y3−y0)+(x3−x0)×(y9−y0)}/ √{(x3−x02+(y3−y02} ……(1)H = {(x 9 −x 0 ) × (y 3 −y 0 ) + (x 3 −x 0 ) × (y 9 −y 0 )} / √ {(x 3 −x 0 ) 2 + (y 3 -y 0) 2} ...... (1)

【0006】このような計算式(1)は、4回の乗算と
1回の除算及び1回の平方根(√)の算出が必要とな
り、その計算にはかなり時間がかかることとなって、そ
のような計算を何回も繰り返すとベジェ曲線の作成に膨
大な時間がかかるという問題があった。
The calculation formula (1) requires four multiplications, one division, and one calculation of the square root (√), which requires a considerable amount of time. If such a calculation is repeated many times, there is a problem that it takes a huge amount of time to create a Bezier curve.

【0007】このような問題を解決するため従来は、上
記hの距離算出を近似計算にして高速化を行う方法があ
る。この方法の場合、距離の近似計算により曲線の荒さ
が目立たないように距離を真の距離より大きくなるよう
にするため、近似計算を用いた分割処理速度は速いが分
割処理数が多くなり、最終的に算出されたベクトル群を
利用して塗りつぶしや線描画を行う処理の負担が大きく
なり、グラフィックス・システム全体としての処理速度
に影響してしまうという問題がある。この他にも種々の
方法により上記処理速度の問題を解決しようとする試み
が行われているが、いずれも抜本的なものではなく、処
理速度を飛躍的に高速化できるものはなかった。
In order to solve such a problem, conventionally, there is a method of speeding up the distance calculation of h by using an approximate calculation. In this method, the distance is made larger than the true distance by the approximate calculation of the distance so that the roughness of the curve is not noticeable. There is a problem in that the load of the processing of filling or drawing a line using the vector group calculated dynamically becomes large, which affects the processing speed of the graphics system as a whole. Other than this, various attempts have been made to solve the problem of the processing speed, but none of them are drastic, and none of them can dramatically increase the processing speed.

【0008】そこで本発明は、ベジェ曲線分割処理速度
を飛躍的に高速化できるベジェ曲線近似装置を提供する
ことを課題とするものである
Therefore, an object of the present invention is to provide a Bezier curve approximating apparatus capable of dramatically increasing the Bezier curve division processing speed.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に、本発明によるベジェ曲線近似装置は次のような構成
としたものである。
In order to solve the above problems, the Bezier curve approximating apparatus according to the present invention has the following configuration.

【0010】(1) ベジェ曲線の始点,終点及び2つ
の制御点からベジェ曲線を直線近似するためのベジェ曲
線分割手段と、前記ベジェ曲線分割手段によりベジェ曲
線を分割するときの基準点の位置関係から分割処理を終
了するかを判定する分割終了判定手段と、前記分割終了
判定手段が分割終了と判定したときは前記ベジェ曲線分
割手段によりベジェ曲線に近似された直線等に基づいて
線描画や領域の塗りつぶし等の処理をするグラフィック
処理手段と、前記ベジェ曲線の始点と終点とを結び直線
を形成し、かつ始点または終点を座標軸の原点とした場
合の直線の傾きを算出する直線傾き算出手段と、前記基
準点が所定の領域内にあるかを判定する領域判定手段と
を備え、前記基準点が前記ベジェ曲線の始点と終点とを
結ぶ直線と平行な直線によって設けられた所定の幅の領
域内にあるかにより分割処理を終了するかを判定する。
(1) A positional relationship between a Bezier curve dividing means for linearly approximating a Bezier curve from a start point, an end point and two control points of the Bezier curve, and a reference point when dividing the Bezier curve by the Bezier curve dividing means. A division end determining means for deciding whether to end the division processing, and when the division end determining means determines the division end, line drawing or a region based on a straight line approximated to a Bezier curve by the Bezier curve dividing means A graphic processing means for processing such as filling, and a straight line inclination calculating means for forming a straight line connecting the start point and the end point of the Bezier curve, and calculating the slope of the straight line when the start point or the end point is the origin of the coordinate axis. An area determination unit that determines whether the reference point is within a predetermined area, and the reference point is parallel to a straight line connecting a start point and an end point of the Bezier curve. Whether to end the division processing is determined depending on whether or not the area is within a predetermined width area defined by a line.

【0011】(2) ベジェ曲線の始点,終点及び2つ
の制御点からベジェ曲線を直線近似するためのベジェ曲
線分割手段と、前記ベジェ曲線分割手段によりベジェ曲
線を分割するときの基準点の位置関係から分割処理を終
了するかを判定する分割終了判定手段と、前記分割終了
判定手段が分割終了と判定したときは前記ベジェ曲線分
割手段によりベジェ曲線に近似された直線等に基づいて
線描画や領域の塗りつぶし等の処理をするグラフィック
処理手段と、前記ベジェ曲線の始点と終点とを結び直線
を形成し、かつ始点または終点を座標軸の原点とした場
合の直線の傾きを算出する直線傾き算出手段と、前記基
準点が所定の領域内にあるかを判定する領域判定手段
と、複数の代表直線を各々と平行な直線によって設けら
れた所定の幅の領域と共に判定テーブルに記憶する記憶
手段とを備え、前記判定テーブルの前記ベジェ曲線の始
点と終点とを結ぶ直線の傾きに最も近い傾きを有する代
表直線に沿って設けられた所定の幅の領域内に前記基準
点があるかにより分割処理を終了するかを判定する。
(2) The positional relationship between the Bezier curve dividing means for linearly approximating the Bezier curve from the start point and the end point of the Bezier curve and the two control points, and the reference point when dividing the Bezier curve by the Bezier curve dividing means. A division end determining means for deciding whether to end the division processing, and when the division end determining means determines the division end, line drawing or a region based on a straight line approximated to a Bezier curve by the Bezier curve dividing means A graphic processing means for processing such as filling, and a straight line inclination calculating means for forming a straight line connecting the start point and the end point of the Bezier curve, and calculating the slope of the straight line when the start point or the end point is the origin of the coordinate axis. An area determining means for determining whether the reference point is within a predetermined area, and an area having a predetermined width provided by a plurality of representative straight lines in parallel with each other. A storage means for storing both in a determination table, within a region of a predetermined width provided along a representative straight line having a slope closest to the slope of the straight line connecting the start point and the end point of the Bezier curve of the determination table It is determined whether or not the division processing is ended depending on whether or not there is the reference point.

【0012】上記課題を解決するための手段の(1)の
構成のベジェ曲線近似装置によれば、ベジェ曲線分割手
段によりベジェ曲線を分割するときの基準点が、ベジェ
曲線の始点と終点とを結ぶ直線と平行な直線によって設
けられた所定の幅の領域内にあるかにより、分割処理を
終了するかを判定するようにしたため、従来のように複
雑な計算を一々しなくとも容易に分割処理を終了するか
を判定することができるため、ベジェ曲線分割処理速度
を飛躍的に高速化することができる。
According to the Bezier curve approximating apparatus having the constitution (1) of the means for solving the above problems, the reference point when the Bezier curve dividing means divides the Bezier curve is the start point and the end point of the Bezier curve. Since it is determined whether to end the division processing depending on whether it is within the area of a predetermined width provided by the straight line parallel to the connecting straight line, the division processing can be performed easily without the need for complicated calculations as in the past. Since it is possible to determine whether to end, the Bezier curve division processing speed can be dramatically increased.

【0013】また上記課題を解決するための手段(2)
の構成のベジェ曲線近似装置によれば、判定テーブルの
複数の代表直線を各々と平行な直線によって設けられた
所定の幅の領域と共に記憶しておくことにより、前記ベ
ジェ曲線の始点と終点とを結ぶ直線の傾きに最も近い傾
きを有する代表直線を呼び出して、その直線と平行な直
線によって設けられた所定の幅の領域内に前記基準点が
あるかにより、分割処理を終了するかを判定するように
したので、従来のように複雑な計算を一々しなくとも済
むと共に、上記課題を解決するための手段(1)のよう
に、一々ベジェ曲線の始点と終点を結ぶ直線と平行な直
線によって所定の幅の領域を設けるための演算処理を初
めから行う必要がなく、判定テーブルから代表直線とそ
れに平行な直線によって設けられた所定の幅の領域を呼
び出すだけでよいため、分割処理を終了するかをさらに
容易に判定することができて、ベジェ曲線分割処理速度
をさらに飛躍的に高速化することができる。
Means (2) for solving the above problems
According to the Bezier curve approximating apparatus of the configuration, by storing a plurality of representative straight lines of the determination table together with the area of a predetermined width provided by straight lines parallel to each, the start point and the end point of the Bezier curve A representative straight line having a slope closest to the slope of the connecting straight line is called, and it is determined whether to end the division process depending on whether the reference point is within a region of a predetermined width provided by a straight line parallel to the straight line. Since this is done, it is not necessary to perform complicated calculations one by one as in the conventional method, and like the means (1) for solving the above-mentioned problem, a straight line parallel to the straight line connecting the start point and the end point of the Bezier curve is used. It is not necessary to perform the arithmetic processing from the beginning to provide the area of the predetermined width, and it is sufficient to call the area of the predetermined width provided by the representative line and the straight line parallel to the representative table from the determination table. Because, it can be more easily determined whether to end the division process can be further dramatically faster Bezier curve dividing processing speed.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面に基づいて説明する。図1ないし図11は、本発
明によるベジェ曲線近似装置の第1の実施の形態を説明
するための図である。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. 1 to 11 are views for explaining a first embodiment of a Bezier curve approximating apparatus according to the present invention.

【0015】図1はベジェ曲線近似装置の構成を示すブ
ロック図であり、図2はベジェ曲線近似装置の動作を示
すフローチャートである。ベジェ曲線近似装置は実際上
は、パソコン等の画像処理装置に搭載されて実施され
る。
FIG. 1 is a block diagram showing the configuration of the Bezier curve approximating apparatus, and FIG. 2 is a flowchart showing the operation of the Bezier curve approximating apparatus. The Bezier curve approximating device is actually mounted on an image processing device such as a personal computer and implemented.

【0016】例えばパソコンの画面上で描画を行う際
に、ベジェ曲線作成モードを選択して、マウス等により
画面上にカーソル位置を選んで始点、終点及び2つの制
御点の4点を指定すると、それに基づいてベジェ曲線作
成プログラム動作としてのベジェ曲線分割手段3が作動
して、ベジェ曲線を構成する短い直線の連続的な集合の
擬似曲線が画面上に自動的に描画される。
For example, when drawing on the screen of a personal computer, selecting the Bezier curve creation mode, selecting the cursor position on the screen with the mouse or the like and designating the start point, the end point and two control points, Based on this, the Bezier curve dividing means 3 as the operation of the Bezier curve creation program operates to automatically draw a pseudo curve of a continuous set of short straight lines constituting the Bezier curve on the screen.

【0017】このとき描画された擬似曲線が、ギザギザ
した感じが目立ちとても曲線としては使えないような状
態の場合は、分割終了判定手段1が引続き分割処理を続
行するよう判定する。この結果従来の技術で説明したよ
うに、前記4点をより細かくした8点を4つずつの2組
に基準点を境に分割して、また同様の処理を繰り返して
新たな基準点を求めるようベジェ曲線分割手段3が動作
する。
At this time, when the drawn pseudo curve is in a state in which a jagged feeling is noticeable and cannot be used as a curve, the division end judging means 1 judges to continue the division processing. As a result, as described in the related art, the eight points obtained by making the four points more fine are divided into two sets of four with the reference point as a boundary, and the same process is repeated to obtain a new reference point. Thus, the Bezier curve dividing means 3 operates.

【0018】分割終了判定手段1における分割終了の判
定は、ベジェ曲線の始点と終点を結び直線を形成し、か
つ始点を座標の原点とした場合の直線の傾きを算出する
直線傾き算出手段5と、ベジェ曲線分割手段3によりベ
ジェ曲線を分割するときの基準点がベジェ曲線の始点と
終点とを結ぶ直線と平行な直線によって形成される所定
の領域内にあるかを判定する領域判定手段7の動作を用
いて行われる。
The division end determination means 1 determines the division end by the straight line inclination calculation means 5 which forms a straight line connecting the start point and the end point of the Bezier curve and calculates the inclination of the straight line when the start point is the origin of the coordinates. Of the area determination means 7 for determining whether the reference point for dividing the Bezier curve by the Bezier curve dividing means 3 is within a predetermined area formed by a straight line parallel to the straight line connecting the start point and the end point of the Bezier curve Is performed using motion.

【0019】分割終了判定手段1が分割終了との判定を
行った場合は、ベジェ曲線分割手段3で曲線に近似され
た連続的な直線の集合を基に、グラフィック処理手段8
が線描画や領域の塗りつぶし等の処理をした後に登録を
行い、このように登録処理された画像はCRT等の画面
上に表示されたり、必要な場合はプリンタ等の出力手段
により印刷される。
When the division end judging means 1 judges that the division is completed, the graphic processing means 8 is based on the set of continuous straight lines approximated to the curve by the Bezier curve dividing means 3.
Performs registration such as line drawing and area filling, and the image thus registered is displayed on the screen of a CRT or the like, or is printed by an output unit such as a printer if necessary.

【0020】次に、このようなベジェ曲線近似装置の動
作について図2及び図13に基づいて説明する。まずベ
ジェ曲線分割手段3によるベジェ曲線の演算動作をスタ
ートし、上記4点P0,P1,P2,P3によりベジェ曲線
Sを作成した後その最後の過程で求められた前記基準点
9の、前記ベジェ曲線の始点P0と終点P3とを結ぶ線
迄の距離hを求める。分割終了判定手段1の判定結果に
より距離hが分割判定基準値より大きい場合には、ベジ
ェ曲線分割手段3はベジェ曲線Sを、曲線B1(P0
4,P7,P9の4点により作成)と曲線B2(P9,P
8,P6,P3の4点により作成)の2つのベジェ曲線に
前記基準点P9を境に分割する(図2のステップS
1)。
Next, the operation of such a Bezier curve approximating apparatus will be described with reference to FIGS. First, the Bezier curve dividing means 3 starts the operation of calculating the Bezier curve, and after the Bezier curve S is created by the four points P 0 , P 1 , P 2 and P 3 , the reference point P obtained in the final process is created. The distance h to the line connecting the start point P 0 and the end point P 3 of the Bezier curve of 9 is obtained. When the distance h is larger than the division determination reference value according to the determination result of the division end determination means 1, the Bezier curve division means 3 changes the Bezier curve S to the curve B1 (P 0 ,
P 4, P 7, created by four points P 9) and curve B2 (P 9, P
Two Bezier curves of 8 points, P 6 points, and P 3 points) are divided at the reference point P 9 (step S in FIG. 2).
1).

【0021】この後に、分割した一方のベジェ曲線B1
の図13における基準点P10と、始点P0と終点P9とを
結ぶ直線との距離h´(図示せず)が分割判定基準値よ
り小さければ分割処理は終了と判定し(図2のステップ
S2のYES)、前記の距離h´が分割判定基準値より
大きければ分割は続行(ステップS2のNO)と判定す
る。分割した他方のベジェ曲線B2においても同様の処
理を行う。
After this, one of the divided Bezier curves B1
If the distance h ′ (not shown) between the reference point P 10 in FIG. 13 and the straight line connecting the start point P 0 and the end point P 9 is smaller than the division determination reference value, it is determined that the division processing is completed (see FIG. 2). If YES in step S2) and the distance h'is larger than the division determination reference value, it is determined that the division continues (NO in step S2). The same processing is performed on the other divided Bezier curve B2.

【0022】図2のステップS2においてYESと判定
されたときは、グラフィック処理手段8により前述のよ
うな処理をした後登録が行われて(ステップS3)、そ
れから終了する(END)。ステップS2においてNO
と判定されたときは、前記分割された2つのベジェ曲線
B1,B2の各々をさらに分割する(ステップS4)。
そして再びステップS2に戻って、分割終了判定手段1
により分割を終了するかを判定して、ステップS3また
はステップS4に移行するようになっている。
If YES is determined in step S2 of FIG. 2, registration is performed after the graphic processing means 8 performs the above-described processing (step S3), and then the processing is ended (END). NO in step S2
If it is determined that the two Bezier curves B1 and B2 are further divided (step S4).
Then, returning to step S2 again, the division end determination means 1
It is determined whether or not to end the division by, and the process proceeds to step S3 or step S4.

【0023】次に上記ステップS2における、始点、終
点、基準点より分割終了の判定を行う方法について、図
3及び図4により説明する。なお本実施の形態では始点
0、終点P3、及び基準点P9を用いて説明する。まず
傾き算出手段5が、図13に示すようなベジェ曲線Sの
始点P0と終点P3を結ぶ直線の、始点P0を原点とした
場合の傾きaを算出し(図3のステップS1)、グラフ
y=axを求める(図4に示す破線)。次に、その直線
の+側と−側の両側に各々、分割判定基準値H0の幅で
平行に伸びる2本の直線(y=ax+b,y=ax−
b)を形成して、その2本の直線の間に判定領域Kを設
ける(図3のステップS2)。
Next, a method of judging the division end from the start point, the end point and the reference point in step S2 will be described with reference to FIGS. 3 and 4. In the present embodiment, the start point P 0 , the end point P 3 , and the reference point P 9 will be used for description. First, the inclination calculating means 5 calculates the inclination a of the straight line connecting the starting point P 0 and the ending point P 3 of the Bezier curve S as shown in FIG. 13 when the starting point P 0 is the origin (step S1 in FIG. 3). , Graph y = ax is obtained (broken line shown in FIG. 4). Next, two straight lines (y = ax + b, y = ax−) extending in parallel with the width of the division determination reference value H 0 on both the + side and the − side of the straight line.
b) is formed, and the determination area K is provided between the two straight lines (step S2 in FIG. 3).

【0024】次に領域判定手段7が、図13のベジェ曲
線の基準点P9が上記座標において上記判定領域K内に
あるかを判定し(図3のステップS3)、この判定に基
づいて分割終了判定手段1は、領域判定手段7がYES
と判定したときは分割終了の判定をし、領域判定手段7
がNOと判定したときは分割がさらに必要と判定する。
Next, the area determination means 7 determines whether the reference point P 9 of the Bezier curve in FIG. 13 is within the determination area K at the above coordinates (step S3 in FIG. 3), and the division is performed based on this determination. The end determination means 1 is YES in the area determination means 7.
If it is determined that the division is completed, the area determination means 7
If NO is determined, it is determined that further division is necessary.

【0025】このように上記第1の実施の形態に係るベ
ジェ曲線近似装置によれば、座標上の基準点P9が所定
領域K内にあるか否かだけ判定するだけで済み、従来の
ように複雑な計算を一々しなくとも容易に分割処理を終
了するかを判定することができるため、ベジェ曲線分割
処理速度を飛躍的に高速化することができる。
As described above, according to the Bezier curve approximating apparatus of the first embodiment, it is only necessary to determine whether or not the reference point P 9 on the coordinates is within the predetermined area K, which is different from the conventional case. Since it is possible to easily determine whether or not to end the division processing without performing complicated calculations, the Bezier curve division processing speed can be dramatically increased.

【0026】次は本発明によるベジェ曲線近似装置の第
2の実施の形態について説明する。図5に示す、第2の
実施の形態に係るベジェ曲線近似装置の構成を示すブロ
ック図から分かるように、図1に示す前記第1の実施の
形態に係るベジェ曲線近似装置の構成に、判定テーブル
を記憶する記憶手段10、座標変換手段12、y切片算
出手段14、及び判定テーブル変更手段16を追加した
点において異なるものである。
Next, a second embodiment of the Bezier curve approximating apparatus according to the present invention will be described. As can be seen from the block diagram showing the configuration of the Bezier curve approximating apparatus according to the second embodiment shown in FIG. 5, in the configuration of the Bezier curve approximating apparatus according to the first embodiment shown in FIG. The difference is that a storage unit 10 for storing a table, a coordinate conversion unit 12, a y-intercept calculation unit 14, and a determination table change unit 16 are added.

【0027】記憶手段10は、予め用意した複数の代表
直線毎の判定テーブルを記憶するものであり、複数の代
表直線は図6に示すように各々が少しずつ異なる傾きを
有するように区分されている。
The storage means 10 stores a determination table for each of a plurality of representative straight lines prepared in advance, and the plurality of representative straight lines are divided so as to have slightly different inclinations as shown in FIG. There is.

【0028】図6に示すように複数の代表直線が有する
傾きは、x軸からy=xの直線の間で少しずつ異なる傾
きaを有している。すなわちそれらの傾きaは最大が1
であり、それから傾きaは1/2,1/4,1/8,1
/16の順で基本的に分割されている。
As shown in FIG. 6, the inclinations of the plurality of representative straight lines have the inclinations a which are slightly different between the x-axis and the straight line of y = x. That is, the maximum of their inclination a is 1.
And then the slope a is 1/2, 1/4, 1/8, 1
It is basically divided in the order of / 16.

【0029】そして傾きaが1と1/2との間はさら
に、(1/2)×(1/16),(1/2)×(2/1
6),……(1/2)×(15/16)の傾きを加える
ことにより16分割されている。また傾きaが1/2と
1/4との間はさらに、(1/4)×(1/8),(1
/4)×(2/8),……(1/4)×(7/8)の傾
きを加えることにより8分割されている。そして傾きa
が1/4と1/8との間はさらに、(1/8)×(1/
4),(1/8)×(2/4),……(1/8)×(3
/4)の傾きを加えることにより4分割することができ
る。
When the inclination a is between 1 and 1/2, (1/2) × (1/16), (1/2) × (2/1)
6), ... It is divided into 16 by adding a gradient of (1/2) × (15/16). Further, when the slope a is between ½ and ¼, (1/4) × (1/8), (1
/ 4) × (2/8), ... (1/4) × (7/8) is added to divide it into eight. And the slope a
Between 1/4 and 1/8 is (1/8) × (1 /
4), (1/8) x (2/4), ... (1/8) x (3
It can be divided into four by adding a slope of / 4).

【0030】このような記憶手段10の判定テーブルの
複数の代表直線は、上記のような少しずつ異なる傾きa
と共に、各々の代表直線から分割判定基準値H0の距離
だけ+−両側に離れて代表直線に沿って伸びる2本の直
線間の領域がセットで判定テーブルに記憶されている。
The plurality of representative straight lines in the determination table of the storage means 10 as described above have slightly different inclinations a as described above.
At the same time, a region between two straight lines extending along the representative straight line apart from the respective representative straight lines by +/- both sides by the distance of the division determination reference value H 0 is stored as a set in the determination table.

【0031】座標変換手段12は、ベジェ曲線の始点P
0を座標軸の原点(0,0)に配置したとき終点P3が座
標の第1象限、すなわちx軸,y軸共に+側の座標領域
において、x軸とy=xの直線(傾き45°で原点
(0,0)を通る直線)との間に挾まれた45°の領域
(図8中の領域F)に配置されるように、ベジェ曲線の
座標変換を行うものである。
The coordinate conversion means 12 is a starting point P of the Bezier curve.
When 0 is arranged at the origin (0, 0) of the coordinate axis, the end point P 3 is in the first quadrant of the coordinate, that is, in the + side coordinate area for both the x axis and the y axis, the straight line of the x axis and y = x (inclination 45 ° The coordinate conversion of the Bezier curve is performed so that the Bezier curve is arranged in a 45 ° area (area F in FIG. 8) sandwiched between the origin and the straight line passing through the origin (0, 0).

【0032】例えば図8に示すように、ベジェ曲線の始
点P0を座標軸の原点(0,0)に配置したとき終点P3
が第3象限(x軸,y軸共に−側の座標領域)にある場
合は、座標変換手段12はまずy軸に関する一次変換を
行うことにより終点P3を第4象限(x軸が+側、y軸
が−側の座標領域)に移してP31とし、次にx軸に関す
る一次変換を行うことによりP31を第1象限に移してP
32とし、さらにy=xの直線に関する一次変換を行うこ
とによりP32をy=xの直線の反対側に移してP33とす
ることができる。このように終点P3を上記領域Fに移
動させることによって、図6に示すような判定テーブル
の各代表直線を領域F内の傾きのみ用意すればよくな
る。
For example, as shown in FIG. 8, when the starting point P 0 of the Bezier curve is located at the origin (0,0) of the coordinate axis, the ending point P 3
Is in the third quadrant (both the x-axis and the y-axis are −side coordinate regions), the coordinate conversion means 12 first performs the primary conversion on the y-axis to set the end point P 3 to the fourth quadrant (the x-axis is the + side). , Y-axis is moved to the coordinate area on the minus side) to be P 31, and then P 31 is moved to the first quadrant by performing a linear transformation on the x-axis to P 31 .
Then, P 32 can be moved to the opposite side of the straight line of y = x by performing a linear transformation on the straight line of y = x, and P 33 can be obtained. By moving the end point P 3 to the area F in this way, it is sufficient to prepare only the inclinations in the area F for each representative straight line of the determination table as shown in FIG.

【0033】y切片算出手段14は、ベジェ曲線の始点
0を座標軸の原点(0,0)に置いたときの、直線P0
3から両側に分割判定基準値H0の距離だけ離れて平行
に伸びる2本の直線がy軸を切るy切片の値を算出する
ものである。判定テーブル変更手段16は、記憶手段1
0の判定テーブルの複数の代表直線の本数や傾きの間隔
を変更したり、或はその代表直線毎のそれと平行な2本
の直線との間の距離(分割判定基準値H0)を変更する
ものである。
The y-intercept calculating means 14 is a straight line P 0 when the starting point P 0 of the Bezier curve is located at the origin (0, 0) of the coordinate axis.
The value of the y-intercept is defined by two straight lines that extend parallel to each other and are separated from each other by a distance equal to the division determination reference value H 0 from P 3 . The determination table changing unit 16 is the storage unit 1.
The number of a plurality of representative straight lines in the determination table of 0 and the interval of inclination are changed, or the distance (division determination reference value H 0 ) between each of the representative straight lines and two parallel straight lines is changed. It is a thing.

【0034】次に、このような構成の第2の実施の形態
に係るベジェ曲線近似装置の動作について説明する。図
2に示す基本的な動作は前記第1の実施の形態と同様で
あるが、図7に示すように、ベジェ曲線分割手段3によ
るベジェ曲線の分割を終了するかの判定方法が図3に示
す前記第1の実施の形態と異なっている。
Next, the operation of the Bezier curve approximating apparatus according to the second embodiment having such a configuration will be described. The basic operation shown in FIG. 2 is the same as that of the first embodiment, but as shown in FIG. 7, the determination method of whether the Bezier curve dividing means 3 finishes dividing the Bezier curve is shown in FIG. This is different from the first embodiment shown.

【0035】まずベジェ曲線の始点P0を座標軸の原点
に置いたとき、その終点P3が第1象限の前記F領域に
ないときは、座標変換手段12により前述したように座
標変換して終点P3をそのF領域に移動させる(図7の
ステップS1)。このときベジェ曲線分割手段3の分割
動作により求められた基準点P9もベジェ曲線における
終点P3との相対位置関係を維持してP3の座標変換に伴
って移動される。
First, when the start point P 0 of the Bezier curve is placed at the origin of the coordinate axis and the end point P 3 is not in the F region of the first quadrant, the coordinate conversion means 12 performs the coordinate conversion as described above and the end point. moving the P 3 to the F region (step S1 in FIG. 7). At this time, the reference point P 9 obtained by the dividing operation of the Bezier curve dividing means 3 is also moved along with the coordinate conversion of P 3 while maintaining the relative positional relationship with the end point P 3 on the Bezier curve.

【0036】次に図9に示すように、y軸の−側にx軸
から分割判定基準値H0だけ離れて平行に伸びる直線L1
と、y=xの直線から終点P3と反対側に分割判定基準
値H0だけ離れて平行に伸びる直線L2との間に挾まれる
領域Aを設定し、前記基準点P9がこの領域A内にある
かを領域判定手段7が判定する。そして図9に示すよう
に基準点P9がこの領域A内にないと判定した場合は領
域判定手段7はNOと判定し(図7のステップS2のN
O)、分割終了判定手段1はベジェ曲線分割手段3によ
る分割動作がさらに必要と判定する。
Next, as shown in FIG. 9, a straight line L 1 extending in parallel to the negative side of the y-axis by a division determination reference value H 0 from the x-axis.
If, to set the region A is sandwiched between the straight line L 2 extending in parallel away from the straight line y = x only end point P 3 with division determination reference value H 0 on the opposite side, the reference point P 9 is this The area determination means 7 determines whether the area is within the area A. Then, as shown in FIG. 9, when it is determined that the reference point P 9 is not within the area A, the area determining means 7 determines NO (N in step S2 in FIG. 7).
O), the division end determination means 1 determines that the division operation by the Bezier curve division means 3 is further required.

【0037】領域判定手段7が基準点P9が領域A内に
あると判定したときは(図7のステップS2のYE
S)、次に傾き算出手段5がP03の直線の傾きaを算
出して(図7のステップS3)、図10に示すようにy
=axの直線P03を作成する。そして記憶手段10の
判定テーブルから傾き算出手段5が算出した傾きaに最
も近い傾きa1,a2を有する代表直線y=a1x,y=
2xを選択して(図7のステップS4)、その2つの
代表直線を呼び出して図10に破線で示すように直線P
03を挾むように作成すると共に、その2つの代表直線
から分割判定基準値H0だけ離れた平行な直線y=a1
+b1,y=a2x+b2を作成する。このようにして領
域Bが設けられ、次に基準点P9がこの領域B内にある
かを領域判定手段7が判定する。
When the area determining means 7 determines that the reference point P 9 is within the area A (YE in step S2 in FIG. 7).
S), then the inclination calculating means 5 calculates the inclination a of the straight line of P 0 P 3 (step S3 in FIG. 7), and y is obtained as shown in FIG.
A straight line P 0 P 3 of = ax is created. Then, the representative straight line y = a 1 x, y = having the slopes a 1 and a 2 that are the closest to the slope a calculated by the slope calculating means 5 from the determination table of the storage means 10.
a 2 x is selected (step S4 in FIG. 7), the two representative straight lines are called, and the straight line P as shown by the broken line in FIG.
A straight line y = a 1 x which is created so as to sandwich 0 P 3 and is separated from the two representative straight lines by the division determination reference value H 0.
Create + b 1 and y = a 2 x + b 2 . In this way, the area B is provided, and then the area judging means 7 judges whether the reference point P 9 is within this area B or not.

【0038】すなわち図10において、基準点P9を通
るy軸と平行な縦線が領域Bの上限と交わる点Q0と、
領域Bの下限と交わる点Q1との間に基準点P9のy座標
が入っているかが領域判定手段7により判定され、図1
0に示すようにP9のy座標が点Q0とQ1の間に入って
いない場合は領域判定手段7はNOと判定し(図7のス
テップS5のNO)、分割終了判定手段1はベジェ曲線
分割手段3による分割動作がさらに必要と判定する。
That is, in FIG. 10, a point Q 0 at which a vertical line passing through the reference point P 9 and parallel to the y axis intersects the upper limit of the region B,
It is judged by the area judging means 7 whether the y coordinate of the reference point P 9 is between the lower limit of the area B and the point Q 1 intersecting with the lower limit, and FIG.
As shown in 0, when the y coordinate of P 9 is not between the points Q 0 and Q 1 , the area determination means 7 determines NO (NO in step S5 of FIG. 7), and the division end determination means 1 It is determined that the division operation by the Bezier curve dividing means 3 is further required.

【0039】図7のステップS5において領域判定手段
7がYESと判定したときは、次にy切片算出手段14
が、図11に示すように直線P03と平行でかつ基準点
9を通る直線のy切片bを算出する(図7のステップ
S6)。このようにy切片算出手段14により算出され
たy切片bが、y切片b1とb2の間の領域C内にあるか
を領域判定手段7が判定する(図7のステップS7)。
そして図11に示すように、y切片bがこの領域C内に
ないと判定手段7が判定した場合は(ステップS7のN
O)、分割終了判定手段1はベジェ曲線分割手段3によ
る分割動作がさらに必要と判定する。
If the area determining means 7 determines YES in step S5 of FIG. 7, then the y-intercept calculating means 14
Calculates a y-intercept b of a straight line parallel to the straight line P 0 P 3 and passing through the reference point P 9 as shown in FIG. 11 (step S6 in FIG. 7). The area determination means 7 determines whether the y-intercept b calculated by the y-intercept calculation means 14 is within the area C between the y-intercepts b 1 and b 2 (step S7 in FIG. 7).
Then, as shown in FIG. 11, when the determining unit 7 determines that the y-intercept b is not within the area C (N in step S7).
O), the division end determination means 1 determines that the division operation by the Bezier curve division means 3 is further required.

【0040】ステップS7において領域判定手段7がY
ESと判定したときは分割終了判定手段1は、基準点P
9は直線P03から分割判定基準値H0の領域内にあると
判定して、それ以降のベジェ曲線分割手段3による分割
処理を停止させることになり(図2のYES)、図2の
ステップS3に移行させてベジェ曲線の作成を終了す
る。
In step S7, the area determination means 7 returns Y.
When it is determined as ES, the division end determination means 1 determines the reference point P.
It is determined that 9 is within the area of the division determination reference value H 0 from the straight line P 0 P 3 , and the subsequent division processing by the Bezier curve dividing means 3 is stopped (YES in FIG. 2), and FIG. Then, the process shifts to step S3 to finish the creation of the Bezier curve.

【0041】なお上記実施の形態においては、図13に
示す方法により求められた基準点P9と直線P03との
距離hを計算しないで分割終了判定をする場合について
説明したが、分割終了判定のためには図13に示す方法
の他に図12に示すように、2つの制御点P1,P2と直
線P03との距離h1,h2を計算する方法も従来あり、
そのような場合においても本発明を用いることにより、
2つの制御点P1,P2と直線P03との距離h1,h2
計算しないで分割終了判定をすることも可能であり、本
発明と同様の効果を有することができる。
In the above embodiment, the case where the division end is judged without calculating the distance h between the reference point P 9 and the straight line P 0 P 3 obtained by the method shown in FIG. 13 has been described. In addition to the method shown in FIG. 13, a method for calculating the distances h 1 and h 2 between the two control points P 1 and P 2 and the straight line P 0 P 3 as well as the method shown in FIG. Yes,
Even in such a case, by using the present invention,
It is also possible to determine the division end without calculating the distances h 1 and h 2 between the two control points P 1 and P 2 and the straight line P 0 P 3, and the same effect as the present invention can be obtained.

【0042】[0042]

【発明の効果】以上説明したように、本発明に係るベジ
ェ曲線近似装置によれば、従来のように複雑な計算を一
々しなくとも容易に分割処理を終了するかを判定するこ
とができるため、ベジェ曲線分割処理速度を飛躍的に高
速化することができる。
As described above, according to the Bezier curve approximating apparatus of the present invention, it is possible to easily determine whether or not to end the division processing without performing a complicated calculation as in the conventional case. , The Bezier curve division processing speed can be dramatically increased.

【0043】また前記第2の実施の形態によれば、従来
のように複雑な計算を一々しなくとも済むと共に、前記
第1の実施の形態のように一々ベジェ曲線の始点と終点
を結ぶ直線と平行な直線によって所定の幅の領域を設け
るための演算処理を初めから行う必要がなく、判定テー
ブルから代表直線とそれに平行な直線によって設けられ
た所定の幅の領域を呼び出すだけでよいため、分割処理
を終了するかをさらに容易に判定することができて、ベ
ジェ曲線分割処理速度をさらに飛躍的に高速化すること
ができる。
Further, according to the second embodiment, it is not necessary to perform a complicated calculation as in the conventional case, and a straight line connecting the start point and the end point of the Bezier curve is required as in the first embodiment. Since it is not necessary to perform arithmetic processing from the beginning to provide a region having a predetermined width by a straight line parallel to the line, it is sufficient to call a region of a predetermined width provided by a straight line parallel to the representative line from the determination table. It is possible to more easily determine whether to end the division processing, and the Bezier curve division processing speed can be dramatically increased.

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

【図1】本発明の第1の実施の形態に係るベジェ曲線近
似装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a Bezier curve approximating apparatus according to a first embodiment of the present invention.

【図2】図1のベジェ曲線近似装置の動作手順を示すフ
ローチャートである。
FIG. 2 is a flowchart showing an operation procedure of the Bezier curve approximating apparatus of FIG.

【図3】図1のベジェ曲線近似装置の分割終了判定の動
作手順を示すフローチャートである。
FIG. 3 is a flowchart showing an operation procedure of determination of division end of the Bezier curve approximating apparatus of FIG.

【図4】図1のベジェ曲線近似装置の領域判定手段7の
動作を説明するための座標図である。
FIG. 4 is a coordinate diagram for explaining the operation of a region determination means 7 of the Bezier curve approximating apparatus of FIG.

【図5】本発明の第2の実施の形態に係るベジェ曲線近
似装置の構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a Bezier curve approximating apparatus according to a second embodiment of the present invention.

【図6】図5のベジェ曲線近似装置の記憶手段10の判
定テーブルの複数の代表直線の傾きの区分を示す座標図
である。
6 is a coordinate diagram showing sections of inclination of a plurality of representative straight lines in the determination table of the storage means 10 of the Bezier curve approximating apparatus in FIG.

【図7】図5のベジェ曲線近似装置の分割終了判定の動
作手順を示すフローチャートである。
7 is a flowchart showing an operation procedure of division end determination of the Bezier curve approximating apparatus of FIG.

【図8】図5のベジェ曲線近似装置の座標変換手段12
の動作を説明するための座標図である。
8 is a coordinate conversion means 12 of the Bezier curve approximating apparatus of FIG.
FIG. 8 is a coordinate diagram for explaining the operation of FIG.

【図9】図5のベジェ曲線近似装置の領域判定手段7の
動作を説明するための座標図である。
9 is a coordinate diagram for explaining the operation of the area determination means 7 of the Bezier curve approximating apparatus in FIG.

【図10】図5のベジェ曲線近似装置の領域判定手段7
の動作を説明するための座標図である。
10 is a region determination means 7 of the Bezier curve approximating apparatus of FIG.
FIG. 8 is a coordinate diagram for explaining the operation of FIG.

【図11】図5のベジェ曲線近似装置の領域判定手段7
の動作を説明するための座標図である。
11 is a region determination means 7 of the Bezier curve approximating apparatus of FIG.
FIG. 8 is a coordinate diagram for explaining the operation of FIG.

【図12】従来のベジェ曲線の分割終了判定方法を説明
するための図である。
FIG. 12 is a diagram for explaining a conventional Bezier curve division end determination method.

【図13】従来のベジェ曲線の分割方法及び分割終了判
定方法を説明するための図である。
FIG. 13 is a diagram for explaining a conventional Bezier curve division method and division end determination method.

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

1 分割終了判定手段 3 ベジェ曲線分割手段 5 直線傾き算出手段 7 領域判定手段 8 グラフィック処理手段 10 記憶手段 12 座標変換手段 14 y切片算出手段 16 判定テーブル変更手段 P0 始点 P3 終点 P9 基準点 K,F,A,B,C 領域1 division end determination means 3 Bezier curve division means 5 straight line inclination calculation means 7 area determination means 8 graphic processing means 10 storage means 12 coordinate conversion means 14 y intercept calculation means 16 determination table changing means P 0 start point P 3 end point P 9 reference point K, F, A, B, C area

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 ベジェ曲線の始点,終点及び2つの制御
点からベジェ曲線を直線近似するためのベジェ曲線分割
手段と、 前記ベジェ曲線分割手段によりベジェ曲線を分割すると
きの基準点の位置関係から分割処理を終了するかを判定
する分割終了判定手段と、 前記分割終了判定手段が分割終了と判定したときは前記
ベジェ曲線分割手段によりベジェ曲線に近似された直線
等に基づいて線描画や領域の塗りつぶし等の処理をする
グラフィック処理手段と、 前記ベジェ曲線の始点と終点とを結び直線を形成し、か
つ始点または終点を座標軸の原点とした場合の直線の傾
きを算出する直線傾き算出手段と、 前記基準点が所定の領域内にあるかを判定する領域判定
手段とを備え、 前記基準点が前記ベジェ曲線の始点と終点とを結ぶ直線
と平行な直線によって設けられた所定の幅の領域内にあ
るかにより分割処理を終了するかを判定することを特徴
とするベジェ曲線近似装置。
1. A Bezier curve dividing means for linearly approximating a Bezier curve from a start point and an end point of a Bezier curve and two control points, and a positional relationship between a reference point when dividing the Bezier curve by the Bezier curve dividing means. When the division end determination unit that determines whether to end the division process and the division end determination unit determines that the division is completed, line drawing or a region is drawn based on a straight line approximated to the Bezier curve by the Bezier curve dividing unit. Graphic processing means for processing such as filling, forming a straight line connecting the start point and the end point of the Bezier curve, and a straight line slope calculating means for calculating the slope of the straight line when the start point or the end point is the origin of the coordinate axis, An area determining means for determining whether the reference point is within a predetermined area, and the reference point is a straight line parallel to a straight line connecting a start point and an end point of the Bezier curve Thus it by whether in the region of a predetermined width provided to determine whether to end the division processing Bezier curve approximation apparatus according to claim.
【請求項2】 ベジェ曲線の始点,終点及び2つの制御
点からベジェ曲線を直線近似するためのベジェ曲線分割
手段と、 前記ベジェ曲線分割手段によりベジェ曲線を分割すると
きの基準点の位置関係から分割処理を終了するかを判定
する分割終了判定手段と、 前記分割終了判定手段が分割終了と判定したときは前記
ベジェ曲線分割手段によりベジェ曲線に近似された直線
等に基づいて線描画や領域の塗りつぶし等の処理をする
グラフィック処理手段と、 前記ベジェ曲線の始点と終点とを結び直線を形成し、か
つ始点または終点を座標軸の原点とした場合の直線の傾
きを算出する直線傾き算出手段と、 前記基準点が所定の領域内にあるかを判定する領域判定
手段と、 複数の代表直線を各々と平行な直線によって設けられた
所定の幅の領域と共に判定テーブルに記憶する記憶手段
とを備え、 前記判定テーブルの前記ベジェ曲線の始点と終点とを結
ぶ直線の傾きに最も近い傾きを有する代表直線と平行な
直線によって設けられた所定の幅の領域内に前記基準点
があるかにより分割処理を終了するかを判定することを
特徴とするベジェ曲線近似装置。
2. A Bezier curve dividing means for linearly approximating a Bezier curve from a start point and an end point of a Bezier curve and two control points, and a positional relationship between reference points when dividing the Bezier curve by the Bezier curve dividing means. When the division end determination unit that determines whether to end the division process and the division end determination unit determines that the division is completed, line drawing or a region is drawn based on a straight line approximated to the Bezier curve by the Bezier curve dividing unit. Graphic processing means for processing such as filling, forming a straight line connecting the start point and the end point of the Bezier curve, and a straight line slope calculating means for calculating the slope of the straight line when the start point or the end point is the origin of the coordinate axis, A region determination means for determining whether the reference point is within a predetermined region and a region of a predetermined width provided by a plurality of representative straight lines are provided. A storage means for storing in a determination table, within a region of a predetermined width provided by a straight line parallel to a representative straight line having a slope closest to the slope of the straight line connecting the start point and the end point of the Bezier curve of the determination table A Bezier curve approximating apparatus, characterized in that it is determined whether or not to end the division processing depending on whether or not there is the reference point.
【請求項3】 横軸をx軸、縦軸をy軸とし、ベジェ曲
線の始点を座標軸の原点に配置したとき終点が座標の第
1象限のx軸とy=xの直線との間に挾まれた45°の
領域内に配置されるようベジェ曲線の座標変換を行う座
標変換手段を設け、 ベジェ曲線が前記座標変換された後に前記基準点が所定
の領域内にあるかを判定することにより分割処理を続行
するかを判定することを特徴とする請求項2に記載のベ
ジェ曲線近似装置。
3. The horizontal axis is the x-axis, the vertical axis is the y-axis, and when the starting point of the Bezier curve is located at the origin of the coordinate axis, the end point is between the x-axis of the first quadrant of the coordinates and the straight line of y = x. Providing coordinate conversion means for performing coordinate conversion of the Bezier curve so that the reference point is within a predetermined region after the Bezier curve is subjected to the coordinate conversion so that the Bezier curve is coordinated so as to be arranged in a sandwiched 45 ° region. The Bezier curve approximating apparatus according to claim 2, wherein it is determined whether to continue the division processing by.
【請求項4】 前記ベジェ曲線の始点と終点とを結ぶ直
線を挾むようなこの直線に最も近い傾きを有する前記判
定テーブルの2本の代表直線と平行な直線によって形成
される領域内に前記基準点があるかを判定することによ
り分割処理を続行するかを判定することを特徴とする請
求項3に記載のベジェ曲線近似装置。
4. The reference is within an area formed by two straight lines parallel to the two representative straight lines of the determination table having a slope closest to the straight line connecting the start point and the end point of the Bezier curve. The Bezier curve approximating apparatus according to claim 3, wherein it is determined whether to continue the division processing by determining whether there is a point.
【請求項5】 前記ベジェ曲線の始点と終点とを結ぶ直
線と平行でかつ前記基準点を通る直線のy切片を算出す
るy切片算出手段を設け、 前記y切片が前記2本の代表直線の各々から所定距離離
れた平行な線の2つのy切片間の領域内にあるかを判定
することにより分割処理を終了するかを判定することを
特徴とする請求項4に記載のベジェ曲線近似装置。
5. A y-intercept calculating means for calculating a y-intercept of a straight line which is parallel to a straight line connecting a start point and an end point of the Bezier curve and which passes through the reference point is provided, and the y-intercept is one of the two representative straight lines. The Bezier curve approximating apparatus according to claim 4, wherein it is determined whether or not the division processing is ended by determining whether or not the division processing is completed by determining whether or not the division processing is within a region between two y-intercepts of parallel lines that are apart from each other by a predetermined distance. .
【請求項6】 前記記憶手段に記憶される判定テーブル
の複数の代表直線の傾きを(1/2)のn乗を掛けた値
に基づいて区分したことを特徴とする請求項2ないし請
求項5のいずれかに記載のベジェ曲線近似装置。
6. The method according to claim 2, wherein the slopes of a plurality of representative straight lines in the determination table stored in the storage unit are divided based on a value obtained by multiplying (1/2) to the nth power. 5. The Bezier curve approximation device according to any one of 5 above.
【請求項7】 前記判定テーブルの複数の代表直線の
各々と平行な直線によって作成された領域の所定の幅の
値を変更する判定テーブル変更手段を設けたことを特徴
とする請求項2ないし請求項6のいずれかに記載のベジ
ェ曲線近似装置。
7. The determination table changing means for changing a value of a predetermined width of an area formed by a straight line parallel to each of a plurality of representative straight lines of the determination table is provided. Item 7. The Bezier curve approximation device according to any one of Items 6.
JP3756196A 1996-01-31 1996-01-31 Bezier curve approximation device Expired - Fee Related JP3304255B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3756196A JP3304255B2 (en) 1996-01-31 1996-01-31 Bezier curve approximation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3756196A JP3304255B2 (en) 1996-01-31 1996-01-31 Bezier curve approximation device

Publications (2)

Publication Number Publication Date
JPH09212666A true JPH09212666A (en) 1997-08-15
JP3304255B2 JP3304255B2 (en) 2002-07-22

Family

ID=12500941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3756196A Expired - Fee Related JP3304255B2 (en) 1996-01-31 1996-01-31 Bezier curve approximation device

Country Status (1)

Country Link
JP (1) JP3304255B2 (en)

Also Published As

Publication number Publication date
JP3304255B2 (en) 2002-07-22

Similar Documents

Publication Publication Date Title
KR920001801B1 (en) Picture size magnification method and device
EP0675461B1 (en) Method and apparatus for generating image
US6072505A (en) Method and apparatus to efficiently interpolate polygon attributes in two dimensions at a prescribed clock rate
US5046165A (en) Controlling the combining of video signals
CN110264546B (en) Image synthesis method and device, computer-readable storage medium and terminal
JPH09212666A (en) Bejer curve approximation device
JP2837584B2 (en) How to create terrain data
JPH11175740A (en) Method and device for drawing thin line
JP2659584B2 (en) How to fill shapes
US5995674A (en) Image processing apparatus with shape-correction of a contour-specified figure
JP2748486B2 (en) Character pattern scaling device
JPH1131231A (en) Picture forming device and gradation plotting method
JP3161372B2 (en) Polygon drawing method and apparatus
JPH0765205A (en) Three-dimensional shape display device
JP3570164B2 (en) Image forming apparatus and gradation drawing method
JP3376884B2 (en) 3D terrain display device
JPH07182522A (en) Image processor for detecting line-symmetric object area at high speed
JPH1083461A (en) Drawing device
JPH08138027A (en) Picture display and generating device
JPH1131232A (en) Method and device for plotting polygon
JPH07262398A (en) Method and device for processing image
KR101021173B1 (en) Apparatus and method for creating mosaic image based on amdamento
JPH01216481A (en) Method for processing change of component graphic
JPH02275592A (en) Paint-out image processor
JPH04268975A (en) Interpolating device for image

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees