JPH0926777A - Method and device for graphic processing - Google Patents

Method and device for graphic processing

Info

Publication number
JPH0926777A
JPH0926777A JP7174785A JP17478595A JPH0926777A JP H0926777 A JPH0926777 A JP H0926777A JP 7174785 A JP7174785 A JP 7174785A JP 17478595 A JP17478595 A JP 17478595A JP H0926777 A JPH0926777 A JP H0926777A
Authority
JP
Japan
Prior art keywords
point
moving
points
graphic processing
adjacent
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
Application number
JP7174785A
Other languages
Japanese (ja)
Inventor
Shigeki Koyama
茂樹 小山
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP7174785A priority Critical patent/JPH0926777A/en
Publication of JPH0926777A publication Critical patent/JPH0926777A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To lighten the burden of operation on an operator by specifying one of two adjacent points as a moving point according to the attributes of the two adjacent points and moving it if the two points on outlines overlap each other when outline data consisting of end points and control points of a curve are inputted and corrected. SOLUTION: The two adjacent points on the outline data are specified (S201). Here, if the two adjacent points can not be specified, the process ends, but when they can be specified, the coordinate values of the specified two adjacent points are checked and it is judged whether or not those two points overlap each other (S202). When the two adjacent points overlap each other, one of the two adjacent points is specified as the moving point (S203). Thus, the moving point is specified and the movement destination of the specified moving point is specified (S204). The specified moving point is moved to the movement destination (S204). Then, next two adjacent points are specified (S201).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、アウトラインフォ
ント等を構成する輪郭線上の重なり合う隣接点を処理す
る図形処理方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing method and apparatus for processing overlapping adjacent points on a contour line forming an outline font or the like.

【0002】[0002]

【従来の技術】輪郭線を構成する端点及び曲線の制御点
の座標が整数で表現されるアウトラインフォントにおい
て、そのアウトラインフォントを縮小変換して新たな輪
郭線データからなるアウトラインフォント作成する場
合、その輪郭線を構成する端点及び制御点の座標は、変
換後の量子化誤差で、近接する点が同じ座標値になって
重あり合ってしまうことがある。特に輪郭線上の隣接す
る2点同士が重なり合った点については、その輪郭線或
はそのデータを図形編集装置に表示部に表示し、重なり
合っている点を、例えばマウスカーソル等で指示し、そ
れら重なり合った2点のいずれかを移動する等して、互
いに重なり合う輪郭線上の点が発生しないようにしてい
た。
2. Description of the Related Art In an outline font in which the coordinates of the endpoints of a contour and the control points of a curve are expressed by integers, when the outline font is reduced and converted to create an outline font composed of new contour data, The coordinates of the end points and the control points forming the contour line may overlap each other due to the quantization error after the conversion so that adjacent points have the same coordinate value. In particular, with respect to a point where two adjacent points on the contour line overlap each other, the contour line or the data thereof is displayed on the display unit of the graphic editing device, and the overlapping point is indicated by, for example, a mouse cursor or the like, and the overlap point is displayed. In addition, by moving one of the two points, points on the contour line that do not overlap each other are not generated.

【0003】[0003]

【発明が解決しようとする課題】このように上述した従
来の方法によれば、輪郭線上の重なり合う2点をオペレ
ータが指示し、それらの点のいずれかを移動するなどの
処理を全て手作業で行わねばならず、多くの人手と時間
を要していた。また、隣接する2点同士が重なり合った
ままにしておくと、無駄な輪郭線上の点データをメモリ
等に保持することになるばかりか、その輪郭線データに
基づいて輪郭線を発生する場合などには、その輪郭線の
発生処理に支障を来す虞があるという問題があった。
As described above, according to the above-described conventional method, the operator points out two overlapping points on the contour line and moves any one of those points manually. It had to be done and required a lot of manpower and time. Further, if two adjacent points are left overlapping, not only wasteful point data on the contour line is stored in a memory etc., but also when a contour line is generated based on the contour line data. However, there is a problem in that the contour line generation process may be hindered.

【0004】本発明は上記従来例に鑑みてなされたもの
で、端点と曲線の制御点とで構成された輪郭線データに
おいて、隣接2点の重なりを判断し、その重なり合った
隣接2点の重なりを解消するように自動的に処理する図
形処理方法及び装置を提供しようとするものである。
The present invention has been made in view of the above-mentioned conventional example, and in the contour line data constituted by the end points and the control points of the curve, it is judged whether two adjacent points overlap each other, and the two adjacent overlapping points overlap each other. SUMMARY OF THE INVENTION An object of the present invention is to provide a graphic processing method and apparatus for automatically processing so as to solve the above problem.

【0005】また本発明の目的は、輪郭線上の重なり合
う点を抽出し、それら点同士の重なりを解消して、後続
の輪郭線の描画処理等を容易にした図形処理方法及びそ
の装置を提供することにある。
Another object of the present invention is to provide a graphic processing method and apparatus for extracting overlapping points on a contour line, eliminating the overlap between the points, and facilitating subsequent contour line drawing processing and the like. Especially.

【0006】また本発明の他の目的は、輪郭線上の互い
に重なり合う点を移動することにより、不要な輪郭線上
の点座標を記憶し、後続の輪郭線の発生処理に影響を与
えないようにした図形処理方法及びその装置を提供する
ことにある。
Another object of the present invention is to move unnecessary points on a contour line by moving points on the contour line which overlap each other so as not to affect subsequent contour line generation processing. An object is to provide a graphic processing method and an apparatus thereof.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に本発明の図形処理装置は以下のような構成を備える。
即ち、輪郭線を表わす輪郭データを入力して修正する図
形処理装置であって、輪郭線上の隣接2点を特定する特
定手段と、前記特定手段により特定された隣接2点同士
が重なり合っているか否かを判定する判定手段と、前記
判定手段により重なり合っていると判定された隣接2点
のいずれかの点を移動点として特定する移動点特定手段
と、前記移動点特定手段により特定された移動点の移動
先を特定して前記移動点を移動する移動手段とを有す
る。
In order to achieve the above object, the graphic processing apparatus of the present invention has the following configuration.
That is, in a graphic processing device for inputting and correcting contour data representing a contour line, whether or not the specifying means for specifying two adjacent points on the contour line and the two adjacent points specified by the specifying means overlap each other. A moving point specified by the moving point specifying means, a moving point specifying means for specifying any one of the two adjacent points which are judged to overlap with each other as the moving point, and a moving point specified by the moving point specifying means. And a moving means for moving the moving point by specifying the moving destination.

【0008】上記目的を達成するために本発明の図形処
理方法は以下のような工程を備える。即ち、輪郭線を表
わす輪郭データを入力して修正する図形処理方法であっ
て、輪郭線上の隣接2点を特定する工程と、前記隣接2
点同士が重なり合っているか否かを判定する工程と、前
記重なり合っている隣接2点のいずれかの点を移動点と
して特定する移動点の特定工程と、前記特定された移動
点の移動先を特定して前記移動点を移動する工程とを有
する。
In order to achieve the above object, the graphic processing method of the present invention comprises the following steps. That is, it is a graphic processing method for inputting and correcting contour data representing a contour line, which comprises the step of identifying two adjacent points on the contour line,
A step of determining whether or not the points are overlapped with each other, a step of specifying a moving point for specifying any one of the adjacent two adjacent points as a moving point, and a step of specifying the moving destination of the specified moving point. And moving the moving point.

【0009】[0009]

【実施の形態】以下、添付図面を参照して本発明の好適
な実施の形態を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0010】[第1の実施の形態]図1は、本発明の第
1実施の形態に係る図形処理装置の構成を示すブロック
図である。
[First Embodiment] FIG. 1 is a block diagram showing the arrangement of a graphic processing apparatus according to the first embodiment of the present invention.

【0011】図中、1は実施の形態の図形処理装置全体
を示し、制御部2、表示部3、ビデオメモリ(VRA
M)4、キーボード(KB)5、及びマウスなどのポイ
ンティングデバイス(PD)6を主要構成要素としてい
る。尚、これらの各構成要素は、システムバス7を介し
て互いに接続されている。
In the figure, reference numeral 1 denotes the entire graphic processing apparatus according to the embodiment, which includes a control unit 2, a display unit 3 and a video memory (VRA).
An M) 4, a keyboard (KB) 5, and a pointing device (PD) 6 such as a mouse are main components. The respective constituent elements are connected to each other via the system bus 7.

【0012】制御部2は、本実施の形態の図形処理装置
1全体を制御するもので、マイクロプロセッサ等のCP
U(中央演算装置)8、RAM(読み書き可能メモリ)
等により構成されるプログラムメモリ9、I/Oインタ
ーフェース部10及びハードディスク装置11等を備え
ている。CPU8は、後述するフローチャートで表され
る、プログラムメモリ9に記憶されたプログラムに従っ
て本装置1全体を制御している。プログラムメモリ9は
前記プログラムを格納するとともに、CPU8による制
御処理の実行時、輪郭線データや各種データを記憶する
ためのワークエリアとしても使用され、各種データの一
時補間領域を備えている。I/Oインターフェース部1
0は、この実施の形態では、ハードディスク装置11と
のインターフェース制御を行っている。ハードディスク
装置11は、ディスク上の磁気記録媒体にデータを記録
して読み書きする外部記憶装置で、編集された図形デー
タや文書データ、更にはプログラム・メモリ9にダウン
ロードされて実行される各種アプリケーション・プログ
ラムやフォントデータなども記憶している。
The control unit 2 controls the entire graphic processing apparatus 1 of the present embodiment, and is a CP such as a microprocessor.
U (central processing unit) 8, RAM (readable and writable memory)
A program memory 9, an I / O interface unit 10, a hard disk device 11 and the like are provided. The CPU 8 controls the entire apparatus 1 according to a program stored in the program memory 9 which is represented by a flowchart described later. The program memory 9 stores the program and is also used as a work area for storing contour line data and various data when the CPU 8 executes the control process, and has a temporary interpolation area for various data. I / O interface section 1
In this embodiment, 0 controls the interface with the hard disk device 11. The hard disk device 11 is an external storage device that records and reads / writes data on / from a magnetic recording medium on a disk, and edits graphic data and document data, and various application programs executed by being downloaded to the program memory 9. It also stores font data, etc.

