JPH0785293A - Information processing equipment - Google Patents

Information processing equipment

Info

Publication number
JPH0785293A
JPH0785293A JP18090993A JP18090993A JPH0785293A JP H0785293 A JPH0785293 A JP H0785293A JP 18090993 A JP18090993 A JP 18090993A JP 18090993 A JP18090993 A JP 18090993A JP H0785293 A JPH0785293 A JP H0785293A
Authority
JP
Japan
Prior art keywords
parallel
bezier curve
curve
point
bezier
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
JP18090993A
Other languages
Japanese (ja)
Inventor
Yoshihiro Onishi
芳裕 大西
Osamu Kondo
近藤  治
Koji Gotoda
浩二 後藤田
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.)
JustSystems Corp
Original Assignee
JustSystems 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 JustSystems Corp filed Critical JustSystems Corp
Priority to JP18090993A priority Critical patent/JPH0785293A/en
Publication of JPH0785293A publication Critical patent/JPH0785293A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

(57)【要約】 【目的】 ベジェ曲線により滑らかな平行曲線を高速で
描画する。 【構成】 制御点決定手段2により、入力手段1から入
力された制御点Pと線幅Wから、または、分割手段で分
割された基準ベジェ曲線Lの制御点Pと線幅Wから、平
行ベジェ曲線Mを描画するための新たな制御点Qを決定
する。ここで決定された制御点Qによる平行ベジェ曲線
Mと基準ベジェ曲線Lとの平行度、例えばMとLのt=
0.5の点間の距離d、が所定の基準値を満たしている
か否かを平行度評価手段3で評価し、満たしている場合
には、平行ベジェ曲線描画手段5で平行曲線を描画す
る。一方、満たしていない場合には、基準ベジェ曲線分
割手段4により、基準ベジェ曲線Lを、例えばt=0.
5の点で分割する。この分割後の両ベジェ曲線Lに対し
て、同様に、新たな制御点Qの決定、平行度評価、およ
び分割を、平行度が所定の基準を満たすまで繰り返す。
(57) [Summary] [Purpose] Draw smooth parallel curves at high speed using Bezier curves. A parallel Bezier is obtained from the control point P and the line width W input from the input unit 1 by the control point determining unit 2 or from the control point P and the line width W of the reference Bezier curve L divided by the dividing unit. A new control point Q for drawing the curve M is determined. The parallelism between the parallel Bezier curve M and the reference Bezier curve L by the control point Q determined here, for example, t = M and L
The parallelism evaluation means 3 evaluates whether or not the distance d between the points of 0.5 satisfies a predetermined reference value, and if it satisfies the reference value, the parallel Bezier curve drawing means 5 draws a parallel curve. . On the other hand, if not satisfied, the reference Bezier curve dividing unit 4 sets the reference Bezier curve L to, for example, t = 0.
Divide by 5 points. Similarly, the determination of a new control point Q, the parallelism evaluation, and the division are repeated for both Bezier curves L after the division until the parallelism satisfies a predetermined criterion.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、情報処理装置に係
り、詳細には、ベジェ曲線による平行曲線の描画機能を
備えた情報処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus, and more particularly to an information processing apparatus having a parallel curve drawing function using Bezier curves.

【0002】[0002]

【従来の技術】パーソナルコンピュータやオフィスコン
ピュータ、ワークテーション、電子出版システム、ワー
ドプロセッサその他各種の情報処理装置が、オフィス、
工場、設計事務所、家庭等に普及し、広く使用されてい
る。このような情報処理装置において、道路地図や建築
図面等の各種図面を作成する場合、曲線を描画すること
が必要となる。曲線の描画を実現する方法として、4つ
の制御点の座標情報を使用して近似直線を描画する曲線
補間方式としてベジェ曲線が使用されることがある。
2. Description of the Related Art Personal computers, office computers, workstations, electronic publishing systems, word processors and other various information processing devices are used in offices,
Widely used in factories, design offices, homes, etc. In such an information processing apparatus, when creating various drawings such as a road map and architectural drawings, it is necessary to draw a curve. As a method for realizing the drawing of a curve, a Bezier curve may be used as a curve interpolation method for drawing an approximate straight line using coordinate information of four control points.

【0003】図4はベジェ曲線による曲線の描画状態を
表したものである。この図4に示すように、4つの制御
点P0、P1、P2、P3(以下、符号Pで代表す
る。)のうち、点P0を始点とし、点P3を終点とし
て、始点P0、終点P3を通り、2つの制御点P1、P
2の方向と距離によって決定されるベジェ曲線L0が描
画されることとなる。このベジェ曲線L0は、次の3次
ベジェ関数B(t)によって演算される。 B(t)=(1−t)3 ・P0 +3(1−t)2 ・t・P1 +3(1−t)・t2 ・P2+t3 ・P3 ここで、0≦t≦1であり、P0、P1、P2、P3は
制御点を示す。ところで、このような曲線を情報処理装
置を使用して作図をする場合、互いに等間隔な曲線(こ
の明細書において、平行曲線という。)を描画すること
がある。
FIG. 4 shows a curve drawing state by a Bezier curve. As shown in FIG. 4, among the four control points P0, P1, P2, and P3 (hereinafter represented by reference symbol P), a point P0 is set as a start point, a point P3 is set as an end point, and a start point P0, an end point P3 are set. Yes, two control points P1 and P
The Bezier curve L0 determined by the direction and distance of 2 is drawn. This Bezier curve L0 is calculated by the following cubic Bezier function B (t). B (t) = (1- t) 3 · P0 +3 (1-t) 2 · t · P1 +3 (1-t) · t 2 · P2 + t 3 · P3 where a 0 ≦ t ≦ 1, P0 , P1, P2, and P3 indicate control points. By the way, when drawing such a curve using an information processing apparatus, curves having equal intervals (referred to as parallel curves in this specification) may be drawn.

【0004】図11、図12は、4つの制御点P0、P
1、P2、P3で指定されたベジェ曲線L0に幅Wの平
行曲線を描画する状態を表したものである。図11に示
すように、平行曲線を描画する場合、制御点P0、P
1、P2、P3を単純に所定の方向(例えば、矢印A方
向)に幅Wだけ平行移動させた制御点P0′、P1′、
P2′、P3′から、ベジェ曲線L0′を描画しても、
一般に平行曲線にはならない。そこで、従来の情報処理
装置では、ベジェ曲線による平行曲線を描画する場合、
基本となるベジェ曲線L0上の複数の各点で、法線方向
に幅Wの直線31を描画する。または、これら各直線3
1の両端の各点をそれぞれ直線で結ぶことで平行曲線を
描画している。
11 and 12 show four control points P0 and P.
The drawing shows a state in which a parallel curve having a width W is drawn on the Bezier curve L0 designated by 1, P2, and P3. As shown in FIG. 11, when drawing a parallel curve, the control points P0, P
Control points P0 ', P1', which are obtained by simply translating 1, P2, P3 in a predetermined direction (for example, the direction of arrow A) by a width W.
Even if the Bezier curve L0 'is drawn from P2' and P3 ',
Generally, it does not become a parallel curve. Therefore, in the conventional information processing device, when drawing a parallel curve by a Bezier curve,
A straight line 31 having a width W is drawn in the normal direction at a plurality of points on the basic Bezier curve L0. Or these straight lines 3
Parallel curves are drawn by connecting the points at both ends of 1 with straight lines.

