[go: up one dir, main page]

JPH0816834B2 - Curve generation method - Google Patents

Curve generation method

Info

Publication number
JPH0816834B2
JPH0816834B2 JP60093131A JP9313185A JPH0816834B2 JP H0816834 B2 JPH0816834 B2 JP H0816834B2 JP 60093131 A JP60093131 A JP 60093131A JP 9313185 A JP9313185 A JP 9313185A JP H0816834 B2 JPH0816834 B2 JP H0816834B2
Authority
JP
Japan
Prior art keywords
curve
point
position information
edit mode
storage means
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.)
Expired - Lifetime
Application number
JP60093131A
Other languages
Japanese (ja)
Other versions
JPS61250688A (en
Inventor
二郎 吉井
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP60093131A priority Critical patent/JPH0816834B2/en
Publication of JPS61250688A publication Critical patent/JPS61250688A/en
Publication of JPH0816834B2 publication Critical patent/JPH0816834B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、パターン処理機能を持つ情報処理装置に用
いて好適な曲線発生方法に関する。
TECHNICAL FIELD OF THE INVENTION The present invention relates to a curve generation method suitable for use in an information processing apparatus having a pattern processing function.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

従来、次式で表わされる曲線を求める場合、xが変化
する毎にxiを計算していた。
Conventionally, when a curve represented by the following equation is obtained, x i is calculated every time x changes.

パターン処理機能を持つ情報処理装置では、上記式で表
わされる様な曲線のドットパターンを生成するため、曲
線パターンを形成するドットのx座標値(x)、y座標
値(y)、y座標値を更新するための値(f)、この値
(f)を更新するためのデータ(Δ1f,Δ2f,…Δnf)等
をそれぞれ別個に記憶する手段を用意し、この各記憶手
段を処理装置が所定の手順で操作して曲線のドットパタ
ーンが描画される。
In an information processing apparatus having a pattern processing function, a dot pattern of a curve represented by the above equation is generated, and therefore, x coordinate value (x), y coordinate value (y), y coordinate value of dots forming the curve pattern are generated. (F) for updating the value (f), data (Δ 1 f, Δ 2 f, ... Δ n f) for updating this value (f), etc. The processing device operates the means in a predetermined procedure to draw a curved dot pattern.

即ち、通過ポイントの位置指定を行なうことにより一
括して曲線発生が行なわれる。ところで、スプライン,
スプループ曲線は、その通過ポイントによって曲線局部
の形状が大きく変化するため、希望する形状の曲線を生
成する場合、試行錯誤を繰返し通過ポイントを位置決め
する必要がある。
That is, a curve is collectively generated by designating the position of the passing point. By the way, splines,
Since the shape of the local portion of the sploop curve greatly changes depending on the passing point, it is necessary to repeat trial and error to position the passing point when generating a curve having a desired shape.

〔発明の目的〕[Object of the Invention]

本発明はその通過ポイントを会話的に修正指示し再描
画する手段を供給することにより、操作性の向上をはか
った曲線発生方法を提供することを目的とする。
It is an object of the present invention to provide a method for generating a curve with an improved operability by providing a means for interactively instructing and redrawing the passing point and redrawing.

〔発明の概要〕[Outline of Invention]

曲線は具体的には入力された順序に連続する3点を3
次曲線にて近似発生する。従って上記目的を実現するた
め、指示された座標値を入力順に順序付けて記憶する手
段と、指示ポイントをマーカ表示する手段、スプライン
曲線を描画する手段とを具備し、指示済みポイントを指
定して新たな位置への移動を指示することにより曲線を
修正し再描画する。そして指示ポイントを追加・削除す
る手段が付加される。
Specifically, the curve is made up of 3 consecutive points in the input order.
Approximately occurs with the following curve. Therefore, in order to achieve the above-mentioned object, it is provided with means for storing the ordered coordinate values in order of input, means for displaying the designated points by a marker, and means for drawing a spline curve, and newly designating the designated points. The curve is modified and redrawn by instructing to move to a different position. Then, a means for adding / deleting instruction points is added.

このことにより希望する形状の曲線を発生するのにコ
ンピュータと会話しながら再描画出来、従って操作性が
向上する。
This allows redrawing while talking to the computer to generate a curve of the desired shape, thus improving operability.

〔発明の実施例〕Example of Invention

以下、図面を使用して本発明に関し詳細に説明する。
第1図は本発明の一実施例を示すブロック図である。図
において、1は各種レジスタを操作し、曲線発生アルゴ
リズムに基づき所望曲線パターンを生成する処理装置
(CPU)である。2は上記処理を実行するための種々の
プログラムが格納されるメインメモリであり、本発明と
関係するところでは、ポイント記憶・修正プログラム、
曲線生成プログラム、そして、ポイントテーブル等が含
まれる。
Hereinafter, the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 1 is a processing device (CPU) that operates various registers to generate a desired curve pattern based on a curve generation algorithm. Reference numeral 2 is a main memory in which various programs for executing the above-mentioned processing are stored.
A curve generation program, a point table, etc. are included.

3は出力装置である。出力装置3は、上記処理装置1
からの指示に従がい曲線発生のために用意されるレジス
タ群(図示せず)の内容を読込み、曲線パターンを形成
するドットを順次セットする。本発明実施例では、表示
メモリ31、表示モニタ32が相当する。4はキーボード等
入力装置である。入力装置4は表示画面上のポイント指
定、曲線の描画指示、ポイントの訂正、挿入、削除を指
示するために設けられ、本発明実施例ではキーボードユ
ニットが相当する。尚、図示はしないが用途に応じ出力
装置3としてプリンタ、そして外部メモリを付加しても
構わない。上記メインメモリ2、出力装置3、入力装置
4は処理装置1が持つバス5に共通接続される。
3 is an output device. The output device 3 is the processing device 1 described above.
The contents of the register group (not shown) prepared for generating the curve according to the instruction from are read and the dots forming the curve pattern are sequentially set. In the embodiment of the present invention, the display memory 31 and the display monitor 32 correspond. Reference numeral 4 is an input device such as a keyboard. The input device 4 is provided for designating points on the display screen, instructing drawing of curves, correcting, inserting, and deleting points, and corresponds to a keyboard unit in the embodiment of the present invention. Although not shown, a printer and an external memory may be added as the output device 3 depending on the application. The main memory 2, the output device 3, and the input device 4 are commonly connected to the bus 5 of the processing device 1.

第2図、第3図、第4図、第5図は本発明実施例の動
作を説明するために引用した図であり、修正前の状態、
ポイント修正例、ポイント挿入例、ポイント削除例のそ
れぞれを示す。
FIGS. 2, 3, 4, and 5 are views quoted to explain the operation of the embodiment of the present invention.
Each of a point correction example, a point insertion example, and a point deletion example is shown.

第6図は本発明によるポイント修正手順をフローチャ
ートで示した図である。
FIG. 6 is a flow chart showing a point correction procedure according to the present invention.

以下、本発明実施例の動作につき詳細に説明する。第
2図に示した例は、7個の位置指定によるスプループ描
画例であり、その7個のポイントはその順番号とx・y
座標がメインメモリ2内に記憶されている。このメイン
メモリ2に記憶された内容に基づき、スプライン・スプ
ループの描画を行なう方法及びその手段については同出
願人より昭和58年9月30日付で出願済み(特願昭58年第
182677号;曲線発生方法)であるため、ここでの説明は
省略する。
Hereinafter, the operation of the embodiment of the present invention will be described in detail. The example shown in FIG. 2 is an example of sploop drawing by specifying seven positions, and the seven points are their sequential numbers and x · y.
The coordinates are stored in the main memory 2. A method and means for drawing a spline / sploop based on the contents stored in the main memory 2 have been filed by the same applicant on September 30, 1983 (Japanese Patent Application No.
No. 182677; curve generation method), so the description is omitted here.

さて、第2図に示したスプループ描画例にて、ポイン
ト6の部分に変形(凹部)があるため、この部分を膨ら
ます修正例を掲げ説明する。まず、カーソル(クロス・
ヘア・カーソル:図示せず)をポイント6のマーカス上
に移し、“移動”キーを押す。処理装置1はこのキー押
下を検知し、その時点のカーソル位置よりテーブル内容
をサーチし、どのポイントが指示されたかを割出す。こ
の時、カーソル位置(x,Y)座標に対しX±αドット、
Y±αドットの範囲内に含まれているポイントを割出す
ようにしておけば、上下左右それぞれのドットのポイン
ト誤差を許容できるので操作性が向上する。ここでポイ
ト6が割出されると、次に新ポイントの指示によって、
順番号6のX,Y座標が更新される。この新テーブルによ
る再表示前に前曲線を消去する必要があるが、曲線のみ
を消去する場合にはテーブル更新前に消去用描画を行な
わなければならない。領域全体を消去して良い場合は、
テーブル更新の前後どちらでも良い。ポイント移動し、
再表示した例を第3図に示す。
Now, in the sploop drawing example shown in FIG. 2, since there is a deformation (concave portion) at the portion of point 6, a correction example of expanding this portion will be described. First, the cursor (cross
Move the hair cursor (not shown) onto the Marcus at point 6 and press the "move" key. The processor 1 detects this key press, searches the table contents from the cursor position at that time, and finds out which point is designated. At this time, X ± α dots for the cursor position (x, Y) coordinates,
If the points included in the range of Y ± α dots are indexed, the point error of each of the upper, lower, left, and right dots can be allowed, so that the operability is improved. When Poit 6 is indexed here, next by the instruction of new points,
The X and Y coordinates of sequence number 6 are updated. It is necessary to erase the previous curve before re-displaying with this new table, but if only the curve is to be erased, it is necessary to perform erase drawing before updating the table. If you want to erase the entire area,
Either before or after updating the table. Move point,
An example of redisplay is shown in FIG.

次に第2図に示した状態でポイント2と3の間に新た
にポイントを挿入する例を第4図を用いて詳細に説明す
る。挿入時、ポイント指示の約束として、指定ポイント
の直前にポイントを挿入する約束とする。第2図に示し
た例ではカーソルにてポイント3を指示し、“挿入”キ
ーを押す。処理装置1はこれにより、挿入モードである
事と、テーブル検索によりポイント3(第2図)が指示
された事を割出す。次に追加ポイントの指定モードに入
り、カーソルをポイント3(第4図)を指示し“実行”
キーを押す事により、その時点のカーソルのX・Y座標
値を第2図に示したテーブルの順番号03の位置に入れ、
以降のテーブルのX・Y座標値を1つずつ後方へずら
し、番号08のエントリを新規に作成する。テーブル更新
し、再表示した例を第4図に示す。
Next, an example of newly inserting a point between points 2 and 3 in the state shown in FIG. 2 will be described in detail with reference to FIG. At the time of insertion, as a promise of point instruction, a promise is made to insert a point just before the designated point. In the example shown in FIG. 2, point 3 is designated by the cursor and the "insert" key is pressed. The processing device 1 thereby determines that it is in the insert mode and that the point 3 (FIG. 2) is designated by the table search. Next, enter the additional point designation mode, point the cursor to point 3 (Fig. 4), and click "Execute".
By pressing the key, enter the X and Y coordinate values of the cursor at that time into the position of the sequence number 03 in the table shown in FIG.
The X and Y coordinate values of the following tables are shifted backward one by one, and a new entry of number 08 is created. An example in which the table is updated and displayed again is shown in FIG.

次に第2図に示した状態でポイント5を削除する例に
ついて第5図を参照しながら説明する。カーソルにてポ
イント5を指示し“削除”キーを押すと、処理装置1は
削除モードである事と、テーブル検索により第2図のポ
イト5が削除された事を検知し、第2図に示したテーブ
ルでポイント5のエントリィから順にX・Y座標を前詰
めして行き、最後のエントリィ、ポイント7を削除す
る。テーブル更新を行ない、再表示した例を第5図に示
す。
Next, an example of deleting the point 5 in the state shown in FIG. 2 will be described with reference to FIG. When point 5 is indicated with the cursor and the "Delete" key is pressed, the processor 1 is in the delete mode and it is detected by the table search that the point 5 in FIG. 2 has been deleted. In the table, the X and Y coordinates are moved forward in order from the entry of point 5, and the last entry, point 7, is deleted. FIG. 5 shows an example in which the table is updated and displayed again.

尚、第2図〜第5図で示されるテーブル・エントリィ
のうち、最後の“99"はテーブル・エンド・マークであ
ることを付言しておく。
It should be noted that, of the table entries shown in FIGS. 2 to 5, the last "99" is the table end mark.

〔発明の効果〕〔The invention's effect〕

以上説明の様に本発明によれば、通過ポイントの位置
指定を行なうことにより、 で表わされる様な曲線のドットパターンを描画出来、更
に、ポイント修正しながら再描画出来るため、操作性が
向上する。
According to the present invention as described above, by designating the position of the passing point, It is possible to draw a dot pattern of a curved line represented by, and to redraw while correcting points, improving operability.

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

第1図は本発明の実施例を示すブロック図、第2図〜第
5図は本発明実施例の動作を説明するために引用した図
であり、修正前の状態、ポイント修正例、ポイント挿入
例、ポイント削除例のそれぞれを示す図、第6図は本発
明によるポイント修正手順をフローチャートで示した図
である。 1……処理装置、2……メインメモリ、3……出力装
置、4……入力装置。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIGS. 2 to 5 are views cited for explaining the operation of the embodiment of the present invention. The state before correction, point correction example, point insertion FIG. 6 is a diagram showing each of an example and a point deletion example, and FIG. 6 is a flowchart showing a point correction procedure according to the present invention. 1 ... Processing device, 2 ... Main memory, 3 ... Output device, 4 ... Input device.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】少なくとも3つの位置指定されたポイント
を通過し曲線を生成する曲線発生方法において、 表示装置の表示画面上にてカーソルにより所望のポイン
トの位置を指定する位置指定手段と、 この位置指定手段で位置指定されたポイントの位置情報
を入力された順に順序付け記憶する記憶手段と、 この入力順に従がい上記位置指定されたポイント上を通
過する曲線を描画する手段と、 上記曲線上に上記位置指定されたポイントを上記表示画
面上にてマーカ表示する手段と、 上記曲線を所定の編集モードで編集することを指定する
編集モード指示手段とを設け、 上記編集モード指定手段で所定の編集モードが指示さ
れ、上記マーカ位置の近傍をカーソルにより任意に指定
されると、上記記憶手段を検索して上記任意に指定され
たポイント位置を割出し、上記記憶手段に記憶された上
記任意に指定されたポイントの位置情報を所定の編集モ
ードでの位置情報指示に従い変更して、または上記任意
に指定されたポイントの入力順の前または後に所定の編
集モードでの位置情報指示に従い新たな位置情報を追加
して、上記記憶手段にて記憶された内容を更新し上記曲
線を再描画することにより希望する形状の曲線を生成す
ることを特徴とする曲線発生方法。
1. A curve generation method for generating a curve by passing at least three position-designated points, and position designating means for designating a position of a desired point with a cursor on a display screen of a display device, and this position. A storage means for ordering and storing the position information of the points designated by the designation means in the order of input, a means for drawing a curve passing over the point designated by the input order, and a means for drawing the curve on the curve. Means for displaying a marker of the position-designated point on the display screen, and edit mode instruction means for designating editing of the curve in a predetermined edit mode are provided, and the edit mode designation means is used for a predetermined edit mode. Is designated, and the vicinity of the marker position is arbitrarily designated by the cursor, the storage means is searched and the arbitrarily designated point is searched. Index position and change the position information of the arbitrarily designated point stored in the storage means according to the position information instruction in a predetermined edit mode, or the input order of the arbitrarily designated point. A new position information is added in accordance with the position information instruction in the predetermined edit mode before or after, the contents stored in the storage means are updated, and the curve is redrawn to generate a curve having a desired shape. A method for generating a curve characterized by the following.
【請求項2】上記編集モード指示手段で移動モードが指
示された場合は、上記任意に指定されたポイント位置が
カーソルにより別の新たな位置への移動を指示されるこ
とにより、上記記憶手段に記憶された旧位置情報を新位
置情報に変更して上記憶手段にて記憶された内容を更新
し上記曲線を再描画することを特徴とする特許請求の範
囲第1項記載の曲線発生方法。
2. When the moving mode is instructed by the edit mode instructing means, the arbitrarily designated point position is instructed by the cursor to move to another new position, whereby the storage means is instructed. The curve generation method according to claim 1, wherein the stored old position information is changed to new position information, the contents stored in the upper storage means are updated, and the curve is redrawn.
【請求項3】上記編集モード指示手段で挿入モードが指
示された場合は、カーソルにより挿入するポイントを位
置指定されると、上記記憶手段の上記任意に指定された
ポイントの入力順の前または後に挿入ポイントの位置情
報を追加して上記記憶手段にて記憶された内容を更新し
上記曲線を再描画することを特徴とする特許請求の範囲
第1項記載の曲線発生方法。
3. When the insertion mode is instructed by the edit mode instructing means, and when the point to be inserted is specified by the cursor, before or after the input order of the arbitrarily specified point in the storage means. The curve generation method according to claim 1, wherein the position information of the insertion point is added, the content stored in the storage means is updated, and the curve is redrawn.
【請求項4】上記編集モード指示手段で削除モードが指
示された場合は、上記任意に指定されたポイントの位置
情報を削除して上記記憶手段に記憶された内容を更新し
上記曲線を再描画することを特徴とする特許請求の範囲
第1項記載の曲線発生方法。
4. When the delete mode is instructed by the edit mode instructing means, the position information of the arbitrarily designated point is deleted, the contents stored in the storing means are updated, and the curve is redrawn. The method for generating a curve according to claim 1, wherein
JP60093131A 1985-04-30 1985-04-30 Curve generation method Expired - Lifetime JPH0816834B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60093131A JPH0816834B2 (en) 1985-04-30 1985-04-30 Curve generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60093131A JPH0816834B2 (en) 1985-04-30 1985-04-30 Curve generation method

Publications (2)

Publication Number Publication Date
JPS61250688A JPS61250688A (en) 1986-11-07
JPH0816834B2 true JPH0816834B2 (en) 1996-02-21

Family

ID=14073965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60093131A Expired - Lifetime JPH0816834B2 (en) 1985-04-30 1985-04-30 Curve generation method

Country Status (1)

Country Link
JP (1) JPH0816834B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2704256B2 (en) * 1986-12-04 1998-01-26 昭和電線電纜株式会社 Manufacturing method of heat fixing roller
JP2700240B2 (en) * 1986-12-04 1998-01-19 昭和電線電纜株式会社 Heat fixing roller
JP2693456B2 (en) * 1987-10-09 1997-12-24 大日本印刷株式会社 Figure input and correction device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58144275A (en) * 1982-02-23 1983-08-27 Toshiba Corp Figure forming device

Also Published As

Publication number Publication date
JPS61250688A (en) 1986-11-07

Similar Documents

Publication Publication Date Title
JPS6190261A (en) Document color editing device
JPH0997057A (en) Music score editing device
JPS6177981A (en) Picture processing system
JPH0816834B2 (en) Curve generation method
JPH0559466B2 (en)
JP2723109B2 (en) Image processing method
JP2000148738A (en) Device and method for mathematical expression input and display, and recording medium where mathematical input and display program is recorded
JPS60167059A (en) System for using chart and data in document
JP2572441B2 (en) Form-specific figure creation device
JPS62267854A (en) Object processing
JPH0731671B2 (en) Formula input editing method
JPS63288328A (en) Jcl simple generating device
JP2655836B2 (en) Table device
JP3358743B2 (en) Offset figure generation system
JP2613226B2 (en) How to edit formula input
JP2646518B2 (en) Processing method in graphic data processing device
JPH03141466A (en) Document control method and document preparing device
JPH0736869A (en) Document editor
JPH05189424A (en) Device and method for editing document
JPS6133567A (en) Display method of document processor
JPH0567105A (en) Character input editor
JPH05257930A (en) Document editing method and apparatus
JPH067386B2 (en) Graphic editing device
JPH09190167A (en) Object operation time setting method
JPH05165810A (en) Document editor and document editing method