【0013】表示部3は、処理された各種図形やオペレ
ータへのメッセージ等を画面に表示するもので、CRT
(陰極線管)或は液晶等で構成されている。ビデオメモ
リ4は、表示部3の画面に表示されるイメージデータが
記憶されている。キーボード5及びポインティングデバ
イス6は、いずれもオペレータにより操作され、各種の
データや指示コマンドを入力するものである。
The display unit 3 displays various processed graphics, messages to the operator, etc. on a screen, and is a CRT.
(Cathode ray tube) or liquid crystal. Image data displayed on the screen of the display unit 3 is stored in the video memory 4. The keyboard 5 and the pointing device 6 are both operated by an operator to input various data and instruction commands.

【0014】次に、図2のフローチャートを参照して、
本実施の形態の図形処理装置1における図形処理を説明
する。
Next, referring to the flow chart of FIG.
The graphic processing in the graphic processing device 1 of the present embodiment will be described.

【0015】図2は、本実施の形態の図形処理装置1に
おける隣接2点の重なりを判定して、その点を移動する
処理動作を示すフローチャートであり、この処理を実行
するための制御プログラムは制御部2のプログラムメモ
リ9に記憶されている。
FIG. 2 is a flow chart showing a processing operation for determining the overlap between two adjacent points and moving the points in the graphic processing apparatus 1 of the present embodiment. The control program for executing this processing is It is stored in the program memory 9 of the control unit 2.

【0016】また、この処理は、ハードディスク装置1
1に記憶されている輪郭線データが後述する図3に示さ
れたデータ構造で、プログラムメモリ9のワークエリア
に格納された状態で開始される。
Further, this processing is performed by the hard disk device 1
The contour line data stored in No. 1 has the data structure shown in FIG. 3 described later and is stored in the work area of the program memory 9 to start.

【0017】本実施の形態では、アウトラインフォント
を構成する輪郭線上の隣接2点を調べ、その隣接2点が
重なっていた時、それら重なった隣接2点が端点同士、
或は曲線の制御点同士ならば、その第1番目の点と、そ
の第1番目の点の1つ前の点との距離を計算する。ま
た、これら重なった第2番目の点と、その第2番目の点
の次の点との距離を計算し、これら計算した距離が長い
ほうの点(第1番目或は第2番目の点))を移動点とし
て特定する。そして、その移動先を、その特定した移動
点の距離を測った片方の点の方向へ1だけずらした場所
とし、その場所へ前記移動点を移動する。またそれら重
なった隣接2点の1つが端点で、他方が曲線の制御点な
らば、その制御点を移動点として特定する。そしてその
移動先を、その特定された移動点が第1番目の点ならそ
の前の点の方向へ1ずらした場所とし、その特定した移
動点が第2番目の点ならば、その次の点の方向へ1ずら
した場所として、その移動点を移動させる。
In the present embodiment, two adjacent points on the contour line forming the outline font are examined, and when the two adjacent points are overlapped, the two adjacent adjacent points are end points,
Alternatively, if the control points are curves, the distance between the first point and the point immediately before the first point is calculated. Also, the distance between the overlapping second point and the point next to the second point is calculated, and the point where the calculated distance is longer (first or second point) ) Is specified as the moving point. Then, the movement destination is set to a place shifted by 1 in the direction of one of the points where the distance of the specified movement point is measured, and the movement point is moved to that place. If one of the two adjacent adjacent points is the end point and the other is the control point of the curve, the control point is specified as the moving point. Then, if the specified moving point is the first point, it is set to a position shifted by 1 in the direction of the previous point, and if the specified moving point is the second point, the next point is set. The moving point is moved as a place shifted by 1 in the direction of.

【0018】以下、フローチャートに従って説明する。The flow chart will be described below.

【0019】まず図2のステップS201で、輪郭線デ
ータ上の隣接する2点を特定する。ここで隣接2点を特
定できなければ終了とする。隣接2点を特定できるとき
はステップS202に進み、ステップS201で特定し
た隣接2点の座標値を調べ、それら2点が重なっている
か否かを判別する。ここで隣接2点が重なっていなけれ
ばステップS201へ進み、次の隣接2点を特定する。
一方、ステップS201において特定した隣接2点が重
なっていればステップS203へ進み、重なっている隣
接2点のいずれかを移動点として特定する。この移動点
を特定する方法は、上記した通りである。
First, in step S201 of FIG. 2, two adjacent points on the contour line data are specified. If two adjacent points cannot be specified here, the process ends. When the two adjacent points can be specified, the process proceeds to step S202, the coordinate values of the two adjacent points specified in step S201 are examined, and it is determined whether or not these two points overlap. If the two adjacent points do not overlap, the process proceeds to step S201, and the next two adjacent points are specified.
On the other hand, if the two adjacent points specified in step S201 overlap, the process proceeds to step S203, and one of the two adjacent points that overlap is specified as the moving point. The method of identifying this moving point is as described above.

【0020】こうして移動点が求められるとステップS
204に進み、ステップS203で特定した移動点の移
動先を特定する。次にステップS205に進み、ステッ
プS203で特定した移動点を、ステップS204で特
定した移動先へ移動する。こうして移動点を移動すると
ステップS205よりステップS201に進み、次の隣
接2点を特定する。
When the moving point is obtained in this way, step S
In step S204, the destination of the moving point identified in step S203 is identified. Next, the process proceeds to step S205, and the moving point specified in step S203 is moved to the moving destination specified in step S204. When the moving point is moved in this way, the process proceeds from step S205 to step S201 to specify the next two adjacent points.

【0021】次に、本実施の形態の輪郭線データについ
て図3及び図4を参照して説明する。
Next, the contour line data of this embodiment will be described with reference to FIGS. 3 and 4.

【0022】図3は、本実施の形態のアウトラインフォ
ントの1文字の輪郭線データテーブルの一例を示す図で
ある。
FIG. 3 is a diagram showing an example of a contour line data table for one character of the outline font of this embodiment.

【0023】図中、Lは各輪郭線の開始点番号を格納し
た輪郭線開始点番号テーブル、Pは各輪郭線の点座標と
点属性とを、輪郭線の回り向き順に格納した輪郭線点テ
ーブルを示している。輪郭線点テーブルPにおいて、全
輪郭線を構成する点の数をnとし各点のX座標を
「x」、Y座標を「y」、点属性を「a」とする。点属
性aにおいて、“0”は直線や曲線の両端点を表す端点
を示し、“1”は曲線の制御点を表す制御点を示してい
る。更に点番号jは0から始まるものとし、jはその各
点の点番号を表すインデックスである。各点の座標値
(x,y)は、その点番号を示すインデックスj(0〜
n)を用いてP[j].x、P[j].y、各点の属性は
P[j].aで表されるものとする。また、j=nの時
のP[n]は、輪郭線点テーブルPの最後として特別に
扱い、その座標値(x,y)及び点属性「a」は“0”
である。
In the figure, L is a contour line start point number table that stores the start point numbers of the contour lines, and P is a contour line point that stores the point coordinates and point attributes of each contour line in the order in which the contour lines are rotated. Shows the table. In the contour point table P, the number of points forming all contours is n, the X coordinate of each point is "x", the Y coordinate is "y", and the point attribute is "a". In the point attribute a, “0” indicates an end point indicating both end points of a straight line or a curve, and “1” indicates a control point indicating a control point of the curve. Further, the point number j starts from 0, and j is an index showing the point number of each point. The coordinate value (x, y) of each point is an index j (0 to 0) indicating the point number.
n), P [j] .x, P [j] .y, and the attribute of each point is represented by P [j] .a. Also, P [n] when j = n is treated specially as the end of the contour point table P, and its coordinate value (x, y) and point attribute “a” are “0”.
It is.

【0024】また、輪郭線開始点番号テーブルLは、こ
のテーブルLにおいて、「l」は輪郭線の総数を示して
いる。また輪郭線番号「i」は0から始まるものとす
る。輪郭線開始番号テーブルLは、このインデックスi
(0〜l)を用いてL[i]で表され、L[0]は、第
0番目の輪郭線の開始点番号として、輪郭線テーブルP
の点番号j=0を格納している。またi=lの時L
[l]は、輪郭線開始テーブルLの最後として特別に扱
い、輪郭線点テーブルPのnの値を格納している。この
例においては、輪郭線の総数lは“3”、制御点の総数
nは“99”であり、L[1]は第1番目の輪郭線の開
始点番号として、輪郭線点テーブルPの点番号j=70
を格納している。また第0番目の輪郭線は、L[0]に
格納されている開始点番号0から、L[1]に格納され
ている開始点番号70の1つ前の69番の点番号で表さ
れる点で構成され、同第0番目の輪郭線上の点の数は、
(L[1]−L[0]=70)で計算される値“70”
となる。
Further, in the contour line start point number table L, "l" in this table L indicates the total number of contour lines. Further, the contour line number “i” starts from 0. The contour line start number table L uses this index i
It is represented by L [i] using (0 to 1), and L [0] is the contour line table P as the start point number of the 0th contour line.
The point number j of 0 is stored. Also, when i = 1, L
[L] is specially treated as the end of the contour line start table L and stores the value of n in the contour line point table P. In this example, the total number l of contour lines is “3”, the total number n of control points is “99”, and L [1] is the start point number of the first contour line, Point number j = 70
Is stored. The 0-th contour line is represented by a point number 69, which is one number before the start point number 70 stored in L [1] from the start point number 0 stored in L [0]. The number of points on the 0th contour line is
Value “70” calculated by (L [1] −L [0] = 70)
Becomes

【0025】図4は、図3で示された輪郭線データに従
って輪郭線と、それを構成する点を示した図である。
FIG. 4 is a diagram showing a contour line according to the contour line data shown in FIG. 3 and points forming the contour line.