【0005】[0005]

【発明が解決しようとする課題】しかし、法線方向の直
線31により平行曲線を描画する場合、法線方向の直線
31の両端の座標数を非常に多くとる必要があり、描画
処理に時間がかかるという問題があった。一方、法線方
向の直線31の数を減らすことで描画処理を早くするこ
とが可能であるが、この場合には、滑らかな平行曲線を
描画することができないという問題があった。更に、各
直線31の間隔が短いと、法線方向が実際の線幅方向と
異なり、綺麗な平行曲線を描画することができない場合
があった。
However, when drawing a parallel curve with the straight line 31 in the normal direction, it is necessary to take an extremely large number of coordinates at both ends of the straight line 31 in the normal direction, and it takes time for the drawing process. There was a problem of this. On the other hand, it is possible to speed up the drawing process by reducing the number of straight lines 31 in the normal direction, but in this case, there is a problem that a smooth parallel curve cannot be drawn. Further, if the distance between the straight lines 31 is short, the normal direction may differ from the actual line width direction, and it may not be possible to draw a clean parallel curve.

【0006】そこで、本発明の目的は、ベジェ曲線によ
り滑らかな平行曲線を高速で描画することが可能な情報
処理装置を提供することにある。
Therefore, an object of the present invention is to provide an information processing apparatus capable of drawing a smooth parallel curve by a Bezier curve at high speed.

【0007】[0007]

【課題を解決するための手段】本発明では、図1に原理
的に示されるように、4つの制御点からベジェ曲線を描
画する情報処理装置において、基準ベジェ曲線Lの制御
点Pと線幅Wを入力する入力手段1と、基準ベジェ曲線
Lの制御点Pと線幅Wから、平行ベジェ曲線Mを描画す
るための新たな制御点Qを決定する制御点決定手段2
と、この制御点決定手段で決定された新たな制御点Qに
よる平行ベジェ曲線Mと基準ベジェ曲線Lとの平行度が
所定の基準値を満たしているか否かを評価する平行度評
価手段3と、この平行度評価手段により基準値を満たし
ていないと判断された場合に、中心線ベジェ曲線Lを分
割する基準ベジェ曲線分割手段4と、前記平行度評価手
段により基準値を満たしていると判断された平行ベジェ
曲線Mを描画する平行ベジェ曲線描画手段5、とを情報
処理装置に具備させて、前記目的を達成する。
According to the present invention, as shown in principle in FIG. 1, in an information processing apparatus for drawing a Bezier curve from four control points, a control point P and a line width of a reference Bezier curve L are drawn. From the input means 1 for inputting W, the control point P of the reference Bezier curve L and the line width W, the control point determination means 2 for determining a new control point Q for drawing the parallel Bezier curve M.
And parallelism evaluation means 3 for evaluating whether or not the parallelism between the parallel Bezier curve M and the reference Bezier curve L by the new control point Q determined by the control point determination means satisfies a predetermined reference value. If the parallelism evaluation unit determines that the reference value is not satisfied, the reference Bezier curve dividing unit 4 that divides the centerline Bezier curve L and the parallelism evaluation unit determine that the reference value is satisfied. The above-mentioned object is achieved by equipping the information processing apparatus with the parallel Bezier curve drawing means 5 that draws the parallel Bezier curve M that has been created.

【0008】請求項2記載の発明では、請求項1記載の
情報処理装置において、中心線ベジェ曲線Lから線幅W
/2の平行ベジェ曲線Mを、中心線ベジェ曲線Lの両側
に描画する。請求項3記載の発明では、請求項2記載の
情報処理装置において、制御点決定手段は、各制御点P
をP0、P1、P2、P3とした場合に、直線〔P0P
1〕と制御点P0で直交する直線上で、始点P0から距
離W/2の点を始点Q0とし、直線〔P2P3〕と制御
点P3で直交する直線上で、終点P3から距離W/2の
点を終点Q3とし、直線〔P1P2〕から距離W/2の
平行線と、前記始点Q0を通り直線〔P0P1〕に平行
な直線との交点を制御点Q1とし、前記平行線と、前記
終点Q3を通り直線〔P2P3〕に平行な直線との交点
を制御点Q2とする。請求項4記載の発明では、請求項
1または請求項2記載の情報処理装置において、平行度
評価手段は、基準ベジェ曲線Lのt=0.5の点と、平
行ベジェ曲線Mのt=0.5の点との距離dと幅Wとか
ら平行度を判断する。請求項5記載の発明では、請求項
1または請求項2記載の情報処理装置において、基準ベ
ジェ曲線分割手段は、基準ベジェ曲線Lをt=0.5の
点で分割する。
According to a second aspect of the present invention, in the information processing apparatus according to the first aspect, the center line Bezier curve L to the line width W.
/ 2 parallel Bezier curves M are drawn on both sides of the centerline Bezier curve L. According to a third aspect of the invention, in the information processing apparatus according to the second aspect, the control point determining means is configured to control each control point P.
Is P0, P1, P2, P3, the straight line [P0P
1] on a straight line orthogonal to the control point P0, a point having a distance W / 2 from the start point P0 is set as a start point Q0, and a straight line orthogonal to the straight line [P2P3] and the control point P3 is separated from the end point P3 by a distance W / 2. A point is set as an end point Q3, an intersection of a parallel line having a distance W / 2 from the straight line [P1P2] and a straight line passing through the start point Q0 and parallel to the straight line [P0P1] is set as a control point Q1, and the parallel line and the end point Q3 are set. An intersection with a straight line passing through and parallel to the straight line [P2P3] is defined as a control point Q2. According to a fourth aspect of the present invention, in the information processing apparatus according to the first or second aspect, the parallelism evaluation means has a point of t = 0.5 of the reference Bezier curve L and t = 0 of the parallel Bezier curve M. The parallelism is determined from the distance d and the width W from the point of 0.5. According to the invention of claim 5, in the information processing apparatus of claim 1 or 2, the reference Bezier curve dividing means divides the reference Bezier curve L at a point of t = 0.5.

【0009】[0009]

