JPH08138064A - Device and method for graphic processing - Google Patents
Device and method for graphic processingInfo
- Publication number
- JPH08138064A JPH08138064A JP27932994A JP27932994A JPH08138064A JP H08138064 A JPH08138064 A JP H08138064A JP 27932994 A JP27932994 A JP 27932994A JP 27932994 A JP27932994 A JP 27932994A JP H08138064 A JPH08138064 A JP H08138064A
- Authority
- JP
- Japan
- Prior art keywords
- curve
- intersection
- deriving
- straight line
- approximate straight
- 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.)
- Withdrawn
Links
Landscapes
- Image Generation (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は曲線発生を行なう事の可
能な、図形処理装置及び方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing apparatus and method capable of generating a curve.
【0002】[0002]
【従来の技術】従来この種の図形処理装置においては、
曲線描画を行なう時、その曲線を近似するショートベク
タの集合を生成し、そのショートベクタ集合を描画する
事によって実現している。2. Description of the Related Art Conventionally, in this type of graphic processing apparatus,
When a curve is drawn, a set of short vectors that approximate the curve is generated and the set of short vectors is drawn.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、従来の
図形描画装置では、入力される曲線の制御点データから
ショートベクタを求める計算処理スピードを維持するた
めに、整数演算をもってこの処理を行なうと、計算上の
丸め誤差が発生し、1描画単位を越える幅を持つ曲線の
交点における鋭角部分の処理が適切に行なえなくなる。
これについて図7、図8を用いて説明する。However, in the conventional graphic drawing apparatus, if this processing is performed by integer arithmetic in order to maintain the calculation processing speed for obtaining the short vector from the input control point data of the curve, the calculation will be performed. The above rounding error occurs, and it becomes impossible to properly process the acute angle portion at the intersection of the curves having a width exceeding one drawing unit.
This will be described with reference to FIGS. 7 and 8.
【0004】図7は曲線の交点に隣接するショートベク
タの頂点が実際の曲線よりも外側へ寄っている場合の例
であり、図8はその逆に実際の曲線よりも内側へよって
いる場合の例である。図7、図8は濃グレーの指定曲線
を頂点p1〜p9で近似している事を示し、1描画単位
を越える幅を持つ曲線を描画するため、それを最終的に
淡グレーの多角形に膨らませて描画することを意味して
いる。FIG. 7 shows an example of the case where the vertices of the short vector adjacent to the intersection of the curves are located outside the actual curve, and FIG. 8 is the case where the vertices of the short vector are located inside the actual curve. Here is an example. FIGS. 7 and 8 show that a designated curve of dark gray is approximated by vertices p1 to p9, and in order to draw a curve having a width exceeding one drawing unit, it is finally converted into a light gray polygon. It means inflating and drawing.
【0005】曲線の交点部分において、丸め誤差によっ
て発生するノイズは図7のショートベクタp5−p6、
あるいは図8のショートベクタp5−p6のように現れ
てくる。このショートベクタを用いて任意幅の曲線を描
画しようとした場合、本来尖って出力されるべき鋭角の
部分は図7、図8の直線ABと直線CDのの延長線の交
点からなる淡グレーの多角形のように出力されてしまう
(通常の鋭角処理では、著しく長い頂点は描画しないル
ールなので、図8では、直線ABと直線CDの交点は直
線BCで代替えされる。)。At the intersection of the curves, the noise generated by the rounding error is the short vector p5-p6 of FIG.
Alternatively, it appears as short vectors p5-p6 in FIG. When a curve with an arbitrary width is to be drawn using this short vector, the sharp-angled portion that should originally be output sharply is a light gray color consisting of the intersections of the extended lines of the straight line AB and the straight line CD in FIGS. It is output like a polygon (in the normal acute angle processing, a rule that a remarkably long vertex is not drawn, so in FIG. 8, the intersection of the straight line AB and the straight line CD is replaced by the straight line BC).
【0006】また、丸め誤差を防ぐために浮動小数点演
算を行なうと、処理スピードが著しく劣化するという問
題点があった。Further, if floating point arithmetic is performed to prevent rounding errors, there is a problem that the processing speed is significantly deteriorated.
【0007】本発明はかかる従来技術における問題点を
解決するためのものであり、1描画単位を越える幅を持
つ曲線を計算誤差を補正し、整形して出力することを可
能とするような図形処理装置および方法を提供するもの
である。The present invention is intended to solve the above-mentioned problems in the prior art, and it is possible to correct a calculation error of a curve having a width exceeding one drawing unit, shape it, and output it. A processing apparatus and method are provided.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するため
に本発明の図形処理装置は以下のような構成からなる。In order to achieve the above object, the graphic processing apparatus of the present invention has the following configuration.
【0009】すなわち、曲線の交点部分における接線と
前記曲線を近似する近似直線との交点を導出する導出手
段と、前記導出された交点が前記近似直線の頂点よりも
前記曲線の交点部分に近接しているか否かを判別する判
別手段と、前記判別手段により近接していると判別され
た場合、曲線を表すためのデータとして、前記交点を近
似直線の頂点として追加し、その結果不要となった近似
直線の頂点を削除する修正手段とを有する。That is, deriving means for deriving an intersection of a tangent line at an intersection of the curve and an approximate straight line approximating the curve, and the derived intersection is closer to the intersection of the curve than the apex of the approximate straight line. If it is determined by the determination means that determines whether or not there is a proximity, the intersection point is added as the vertex of the approximate straight line as data for representing a curve, and as a result, it is unnecessary. Correction means for deleting the vertices of the approximate straight line.
【0010】また、本発明の図形処理方法は以下のよう
な構成からなる。The graphic processing method of the present invention has the following configuration.
【0011】すなわち、曲線の交点部分における接線と
前記曲線を近似する近似直線との交点を導出する導出ス
テップと、前記導出された交点が前記近似直線の頂点よ
りも前記曲線の交点部分に近接しているか否かを判別す
る判別ステップと、前記判別ステップにより近接してい
ると判別された場合、曲線を表すためのデータとして、
前記交点を近似直線の頂点として追加し、その結果不要
となった近似直線の頂点を削除する修正ステップとを有
する。That is, a deriving step of deriving an intersection of a tangent line at an intersection of the curve and an approximate straight line that approximates the curve, and the derived intersection is closer to the intersection of the curve than the apex of the approximate straight line. If it is determined in the determination step that determines whether or not the two are close to each other, as data for representing a curve,
A correction step of adding the intersection points as vertices of the approximate straight line and deleting unnecessary vertices of the approximate straight line.
【0012】[0012]
【作用】上述の構成により、1描画単位を越える幅を持
つ曲線を計算誤差を補正し、整形して出力することをで
きるという効果がある。With the above configuration, it is possible to correct a calculation error in a curve having a width exceeding one drawing unit, shape it, and output it.
【0013】[0013]
【実施例】以下、図面を用いて本発明を更に詳細に説明
する。なお、本発明の機能が実行できるのであれば、単
体の機器であっても、複数の機器からなるシステムであ
っても、LAN等のネットワークを介して、処理を行な
うシステムであっても本発明が適用できることは言うま
でもない。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in more detail below with reference to the drawings. It should be noted that as long as the functions of the present invention can be executed, the present invention can be applied to a single device, a system including a plurality of devices, or a system that performs processing via a network such as a LAN. Needless to say, can be applied.
【0014】図1は本発明にかかる一実施例の曲線描画
装置のシステム・ブロック図である。1は、曲線に関す
るデータを処理するためのCPU(Centrtal
Processing Unit)である。2は、曲線
の開始点、終了点並びに制御点の位置を入力するための
入力装置である。入力装置として、例えば、不図示のキ
ーボードやポインティングデバイスによって制御点を入
力してもよいし、予めFDやHD等の記憶装置に記憶さ
れている制御点を入力する装置でもよい。3は、入力装
置2から受け取ったデータ並びにCPUが扱う一時的な
データや後述するフローチャートに係るプログラムを記
憶するROM、RAM、HD、FD等からなる記憶装置
である。4は、曲線を出力するための出力手段であり、
CRT表示装置や液晶表示装置等の表示器であっても良
いし、レーザービームプリンタやインクジェットプリン
タやサーマルプリンタ等のプリンタであっても良い。な
お開始点、終了点、制御点並びにベクトルについては、
本発明では入力または出力における表現方法を特に限定
するものではない。FIG. 1 is a system block diagram of a curve drawing apparatus according to an embodiment of the present invention. 1 is a CPU (Central) for processing data regarding a curve
Processing Unit). Reference numeral 2 is an input device for inputting the start point, the end point of the curve, and the position of the control point. As the input device, for example, a control point may be input by a keyboard or a pointing device (not shown), or a device that inputs a control point previously stored in a storage device such as an FD or HD. Reference numeral 3 denotes a storage device including ROM, RAM, HD, FD, etc. for storing data received from the input device 2, temporary data handled by the CPU, and a program according to a flowchart described later. 4 is an output means for outputting a curve,
It may be a display device such as a CRT display device or a liquid crystal display device, or a printer such as a laser beam printer, an inkjet printer or a thermal printer. For the start point, end point, control point and vector,
In the present invention, the expression method in input or output is not particularly limited.
【0015】図2は本実施例で用いている、描画の際に
用いられるRAMやHDに記憶される図形情報とその構
成座標情報の構造の一例について示す。図2は図形描画
情報の構造を示したものである。21は図形識別番号で
あり、本システム内では1つの図形は1つの図形識別番
号と一意に対応している。22は図形内の面塗りの際
の、面パターン種およびそのカラー等の情報を示す面種
情報、23は線の形状(実線、点線等)と、その太さ、
カラー等の情報を示す線種情報。24は当該図形を構成
する座標データ群のデータであり、個々の座標データの
構成は図3に示す。FIG. 2 shows an example of the structure of graphic information and its constituent coordinate information stored in the RAM or HD used for drawing, which is used in this embodiment. FIG. 2 shows the structure of graphic drawing information. Reference numeral 21 is a figure identification number, and one figure uniquely corresponds to one figure identification number in this system. Reference numeral 22 is surface type information indicating information such as a surface pattern type and its color when the surface is filled in the figure, 23 is a line shape (solid line, dotted line, etc.) and its thickness,
Line type information indicating information such as color. Reference numeral 24 is data of a coordinate data group forming the figure, and the structure of each coordinate data is shown in FIG.
【0016】図3では、RAMやHDに記憶される構成
座標情報の個々の構造とそれらが、いかに構成されてい
るかについて示す。31は当該点の座標データ、32当
該点の属性に関する情報であり、開始点、終了点の識別
情報と共に、直線の端点であるか、あるいは曲線データ
の中間点であるかの情報もセットされている。33は当
該座標の次の座標を指示するためのポインタ、34は同
様に前の座標を指示するためのポインタである。本構成
座標情報は、図のように双方向リストで実現されてお
り、不要な座標点の削除、あるいは新規に生成された座
標点の挿入は同図の33、34を更新する事によって可
能となる。ここでは点線で囲んだデータをリストに挿入
しようとしている例を示している。点線で示すように挿
入すべき場所の前後の要素のポインタを新しい要素を指
すように指し変え、新しい要素は挿入すべき場所の前後
の要素を指すようにする。FIG. 3 shows individual structures of the configuration coordinate information stored in the RAM or HD and how they are configured. Reference numeral 31 is coordinate data of the point, 32 is information about the attribute of the point, and information indicating whether the end point of the straight line or the middle point of the curve data is set together with the identification information of the start point and the end point. There is. Reference numeral 33 is a pointer for pointing the coordinate next to the coordinate, and 34 is a pointer for pointing the previous coordinate similarly. This constituent coordinate information is realized by a bidirectional list as shown in the figure, and unnecessary coordinate points can be deleted or newly generated coordinate points can be inserted by updating 33 and 34 in the figure. Become. Here, an example in which the data enclosed by the dotted line is being inserted into the list is shown. As indicated by the dotted line, the pointers of the elements before and after the position to be inserted are changed to point to the new elements, and the new elements are pointed to the elements before and after the position to be inserted.
【0017】図4、図5によって本発明による、1描画
単位を越える幅を持つ2つの曲線の交点部分における、
鋭角部分の処理の例について述べる。4 and 5, according to the present invention, at the intersection of two curves having a width exceeding one drawing unit,
An example of processing of an acute angle portion will be described.
【0018】まず、図4において、本発明によって描画
されるMiter頂点の求め方について述べる。First, referring to FIG. 4, a method of obtaining the Miter vertices drawn by the present invention will be described.
【0019】同図においてcurve1、curve2
は発生させるべき指定曲線であり、qは両曲線の交点で
ある。cv1、cv2は各々交点qにおけるcurve
1、curve2の接線ベクトルであり、これらは、両
曲線の方程式を利用する事によって幾何学的に求める事
ができる。p1、p2は交点qにおいて本曲線を近似する
ショートベクタを構成するもう一方の頂点であり、その
方向ベクトルは各々相当する接線ベクタと同一である
(p1q=cv1、p2q=cv2となっている)。R
1、R2は、曲線の線幅を考慮して、交点付近における
両曲線を近似するために、上記ショートベクタを基に生
成された矩形である。r1、r2は各々R1、R2の外側
の辺のMiter側の頂点である。In the figure, curve1 and curve2
Is a designated curve to be generated, and q is the intersection of both curves. cv1 and cv2 are curve at intersection q
1 and curve2 are tangent vectors, and these can be geometrically obtained by using the equations of both curves. p 1 and p 2 are the other vertices that form a short vector that approximates this curve at the intersection point q, and their direction vectors are the same as the corresponding tangent vectors (p 1 q = cv 1 , p 2 q = cv2). R
1 and R2 are rectangles generated based on the above short vector in order to approximate both curves near the intersection in consideration of the line width of the curves. r 1 and r 2 are the miter-side vertices of the outer sides of R1 and R2, respectively.
【0020】本来の曲線のMiter頂点mは、両指定
曲線の接線ベクタを合成したベクタ上に存在するもので
あり、曲線の線幅を考慮すると、上記の矩形R1、R2
の外側の辺を延長したものの交点と等しくなる。よって
線幅を考慮して描画されるべき鋭角部分は同図の多角形
r1mr2qの部分である。The Miter vertex m of the original curve exists on the vector obtained by combining the tangent vectors of both designated curves. Considering the line width of the curves, the above-mentioned rectangles R1 and R2 are considered.
Is equal to the intersection of the extended outer sides of. Therefore, the acute angle portion to be drawn in consideration of the line width is the portion of the polygon r 1 mr 2 q in FIG.
【0021】次に、図5を用いて、上記miter頂点
を求めるためのショートベクタの変更方法の一例につい
て述べる事とする。ここでは、説明を簡略にするため
に、一方の曲線(図中のcurve2)についてのみ注
目する事にする。本実施例においては、曲線の交点は公
知の方法で求めることができ、例えば3次のベジェ曲線
は始点、終点、2つの制御点により表すことができる。
よって始点と終点を兼ねる点を見つければその点が曲線
の交点であることがわかる。よって本実施例において
は、p5とp6が交点として認識されたものとする。ま
た、曲線部aの終点と1つ前の制御点とを結んだ直線
と、曲線部bの始点と1つ後の制御点とを結んだ直線と
の傾き(または、曲線部aとbの傾き)がほぼ一致する
(所定の値より小さい)場合、曲線の交点として認識し
なくなるようにしてもよい(処理時間を短縮するため
に)。Next, an example of a short vector changing method for obtaining the miter vertices will be described with reference to FIG. Here, in order to simplify the description, only one of the curves (curve2 in the figure) will be focused. In the present embodiment, the intersection of the curves can be obtained by a known method, and for example, a cubic Bezier curve can be represented by a start point, an end point, and two control points.
Therefore, if a point that doubles as a start point and an end point is found, then that point is the intersection of the curves. Therefore, in this embodiment, it is assumed that p5 and p6 are recognized as intersections. In addition, the slope of the straight line connecting the end point of the curved portion a and the control point one before and the straight line connecting the start point of the curved portion b and the control point one after (or of the curved portions a and b If the slopes are substantially the same (smaller than a predetermined value), they may not be recognized as the intersections of the curves (to shorten the processing time).
【0022】図中、2つの曲線の交点p5におけるcu
rve2の接線ベクトルを反対向きに延長した反直線
と、curve2を近似する各ショートベクタの交点
を、交点p5に近いものから順に算出してゆく。ショー
トベクタp5p6は、交点p5がショートベクタの一方の
頂点なので対象外とすると、p6p7との交点がpn0、p
7p8との交点は存在せず、p8p9との交点がpn1となっ
ている。これらの交点のうち、新規に生成するショート
ベクタの頂点となるものは、ショートベクタの両頂点よ
りも、より曲線の交点に近い距離にあるという条件を満
たしてなければならない。In the figure, cu at the intersection point p 5 of the two curves
and anti-straight line that the tangent vector of rve2 was extended in the opposite direction, the intersection of each short vector to approximate the curve2, slide into calculated in order from those close to the intersection p 5. Since the intersection point p 5 of the short vector p 5 p 6 is one of the vertices of the short vector, if it is excluded, the intersection points with p 6 p 7 are p n0 , p
The intersection with 7 p 8 does not exist, and the intersection with p 8 p 9 is p n1 . Among these intersections, the one that becomes the vertex of the newly generated short vector must satisfy the condition that it is closer to the intersection of the curves than both vertices of the short vector.
【0023】よって上記交点中、求めるべきものは、点
pn1となり、その結果、不要となるショートベクタは、
p5p6、p6p7、p7p8、である。また、p8はpn1で
置き換える事が可能である。Therefore, among the above intersections, the point to be obtained is the point p n1 , and as a result, the unnecessary short vector is
p 5 p 6, p 6 p 7, p 7 p 8, it is. Also, p 8 can be replaced with p n1 .
【0024】即ち、上記処理によって交点p5において
curve2を近似するRAMやHDに記憶されている
点リストから、点p5〜p8が削除されると共に、新規に
点pn1が追加される。[0024] That is, from the list that is stored at the intersection p 5 in the RAM or HD approximating the curve2 by the process, together with the point p 5 ~p 8 is removed, a new point p n1 is added.
【0025】図6は、本発明の図形描画装置において、
図5の処理手順の一例を示すフローチャートである。図
5のフローチャートに係るプログラムはROM、FD、
HD等に記憶してあり、CPU1によって制御される。FIG. 6 shows the graphic drawing apparatus of the present invention.
6 is a flowchart showing an example of the processing procedure of FIG. 5. The programs according to the flowchart of FIG. 5 are ROM, FD,
It is stored in the HD or the like and controlled by the CPU 1.
【0026】まず、ステップS601で、指定曲線の交
点における接線ベクトルを求める。次にステップS60
2において上記接線ベクトルと、曲線交点におけるショ
ートベクタが同一のものであるか否かをチェックする。
もし同一であると判定されれば、近似点リストの変更は
必要ないので本処理は終了する。もし、両ベクトルが異
なるものであると判定された時には、ステップS603
に移り、以降近似点リストの変更処理を行なう。ステッ
プS603では、曲線交点におけるショートベクタに隣
接するショートベクタを比較ベクトルv0と設定する。
ステップS604ではv0と上記曲線の接線ベクトルの
反対方向への延長線との交点を求める。ステップS60
5では上記交点とv0の両頂点との座標を比較する。ス
テップS606で、ステップS605の比較処理の結
果、上記交点が、最も曲線交点に近いと判定された時に
は、ステップS607へ分岐する。ステップS607で
はステップS609でセットされる、除去候補バッファ
中の頂点のデータを、近似点リストから除く。ステップ
S608では、上記交点を新規に、ショートベクタの頂
点として、近似点リストに追加する。ステップS609
ではv0の頂点を除去候補バッファにセットする。ステ
ップS610ではv0に隣接するショートベクタを新た
に比較ベクトルv0としてセットして、ステップS60
4へ戻る。First, in step S601, the tangent vector at the intersection of the designated curves is obtained. Then in step S60
In step 2, it is checked whether the tangent vector and the short vector at the curve intersection are the same.
If it is determined that they are the same, it is not necessary to change the approximate point list, and this processing ends. If it is determined that the two vectors are different, step S603.
Then, the process for changing the approximate point list is performed. In step S603, the short vector adjacent to the short vector at the curve intersection is set as the comparison vector v0.
In step S604, the intersection of v0 and the extension of the tangent vector of the curve in the opposite direction is obtained. Step S60
In step 5, the coordinates of the intersection and the vertices of v0 are compared. If it is determined in step S606 that the intersection is the closest to the curve intersection as a result of the comparison processing in step S605, the process branches to step S607. In step S607, the vertex data in the removal candidate buffer set in step S609 is removed from the approximate point list. In step S608, the intersection is newly added to the approximate point list as a vertex of the short vector. Step S609
Then, the vertex of v0 is set in the removal candidate buffer. In step S610, a short vector adjacent to v0 is newly set as the comparison vector v0, and then in step S60.
Return to 4.
【0027】なお、本実施例における1描画単位とは、
表示器におけるピクセル単位、プリンタにおけるドット
単位のことである。Incidentally, one drawing unit in this embodiment is
It is a pixel unit in the display and a dot unit in the printer.
【0028】[0028]
【発明の効果】以上説明したように本発明によれば、1
描画単位を越える幅を持つ曲線を計算誤差を補正し、整
形して出力することをできるという効果がある。As described above, according to the present invention, 1
There is an effect that a curve having a width exceeding the drawing unit can be corrected, the shaping error corrected, and output.
【図1】実施例の装置におけるシステム・ブロック図で
ある。FIG. 1 is a system block diagram of an apparatus according to an embodiment.
【図2】実施例の装置における線情報並びに点情報のデ
ータ構造を示す図である。FIG. 2 is a diagram showing a data structure of line information and point information in the apparatus of the embodiment.
【図3】実施例の装置におけるポインタの指し変えを示
す図である。FIG. 3 is a diagram showing pointer change in the device of the embodiment.
【図4】1描画単位を越える幅を持つ曲線の交点におけ
るmiter点の算出例を示す図である。FIG. 4 is a diagram showing an example of calculating miter points at intersections of curves having a width exceeding one drawing unit.
【図5】曲線の交点におけるショートベクタの矯正例を
示す図である。FIG. 5 is a diagram showing an example of correcting a short vector at an intersection of curves.
【図6】本発明の図形描画装置における、図5の処理手
順の一例を示すフローチャートを示す図である。6 is a diagram showing a flowchart showing an example of the processing procedure of FIG. 5 in the graphic drawing apparatus of the present invention.
【図7】ショートベクタの接続点が外側へ寄っている例
を示す図である。FIG. 7 is a diagram showing an example in which a connection point of a short vector is shifted outward.
【図8】ショートベクタの接続点が内側へ寄っている例
を示す図である。FIG. 8 is a diagram showing an example in which the connection points of short vectors are inward.
p1〜p9 曲線を近似するショートベクタの頂点 A〜E 1描画単位を越える幅を持つ曲線を近似した際
の輪郭点 cv1、cv2 曲線の交点における接線ベクトル r1、r2、q、M 1描画単位を越える幅を持つ曲線
の接合部分 1 入力装置 2 CPU 3 記憶装置 4 出力装置 21 図形識別番号 22 面の種類を示す識別子 23 線の種類を示す識別子 24 構成座標データ 31 点の座標 32 点属性情報 33 次の点を指すポインタ 34 前の点を指すポインタp1 to p9 Short vector vertices approximating the curve A to E 1 Contour points when approximating a curve having a width exceeding the drawing unit cv1, cv2 Tangent vector r1, r2, q, M1 at the intersection of the curves Joint part of curve having width exceeding 1 1 Input device 2 CPU 3 Storage device 4 Output device 21 Graphic identification number 22 Identifier indicating surface type 23 Identifier indicating line type 24 Constitutional coordinate data 31 Coordinates of 32 points Attribute information 33 Pointer pointing to the next point 34 Pointer pointing to the previous point
Claims (12)
を近似する近似直線との交点を導出する導出手段と、 前記導出された交点が前記近似直線の頂点よりも前記曲
線の交点部分に近接しているか否かを判別する判別手段
と、 前記判別手段により近接していると判別された場合、曲
線を表すためのデータとして、前記交点を近似直線の頂
点として追加し、その結果不要となった近似直線の頂点
を削除する修正手段とを有することを特徴とする図形処
理装置。1. A deriving means for deriving an intersection between a tangent line at an intersection of a curve and an approximate straight line approximating the curve, the derived intersection being closer to the intersection of the curve than the apex of the approximate straight line. When it is determined by the determining means that the distance is close, the intersection is added as an apex of the approximate straight line as data for expressing a curve, and as a result, it is unnecessary. A graphic processing device, comprising: a correction unit that deletes a vertex of an approximate straight line.
る制御点情報を入力する入力手段と、 前記入力された制御点に基づき曲線を近似する近似直線
を導出する導出手段とを有することを特徴とする請求項
1に記載の図形処理装置。2. An input means for inputting control point information including a start point and an end point for expressing a curve, and a deriving means for deriving an approximate straight line that approximates the curve based on the input control points. The graphic processing device according to claim 1, wherein:
段とを有することを特徴とする請求項1に記載の図形処
理装置。3. The graphic processing apparatus according to claim 1, further comprising: deriving means for deriving an intersection part of the curve, and deriving means for deriving a tangent line at the derived intersection part.
すためのデータに基づき曲線を出力する出力手段を有す
ることを特徴とする請求項1に記載の図形処理装置。4. The graphic processing apparatus according to claim 1, further comprising output means for outputting a curve based on the data for representing the curve modified by the modifying means.
曲線を近似する近似直線とが同一なものであるか否かを
判定する判定手段を有することを特徴とする請求項1に
記載の図形処理装置。5. The graphic processing according to claim 1, further comprising a determination unit that determines whether or not a tangent line at an intersection of the curves and an approximate straight line that approximates the curves are the same. apparatus.
を近似する近似直線との交点を導出する導出ステップ
と、 前記導出された交点が前記近似直線の頂点よりも前記曲
線の交点部分に近接しているか否かを判別する判別ステ
ップと、 前記判別ステップにより近接していると判別された場
合、曲線を表すためのデータとして、前記交点を近似直
線の頂点として追加し、その結果不要となった近似直線
の頂点を削除する修正ステップとを有することを特徴と
する図形処理装置。6. A deriving step of deriving an intersection of a tangent line at an intersection of a curve and an approximate straight line approximating the curve, wherein the derived intersection is closer to the intersection of the curve than the apex of the approximate straight line. If it is determined that they are close to each other, the intersection point is added as a vertex of the approximate straight line as data for representing a curve, and as a result, it is unnecessary. And a correction step for deleting the vertices of the approximate straight line.
る制御点情報を入力する入力ステップと、 前記入力された制御点に基づき曲線を近似する近似直線
を導出する導出ステップとを有することを特徴とする請
求項6に記載の図形処理方法。7. An input step of inputting control point information comprising a start point and an end point for expressing a curve, and a deriving step of deriving an approximate straight line that approximates the curve based on the input control points. The graphic processing method according to claim 6, wherein:
と、 前記導出された交点部分における接線を導出する導出ス
テップとを有することを特徴とする請求項6に記載の図
形処理方法。8. The graphic processing method according to claim 6, further comprising a deriving step of deriving an intersection point portion of a curve and a deriving step of deriving a tangent line at the derived intersection point portion.
すためのデータに基づき曲線を出力手段に出力する出力
ステップを有することを特徴とする請求項6に記載の図
形処理方法。9. The graphic processing method according to claim 6, further comprising an output step of outputting the curve to the output means based on the data for representing the curve modified by the modifying means.
記曲線を近似する近似直線とが同一なものであるか否か
を判定する判定ステップを有することを特徴とする請求
項6に記載の図形処理方法。10. The graphic processing according to claim 6, further comprising a determination step of determining whether or not a tangent line at an intersection of the curves and an approximate straight line that approximates the curves are the same. Method.
曲線の傾きに応じて交点部分を導出することを特徴とす
る請求項3に記載の図形処理装置。11. The graphic processing apparatus according to claim 3, wherein the deriving unit derives the intersection point portion in accordance with a slope of a curve forming the intersection point portion.
する曲線の傾きに応じて交点部分を導出することを特徴
とする請求項8に記載の図形処理方法。12. The graphic processing method according to claim 8, wherein the deriving step derives the intersection point portion in accordance with a slope of a curve forming the intersection point portion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27932994A JPH08138064A (en) | 1994-11-14 | 1994-11-14 | Device and method for graphic processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27932994A JPH08138064A (en) | 1994-11-14 | 1994-11-14 | Device and method for graphic processing |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH08138064A true JPH08138064A (en) | 1996-05-31 |
Family
ID=17609666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP27932994A Withdrawn JPH08138064A (en) | 1994-11-14 | 1994-11-14 | Device and method for graphic processing |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH08138064A (en) |
-
1994
- 1994-11-14 JP JP27932994A patent/JPH08138064A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5363478A (en) | Method and apparatus for trimming B-spline descriptions of patches in a high performance three dimensional graphics system | |
US5241653A (en) | Apparatus and method for adjusting and displaying scaled, rasterized characters | |
US7925084B1 (en) | Merge and removal in a planar map of an image | |
US5959634A (en) | Character generating system employing thickening or narrowing of characters | |
JP2918383B2 (en) | Image contour extraction method and apparatus | |
US6753862B1 (en) | Outline smoothing method and system | |
JPH08194459A (en) | Outline character drawing device | |
JPH08138064A (en) | Device and method for graphic processing | |
JP2588257B2 (en) | Contour approximation method | |
JP3146771B2 (en) | Font rasterizing apparatus and method | |
JP3536894B2 (en) | Graphic processing unit | |
KR100223496B1 (en) | Apparatus and method for generating characters | |
JP3280160B2 (en) | Document processing apparatus and document processing method | |
JP3039015B2 (en) | Character processor | |
JP3697753B2 (en) | Graphic editing apparatus and graphic editing method | |
JPH06168337A (en) | Paint-out processing method | |
KR940001106B1 (en) | Line width correction method and device | |
JP3376152B2 (en) | Character generator and method | |
JP2002269576A (en) | Line segment plotting method and line segment plotting device | |
JP3089906B2 (en) | Drawing equipment | |
JPH05257450A (en) | Character generation device | |
JPH04167082A (en) | Polygonal approximation system for curved section | |
JP3700810B2 (en) | Data conversion method and apparatus | |
JP3567728B2 (en) | Image processing method and apparatus | |
JPH10143676A (en) | Picture processor and method for processing the same and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20020115 |