【0026】図4において、「□」は直線及び曲線の端
点を示し、「○」は曲線の制御点を示している。また、
この輪郭線上に示された番号は、図3の輪郭線点テーブ
ルのインデックスjの点の点番号に対応している。この
実施の形態では図3と図4において、隣接する2点、点
番号j=20と点番号j=21の点が、隣接2点で曲線
の制御点同士で重なっている。また点番号j=26と点
番号j=27の点が、隣接2点で端点と曲線の制御点と
して重なっている。さらに点番号j=30と点番号j=
31の点が、隣接2点において端点同士で重なってい
る。
In FIG. 4, “□” indicates end points of straight lines and curves, and “◯” indicates control points of curves. Also,
The numbers shown on this contour line correspond to the point numbers of the points of index j in the contour line point table of FIG. In this embodiment, in FIG. 3 and FIG. 4, two adjacent points, that is, the point number j = 20 and the point number j = 21, are overlapped between the control points of the curved line at two adjacent points. Further, the points of the point number j = 26 and the point number j = 27 overlap with the end point and the control point of the curve at two adjacent points. Furthermore, point number j = 30 and point number j =
The 31 points are overlapped at the two adjacent points.

【0027】次に、この具体例に基づいて、前述の図2
のステップS201において実行される隣接2点を特定
する方法を図5のフローチャートを用いて説明する。
Next, based on this specific example, FIG.
A method of identifying two adjacent points executed in step S201 will be described with reference to the flowchart of FIG.

【0028】図5は、図2の処理を隣接2点を特定する
部分を中心に詳しく示したフローチャートで、図2と共
通するステップは同じ番号で示している。図5におい
て、「cp」は隣接2点の第1番目の点、「np」は隣
接2点の第2番目の点、「pp」は、第1番目の点「c
p」の前の点、「nnp」は第2番目の点「np」の次
の点を示している。また、前述したように、iは輪郭線
開始テーブルLのインデックス、jは輪郭線点テーブル
Pのインデックスを示し、「sl」は現在参照している
輪郭線の開始点番号、「el」は、その輪郭線の終了点
番号を示している。
FIG. 5 is a flow chart showing in detail the process of FIG. 2 centering on the portion for identifying two adjacent points, and steps common to FIG. 2 are indicated by the same numbers. In FIG. 5, “cp” is the first point of two adjacent points, “np” is the second point of two adjacent points, and “pp” is the first point “c”.
The point before "p", "nnp", shows the point next to the second point "np". Further, as described above, i indicates the index of the contour line start table L, j indicates the index of the contour line point table P, “sl” is the start point number of the contour line currently referred to, and “el” is The end point number of the contour line is shown.

【0029】まずステップS501において、輪郭線番
号を示すインデックスiを“0”にする。次にステップ
S502に進み、iが輪郭線の総数l(図3の例ではl
=3)に等しいか否かを判断する。ここでiが輪郭線の
総数lと等しくなると隣接2点の特定を終了する。
First, in step S501, the index i indicating the contour line number is set to "0". Next, in step S502, i is the total number of contour lines l (l in the example of FIG. 3).
= 3) is determined. When i becomes equal to the total number l of contour lines, the identification of two adjacent points is completed.

【0030】ステップS502において、iが輪郭線の
総数lと等しくなければステップS503に進み、輪郭
線の開始点番号slをL[i]とし、輪郭線の終了点番
号elを(L[i+1]−1)に特定する。次にステッ
プS504へ進み、点番号を示すインデックスjを、ス
テップS503で特定されたslとする。
If i is not equal to the total number l of contour lines in step S502, the flow advances to step S503 to set the start point number sl of the contour line to L [i] and the end point number el of the contour line to (L [i + 1]. -1). Next, proceeding to step S504, the index j indicating the point number is set to sl identified in step S503.

【0031】図3の例では、ステップS503で、最
初、slの値は(L[0]=0)にセットされ、elの
値は(L[1]−1=69)となる。また、j=0とな
る。
In the example of FIG. 3, in step S503, the value of sl is initially set to (L [0] = 0) and the value of el becomes (L [1] -1 = 69). Also, j = 0.

【0032】次にステップS505に進み、j>elで
あるか否かを判断する。j>elであれば1つの輪郭線
に対する処理が終了したことを示しているためステップ
S507でiを+1して、ステップS502へ戻る。一
方、ステップS505でj>elでなければステップS
506へ進み、隣接2点の第1番目の点cpをjで示さ
れる点に特定する。
Next, in step S505, it is determined whether j> el. If j> el, it means that the process for one contour line is completed, so i is incremented by 1 in step S507, and the process returns to step S502. On the other hand, if j> el is not found in step S505, step S505
Proceeding to 506, the first point cp of the two adjacent points is specified as the point indicated by j.

【0033】次にステップS508に進み、cp=sl
であるか否か、即ち、第1番目の点cpが輪郭線の開始
点であるか否かを判断する。cp=slであればステッ
プS509に進み、隣接2点の第1番目の前の点ppを
el、即ち、その輪郭線の最終点として特定する。また
ステップS508でcp=slでないときはステップS
510に進み、その第1番目の点の1つ前の点、即ち、
pp=cp−1とする。最初は、cp,slが共に
“0”であるためステップS509に進み、第1番目の
点の前の点ppをel(最初の輪郭線の最後の点である
69番目の点)に特定する。
Next, in step S508, cp = sl
Or not, that is, whether or not the first point cp is the start point of the contour line. If cp = sl, the process proceeds to step S509, and the first previous point pp of two adjacent points is identified as el, that is, the final point of the contour line. If cp = sl is not true in step S508, step S508
Proceeding to 510, the point immediately before the first point, that is,
Let pp = cp-1. Initially, since both cp and sl are "0", the process proceeds to step S509, and the point pp before the first point is specified as el (the 69th point which is the last point of the first contour line). .

【0034】次にステップS511へ進み、cp=el
であるか、即ち、第1番目の点がその輪郭線の最終点で
あるか否かを判断する。cp=elであればステップS
512へ進み、隣接2点の第2番目の点npをsl(そ
の輪郭線の開始点)に特定する。一方、ステップS51
1でcp=elでなければステップS513に進み、第
2番目の点npを次の点、即ち(cp+1)に特定す
る。この処理は最初は、cp(=0)で、el=69で
あるため、ステップS503で、第2番目の点npは次
の位置の点(cp+1)=1とする。
Next, in step S511, cp = el
, That is, whether the first point is the final point of the contour line. If cp = el, step S
Proceeding to 512, the second point np of the two adjacent points is specified as sl (start point of the contour line). On the other hand, step S51
If 1 is not cp = el, the process proceeds to step S513, and the second point np is specified as the next point, that is, (cp + 1). Since this process is initially cp (= 0) and el = 69, the second point np is set to the next position point (cp + 1) = 1 in step S503.

【0035】次にステップS514へ進みnp=slで
あるか否か、即ち、第2の番目の点npの番号が現在参
照している輪郭線の開始点番号slであるか否かを判断
する。np=slであればステップS515へ進み、隣
接2点の第2番目の次の点nnpをslに特定する。ま
たステップS514でnp=slでなければ第2番目の
次の点nnpを第2番目の点の次の点(np+1)に特
定する。こうして輪郭線上の2つの点が特定されるとス
テップS517に進み、それら第1の点cpと第2の点
npの座標が等しいか、即ち、隣接する2点が重なって
いるかどうかをみる。重なっていないときはステップS
518に進み、その輪郭線上の次の点の処理に進むが、
一致するとステップS203以降に進み、その移動点の
特定、移動先の特定、移動点の移動等を行ってステップ
S518に進む。
Next, in step S514, it is determined whether or not np = sl, that is, whether or not the number of the second point np is the starting point number sl of the contour line currently referred to. . If np = sl, the process proceeds to step S515, and the second next point nnp of the two adjacent points is specified as sl. If np = sl is not satisfied in step S514, the second next point nnp is specified as the next point (np + 1) after the second point. When two points on the contour line are specified in this way, the process proceeds to step S517, and it is checked whether the coordinates of the first point cp and the second point np are equal, that is, whether two adjacent points overlap. If they do not overlap, step S
Proceed to 518 to process the next point on the contour line,
When they match, the process proceeds to step S203 and subsequent steps, the moving point is specified, the moving destination is specified, the moving point is moved, and the like, and the process goes to step S518.

【0036】ステップS518では、その輪郭線上にお
ける次の点を参照すべくインデックスjを+1してステ
ップS505へ戻る。この例では、最初npが“1”で
slが“0”であるためステップS516に進み、第2
番目の次の点nnpが“2”となる。
In step S518, the index j is incremented by 1 to refer to the next point on the contour line, and the process returns to step S505. In this example, since np is "1" and sl is "0" at the beginning, the process proceeds to step S516 and the second
The second next point nnp becomes “2”.

【0037】次に図6のフローチャートを参照して、図
2のステップS203において実施される移動点を特定
する処理を説明する。
Next, with reference to the flow chart of FIG. 6, the processing for specifying the moving point, which is carried out in step S203 of FIG. 2, will be described.

【0038】図6は、本実施の形態において移動点を特
定する(図2のステップS203)制御手順を示すフロ
ーチャートである。
FIG. 6 is a flowchart showing the control procedure for identifying the moving point (step S203 in FIG. 2) in the present embodiment.

【0039】図6において、cp,npのそれぞれは、
ステップS201により特定された隣接2点の第1番目
の点と第2番目の点の点番号を示し、pp,nnpのそ
れぞれは、同じくステップS201で特定された、第1
番目の点の前の点、第2番目の点の対の点番号をそれぞ
れ示す。また、MVpはステップS203で特定する移
動点を表し、MDpは、特定された移動点を移動する方
向を示す点を表し、同時に、この処理フローチャートで
特定されるものとする。
In FIG. 6, cp and np are respectively
The point numbers of the first point and the second point of the two adjacent points specified in step S201 are shown, and pp and nnp are the same as the first point specified in step S201.
The point numbers of the point before the second point and the pair of the second point are shown. Further, MVp represents a moving point specified in step S203, MDp represents a point indicating a direction in which the specified moving point moves, and at the same time, it is specified in this processing flowchart.