【作用】本発明では、制御点決定手段2により、入力手
段1から入力された制御点Pと線幅Wから、または、分
割手段で分割された基準ベジェ曲線Lの制御点Pと線幅
Wから、平行ベジェ曲線Mを描画するための新たな制御
点Qを決定する。ここで決定された制御点Qによる平行
ベジェ曲線Mと基準ベジェ曲線Lとの平行度、例えばM
とLのt=0.5の点間の距離d、が所定の基準値を満
たしているか否かを平行度評価手段3で評価し、満たし
ている場合には、平行ベジェ曲線描画手段5で平行曲線
を描画する。一方、満たしていない場合には、基準ベジ
ェ曲線分割手段4により、基準ベジェ曲線Lを、例えば
t=0.5の点で分割する。この分割後の両ベジェ曲線
Lに対して、同様に、新たな制御点Qの決定、平行度評
価、および分割を、平行度が所定の基準を満たすまで繰
り返す。
In the present invention, the control point determining means 2 is used to control the control points P and the line width W input from the input means 1, or the control points P and the line width W of the reference Bezier curve L divided by the dividing means. From this, a new control point Q for drawing the parallel Bezier curve M is determined. The parallelism between the parallel Bezier curve M and the reference Bezier curve L by the control point Q determined here, for example, M
The parallelism evaluating means 3 evaluates whether or not the distance d between the points t and 0.5 of L and t satisfies a predetermined reference value. If the distance d satisfies the predetermined reference value, the parallel Bezier curve drawing means 5 evaluates. Draw parallel curves. On the other hand, if not satisfied, the reference Bezier curve dividing means 4 divides the reference Bezier curve L at, for example, a point of t = 0.5. Similarly, the determination of a new control point Q, the parallelism evaluation, and the division are repeated for both Bezier curves L after the division until the parallelism satisfies a predetermined criterion.

【0010】[0010]

【実施例】以下、本発明の情報処理装置における一実施
例を図2ないし図10を参照して詳細に説明する。図2
は情報処理装置のハード構成を表したものである。この
図1に示すように、情報処理装置は、本実施例による平
行曲線の描画処理等の各種処理動作を行うCPU(中央
処理装置)11を備えている。このCPU11には、デ
ータバス等のバスライン13を介して、ROM15、R
AM17、画像メモリ19、入力装置21、スキャナ2
3、プリンタ25、ディスプレイ27、通信制御部29
の各部が接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the information processing apparatus of the present invention will be described in detail below with reference to FIGS. Figure 2
Represents the hardware configuration of the information processing apparatus. As shown in FIG. 1, the information processing apparatus includes a CPU (central processing unit) 11 that performs various processing operations such as parallel curve drawing processing according to this embodiment. The CPU 15 is provided with a ROM 15 and an R via a bus line 13 such as a data bus.
AM17, image memory 19, input device 21, scanner 2
3, printer 25, display 27, communication control unit 29
Are connected to each other.

【0011】ROM15は、装置全体をCPU11で制
御するための各種プログラムや、各種データが格納され
たリード・オンリ・メモリである。このROM13に
は、本実施例によるベジェ曲線による平行曲線描画処理
プログラム等の図形処理プログラムや、ベジェ関数、平
行曲線描画処理におけるデータ等が格納されている。R
AM17は、CPU11で行われる各種処理動作におい
て使用されるワーキングメモリとして使用され、また各
種データの保存に使用されるランダム・アクセス・メモ
リである。このRAM17には、図形処理により描画さ
れる、直線や平行曲線といった各種図形の座標値や図形
の種類を特定する図形描画データが格納される。
The ROM 15 is a read only memory in which various programs for controlling the entire apparatus by the CPU 11 and various data are stored. The ROM 13 stores a graphic processing program such as a parallel curve drawing processing program by a Bezier curve according to the present embodiment, a Bezier function, data in the parallel curve drawing processing, and the like. R
The AM 17 is a random access memory used as a working memory used in various processing operations performed by the CPU 11 and used for storing various data. The RAM 17 stores graphic drawing data for specifying coordinate values of various graphics such as straight lines and parallel curves and graphic types drawn by graphic processing.

【0012】画像メモリ19は、画像データを記憶する
ものであり、RAM17に格納されている図形描画デー
タで描画される図形が格納され、この画像メモリ19に
格納されるデータが、プリンタ23やディスプレイ25
に出力されるようになっている。入力装置21は、ポイ
ンティングデバイスとしてのマウス211やキーボード
213等の各種入力装置を備えている。また、入力装置
21には、図示しないタブレットやデジタイザ等の各種
入力装置も接続が可能になっている。スキャナ23は、
画像データを読み込む入力装置で、読み込まれた画像デ
ータは、画像メモリ19に格納されるようになってい
る。プリンタ25およびディスプレイ27は、図形描画
データに従って画像メモリ19に展開された図形データ
を出力する装置である。プリンタ25としては、ドット
プリンタ、レーザプリンタ、XYプロッタ等の各種装置
が使用される。また、ディスプレイ27としては、CR
Tディスプレイや、液晶ディスプレイ等の各種ディスプ
レイが使用される。
The image memory 19 stores image data, stores graphics drawn by the graphic drawing data stored in the RAM 17, and the data stored in the image memory 19 is stored in the printer 23 or the display. 25
It is designed to be output to. The input device 21 includes various input devices such as a mouse 211 as a pointing device and a keyboard 213. In addition, various input devices such as a tablet and a digitizer (not shown) can be connected to the input device 21. The scanner 23
The input device for reading image data stores the read image data in the image memory 19. The printer 25 and the display 27 are devices that output the graphic data expanded in the image memory 19 according to the graphic drawing data. As the printer 25, various devices such as a dot printer, a laser printer, and an XY plotter are used. Also, as the display 27, CR
Various displays such as T displays and liquid crystal displays are used.

【0013】通信制御部29は、LAN(ローカル・エ
リア・ネットワーク)、ファクシミリ通信網、ISDN
(サービス総合ディジタル網)等の各種通信網を介し
て、パーソナルコンピュータやオフィスコンピュータ、
ワークテーション、電子出版システム、ワードプロセッ
サその他各種の情報処理装置や、異機種装置と接続され
ている。この通信制御部29を介して他の情報処理装置
間において、図形描画データ等の各種データの通信が行
われるようになっている。
The communication control unit 29 includes a LAN (local area network), a facsimile communication network, and an ISDN.
Personal computers, office computers, etc. via various communication networks such as (service integrated digital network)
It is connected to work stations, electronic publishing systems, word processors and other various information processing devices, and devices of different models. Communication of various data such as graphic drawing data is performed between other information processing devices via the communication control unit 29.

【0014】次に、このように構成された情報処理装置
における平行曲線描画処理について説明する。 1.平行曲線描画処理の原理 3次ベジェ曲線は、形状を変えずに2つの3次ベジェ曲
線に分割することができる。特に、3次ベジェ曲線をP
(t)(0≦t≦1)なるパラメトリック曲線で表現し
た際の、点t=0.5において2つの3次ベジェ曲線に
分割する方法は容易であることからよく使用される。
Next, the parallel curve drawing processing in the information processing apparatus thus configured will be described. 1. Principle of parallel curve drawing processing A cubic Bezier curve can be divided into two cubic Bezier curves without changing the shape. In particular, the cubic Bezier curve P
The method of dividing into two cubic Bezier curves at the point t = 0.5 when expressed by a parametric curve of (t) (0 ≦ t ≦ 1) is often used because it is easy.