【0040】まず図6のステップS601で、隣接2点
の第1番目の点cpと第2番目の点npの点属性(P
[cp].a)と(P[np].a)が等しいか否かを判
断する。これら2つの点の点属性が等しいということ
は、隣接2点の点属性が端点同士或は曲線の制御点同士
ということである。そして(P[cp].a)=(P
[np].a)であればステップS602へ進む。
First, in step S601 in FIG. 6, the point attribute (P of the first point cp and the second point np of two adjacent points (P
It is determined whether [cp] .a) and (P [np] .a) are equal. The fact that the point attributes of these two points are the same means that the point attributes of two adjacent points are end points or control points of a curve. And (P [cp] .a) = (P
If [np] .a), the process proceeds to step S602.

【0041】ステップS602では、len1は、点c
pから点ppまでの距離の2乗を、またlen2は点n
pから点nnpまでの距離の2乗を表している。即ち、 len1=Vec{P[cp]P[np]} ={(P[pp].x−P[cp].x)の2乗}+
{(P[pp].y−P[cp].y)の2乗} len2=Vec{P[np]P[nnp]} ={(P[nnp].x−P[np].x)の2乗}+
{(P[nnp].y−P[np].y)の2乗} で計算される。なお、ここで「Vec{P[m]P
[n]}は、点P[m]と点P[n]との距離の2乗を
示している。
In step S602, len1 is the point c.
The square of the distance from p to the point pp, and len2 is the point n
It represents the square of the distance from p to the point nnp. That is, len1 = Vec {P [cp] P [np]} = {(P [pp] .x−P [cp] .x) squared} +
{(P [pp] .y-P [cp] .y) squared} len2 = Vec {P [np] P [nnp]} = {(P [nnp] .x-P [np] .x) Squared} +
{(P [nnp] .y−P [np] .y) squared}. Here, "Vec {P [m] P
[N]} indicates the square of the distance between the point P [m] and the point P [n].

【0042】次にステップS603へ進み、これら2つ
の距離に大小を比較する。即ち、len1>len2で
あるか否かを判断する。len1>len2でなければ
ステップS604へ進み、移動点MVpを隣接2点の第
2番目の点npに特定し、移動方向の点MDpを第2番
目の点の次の点nnpに特定する。また、ステップS6
03で、len1>len2であればステップS605
へ進み、移動点MVpを隣接2点の第1番目の点cpに
特定し、更にその移動方向のMDpを第1番目の点の前
の点ppに特定する。
Next, in step S603, the two distances are compared in magnitude. That is, it is determined whether or not len1> len2. If len1> len2 is not satisfied, the flow proceeds to step S604, the moving point MVp is specified as the second point np of the two adjacent points, and the point MDp in the moving direction is specified as the point nnp next to the second point. Step S6
If len1> len2 in 03, step S605.
Then, the moving point MVp is specified as the first point cp of the two adjacent points, and the MDp in the moving direction is specified as the point pp before the first point.

【0043】一方ステップS601で、第1番目の点と
第2番目の点の属性が一致しないとき、即ち、P[c
p].a=P[np].aでなければステップS606へ
進み、第1番目の点cpの点属性が端点であるか否か、
即ち、P[cp].a=0であるか否かを判断する。そ
して端点(P[cp].a=0)でなければステップS
607へ進み、移動点MVpを第1番目の点cpに特定
し、さらに移動方向の点MDpを第1番目の点の前の点
ppに特定する。一方、ステップS606で端点(P
[cp].a=0)であればステップS608へ進み、
移動点MVpを第2番目の点npにし、さらに移動方向
の点MDpを第2番目の点の次の点nnpに特定する。
On the other hand, in step S601, when the attributes of the first point and the second point do not match, that is, P [c
If p] .a = P [np] .a is not satisfied, the process advances to step S606 to determine whether or not the point attribute of the first point cp is an end point.
That is, it is determined whether or not P [cp] .a = 0. If it is not the end point (P [cp] .a = 0), step S
Proceeding to 607, the moving point MVp is specified as the first point cp, and the point MDp in the moving direction is specified as the point pp before the first point. On the other hand, in step S606, the end point (P
[Cp] .a = 0), the process proceeds to step S608,
The moving point MVp is set to the second point np, and the point MDp in the moving direction is specified as the point nnp next to the second point.

【0044】図6に示すフローチャートにおいて、隣接
2点の重なりに伴う具体的な所定の例を、図3の輪郭線
データテーブル及び図4の輪郭線を示した図を参照して
説明する。
In the flowchart shown in FIG. 6, a specific predetermined example associated with the overlapping of two adjacent points will be described with reference to the contour line data table of FIG. 3 and the contour line diagram of FIG.

【0045】図4において、点番号20と点番号21に
よる隣接2点が重なっている場合、この隣接2点の第1
番目の点cpは“20”、第2番目の点npは“2
1”、第1番目の点の前の点ppは“19”、第2番目
の点の次の点nnpは“22”となる。
In FIG. 4, when two adjacent points with the point number 20 and the point number 21 overlap, the first of these two adjacent points
The second point cp is “20” and the second point np is “2”
1 ", the point pp before the first point is" 19 ", and the point nnp next to the second point is" 22 ".

【0046】図3より、点番号20の点属性P[2
0].aは“1”であるため制御点であり、点番号21
の点属性P[21].aも“1”で制御点であるから、
図6のステップS601の判断の後では一致するためス
テップS602へ進む。この図3のテーブルの座標値よ
り計算するとlen1=101、len2=612とな
る。次にステップS603で、len1<len2とな
るのでステップS604へ進み、移動点MVpが第2番
目の点npである点番号“21”に、移動方向の点MV
pが第2番目の次の点nnpである点番号“22”に特
定される。
From FIG. 3, the point attribute P [2 of the point number 20 is shown.
0] .a is a control point because it is “1”, and the point number 21
Since the point attribute P [21] .a of is also a control point with "1",
After the determination of step S601 in FIG. 6, since they match, the process proceeds to step S602. When calculated from the coordinate values in the table of FIG. 3, len1 = 101 and len2 = 612. Next, at step S603, len1 <len2 is established, so the routine proceeds to step S604, where the moving point MVp is at the point number "21" which is the second point np, and the moving point MVp.
p is specified by the point number “22” which is the second next point nnp.

【0047】また、図4における点番号26と点番号2
7による隣接2点の重なりの場合、第1番目の点cpは
“26”、第2番目の点npは“27”、第1番目の点
の前の点ppは“25”、第2番目の点の次の点nnp
は“28”となる。これと同様に、図3より点番号26
の点属性P[26].aは“0”で端点、点番号27の
点属性P[27].aは“1”で制御点を示しているか
ら、図6のステップS601の判断によりステップS6
06へ進む。ここでP[26].aは“0”(端点)で
あるからステップS608へ進み、移動点MVpが第2
番目の点npである点番号“27”、移動方向の点MD
pが第2番目の次の点nnpである点番号“28”に特
定される。
The point number 26 and the point number 2 in FIG.
In the case where two adjacent points are overlapped by 7, the first point cp is “26”, the second point np is “27”, the point pp before the first point is “25”, the second point. Point next to point nnp
Becomes "28". Similarly, from FIG. 3, point number 26
Since the point attribute P [26] .a of "0" is the end point, and the point attribute P [27] .a of the point number 27 is "1", which is the control point, the step S601 of FIG. S6
Proceed to 06. Here, since P [26] .a is “0” (end point), the process proceeds to step S608, where the moving point MVp is the second point.
The point number “27”, which is the n-th point np, and the point MD in the movement direction
p is identified by the point number “28” which is the second next point nnp.

【0048】さらに図4における点番号30と点番号3
1における隣接2点の重なりの場合、第1番目の点cp
は“30”、第2番目の点npは“31”、第1番目の
点の前の点ppは“29”、第2番目の点の次の点nn
pは“32”となる。また図3より、点番号30の点属
性P[30].aは“0”で端点を示し、点番号31の
点属性P[31].aは“0”で端点を示しているか
ら、図6のステップS601よりステップS602へ進
む。ここで2つの距離の2乗len1,len2を計算
し、次のステップS603ではlen1>len2とな
るためステップS604へ進み、移動点MVpが第1番
目の点cpである点番号“30”に、移動方向の点MD
pが第1番目の点の前の点ppである点番号“29”に
特定される。
Furthermore, the point number 30 and the point number 3 in FIG.
In the case of the overlap of two adjacent points in 1, the first point cp
Is “30”, the second point pn is “31”, the point pp before the first point is “29”, and the point nn next to the second point is nn.
p becomes “32”. Further, from FIG. 3, since the point attribute P [30] .a of the point number 30 indicates “0” as an end point and the point attribute P [31] .a of the point number 31 indicates “0” as an end point, The process proceeds from step S601 in FIG. 6 to step S602. Here, the squared distances len1 and len2 of the two distances are calculated, and in the next step S603, len1> len2 is established, so the flow proceeds to step S604, and the moving point MVp is changed to the point number “30” which is the first point cp. Point MD in the moving direction
p is specified by the point number “29” which is the point pp before the first point.

【0049】次に、図2のステップS204において実
施される移動先を特定する処理を、図7〜図10を用い
て説明する。
Next, the processing for identifying the destination, which is carried out in step S204 of FIG. 2, will be described with reference to FIGS.

【0050】図7は、移動先を特定する制御手順を示す
フローチャートである。このフローチャートにおいて、
角度θは、ステップS203で特定された移動点MVp
と移動方向の点MDpを結んだ直線がX軸となす角を示
し、xは移動先の点のx座標、yは移動先の点のy座標
を表している。
FIG. 7 is a flowchart showing the control procedure for specifying the destination. In this flowchart,
The angle θ is the moving point MVp specified in step S203.
Represents the angle formed by the straight line connecting the points MDp in the movement direction with the X axis, where x represents the x coordinate of the destination point, and y represents the y coordinate of the destination point.

【0051】また図8は、図2のステップS203で特
定された移動点MVpと移動方向の点MDpを結んだ直
線がx軸となす角度θを説明する図である。また、図9
は、角度θと座標の位置関係を示した図であり、図9で
は線方向を8方向に分けて、それぞれ角度を番号“0”
〜“7”で示している。これら図8と図9において、例
えば角度θがθ=2/8πの時、移動点MVpから見た
移動方向の点MDpの位置は、移動点MVpから見て右
下の番号“7”で表される方向となる。
FIG. 8 is a view for explaining the angle θ formed by the straight line connecting the moving point MVp specified in step S203 of FIG. 2 and the point MDp in the moving direction with the x axis. In addition, FIG.
FIG. 9 is a diagram showing the positional relationship between the angle θ and the coordinates. In FIG. 9, the line direction is divided into eight directions, and the angles are numbered “0”.
Are indicated by "7". 8 and 9, when the angle θ is θ = 2 / 8π, for example, the position of the point MDp in the moving direction viewed from the moving point MVp is represented by the number “7” at the lower right when viewed from the moving point MVp. It will be the direction to be done.

【0052】図10は、移動先の座標値を説明するため
の図であり、図9で説明した方向番号“0”から“7”
に対応した座標値を、移動点MVpを中心にした8通り
の隣接方向の座標として示している。この図10におい
て、図9の例で説明した方向番号が“7”で表される移
動点MVpの移動先の座標は、座標値が移動点MVpよ
りX座標の値が+1、Y座標の値が+1で表されること
を示している。また方向番号が“4”で表されるような
角度θの場合、移動先の点座標はX座標の値が+0、Y
座標の値が−1されて表されることを示している。
FIG. 10 is a diagram for explaining the coordinate values of the moving destination, and the direction numbers “0” to “7” described in FIG.
The coordinate values corresponding to are shown as eight adjacent coordinate directions centering on the moving point MVp. In FIG. 10, the coordinates of the movement destination of the movement point MVp represented by the direction number “7” described in the example of FIG. 9 have coordinate values of +1 for the X coordinate and Y coordinate for the movement point MVp. Is represented by +1. Further, when the direction number is an angle θ represented by “4”, the point coordinate of the movement destination has an X coordinate value of +0, Y.
It indicates that the value of the coordinate is represented by -1.

【0053】以上の前提を基に図7のフローチャートに
よる処理を以下に説明する。
Based on the above assumptions, the process according to the flowchart of FIG. 7 will be described below.

【0054】まず、ステップS701において、ステッ
プS203で特定された移動点MVpと移動方向の点M
Dpとを結ぶ直線がx軸となす角度θを求める。この
時、角度θは、−πから+πの範囲で求める。次にステ
ップS702に進み、角度θが−9/8≦θ<−7/8
πの範囲(方向番号“2”)にあるか否かを判断する。
そして−9/8≦θ<−7/8πを満足する時はステッ
プS703に進み、移動先のx座標をx=(P[MV
p].x−1)、移動先のy座標をy=(P[MVp].
y)に特定する。即ち、角度θは、図9に示した方向番
号“2”であると判断され、次に、図10より移動点M
Vpから見た方向番号が“2”の移動先の座標値は、点
MVpの位置からxの値を−1、yの値を+0した座標
値であると特定される。
First, in step S701, the moving point MVp specified in step S203 and the point M in the moving direction are determined.
The angle θ formed by the straight line connecting Dp and the x-axis is obtained. At this time, the angle θ is obtained in the range of −π to + π. Next, proceeding to step S702, the angle θ is −9 / 8 ≦ θ <−7/8.
It is determined whether or not it is in the range of π (direction number “2”).
When −9 / 8 ≦ θ <−7 / 8π is satisfied, the process proceeds to step S703, where the x coordinate of the destination is x = (P [MV
p] .x-1), and the y coordinate of the destination is y = (P [MVp].
y). That is, it is determined that the angle θ is the direction number “2” shown in FIG.
The coordinate value of the movement destination having the direction number “2” viewed from Vp is specified as the coordinate value obtained by adding −1 to the value of x and +1 to the value of y from the position of the point MVp.

【0055】一方、ステップS702で−9/8≦θ<
−7/8πの範囲でなければステップS704に進み、
角度θが−7/8π≦θ<−5/8πの範囲(方向番号
“3”)であるか否かを判断する。そうであればステッ
プS705に進み、移動先のx座標をx=(P[MV
p].x−1)、移動先のy座標をy=(P[MVp].
y−1)に特定する。
On the other hand, in step S702, −9 / 8 ≦ θ <
If it is not within the range of −7 / 8π, the process proceeds to step S704,
It is determined whether the angle θ is in the range of −7 / 8π ≦ θ <−5 / 8π (direction number “3”). If so, the process proceeds to step S705, where the x coordinate of the destination is x = (P [MV
p] .x-1), and the y coordinate of the destination is y = (P [MVp].
y-1).

【0056】またステップS704で、−7/8π≦θ
<−5/8πの範囲でなければステップS706に進
み、角度θが−5/8π≦θ<−3/8πの範囲(方向
番号“4”)であるか否かを判断する。そして−5/8
π≦θ<−3/8πであればステップS707に進み、
移動先のx座標をx=(P[MVp].x)とし、移動
先のy座標をy=(P[MVp].y−1)として特定
する。
In step S704, -7 / 8π≤θ
If it is not within the range of <−5 / 8π, the process proceeds to step S706, and it is determined whether the angle θ is within the range of −5 / 8π ≦ θ <−3 / 8π (direction number “4”). And -5/8
If π ≦ θ <−3 / 8π, the process proceeds to step S707,
The x coordinate of the destination is specified as x = (P [MVp] .x), and the y coordinate of the destination is specified as y = (P [MVp] .y−1).

【0057】またステップS706で−5/8π≦θ<
−3/8πの範囲でなければステップS708に進み、
角度θが−3/8π≦θ<−1/8πの範囲(方向番号
“5”)にあるか否かを判断する。そして−3/8π≦
θ<−1/8πの範囲にあればステップS709に進
み、移動先のx座標をx=(P[MVp].x+1)
に、移動先のy座標をy=(P[MVp].y−1)に
特定する。
In step S706, −5 / 8π ≦ θ <
If it is not within the range of −3 / 8π, the process proceeds to step S708,
It is determined whether the angle θ is within the range of −3 / 8π ≦ θ <-1 / 8π (direction number “5”). And −3 / 8π ≦
If it is within the range of θ <-1 / 8π, the process proceeds to step S709, and the x coordinate of the movement destination is x = (P [MVp] .x + 1).
Then, the y coordinate of the destination is specified as y = (P [MVp] .y-1).

【0058】またステップS708で−3/8π≦θ<
−1/8πの範囲でなければステップS710へ進み、
角度θの範囲が−1/8π≦θ<1/8π(方向番号
“6”)であるか否かを判断する。そして−1/8π≦
θ<1/8πであればステップS711に進み、移動先
のx座標をx=(P[MVp].x+1)、移動先のy
座標をy=(P[MVp].y)として特定する。
In step S708, -3 / 8π≤θ <
If it is not in the range of −⅛π, the process proceeds to step S710,
It is determined whether or not the range of the angle θ is −1 / 8π ≦ θ <1 / 8π (direction number “6”). And -1 / 8π ≦
If θ <1 / 8π, the process proceeds to step S711, where the x coordinate of the destination is x = (P [MVp] .x + 1), and the y of the destination is y.
The coordinates are specified as y = (P [MVp] .y).

【0059】またステップS710で、角度θが−1/
8π≦θ<1/8πの範囲になければステップS712
へ進み、角度θが1/8π≦θ<3/8πの範囲(方向
番号“7”)であるか否かを判断する。そして1/8π
≦θ<3/8πであればステップS713へ進み、移動
先のx座標をx=(P[MVp].x+1)、移動先の
y座標をy=P([MVp].y+1)に特定する。
In step S710, the angle θ is -1 /
If not in the range of 8π ≦ θ <1 / 8π, step S712
Then, it is determined whether or not the angle θ is in the range of 1 / 8π ≦ θ <3 / 8π (direction number “7”). And 1 / 8π
If ≦ θ <3 / 8π, the process proceeds to step S713, and the x coordinate of the movement destination is specified as x = (P [MVp] .x + 1) and the y coordinate of the movement destination is specified as y = P ([MVp] .y + 1). .

【0060】更にステップS712で1/8π≦θ<3
/8πでなければステップS714へ進み、角度θが3
/8π≦θ<5/8πの範囲(方向番号“0”)である
か否かを判断する。そして3/8π≦θ5/8πであれ
ばステップS715へ進み、移動先のx座標をx=(P
[MVp].x)、移動先のy座標をy=(P[MV
p].y+1)に特定する。
Further, in step S712, 1 / 8π ≦ θ <3
If it is not / 8π, the process proceeds to step S714, and the angle θ is 3
It is determined whether or not the range is / 8π ≦ θ <5 / 8π (direction number “0”). If 3 / 8π ≦ θ5 / 8π, the process proceeds to step S715, and the x coordinate of the destination is x = (P
[MVp] .x), and the y coordinate of the destination is y = (P [MV
p] .y + 1).

【0061】更にステップS714で、角度θが3/8
π≦θ<5/8πの範囲でなければステップS716へ
進み、角度θが5/8π≦θ<7/8πの範囲(方向番
号“1”)であるか否かを判断する。そして5/8π≦
θ<7/8πであればステップS717へ進み、移動先
のx座標をx=(P[MVp].x−1)に、移動先の
y座標をy=(P[MVp].y+1)に特定する。
Further, in step S714, the angle θ is 3/8.
If it is not within the range of π ≦ θ <5 / 8π, the process proceeds to step S716, and it is determined whether the angle θ is within the range of 5 / 8π ≦ θ <7 / 8π (direction number “1”). And 5 / 8π ≦
If θ <7 / 8π, the process proceeds to step S717, where the x coordinate of the destination is x = (P [MVp] .x−1) and the y coordinate of the destination is y = (P [MVp] .y + 1). Identify.

【0062】最後に、ステップS716で、角度θの範
囲が5/8π≦θ<7/8πでなければステップS71
8に進み、方向番号が“2”であるとして移動先のx座
標をx=(P[MVp].x−1)、移動先のy座標を
y=(P[MVp].y)として特定する。
Finally, in step S716, if the range of the angle θ is not 5 / 8π ≦ θ <7 / 8π, step S71.
Proceed to step 8 and specify that the x coordinate of the destination is x = (P [MVp] .x−1) and the y coordinate of the destination is y = (P [MVp] .y) assuming that the direction number is “2”. To do.

【0063】次に、図2のステップS205において実
行される移動点を移動する処理を説明する。
Next, the process of moving the moving point, which is executed in step S205 of FIG. 2, will be described.

【0064】ここではステップS204において説明し
た通り、移動点MVpの移動先の座標(x,y)が求ま
ったので、これを移動点MVpの新たな座標、x=P
[MVp].x,y=P[MVp].yとすることで、移
動点の移動が完了する。
Here, as described in step S204, since the coordinates (x, y) of the moving destination of the moving point MVp are obtained, this is a new coordinate of the moving point MVp, x = P.
The movement of the movement point is completed by setting [MVp] .x and y = P [MVp] .y.