【0015】例えば、図3に示す4点P0、P1、P
2、P3で定義される3次ベジェ曲線L0は形状を変え
ることなく2つの3次ベジェ曲線に分割することがてき
る。すなわち、ベジェ曲線L0は、4点P0、P4、P
7、P9で定義される3次ベジェ曲線L1および4点P
9、P8、P6、P3で定義される3次ベジェ曲線L2
に分割できる。ここで、 P4=(P0+P1)/2 P5=(P1+P2)/2 P6=(P2+P3)/2 P7=(P4+P5)/2=(P0+2P1+P2)/
4 P8=(P5+P6)/2=(P1+2P2+P3)/
4 P9=(P7+P8)/2=〔P0+3(P1+P2)
+P3〕/4 である。このように3次ベジェ曲線は、分割を繰り返し
再帰的に適用することで、際限なく細分することができ
るという性質をもっている。
For example, four points P0, P1 and P shown in FIG.
The cubic Bezier curve L0 defined by 2 and P3 can be divided into two cubic Bezier curves without changing the shape. That is, the Bezier curve L0 has four points P0, P4, P
7th, P3 cubic Bezier curve L1 and 4 points P
Cubic Bezier curve L2 defined by 9, P8, P6 and P3
Can be divided into Here, P4 = (P0 + P1) / 2 P5 = (P1 + P2) / 2 P6 = (P2 + P3) / 2 P7 = (P4 + P5) / 2 = (P0 + 2P1 + P2) /
4 P8 = (P5 + P6) / 2 = (P1 + 2P2 + P3) /
4 P9 = (P7 + P8) / 2 = [P0 + 3 (P1 + P2)
+ P3] / 4. As described above, the cubic Bezier curve has a property that it can be subdivided endlessly by repeatedly applying the division recursively.

【0016】ベジェ曲線による平行曲線(この明細書に
おいて、平行ベジェ曲線という。)を描画する場合、マ
ウス211等から入力された4つの制御点P0、P1、
P2、P3と、平行曲線の線幅Wから、新たな4つの制
御点Q0、Q1、Q2、Q3(以下、符号Qで代表す
る。)を算出する。そして、ベジェ曲線L0のt=0.
5の点(点P9)と、新たな制御点Q0、Q1、Q2、
Q3、から描画される平行ベジェ曲線Mのt=0.5の
点との距離dが所定の基準値以下であれば、平行ベジェ
曲線Mを描画する。一方、距離dが所定の基準値以下で
なければ、上述したベジェ曲線の性質を利用し、元の基
準ベジェ曲線L0をL1、L2に分割し、t=0.5の
点間の距離dを算出する。この距離dが所定の基準値以
下となるまで分割を繰り返す。
When drawing a parallel curve of Bezier curves (referred to as parallel Bezier curves in this specification), four control points P0, P1,
From P2, P3 and the line width W of the parallel curve, four new control points Q0, Q1, Q2, Q3 (hereinafter represented by the symbol Q) are calculated. Then, at the Bezier curve L0, t = 0.
Point 5 (point P9) and new control points Q0, Q1, Q2,
If the distance d from the parallel Bezier curve M drawn from Q3 to the point of t = 0.5 is not more than a predetermined reference value, the parallel Bezier curve M is drawn. On the other hand, if the distance d is not less than or equal to the predetermined reference value, the property of the Bezier curve described above is used to divide the original reference Bezier curve L0 into L1 and L2, and the distance d between points at t = 0.5 is calculated. calculate. The division is repeated until the distance d becomes equal to or less than the predetermined reference value.

【0017】次に平行曲線描画動作を図3から図9を参
照して詳細に説明する。図4は、平行曲線の描画する際
の基準となる基準ベジェ曲線について表したものであ
る。この図4に示すように、始点、2つの制御点、およ
び終点をそれぞれP0、P1、P2、P3とし、これら
4つの制御点によって描画される基準ベジェ曲線をL0
とする。そして、描画する平行曲線の幅をWとする。平
行曲線描画処理では、線幅Wとするための新たな制御点
Qを自動的に決定する制御点決定処理と、決定した新
たな制御点Qによって描画される平行ベジェ曲線Mと、
基準ベジェ曲線Lとの間隔を評価する平行度評価処
理、および、基準ベジェ曲線を分割しての処理を繰
り返すための基準ベジェ曲線分割処理があり、それぞ
れについて説明する。
Next, the parallel curve drawing operation will be described in detail with reference to FIGS. FIG. 4 shows a reference Bezier curve which is a reference when drawing a parallel curve. As shown in FIG. 4, the start point, two control points, and the end point are P0, P1, P2, and P3, respectively, and the reference Bezier curve drawn by these four control points is L0.
And The width of the parallel curve to be drawn is W. In the parallel curve drawing process, a control point determination process for automatically determining a new control point Q for setting the line width W, a parallel Bezier curve M drawn by the determined new control point Q,
There are parallelism evaluation processing for evaluating the interval with the reference Bezier curve L and reference Bezier curve division processing for repeating the processing of dividing the reference Bezier curve, and each of them will be described.

【0018】制御点決定処理 図5は、平行ベジェ曲線Mの制御点Qの決定および平行
度評価について説明するための図である。この図5にお
いて、4つの制御点P0、P1、P2、P3、および線
幅Wが入力され、これらの図形描画情報から平行曲線描
画のための新たな制御点Q0、Q1、Q2、Q3、を求
めるものとする。なお、入力装置から入力された線幅W
のベジェ曲線を描画するには、4つの制御点P0、P
1、P2、P3によるベジェ曲線L0を中心線として両
側に均等に線を太らせることで、より滑らかな平行曲線
が描画される。従って、以下に説明する幅w=W/2の
ベジェ曲線をベジェ曲線L0の両側に、2度描画するこ
ととなる。
Control Point Determination Processing FIG. 5 is a diagram for explaining determination of the control points Q of the parallel Bezier curve M and evaluation of parallelism. In FIG. 5, four control points P0, P1, P2, P3 and a line width W are input, and new control points Q0, Q1, Q2, Q3 for drawing a parallel curve are drawn from these figure drawing information. Shall seek. The line width W input from the input device
To draw the Bezier curve of, four control points P0, P
A smoother parallel curve is drawn by uniformly thickening the lines on both sides with the Bezier curve L0 by 1, P2, and P3 as the center line. Therefore, the Bezier curve having the width w = W / 2 described below is drawn twice on both sides of the Bezier curve L0.