【0065】以上説明したように第1実施の形態によれ
ば、輪郭線上の隣接2点を自動的に特定し、それら2点
の属性に従っていずれかを移動することにより、それら
隣接2点を互いに位置の異なる点として処理できるよう
になる。
As described above, according to the first embodiment, two adjacent points on the contour line are automatically specified, and either one of them is moved according to the attribute of the two points, so that the two adjacent points are mutually separated. It becomes possible to process as points with different positions.

【0066】[第2の実施の形態]次に、本発明の第2
実施の形態を図11に基づいて説明する。尚、この第2
実施の形態に係る図形処理装置の基本構成及びその処理
に関しては、前述した第1実施の形態の図1及び図2と
同様であるため、これら図1及び図2を用いて説明す
る。
[Second Embodiment] Next, the second embodiment of the present invention will be described.
An embodiment will be described with reference to FIG. In addition, this second
The basic configuration and processing of the graphic processing apparatus according to the embodiment are the same as those in FIGS. 1 and 2 of the above-described first embodiment, and therefore will be described with reference to FIGS. 1 and 2.

【0067】この第2実施の形態では、アウトラインフ
ォントを構成する輪郭線上の隣接2点を調べ、これら隣
接2点が重なっていた時は、その重なった隣接2点が端
点同士、或は曲線の制御点同士であれば、その重なって
いる第1番目の点を移動点として特定し、かつその移動
先を、その前の点の方向へ1ずらした場所として、その
場所へ前記移動点を移動させる。また該重なった隣接2
点が端点と曲線の制御点ならば、その制御点を移動点と
して特定し、その移動先を前記特定した移動点が第1番
目の点なら、その前の点の方向へ1ずらした場所とす
る。また、その特定した移動点が第2番目の点なら、そ
の次の点の方向へ1ずらした場所として前記移動点を移
動させるものである。
In the second embodiment, two adjacent points on the contour line forming the outline font are examined, and when these two adjacent points are overlapped, the two adjacent points overlap each other or end points of a curved line. If they are control points, the overlapping first point is specified as the moving point, and the moving point is set as the place shifted by 1 in the direction of the previous point, and the moving point is moved to that place. Let In addition, the adjacent 2
If the point is an end point and a control point of a curve, the control point is specified as a moving point, and if the specified moving point is the first point, the position is shifted by 1 in the direction of the previous point. To do. If the specified moving point is the second point, the moving point is moved as a place shifted by 1 in the direction of the next point.

【0068】次に、この第2実施の形態を、前述の第1
実施の形態と異なる部分を中心に説明する。この第2実
施の形態において、前述した第1実施の形態と異なる点
は、図6のステップS602、ステップS603、ステ
ップS604及びステップS605において実行され
る、移動点の特定方法が異なるものでその他は同じであ
る。
Next, the second embodiment is the same as the first embodiment described above.
The description will focus on parts different from the embodiment. The second embodiment is different from the above-described first embodiment in that the moving point identification method executed in step S602, step S603, step S604, and step S605 of FIG. 6 is different. Is the same.

【0069】図11は、移動点を特定する制御手順を示
すフローチャートであり、この処理を実行するための制
御プログラムは、制御部2のプログラムメモリ9に記憶
されている。また、この移動処理は、ハードディスク装
置11に記憶されている輪郭線データが図3のデータ構
造でプログラムメモリ9に格納されている状態で開始さ
れる。
FIG. 11 is a flow chart showing the control procedure for specifying the moving point, and the control program for executing this processing is stored in the program memory 9 of the control unit 2. Further, this movement processing is started in a state where the contour line data stored in the hard disk device 11 is stored in the program memory 9 in the data structure shown in FIG.

【0070】図11において、隣接2点の第1及び第2
の点番号cp,npは、前述の図2のステップS20
1,202で特定される。また、第1の点の前の点p
p、第2の点の次の点nnpは、図5の処理で特定され
る点番号を示している。また、MVpは、ステップS2
03で特定される移動点を表し、MDpは、こうして特
定された移動点を移動する方向を示す点を表わし、同時
にこのステップS203で特定されるものとする。
In FIG. 11, first and second adjacent two points
The point numbers cp and np of are the same as those in step S20 of FIG.
1, 202. Also, the point p before the first point
A point p and a point nnp next to the second point indicate the point numbers specified in the processing of FIG. MVp is determined in step S2.
03 represents the moving point, and MDp represents the point indicating the direction in which the moving point thus specified is moved, and is also specified in this step S203.

【0071】まず図11のステップS801で、隣接2
点cpとnpの点属性(P[cp].a)と(P[n
p].a)の点属性が等しいか否かを判断する。ここ
で、隣接2点の第1及び第2の点が互いに等しいという
ことは、隣接2点の点属性が端点同士或は曲線の制御点
同士であることを示している。そして、第1の点の属性
(P[cp].a)と第2の点の属性(P[np].a)
とが等しければステップS802に進み、移動点MVp
を第1の点cpに特定する。さらに、その移動方向の点
MDpを、第1の点の前の点ppに特定する。
First, in step S801 of FIG.
The point attributes (P [cp] .a) and (P [n
p] .a) determines whether the point attributes are the same. Here, the fact that the first and second points of two adjacent points are equal to each other indicates that the point attributes of the two adjacent points are end points or control points of a curve. Then, the attribute of the first point (P [cp] .a) and the attribute of the second point (P [np] .a)
If they are equal to each other, the process proceeds to step S802, and the moving point MVp
To the first point cp. Further, the point MDp in the moving direction is specified as the point pp before the first point.

【0072】一方、ステップS801で2点の属性が等
しくないときはステップS803に進み、第1の点cp
の点属性が端点であるか否か、即ち、第1の点の属性
(P[cp].a)が“0”(端点)であるか否かを判
断する。そしてP[cp].a=0でなければステップ
S804に進み、移動点MVpを第1の点cpに、更に
移動方向の点MDpを第1の点の前の点ppに特定す
る。
On the other hand, if the attributes of the two points are not equal in step S801, the flow advances to step S803, and the first point cp
It is determined whether or not the point attribute of is the end point, that is, whether the attribute (P [cp] .a) of the first point is “0” (end point). Then, if P [cp] .a = 0 is not satisfied, the process proceeds to step S804, and the moving point MVp is specified as the first point cp, and the moving direction point MDp is specified as the point pp before the first point.

【0073】またステップS803で、第1の点の属性
(P[cp].a)が“0”(端点)ならばステップS
805に進み、移動点MVpを第2の点npに、さらに
移動方向の点MDpを第2の点の次の点nnpに特定す
る。
If the attribute (P [cp] .a) of the first point is "0" (end point) in step S803, step S803.
Proceeding to 805, the moving point MVp is specified as the second point np, and the moving direction point MDp is specified as the next point nnp after the second point.

【0074】[第3の実施の形態]次に、本発明の第3
の実施の形態を図12のフローチャートに基づいて説明
する。尚、この第3の実施の形態に係る図形処理装置の
基本構成及び処理動作は前述した第1実施の形態におけ
る図1及び図2と同様であるから、これらの説明を省略
する。
[Third Embodiment] Next, the third embodiment of the present invention will be described.
The embodiment will be described based on the flowchart of FIG. The basic configuration and processing operation of the graphic processing apparatus according to the third embodiment are the same as those shown in FIGS. 1 and 2 in the above-described first embodiment, and a description thereof will be omitted.

【0075】この第3の実施の形態では、アウトライン
フォントを構成する輪郭線上の隣接2点を調べ、これら
隣接2点が重なっていた時、該重なった隣接2点が端点
同士あるいは曲線の制御点同士ならば、それら重なって
いる第2番目の点を移動点として特定し、かつその移動
先を、その次の方向へ1ずらした場所として、その場所
へ前記移動点を移動する。またこれら重なった隣接2点
が端点と曲線の制御点ならば、その制御点を移動点とし
て特定し、特定した移動点が第1番目の点なら、その移
動先を第1番目の点の前の点の方向へ1ずらした場所と
する。また、その特定した移動点が第2番目の点なら
ば、その移動先を第2の点の次の点の方向へ1ずらした
場所として移動点を移動させるものである。
In the third embodiment, two adjacent points on the contour line forming the outline font are examined, and when these two adjacent points overlap, the two adjacent points overlap each other or control points of a curve. If the two points are the same, the overlapping second point is specified as a movement point, and the movement destination is set as a place shifted by 1 in the next direction, and the movement point is moved to that place. If these two adjacent adjacent points are the control points of the end point and the curve, the control point is specified as the movement point, and if the specified movement point is the first point, the movement destination is in front of the first point. The position is shifted by 1 in the direction of the point. Further, if the specified moving point is the second point, the moving point is moved as the place shifted by 1 in the direction of the point next to the second point.

【0076】この第3実施の形態において前述した第1
実施の形態と異なる点は、図6のステップS602、ス
テップS603、ステップS604及びステップS60
5において実行される移動点の特定方法が異なるだけ
で、その他の処理は基本的に同様である。従ってここで
は、異なる処理ステップのみを図12を用いて説明し、
その他の説明は省略する。
The above-mentioned first embodiment in the third embodiment
The difference from the embodiment is that step S602, step S603, step S604 and step S60 in FIG.
The other processes are basically the same except that the method of identifying the moving point executed in 5 is different. Therefore, here, only different processing steps will be described with reference to FIG.
Other description is omitted.

【0077】図12は、移動点を特定する制御処理を示
すフローチャートであり、この処理を実行するための制
御プログラムは制御部2のプログラムメモリ9に記憶さ
れている。また、この移動処理は、ハードディスク装置
11に記憶されている輪郭線データが図3のデータ構造
としてプログラムメモリ9に格納されている状態で開始
される。
FIG. 12 is a flow chart showing the control processing for specifying the moving point, and the control program for executing this processing is stored in the program memory 9 of the control unit 2. Further, this moving process is started in a state where the contour line data stored in the hard disk device 11 is stored in the program memory 9 as the data structure of FIG.

【0078】図12において、隣接2点の第1と第2の
点cp、npは、図2のステップS201,202によ
り特定され、第1番目の点の前の点ppと第2番目の点
の次の点nnpは、同じく図2のステップS201,2
02で特定されたものである。また、MVpはステップ
S203で特定する移動点を表し、MDpは、特定され
た移動点を移動する方向を示す点を表し、同時にこのス
テップS203で特定されるものとする。
In FIG. 12, the first and second points cp and np of the two adjacent points are specified by steps S201 and S202 of FIG. 2, and the point pp and the second point before the first point are specified. The next point nnp is the same as steps S201 and S2 of FIG.
No. 02 specified. Further, MVp represents a moving point specified in step S203, MDp represents a point indicating a direction in which the specified moving point moves, and at the same time, it is specified in step S203.

【0079】まずステップS901で、隣接2点の第1
番目の点cpと第2番目の点npの点属性(P[c
p].a)と(P[np].a)が等しいか否かを判断す
る。ここで2点の属性が等しいということは、これら隣
接2点の点属性が端点同士或は曲線の制御点同士という
ことである。そしてこれら隣接2点の属性が等しい、即
ち、P[cp].a=P[np].aであればステップS
902に進み、移動点MVpを第2番目の点npに特定
する。さらに移動方向の点MDpを、第2番目の点の次
の点nnpに特定する。
First, in step S901, the first of two adjacent points
The point attribute of the second point cp and the second point np (P [c
p] .a) and (P [np] .a) are equal. Here, the fact that the attributes of two points are the same means that the point attributes of these two adjacent points are end points or control points of a curve. If the attributes of these two adjacent points are equal, that is, P [cp] .a = P [np] .a, then step S
Proceeding to 902, the moving point MVp is specified as the second point np. Further, the point MDp in the moving direction is specified as the point nnp next to the second point.

【0080】一方、ステップS901でP[cp].a
=P[np].aでなければステップS903に進み、
第1番目の点cpの点属性が端点であるか否か、即ち、
P[cp].a=0であるか否かを判断する。端点でな
いときはステップS904に進み、移動点MVpを第1
番目の点cpとし、さらに移動方向の点MDpを第1番
目の点の前の点ppとして特定する。一方、ステップS
903で、第1番目野天の属性が端点、即ち、P[c
p].a=0ならばステップS905に進み、移動点M
Vpを第2番目の点npに特定し、更に移動方向の点M
Dpを第2番目の点の次の点nnpとして特定する。
On the other hand, in step S901, P [cp] .a.
= P [np] .a is not satisfied, the process proceeds to step S903,
Whether the point attribute of the first point cp is an end point, that is,
It is determined whether or not P [cp] .a = 0. If it is not the end point, the process proceeds to step S904, and the moving point MVp is set to the first point.
The point MDp in the moving direction is specified as the point cp, and the point MDp in the moving direction is specified as the point pp before the first point. On the other hand, step S
At 903, the attribute of the first field is the end point, that is, P [c
p] .a = 0, the process proceeds to step S905, where the moving point M
Vp is specified as the second point np, and the point M in the moving direction is further specified.
Identify Dp as the next point nnp after the second point.

【0081】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器からなる装置に適用
しても良い。また、本発明はシステム或は装置に本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できる。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. The present invention can also be applied to the case where it is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0082】以上説明したように本実施の形態によれ
ば、端点と曲線の制御点とで構成された輪郭データを入
力し修正する場合、輪郭線上の隣接2点が特定され、こ
れら2点が重なり合っている時、その重なり合った隣接
2点の属性に従って、隣接2点の内のいずれかの点が移
動点として特定され、その特定された移動点の移動先が
特定されて移動される。これにより、隣接2点で重なっ
た点を除外するなどの処理が不要になり、オペレータの
操作の負担を軽減できる。
As described above, according to the present embodiment, when the contour data composed of the end points and the control points of the curve are input and corrected, two adjacent points on the contour line are specified, and these two points are identified. When overlapping, any one of the adjacent two points is specified as a moving point according to the attribute of the adjacent two adjacent points, and the moving destination of the specified moving point is specified and moved. This eliminates the need for processing such as excluding overlapping points between two adjacent points, which reduces the operator's operational burden.

【0083】[0083]

【発明の効果】以上説明したように本発明によれば、端
点と曲線の制御点とで構成された輪郭線データにおい
て、隣接2点の重なりを判断し、その重なり合った隣接
2点の重なりを解消できる効果がある。
As described above, according to the present invention, in the contour line data composed of the end points and the control points of the curve, it is determined whether two adjacent points overlap each other, and the overlapping of the two adjacent points is determined. There is an effect that can be resolved.

【0084】また本発明によれば、輪郭線上の重なり合
う点を抽出し、それら点同士の重なりを解消して、後続
の輪郭線の描画処理等を容易にできる効果がある。
Further, according to the present invention, there is an effect that the overlapping points on the contour line are extracted, the overlapping of these points is eliminated, and the subsequent contour line drawing processing and the like can be facilitated.

【0085】また本発明によれば、輪郭線上の互いに重
なり合う点を移動することにより、不要な輪郭線上の点
座標を記憶し、後続の輪郭線の発生処理に影響を与えな
いようにできるという効果がある。
Further, according to the present invention, by moving the points on the contour line which overlap each other, it is possible to store the point coordinates on the unnecessary contour line so as not to affect the subsequent contour line generation processing. There is.

【0086】[0086]

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

【図1】本発明の第1実施の形態に係る図形作成装置の
概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a graphic creation device according to a first embodiment of the present invention.

【図2】本発明の一実施の形態の図形処理装置における
隣接2点の移動処理を示すフローチャートである。
FIG. 2 is a flowchart showing a moving process of two adjacent points in the graphic processing device according to the embodiment of the present invention.

【図3】本実施の形態の図形処理装置におけるアウトラ
インフォントの1文字の輪郭線データテーブルの一例を
示す図である。
FIG. 3 is a diagram showing an example of a contour line data table of one character of an outline font in the graphic processing device of the present embodiment.

【図4】文字を表わす輪郭線と、その輪郭線を構成する
点の例を示す図である。
FIG. 4 is a diagram showing an example of a contour line representing a character and points forming the contour line.

【図5】本実施の形態の図形処理装置の輪郭線上の隣接
2点を特定する処理を示すフローチャートである。
FIG. 5 is a flowchart showing a process of identifying two adjacent points on the contour line of the graphic processing device according to the present embodiment.

【図6】本発明の第1実施の形態の図形処理装置におけ
る移動点を特定する手順を示すフローチャートである。
FIG. 6 is a flowchart showing a procedure for identifying a moving point in the graphic processing device according to the first embodiment of the present invention.

【図7】本実施の形態の図形処理装置における、移動点
の移動先を特定する手順を示すフローチャートである。
FIG. 7 is a flowchart showing a procedure for identifying a moving destination of a moving point in the graphic processing device according to the present embodiment.

【図8】移動点の移動処理に必要な移動点の移動先を特
定する例を説明する図である。
FIG. 8 is a diagram illustrating an example of identifying a destination of a moving point necessary for moving processing of a moving point.

【図9】本実施の形態における移動点の移動処理に必要
な移動方向を示す図である。
FIG. 9 is a diagram showing a moving direction required for moving processing of a moving point in the present embodiment.

【図10】移動点の移動処理に必要な移動先を説明する
図である。
FIG. 10 is a diagram illustrating a movement destination required for movement processing of a movement point.

【図11】本発明の第2実施の形態に係わる図形処理装
置の移動点を特定する手順を示すフローチャートであ
る。
FIG. 11 is a flowchart showing a procedure for identifying a moving point of the graphic processing device according to the second embodiment of the present invention.

【図12】本発明の第3実施の形態に係わる図形処理装
置の移動点を特定する手順を示すフローチャートであ
る。
FIG. 12 is a flowchart showing a procedure for identifying a moving point of the graphic processing device according to the third embodiment of the present invention.

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