【0019】まず、直線〔P0P1〕から距離wにある
平行線81と、直線〔P1P2〕から距離wにある平行
線82との交点を新たな制御点Q1とする。平行線82
と、直線〔P2P3〕から距離wにある平行線83との
交点を新たな制御点Q2とする。そして、直線〔P0P
1〕と始点P0において直交する直線と、平行線81と
の交点を、新たな始点Q0とする。また、直線〔P2P
3〕と終点P3において直交する直線と、平行線83と
の交点を、新たな終点Q3とする。以上により、新たな
4つの制御点Q0、Q1、Q2、Q3、を決定する。
First, an intersection of a parallel line 81 located at a distance w from the straight line [P0P1] and a parallel line 82 located at a distance w from the straight line [P1P2] is set as a new control point Q1. Parallel line 82
And a point of intersection with the parallel line 83 at a distance w from the straight line [P2P3] is set as a new control point Q2. And a straight line [P0P
1] and a straight line orthogonal to the starting point P0 and the parallel line 81 are set as a new starting point Q0. In addition, a straight line [P2P
[3] and a straight line orthogonal to the end point P3 and the parallel line 83 are set as a new end point Q3. As described above, four new control points Q0, Q1, Q2, Q3 are determined.

【0020】平行度評価処理 制御点決定処理で算出した新たな4つの制御点Q0、Q
1、Q2、Q3、に対するベジェ曲線を平行ベジェ曲線
M0とした場合に、この平行ベジェ曲線M0と元のベジ
ェ曲線L0のt=0.5の点を求めて、それぞれQ9、
P9とする。そして、点Q9と点P9との距離d0を算
出し、線幅wと比較する。距離dと幅wとの差(この明
細書において、平行度という。)が所定の基準値以下で
あれば、例えば、|d−w|≦(w/256)であれ
ば、既に求められている各制御点Qを使ってベジェ曲線
による平行曲線を描画する。
Parallelism evaluation processing Four new control points Q0 and Q calculated in the control point determination processing
When the Bezier curves for 1, Q2, and Q3 are parallel Bezier curves M0, the points at t = 0.5 of the parallel Bezier curve M0 and the original Bezier curve L0 are obtained, and Q9,
P9. Then, the distance d0 between the point Q9 and the point P9 is calculated and compared with the line width w. If the difference between the distance d and the width w (referred to as parallelism in this specification) is equal to or smaller than a predetermined reference value, for example, if | d−w | ≦ (w / 256), it has already been obtained. A parallel curve by a Bezier curve is drawn using each control point Q that exists.

【0021】基準ベジェ曲線分割処理 制御点決定処理で算出した新たな制御点Q0、Q1、Q
2、Q3、からベジェ曲線を描画した場合、元のベジェ
曲線L0との線幅dを求めると中間点付近の線幅が端点
付近の線幅と異なる場合がある。そこで、均等な線幅を
実現するために、基準ベジェ曲線に対して、次のように
分割処理を行っている。すなわち、距離dと幅wとの差
(平行度)が所定値以下でなければ、図3に示すよう
に、中心線となる元の基準ベジェ曲線L0を、t=0.
5の点で、制御点P0、P4、P7、P9による基準ベ
ジェ曲線L1と、制御点P9、P8、P6、P3による
基準ベジェ曲線L2に分割する。
Reference Bezier curve division processing New control points Q0, Q1, Q calculated in the control point determination processing
When a Bezier curve is drawn from 2 and Q3, when the line width d with the original Bezier curve L0 is obtained, the line width near the midpoint may differ from the line width near the end points. Therefore, in order to realize a uniform line width, the reference Bezier curve is divided as follows. That is, if the difference (parallelism) between the distance d and the width w is not less than or equal to a predetermined value, the original reference Bezier curve L0 serving as the center line is t = 0.
At the point 5, the reference Bezier curve L1 formed by the control points P0, P4, P7, and P9 and the reference Bezier curve L2 formed by the control points P9, P8, P6, and P3 are divided.

【0022】以上の基準ベジェ曲線分割処理の後、再
び平行度が基準値以下になるまで、制御点決定処理、
平行度評価処理、および基準ベジェ曲線分割処理を
繰り返す。図6は、分割後の基準ベジェ曲線L1、L2
に対する新たな制御点Qの決定について説明するための
ものである。この図6に示すように、基準ベジェ曲線L
0の分割処理の後、分割後の基準ベジェ曲線L1に対す
る4つの制御点P0、P4、P7、P9と、基準ベジェ
曲線L2に対する4つの制御点P9、P8、P6、P3
に対して、制御点決定処理と、平行度評価処理を行
う。すなわち、基準ベジェ曲線L0の分割処理の後、図
7に示すように、分割後の基準ベジェ曲線L1に対する
4つの制御点P0、P4、P7、P9から、制御点決
定処理によって新たな4つの制御点Q0、Q4、Q7、
Q9を決定する。また、ベジェ曲線L2に対する4つの
制御点P9、P8、P6、P3からも、同様にして新た
な4つの制御点Q9、Q8、Q6、Q3を決定する。
After the above-described reference Bezier curve division processing, the control point determination processing, until the parallelism becomes below the reference value again,
The parallelism evaluation processing and the reference Bezier curve division processing are repeated. FIG. 6 shows the reference Bezier curves L1 and L2 after division.
For determining a new control point Q for As shown in FIG. 6, the reference Bezier curve L
After the division processing of 0, four control points P0, P4, P7, P9 for the divided reference Bezier curve L1 and four control points P9, P8, P6, P3 for the reference Bezier curve L2.
On the other hand, a control point determination process and a parallelism evaluation process are performed. That is, after the division processing of the reference Bezier curve L0, as shown in FIG. 7, from the four control points P0, P4, P7, and P9 for the divided reference Bezier curve L1, four new control points are obtained by the control point determination processing. Points Q0, Q4, Q7,
Determine Q9. Also, four new control points Q9, Q8, Q6, Q3 are similarly determined from the four control points P9, P8, P6, P3 for the Bezier curve L2.

【0023】図7は、分割した基準ベジェ曲線に対する
平行ベジェ曲線の平行度評価処理を説明するためのもの
である。この図7に示すように、制御点Q0、Q4、Q
7、Q9に対する平行ベジェ曲線M1′のt=0.5の
点Q10と、分割後の基準ベジェ曲線L1のt=0.5
の点P10との間の距離d1と幅w(=W/2)とか
ら、平行ベジェ曲線M1′に対する平行度評価処理を
行う。同様に、平行ベジェ曲線M2′と基準ベジェ曲線
L2間の距離d2と幅wから、平行ベジェ曲線M2′の
平行度評価処理を行う。
FIG. 7 is for explaining the parallelism evaluation processing of the parallel Bezier curve with respect to the divided reference Bezier curve. As shown in FIG. 7, control points Q0, Q4, Q
7 and Q9, the point Q10 of the parallel Bezier curve M1 ′ at t = 0.5, and the divided Bezier curve L1 at t = 0.5.
From the distance d1 between the point P10 and the width w (= W / 2), the parallelism evaluation process for the parallel Bezier curve M1 ′ is performed. Similarly, parallelism evaluation processing of the parallel Bezier curve M2 'is performed from the distance d2 and the width w between the parallel Bezier curve M2' and the reference Bezier curve L2.

【0024】図8は、分割前後の基準ベジェ曲線に対す
るベジェ曲線M0とM0′の平行度を説明するための図
であり、図4と図7の平行ベジェ曲線の双方を表示した
ものである。この図8に示されるように、分割前の平行
ベジェ曲線M0は中間点付近の線幅がwよりも狭い。こ
れに対して分割後の平行ベジェ曲線M0′は、基準ベジ
ェ曲線L1のt=0.5の点P9から幅wの点Q9を、
平行ベジェ曲線M1′の終点、平行ベジェ曲線M2′の
始点としているので、平行度がより基準値に近い値とな
っている。
FIG. 8 is a diagram for explaining the parallelism of the Bezier curves M0 and M0 'with respect to the reference Bezier curve before and after the division, and shows both the parallel Bezier curves of FIGS. 4 and 7. As shown in FIG. 8, the parallel Bezier curve M0 before division has a line width near the midpoint smaller than w. On the other hand, the parallel Bezier curve M0 ′ after the division is divided from the point P9 at t = 0.5 of the reference Bezier curve L1 to the point Q9 having the width w,
Since the end point of the parallel Bezier curve M1 'and the start point of the parallel Bezier curve M2' are used, the parallelism is closer to the reference value.

【0025】図9は、以上説明した平行曲線描画処理の
動作を示すフローチャートである。CPU11は、例え
ばキーボード213から、平行曲線描画モードが指定さ
れたか否かを監視している(ステップ11)。平行曲線
描画モードが指定されると(ステップ11;Y)、CP
U11は、バスラインを介してディスプレイ27に、平
行曲線の中心となる基準ベジェ曲線L0に対する制御点
P0、P1、P2、P3、および平行曲線の線幅Wの入
力を求める表示を行う(ステップ12)。マウス211
やキーボード213からこれらの値P、Wが入力される
と、CPU11は、基準ベジェ曲線Ln(nは0、1、
2、…)に対する4つの制御点Pおよび線幅wから新た
な制御点Qを算出し(ステップ13)、その平行ベジェ
曲線Mに対する平行度評価処理を行う(ステップ1
4)。
FIG. 9 is a flowchart showing the operation of the parallel curve drawing process described above. The CPU 11 monitors whether or not the parallel curve drawing mode is specified, for example, from the keyboard 213 (step 11). When the parallel curve drawing mode is specified (step 11; Y), CP
The U11 displays on the display 27 via the bus line the input of the control points P0, P1, P2, P3 and the line width W of the parallel curve with respect to the reference Bezier curve L0 which is the center of the parallel curve (step 12). ). Mouse 211
When these values P and W are input from the or keyboard 213, the CPU 11 causes the reference Bezier curve Ln (n is 0, 1,
A new control point Q is calculated from the four control points P and the line width w for (2, ...) (Step 13), and parallelism evaluation processing for the parallel Bezier curve M is performed (Step 1).
4).