1 図形処理装置 2 制御部 3 表示部(CRT) 4 ビデオメモリ(VRAM) 5 キーボード(KBD) 6 ポインティングデバイス(PD) 8 CPU 1 Graphic Processing Device 2 Control Unit 3 Display Unit (CRT) 4 Video Memory (VRAM) 5 Keyboard (KBD) 6 Pointing Device (PD) 8 CPU

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 輪郭線を表わす輪郭データを入力して修
正する図形処理方法であって、 輪郭線上の隣接2点を特定する工程と、 前記隣接2点同士が重なり合っているか否かを判定する
工程と、 前記重なり合っている隣接2点のいずれかの点を移動点
として特定する移動点の特定工程と、 前記特定された移動点の移動先を特定して前記移動点を
移動する工程と、を有することを特徴とする図形処理方
法。
1. A graphic processing method for inputting and modifying contour data representing a contour line, the method comprising the step of identifying two adjacent points on the contour line, and determining whether or not the two adjacent points overlap each other. A step of specifying a moving point that specifies one of the two adjacent overlapping points as a moving point, and a step of specifying a destination of the specified moving point and moving the moving point, A graphic processing method comprising:
【請求項2】 前記特定工程において、重なり合ってい
る隣接2点を第1と第2の点とする時、前記第1と第2
の点の属性が異なるとき、前記第1の点の属性が端点で
あれば前記第2の点を移動点とすることを特徴とする請
求項1に記載の図形処理方法。
2. In the identifying step, when two adjacent points that overlap are defined as a first point and a second point, the first and second points are defined.
2. The graphic processing method according to claim 1, wherein when the attributes of the first point are different from each other, if the attribute of the first point is an end point, the second point is set as a moving point.
【請求項3】 前記特定工程において、重なり合ってい
る隣接2点を第1と第2の点とする時、前記第1と第2
の点の属性が異なるとき、前記第1の点の属性が曲線の
制御点であれば前記第1の点を移動点とすることを特徴
とする請求項1に記載の図形処理方法。
3. In the identifying step, when two adjacent points that overlap are defined as a first point and a second point, the first and second points are defined.
2. The graphic processing method according to claim 1, wherein when the attributes of the first point are different, if the attribute of the first point is a control point of a curve, the first point is set as a moving point.
【請求項4】 前記特定工程において、前記重なり合っ
ている隣接2点を第1と第2の点とする時、前記第1と
第2の点の属性が同じであるとき、前記第1の点とその
前の点との距離と、前記第2の点と当該第2の点の次の
点との距離とを比較し、距離が長い方の点を移動点とす
ることを特徴とする請求項1に記載の図形処理方法。
4. In the identifying step, when the overlapping two adjacent points are a first point and a second point, and when the attributes of the first point and the second point are the same, the first point is the same. A distance between the second point and a point next to the second point is compared, and a point having a longer distance is set as a moving point. The graphic processing method according to item 1.
【請求項5】 前記特定工程において、前記重なり合っ
ている隣接2点を第1と第2の点とする時、前記第1と
第2の点の属性が同じであるとき、前記第1の点を移動
点とすることを特徴とする請求項1に記載の図形処理方
法。
5. In the identifying step, when the two adjacent points that overlap each other are designated as a first point and a second point, and when the attributes of the first point and the second point are the same, the first point 2. The graphic processing method according to claim 1, wherein is set as a moving point.
【請求項6】 前記特定工程において、前記重なり合っ
ている隣接2点を第1と第2の点とする時、前記第1と
第2の点の属性が同じであるとき、前記第2の点を移動
点とすることを特徴とする請求項1に記載の図形処理方
法。
6. In the specifying step, when the two adjacent points that overlap each other are defined as a first point and a second point, and when the attributes of the first point and the second point are the same, the second point is the same. 2. The graphic processing method according to claim 1, wherein is set as a moving point.
【請求項7】 前記特定工程において、前記重なり合っ
ている隣接2点を第1と第2の点とする時、前記第1と
第2の点の属性が異なるとき、前記第1の点の属性が端
点でないときは、前記第1の点を移動点とすることを特
徴とする請求項1に記載の図形処理方法。
7. The attribute of the first point when the two adjacent points that overlap each other are defined as a first point and a second point in the specifying step, and when the attributes of the first point and the second point are different from each other. 2. The graphic processing method according to claim 1, wherein the first point is a moving point when is not an end point.
【請求項8】 前記点の属性は、線分或は曲線の端点或
は曲線の制御点のいずれかを示すことを特徴とする請求
項1〜7のいずれか1項に記載の図形処理方法。
8. The graphic processing method according to claim 1, wherein the attribute of the point indicates either a line segment, an end point of a curve, or a control point of a curve. .
【請求項9】 前記移動点の移動先は、前記移動点が隣
接2点の第1の点であれば、前記第1の点の前の点の位
置方向へ1ずらした場所とする請求項2乃至8のいずれ
か1項に記載の図形処理方法。
9. The moving destination of the moving point is a position shifted by 1 in the position direction of the point before the first point if the moving point is the first point of two adjacent points. The graphic processing method according to any one of 2 to 8.
【請求項10】 前記移動点の移動先は、前記移動点が
隣接2点の第2の点であれば、前記第2の点の次の点の
位置方向へ1ずらした場所とする請求項2乃至8のいず
れか1項に記載の図形処理方法。
10. The moving destination of the moving point is a place shifted by 1 in the position direction of the point next to the second point if the moving point is a second point of two adjacent points. The graphic processing method according to any one of 2 to 8.
【請求項11】 輪郭線を表わす輪郭データを入力して
修正する図形処理装置であって、 輪郭線上の隣接2点を特定する特定手段と、 前記特定手段により特定された隣接2点同士が重なり合
っているか否かを判定する判定手段と、 前記判定手段により重なり合っていると判定された隣接
2点のいずれかの点を移動点として特定する移動点特定
手段と、 前記移動点特定手段により特定された移動点の移動先を
特定して前記移動点を移動する移動手段と、を有するこ
とを特徴とする図形処理装置。
11. A graphic processing device for inputting and modifying contour data representing a contour line, wherein specifying means for specifying two adjacent points on the contour line and two adjacent points specified by the specifying means overlap each other. Determining means for determining whether or not the moving point is specified, the moving point specifying means for specifying any one of the two adjacent points determined to be overlapping by the judging means as a moving point, and the moving point specifying means for specifying And a moving means for moving the moving point by specifying a moving destination of the moving point.
【請求項12】 前記移動点特定手段は、重なり合って
いる隣接2点を第1と第2の点とする時、前記第1と第
2の点の属性が異なるとき、前記第1の点の属性が端点
であれば前記第2の点を移動点とすることを特徴とする
請求項11に記載の図形処理装置。
12. The moving point identifying means determines, when two adjacent overlapping points are first and second points, and when the attributes of the first and second points are different from each other. The graphic processing apparatus according to claim 11, wherein if the attribute is an end point, the second point is a moving point.
【請求項13】 前記移動点特定手段は、重なり合って
いる隣接2点を第1と第2の点とする時、前記第1と第
2の点の属性が異なるとき、前記第1の点の属性が曲線
の制御点であれば前記第1の点を移動点とすることを特
徴とする請求項11に記載の図形処理装置。
13. The moving point identifying means determines, when two adjacent overlapping points are first and second points, and when the attributes of the first and second points are different from each other. The graphic processing device according to claim 11, wherein if the attribute is a control point of a curve, the first point is set as a moving point.
【請求項14】 前記移動点特定手段は、前記重なり合
っている隣接2点を第1と第2の点とする時、前記第1
と第2の点の属性が同じであるとき、前記第1の点とそ
の前の点との距離と、前記第2の点と当該第2の点の次
の点との距離とを比較し、距離が長い方の点を移動点と
することを特徴とする請求項11に記載の図形処理装
置。
14. The moving point specifying means sets the first point when the adjacent two adjacent points are the first point and the second point.
And the attributes of the second point are the same, the distance between the first point and the previous point is compared with the distance between the second point and the next point of the second point. The graphic processing device according to claim 11, wherein a point having a longer distance is set as a moving point.
【請求項15】 前記移動点特定手段は、前記重なり合
っている隣接2点を第1と第2の点とする時、前記第1
と第2の点の属性が同じであるとき、前記第1の点を移
動点とすることを特徴とする請求項11に記載の図形処
理装置。
15. The moving point specifying means sets the first point when the adjacent two adjacent points are a first point and a second point.
12. The graphic processing device according to claim 11, wherein the first point is set as a moving point when the attributes of the second point and the second point are the same.
【請求項16】 前記移動点特定手段は、前記重なり合
っている隣接2点を第1と第2の点とする時、前記第1
と第2の点の属性が同じであるとき、前記第2の点を移
動点とすることを特徴とする請求項11に記載の図形処
理装置。
16. The moving point specifying means sets the first adjacent point when the adjacent two adjacent points are the first point and the second point.
12. The graphic processing apparatus according to claim 11, wherein the second point is a moving point when the attributes of the second point and the second point are the same.
【請求項17】 前記移動点特定手段は、前記重なり合
っている隣接2点を第1と第2の点とする時、前記第1
と第2の点の属性が異なるとき、前記第1の点の属性が
端点でないときは、前記第1の点を移動点とすることを
特徴とする請求項11に記載の図形処理装置。
17. The moving point specifying means sets the first point when the adjacent two adjacent points are a first point and a second point.
12. The graphic processing device according to claim 11, wherein when the attribute of the first point is different from the attribute of the second point, and when the attribute of the first point is not the end point, the first point is set as the moving point.
【請求項18】 前記点の属性は、線分の端点或は曲線
の制御点であることを表わす情報であることを特徴とす
る請求項11〜17のいずれか1項に記載の図形処理装
置。
18. The graphic processing device according to claim 11, wherein the attribute of the point is information indicating an end point of a line segment or a control point of a curve. .
【請求項19】 前記移動点の移動先は、前記移動点が
隣接2点の第1の点であれば、前記第1の点の前の点の
位置方向へ1ずらした場所とする請求項12乃至18の
いずれか1項に記載の図形処理装置。
19. The moving destination of the moving point is a place shifted by 1 in the position direction of the point before the first point if the moving point is the first point of two adjacent points. The graphic processing device according to any one of 12 to 18.
【請求項20】 前記移動点の移動先は、前記移動点が
隣接2点の第2の点であれば、前記第2の点の次の点の
位置方向へ1ずらした場所とする請求項12乃至18の
いずれか1項に記載の図形処理装置。
20. The moving destination of the moving point is a position shifted by 1 in the position direction of the point next to the second point if the moving point is a second point of two adjacent points. The graphic processing device according to any one of 12 to 18.
JP7174785A 1995-07-11 1995-07-11 Method and device for graphic processing Withdrawn JPH0926777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7174785A JPH0926777A (en) 1995-07-11 1995-07-11 Method and device for graphic processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7174785A JPH0926777A (en) 1995-07-11 1995-07-11 Method and device for graphic processing

Publications (1)

Publication Number Publication Date
JPH0926777A true JPH0926777A (en) 1997-01-28

Family

ID=15984634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7174785A Withdrawn JPH0926777A (en) 1995-07-11 1995-07-11 Method and device for graphic processing

Country Status (1)

Country Link
JP (1) JPH0926777A (en)

Similar Documents

Publication Publication Date Title
JPH0926777A (en) Method and device for graphic processing
JPH0565906B2 (en)
JP3353212B2 (en) Leader automatic creation method and leader automatic creation system
JP3305395B2 (en) Figure division device
JP2777628B2 (en) Graphic processing method and apparatus
JPS6061866A (en) Chamfering system of graphic processing system
JPH0922459A (en) Graphic processing method and device therefor
JP3405827B2 (en) Graphic processing apparatus and intersection determination processing method
JP2723058B2 (en) Line-symmetric figure input device
JPH0855244A (en) Stereographic data input method
JP2606176B2 (en) Graphic processing unit
JP2721344B2 (en) Image processing method
JPH03136173A (en) Graphic editing device
JPS63213090A (en) Control instruction string development system for line segment plotting
JPH05173750A (en) Graphic processor
JPH0436882A (en) Ruled line vector correcting method
JPH0478963A (en) Graphic data input system
JPH0488560A (en) Method and device for angle correction processing for leader line of drawing
JPS63189975A (en) Graphic input device
JPH08185434A (en) Facilities drawing generating device
JPH0457167A (en) Parametric design device
JPH0527875B2 (en)
JPH0355871B2 (en)
JPH02236690A (en) Method and device for processing graphic
JPH06149915A (en) Graphic input device

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: 20021001