【0026】平行度が所定の基準値以下でない場合(ス
テップ14;N)、基準ベジェ曲線Lnに対して分割処
理を行い(ステップ15)、ステップ13に移行する。
一方、平行度が基準値以下の場合(ステップ14;
Y)、その制御点Qに対する平行ベジェ曲線Mを描画し
た後(ステップ16)、分割後の基準ベジェ曲線Lnに
対する平行ベジェ曲線Mの描画が終了していなければ
(ステップ17;N)、(ステップ13に移行する。分
割後の基準ベジェ曲線Lnの全てに対して、平行度が基
準値以下となる平行ベジェ曲線Mの描画が終了した場合
(ステップ17;Y)、処理を終了する。以上によっ
て、元の基準ベジェ曲線L0に対する、一方の側の平行
曲線が描画され、さらに、他方の側のについても同様
に、制御点決定処理、平行度評価処理、および基
準ベジェ曲線分割処理を繰り返して、線幅W(2w)の
平行曲線が描画される。
When the parallelism is not less than the predetermined reference value (step 14; N), the reference Bezier curve Ln is divided (step 15) and the process proceeds to step 13.
On the other hand, when the parallelism is less than the reference value (step 14;
Y), after drawing the parallel Bezier curve M for the control point Q (step 16), if the drawing of the parallel Bezier curve M for the divided reference Bezier curve Ln is not completed (step 17; N), (step 17). The process moves to 13. When the drawing of the parallel Bezier curve M whose parallelism is equal to or less than the reference value is completed for all the divided reference Bezier curves Ln (step 17; Y), the process is ended. , A parallel curve on one side with respect to the original reference Bezier curve L0 is drawn, and similarly for the other side, the control point determination process, the parallelism evaluation process, and the reference Bezier curve division process are repeated. A parallel curve having a line width W (2w) is drawn.

【0027】図10は他の制御点決定処理を説明するた
めのものである。この制御点決定処理では、基準ベジェ
曲線L0における両端の曲率中心C0、C3から決定す
る。すなわち、基準ベジェ曲線L0の制御点P0、P1
を結ぶ直線〔P0P1〕から距離wの直線を平行線9
1、92とする。そして、曲率中心C0と制御点P0を
通る直線93と、平行線91、92との両交点を、外側
と内側の両平行ベジェ曲線Mの始点Q0とする。また、
曲率中心C0と制御点P1を通る直線94と、平行線9
1、92との両交点を、外側と内側の両平行ベジェ曲線
Mの制御点Q1とする。同様にして、他の曲率中心C3
と、制御点P2、P3とから、制御点Q2と終点Q3を
決定する。
FIG. 10 is for explaining another control point determination process. In this control point determination processing, the determination is made from the centers of curvature C0 and C3 at both ends of the reference Bezier curve L0. That is, the control points P0 and P1 of the reference Bezier curve L0
From the straight line [P0P1] connecting the
1 and 92. Then, the intersection of the straight line 93 passing through the center of curvature C0 and the control point P0 and the parallel lines 91 and 92 is set as the starting point Q0 of the outer and inner parallel Bezier curves M. Also,
A straight line 94 passing through the center of curvature C0 and the control point P1 and a parallel line 9
Both intersections with 1 and 92 are control points Q1 of the outer and inner parallel Bezier curves M. Similarly, the other center of curvature C3
Then, the control point Q2 and the end point Q3 are determined from the control points P2 and P3.

【0028】以上説明した実施例では、中心線ベジェ曲
線L0に対して距離w(=W/2)となる両側に平行ベ
ジェ曲線を2本引くことで全体の線幅をWとしたが、基
準ベジェ曲線L0に対して距離Wとなる一方の側にのみ
平行ベジェ曲線Mを引き、この平行ベジェ曲線Mと基準
ベジェ曲線L0とにより平行曲線を描画することとして
もよい。この方法による平行曲線の描画は、線幅Wが狭
い場合には有効であり、平行ベジェ曲線Mが一方のみで
よいため、処理時間がさらに短縮される。
In the embodiment described above, the total line width is set to W by drawing two parallel Bezier curves on both sides having a distance w (= W / 2) with respect to the center line Bezier curve L0. A parallel Bezier curve M may be drawn only on one side having a distance W with respect to the Bezier curve L0, and a parallel curve may be drawn by the parallel Bezier curve M and the reference Bezier curve L0. The parallel curve drawing by this method is effective when the line width W is narrow, and since only one parallel Bezier curve M is required, the processing time is further shortened.

【0029】また、以上説明した実施例では、平行ベジ
ェ曲線の描画について説明したが、本実施例による平行
曲線から平行ベジェ曲線による太線の描画を行うことも
可能である。すなわち、実施例により描画したベジェ曲
線間に対して塗り潰し処理を行うことで、任意の太さの
ベジェ曲線の描画を高速で行うことが可能となる。
Although the parallel Bezier curves are drawn in the embodiments described above, it is also possible to draw thick lines from the parallel curves according to the present embodiment by the parallel Bezier curves. That is, by performing the filling process between the Bezier curves drawn according to the embodiment, it becomes possible to draw the Bezier curves of arbitrary thickness at high speed.

【0030】[0030]

【発明の効果】本発明の情報処理装置によれば、ベジェ
曲線により滑らかな平行曲線を高速で描画することがで
きる。
According to the information processing apparatus of the present invention, it is possible to draw a smooth parallel curve with a Bezier curve at high speed.

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

【図1】本発明の情報処理装置の原理を示す原理図であ
る。
FIG. 1 is a principle diagram showing a principle of an information processing apparatus of the present invention.

【図2】本発明の情報処理装置における一実施例のハー
ド構成を表したものである。
FIG. 2 illustrates a hardware configuration of an embodiment of an information processing device of the present invention.

【図3】同上、ベジェ曲線の分割についての説明図であ
る。
FIG. 3 is an explanatory diagram of division of a Bezier curve in the same as above.

【図4】同上、平行曲線の描画する際の基準となる基準
ベジェ曲線について表した説明図である。
FIG. 4 is an explanatory diagram showing a reference Bezier curve that serves as a reference when drawing a parallel curve.

【図5】同上、平行ベジェ曲線Mの制御点Qの決定およ
び平行度評価についての説明図である。
FIG. 5 is an explanatory diagram of determination of a control point Q of the parallel Bezier curve M and evaluation of parallelism.

【図6】同上、分割後の基準ベジェ曲線L1、L2に対
する新たな制御点Qの決定についての説明図である。
FIG. 6 is an explanatory diagram for determining a new control point Q for the reference Bezier curves L1 and L2 after division.

【図8】同上、分割した基準ベジェ曲線に対する平行ベ
ジェ曲線の平行度評価処理についての説明図である。
FIG. 8 is an explanatory diagram of parallelism evaluation processing of a parallel Bezier curve with respect to the divided reference Bezier curve.

【図9】同上、平行曲線描画処理の動作を示すフローチ
ャートである。
FIG. 9 is a flowchart showing the operation of parallel curve drawing processing.

【図10】本発明の情報処理装置における制御点Qの他
の決定についての説明図である。
FIG. 10 is an explanatory diagram for another determination of the control point Q in the information processing apparatus of the present invention.

【図11】従来の平行曲線描画についての説明図であ
る。
FIG. 11 is an explanatory diagram of conventional parallel curve drawing.

【図12】従来の平行曲線描画の方法を示す説明図であ
る。
FIG. 12 is an explanatory diagram showing a conventional parallel curve drawing method.

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

1 入力手段 2 制御点決定手段 3 平行度評価手段 4 平行ベジェ曲線描画手段 5 基準ベジェ曲線分割手段 11 CPU 13 バスライン 15 ROM 17 RAM 19 画像メモリ 21 入力装置 211 マウス 213 キーボード 23 スキャナ 25 プリンタ 27 ディスプレイ 29 通信制御部 1 Input Means 2 Control Point Determining Means 3 Parallelism Evaluating Means 4 Parallel Bezier Curve Drawing Means 5 Reference Bezier Curve Dividing Means 11 CPU 13 Bus Lines 15 ROM 17 RAM 19 Image Memory 21 Input Device 211 Mouse 213 Keyboard 23 Scanner 25 Printer 27 Display 29 Communication control unit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年3月16日[Submission date] March 16, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】図面の簡単な説明[Name of item to be corrected] Brief description of the drawing

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

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

【図1】本発明の情報処理装置の原理を示す原理図であ
る。
FIG. 1 is a principle diagram showing a principle of an information processing apparatus of the present invention.

【図2】本発明の情報処理装置における一実施例のハー
ド構成を表したものである。
FIG. 2 illustrates a hardware configuration of an embodiment of an information processing device of the present invention.

【図3】同上、ベジェ曲線の分割についての説明図であ
る。
FIG. 3 is an explanatory diagram of division of a Bezier curve in the same as above.

【図4】同上、平行曲線の描画する際の基準となる基準
ベジェ曲線について表した説明図である。
FIG. 4 is an explanatory diagram showing a reference Bezier curve that serves as a reference when drawing a parallel curve.

【図5】同上、平行ベジェ曲線Mの制御点Qの決定およ
び平行度評価についての説明図である。
FIG. 5 is an explanatory diagram of determination of a control point Q of the parallel Bezier curve M and evaluation of parallelism.

【図6】同上、分割後の基準ベジェ曲線L1、L2に対
する新たな制御点Qの決定についての説明図である。
FIG. 6 is an explanatory diagram for determining a new control point Q for the reference Bezier curves L1 and L2 after division.

【図7】同上、分割した基準ベジェ曲線に対する平行ベ
ジェ曲線の平行度評価処理についての説明図である。
FIG. 7 is an explanatory diagram of parallelism evaluation processing of a parallel Bezier curve with respect to the divided reference Bezier curve.

【図8】分割前後の基準ベジェ曲線に対するベジェ曲線
M0とM0′の平行度についての説明図である。
FIG. 8 is an explanatory diagram of parallelism between Bezier curves M0 and M0 ′ with respect to a reference Bezier curve before and after division.

【図9】同上、平行曲線描画処理の動作を示すフローチ
ャートである。
FIG. 9 is a flowchart showing the operation of parallel curve drawing processing.

【図10】本発明の情報処理装置における制御点Qの他
の決定についての説明図である。
FIG. 10 is an explanatory diagram for another determination of the control point Q in the information processing apparatus of the present invention.

【図11】従来の平行曲線描画についての説明図であ
る。
FIG. 11 is an explanatory diagram of conventional parallel curve drawing.

【図12】従来の平行曲線描画の方法を示す説明図であ
る。
FIG. 12 is an explanatory diagram showing a conventional parallel curve drawing method.

【符号の説明】 1 入力手段 2 制御点決定手段 3 平行度評価手段 4 平行ベジェ曲線描画手段 5 基準ベジェ曲線分割手段 11 CPU 13 バスライン 15 ROM 17 RAM 19 画像メモリ 21 入力装置 211 マウス 213 キーボード 23 スキャナ 25 プリンタ 27 ディスプレイ 29 通信制御部[Explanation of Codes] 1 Input Means 2 Control Point Determining Means 3 Parallelism Evaluating Means 4 Parallel Bezier Curve Drawing Means 5 Reference Bezier Curve Dividing Means 11 CPU 13 Bus Lines 15 ROM 17 RAM 19 Image Memory 21 Input Device 211 Mouse 213 Keyboard 23 Scanner 25 Printer 27 Display 29 Communication control unit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 4つの制御点からベジェ曲線を描画する
情報処理装置において、 基準ベジェ曲線Lの制御点Pと線幅Wを入力する入力手
段と、 基準ベジェ曲線Lの制御点Pと線幅Wから、平行ベジェ
曲線Mを描画するための新たな制御点Qを決定する制御
点決定手段と、 この制御点決定手段で決定された新たな制御点Qによる
平行ベジェ曲線Mと基準ベジェ曲線Lとの平行度が所定
の基準値を満たしているか否かを評価する平行度評価手
段と、 この平行度評価手段により基準値を満たしていないと判
断された場合に、中心線ベジェ曲線Lを分割する基準ベ
ジェ曲線分割手段と、 前記平行度評価手段により基準値を満たしていると判断
された平行ベジェ曲線Mを描画する平行ベジェ曲線描画
手段とを具備することを特徴とする情報処理装置。
1. An information processing apparatus for drawing a Bezier curve from four control points, an input means for inputting a control point P and a line width W of a reference Bezier curve L, and a control point P and a line width of the reference Bezier curve L. Control point determining means for determining a new control point Q for drawing the parallel Bezier curve M from W, and the parallel Bezier curve M and the reference Bezier curve L by the new control point Q determined by this control point determining means. Parallelism evaluation means for evaluating whether or not the parallelism with and satisfies a predetermined reference value, and if the parallelism evaluation means determines that the reference value is not satisfied, the centerline Bezier curve L is divided. An information processing apparatus, comprising: a parallel Bezier curve dividing unit that draws a parallel Bezier curve M that is determined to satisfy a reference value by the parallelism evaluation unit.
【請求項2】 中心線ベジェ曲線Lから線幅W/2の平
行ベジェ曲線Mを、中心線ベジェ曲線Lの両側に描画す
ることを特徴とする請求項1記載の情報処理装置。
2. The information processing apparatus according to claim 1, wherein parallel Bezier curves M having a line width W / 2 from the centerline Bezier curve L are drawn on both sides of the centerline Bezier curve L.
【請求項3】 制御点決定手段は、各制御点PをP0、
P1、P2、P3とした場合に、 直線〔P0P1〕と制御点P0で直交する直線上で、始
点P0から距離W/2の点を始点Q0とし、 直線〔P2P3〕と制御点P3で直交する直線上で、終
点P3から距離W/2の点を終点Q3とし、 直線〔P1P2〕から距離W/2の平行線と、前記始点
Q0を通り直線〔P0P1〕に平行な直線との交点を制
御点Q1とし、 前記平行線と、前記終点Q3を通り直線〔P2P3〕に
平行な直線との交点を制御点Q2とすることを特徴とす
る請求項2記載の情報処理装置。
3. The control point determining means sets each control point P to P0,
When P1, P2, and P3 are set, a straight line [P0P1] and a control point P0 are orthogonal to each other, and a point at a distance W / 2 from the start point P0 is set to a start point Q0, and a straight line [P2P3] is orthogonal to the control point P3. On the straight line, the point at the distance W / 2 from the end point P3 is set as the end point Q3, and the intersection point between the parallel line of the distance W / 2 from the straight line [P1P2] and the straight line passing through the start point Q0 and parallel to the straight line [P0P1] is controlled. 3. The information processing apparatus according to claim 2, wherein a point Q1 is set, and an intersection of the parallel line and a straight line passing through the end point Q3 and parallel to a straight line [P2P3] is set as a control point Q2.
【請求項4】 平行度評価手段は、基準ベジェ曲線Lの
t=0.5の点と、平行ベジェ曲線Mのt=0.5の点
との距離dと幅Wとから平行度を判断することを特徴す
る請求項1または請求項2記載の情報処理装置。
4. The parallelism evaluation means judges the parallelism from the distance d and the width W between the point of t = 0.5 of the reference Bezier curve L and the point of t = 0.5 of the parallel Bezier curve M. The information processing apparatus according to claim 1, wherein the information processing apparatus comprises:
【請求項5】 基準ベジェ曲線分割手段は、基準ベジェ
曲線Lをt=0.5の点で分割することを特徴とする請
求項1または請求項2記載の情報処理装置。
5. The information processing apparatus according to claim 1 or 2, wherein the reference Bezier curve dividing means divides the reference Bezier curve L at a point of t = 0.5.
JP18090993A 1993-06-26 1993-06-26 Information processing equipment Pending JPH0785293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18090993A JPH0785293A (en) 1993-06-26 1993-06-26 Information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18090993A JPH0785293A (en) 1993-06-26 1993-06-26 Information processing equipment

Publications (1)

Publication Number Publication Date
JPH0785293A true JPH0785293A (en) 1995-03-31

Family

ID=16091420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18090993A Pending JPH0785293A (en) 1993-06-26 1993-06-26 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH0785293A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012140910A1 (en) * 2011-04-15 2012-10-18 パナソニック株式会社 Curve-drawing device, curve-drawing method, curve-drawing program, and integrated circuit
CN103390283A (en) * 2012-05-09 2013-11-13 腾讯科技(深圳)有限公司 Method and device for drawing parallel curves

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012140910A1 (en) * 2011-04-15 2012-10-18 パナソニック株式会社 Curve-drawing device, curve-drawing method, curve-drawing program, and integrated circuit
CN102918566A (en) * 2011-04-15 2013-02-06 松下电器产业株式会社 Curve-drawing device, curve-drawing method, curve-drawing program, and integrated circuit
US20130100138A1 (en) * 2011-04-15 2013-04-25 Takaaki Moriyama Curve rendering device, curve rendering method, curve rendering program, and integrated circuit
US9092905B2 (en) 2011-04-15 2015-07-28 Panasonic Intellectual Property Management Co., Ltd. Curve rendering device, curve rendering method, curve rendering program, and integrated circuit
CN103390283A (en) * 2012-05-09 2013-11-13 腾讯科技(深圳)有限公司 Method and device for drawing parallel curves
CN103390283B (en) * 2012-05-09 2017-10-31 腾讯科技(深圳)有限公司 The method and apparatus for drawing parallel curves

Similar Documents

Publication Publication Date Title
Mitchell et al. Pillowing doublets: refining a mesh to ensure that faces share at most one edge
US5548698A (en) Rule based parametric design apparatus and method
JPS6380375A (en) Texture mapping device
JP3556969B2 (en) Projection drawing method
EP4361875A1 (en) Propagation of corner trimming options across a 3d model
JPH0785293A (en) Information processing equipment
US7333109B2 (en) System, method and computer program product for modeling at least one section of a curve
US6927780B2 (en) Fast text/graphics resolution improvement with chain-code table look-up
EP4357963A2 (en) System and methods for automatic repair of missing mate references for tessellated data
JPH0785301A (en) Information processing equipment
JPH07160873A (en) Image data conversion method including Bezier curve
JPH01303489A (en) Character output system
EP4357958A2 (en) System and methods for automatic repair of missing mate references
JP3066060B2 (en) Polygonal approximation method for Besee curve section
EP4361876A1 (en) Propagation of corner connection elements across a 3d model
EP0454125B1 (en) Method of producing characters and figures using computer
JP2018032277A (en) Rectangular mesh generation method
JPH1115994A (en) Surface creation method
JP2780496B2 (en) Clipping method for drawing equipment
KR940001106B1 (en) Line width correction method and device
JPH06259507A (en) Figure dividing device
JPH0785302A (en) Information processing equipment
JP2000137475A (en) Arc drawing method
JPH0589188A (en) Free curved surface generating device
JPH04361380A (en) Molded part designing device