JPH01112384A - Curve interpolation forming system - Google Patents

Curve interpolation forming system

Info

Publication number
JPH01112384A
JPH01112384A JP26994887A JP26994887A JPH01112384A JP H01112384 A JPH01112384 A JP H01112384A JP 26994887 A JP26994887 A JP 26994887A JP 26994887 A JP26994887 A JP 26994887A JP H01112384 A JPH01112384 A JP H01112384A
Authority
JP
Japan
Prior art keywords
curve
control point
control
points
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP26994887A
Other languages
Japanese (ja)
Other versions
JP2683239B2 (en
Inventor
Shigeki Masaki
正木 茂樹
Muneyoshi Suzuki
宗良 鈴木
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP26994887A priority Critical patent/JP2683239B2/en
Publication of JPH01112384A publication Critical patent/JPH01112384A/en
Application granted granted Critical
Publication of JP2683239B2 publication Critical patent/JP2683239B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To easily form a curve and to correct a form by calculating the form only of a curved segment by the use of the tangential vector of both the end points of the form corrected curved segment. CONSTITUTION:After the position coordinate of a control point considered to be improper included in the blocks P3-P5 for correcting the form of the curve is corrected, the corrected block is defined to be a new curve forming block to apply the position coordinate of a control point 4' included in the curve forming segment and the tangential vector value stored in the control points P3-P5 in both the end points of the curve forming block and calculate the curve form of the corrected block by an interpolating function again under a fixed termination condition. Thereby, even when the position coordinate of the control point of the corrected block is changed, the curve form except the corrected block can not be changed but the curve can be smoothly connected at both end points of the corrected block.

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 本発明は、制御点列から補間曲線により(111間点を
求め、これらの捕間点を接続して当該曲線を生成する曲
線補間生成方式に関する。
Detailed Description of the Invention [Technical Field to which the Invention Pertains] The present invention relates to a curve interpolation generation method in which (111 intervening points are obtained from a sequence of control points by an interpolation curve, and the curve is generated by connecting these interpolation points. Regarding.

〔従来の技術〕[Conventional technology]

以下、補間関数として2次元座標空間における3次スプ
ライン関数を例にとり従来の曲線(1(i間生成方式を
説明する。
Hereinafter, a conventional curve (1 (i) interval generation method will be explained using a cubic spline function in a two-dimensional coordinate space as an example of an interpolation function.

第5図は従来の曲線補間生成方式の処理4Pi要を示す
図、第6図は2次元座標空間での従来の曲線補間生成方
式における制御点と補間生成された曲線形状を示す図で
ある。
FIG. 5 is a diagram showing the processing 4Pi of the conventional curve interpolation generation method, and FIG. 6 is a diagram showing control points and interpolated curve shapes in the conventional curve interpolation generation method in a two-dimensional coordinate space.

第6図に示すPI、P2.・・・・・・、l)7は制御
点。
PI, P2. shown in FIG. ......, l) 7 is a control point.

制御点列間を結ぶ実線は後述する3次スプライン関数に
より補間生成された曲線を示す。
A solid line connecting a series of control points indicates a curve generated by interpolation using a cubic spline function, which will be described later.

2次元x−y空間の曲線Cは一般的に次に示す関数で表
現できる。
A curve C in a two-dimensional xy space can generally be expressed by the following function.

C:r(X、Y)=0 ここにXは曲線CのX座標、Yは曲線CのYI!−標を
、「は曲’KfACの形状を表す関数を示す。この曲、
〒ll具合表現する一手法として3次スプライン関数に
よる補間方法がある。3次スプライン関数は2次までの
微分係数が制御点において連続であるような滑らかな曲
線表現に適した関数であり、CAD等の分野で使用され
ている。曲線Cに沿って取った制御点をPl  (X1
、Yl)、P2 (X1、P2、Y2)、−、Pi  
(Xi、Yi)、−、Pn(Xn、Yn)とすると、3
次スプライン関数による曲線Cの表現は以下のようにな
る。
C: r (X, Y) = 0 where X is the X coordinate of curve C, and Y is YI of curve C! - indicates the function representing the shape of the song 'KfAC.This song,
One method for expressing 〒ll is an interpolation method using a cubic spline function. The cubic spline function is a function suitable for expressing a smooth curve in which differential coefficients up to the second order are continuous at control points, and is used in fields such as CAD. The control point taken along the curve C is Pl (X1
, Yl), P2 (X1, P2, Y2), -, Pi
(Xi, Yi), -, Pn (Xn, Yn), then 3
The expression of the curve C using the second spline function is as follows.

X (し)=AO+Alt+A2t2+Δ3tlY (
L)=[30+Blt+B2t2+B3t3ここに、t
は O<t<、′ri   (Ti:定数)の範囲で変
化するパラメータであり。
X (shi)=AO+Alt+A2t2+Δ3tlY (
L)=[30+Blt+B2t2+B3t3 here, t
is a parameter that changes within the range O<t<,'ri (Ti: constant).

L=Qのとき  X (L)=Xi。When L=Q, X (L)=Xi.

Y  (L)  =Yi t=Tiのとき X (L) =X r + 1、Y(
L)=Y i+1 (i  = 1. 2.  =・・−・・、  n −
1)また、AO,At、A2.A3およびBO,r31
゜B2.B3は定数である。これらの定数は、制御1口
点P1.P2.・・・・・・、Pnの座標値および曲線
の端点(始点)Piおよび(終点)1)nにおける接線
ベクトル値(1次微分係数)あるいは2次微分係数を規
定するP:端条性を与えることにより決定される。
Y (L) =Yi When t=Ti, X (L) =X r + 1, Y(
L)=Y i+1 (i = 1. 2. =...-..., n-
1) Also, AO, At, A2. A3 and BO, r31
゜B2. B3 is a constant. These constants are the control point P1. P2. ....., the coordinate value of Pn and the end point (start point) Pi of the curve and (end point) 1) Specify the tangent vector value (first derivative coefficient) or second derivative coefficient at n: P: Ending property Determined by giving.

終端条件としては、始点1) 1および終点1) nの
接線ベクトルと2次漱分係数とを夫々簡略表現でPi’
 、PI” およびPn’ 、Pn”  とすると ■ 自由条件(Pi°’  =Pn”  =0の場合)
2■ 周期的条件(Pビ −Pn’、Pi″。
As a terminal condition, the tangent vector and the quadratic distribution coefficient of the starting point 1) 1 and the ending point 1) n are each expressed as Pi'
, PI'' and Pn', Pn'' ■ Free condition (when Pi°' = Pn'' = 0)
2 ■ Periodic conditions (Pbi -Pn', Pi''.

= P n“の場合)。= Pn”).

■ 反周期的条件(Pio =−Pn’ 、PI”=−
Pn” の場合)。
■ Anti-periodic conditions (Pio=-Pn', PI"=-
Pn”).

■ 固定条件(Pl゛およびPn’ の値を特定の値に
指定する場合) がある。
■ There is a fixed condition (when specifying specific values for Pl' and Pn').

具体的に3次スプライン関数を用いて第6図の実線20
2で示すような曲線を生成するには、第5図図示フロー
チャー1・に示すように、先ず制御点PI、P2.・・
・・・・、r)7の位置座標および端点P1、P7にお
ける前記に示すような終端条件を与えて、各々の制御点
間の曲線を3次スプライン関数により表現する。次に表
示装置などにより生成した曲線を表示することにより、
生成した曲線の形状を確認する。当該曲線の形状がフィ
ツトしていない場合は、不適切と思われる制御点の位置
座標を修正した後、再度3次スプライン関数で制御点間
の曲線形状を表現する。第6図に制御点P4の位置をP
4°に変更した場合に同じ終端条件で3次スプライン関
数により生成した曲線を点線212で示す。曲線の形状
がフィツトするまで前記修正を操り返す。
Specifically, using a cubic spline function, the solid line 20 in Figure 6 is
In order to generate a curve as shown in FIG. 5, first, control points PI, P2.・・・
..., r) Given the position coordinates of 7 and the termination conditions as shown above at the end points P1 and P7, the curve between each control point is expressed by a cubic spline function. Next, by displaying the generated curve on a display device,
Check the shape of the generated curve. If the shape of the curve does not fit, the position coordinates of the control points that are considered inappropriate are corrected, and then the curve shape between the control points is expressed again using a cubic spline function. The position of control point P4 is shown in Figure 6.
A dotted line 212 indicates a curve generated by a cubic spline function under the same termination condition when the angle is changed to 4°. Repeat the above modifications until the shape of the curve fits.

このように従来の曲線補間生成方式では、第5図に示す
ように、生成された曲線形状が意図した曲線形状にフィ
ンl−Lないときに、単にフィツトしていない曲線区間
にある制御点の位置座標を修正して、修正した位(n座
標を用いて再度補間関数により曲線形状を算出していた
ため、第6図から明らかなように位置座標を修正した制
御点の両側の区間の曲線部分のみならず2曲線部体の形
状に前記制御点の位置座標修正の影響が現れてしまう問
題があった。この問題は、グラフインクデイスプレィ等
を用いて物体の形状曲線などを補間関数で会話的に生成
する際に、生成した曲線のフィツトしていない部分の制
御点の位置を変更して曲線全体をうまくフィツトさせよ
うとしたときに、逆にいままでうまくフィツトしていた
部分がフィツトしなくなるという現象として現れる。こ
のため。
In this way, in the conventional curve interpolation generation method, as shown in FIG. After correcting the position coordinates, the curve shape was calculated again using the interpolation function using the corrected position (n coordinates, so as is clear from Figure 6, the curved portion of the section on both sides of the control point whose position coordinates were corrected) In addition, there was a problem in which the shape of the two-curve body was affected by the correction of the position coordinates of the control points. When generating a curve, when trying to fit the entire curve by changing the position of the control points of the unfitted part of the generated curve, the part that was well fitted until now ends up being fitted. It appears as a phenomenon of disappearing.For this reason.

従来補間関数で曲線を補間表現する際に制御点のとりが
たに専門的な知識を必要としたり、補間関数そのものが
曲線補間生成の方法としては使いにくい等の原因となっ
ていた。
Conventionally, when expressing a curve by interpolation using an interpolation function, specialized knowledge is required to determine the control points, and the interpolation function itself is difficult to use as a method for generating curve interpolation.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、この様な問題を解決し、使いやすい曲
線補間生成方式を提供することにある。
An object of the present invention is to solve such problems and provide an easy-to-use curve interpolation generation method.

〔発明の構成及び作用〕[Structure and operation of the invention]

本発明は1曲線を生成する際に制御点における接線ベク
トル値を予め算出記憶しておき、生成した前記曲線の形
状を修正する際に、形状を修正する曲線区間の制御点(
列)の新たな位置座標および該曲線区間の両端点となる
制御点における前記記憶しである接線ハク1−ル値を用
い゛乙固定の終端条件で当該曲線区間のみ曲線形状を算
出するようにしたことをもっとも大きな特徴とし、従来
の曲1腺補間生成方式とは、形状を(IV正する前記曲
線区間の両端点の接線ベクトルを用いて該曲線区間のみ
の形状を算出するようにした点が異なる。
The present invention calculates and stores tangent vector values at control points in advance when generating one curve, and when modifying the shape of the generated curve, the control points (
Using the new position coordinates of column) and the memorized tangent square values at the control points that are both end points of the curve section, calculate the curve shape only for the curve section with the fixed termination condition. The most important feature of the conventional one-track interpolation generation method is that the shape of only the curve section is calculated using the tangent vectors at both end points of the curve section, which are corrected by IV. are different.

以下図面に基づいて、2次元座欅空間において補間関数
による曲線補間生成方式を例にとり説明する。
Hereinafter, a curve interpolation generation method using an interpolation function in a two-dimensional space will be explained based on the drawings.

第1図は本発明による曲線補間生成方式の一実施例の処
理概要を示す図、第2図は本発明により生成された曲線
の例を示す図である。
FIG. 1 is a diagram showing a processing outline of an embodiment of the curve interpolation generation method according to the present invention, and FIG. 2 is a diagram showing an example of a curve generated according to the present invention.

具体的に補間関数を用いて第2図の実線402で示すよ
うな曲線を生成するには、第1図に示すように、先ず制
御点P1.2.・・・・・・、Plの位置座標および端
点Pi、P7における0;i述したような終端条件を与
えて、各々の制御点間の曲線を補間関数により表現する
。この際、各制御点における接線ベクトル値を算出して
記憶しておく。この時の補間関数として3次スプライン
関数を用いることが出来る。次に表示装置などにより生
成した曲線を表示することにより5生成した曲線の形状
を確認する。当該曲線の形状がフィツトしていない場合
には、該曲線の形状を修正すべき区間(修正区間)に含
まれる不適切と思われる制御点の位置座標を修正した後
、該112正区間を新たな曲線生成区間として、該曲線
生成区間に含まれる制御点の位置座標および該曲線生成
区間の両O;:j点における制御点の前記記憶しである
接4腺ベクトル値を与えて固定路5iii条件(即ら、
端点における接線ヘク+−ル値を指定する終端条件)で
、再度捕間関数で前記修正区間の曲線形状を算出する。
Specifically, in order to generate a curve as shown by the solid line 402 in FIG. 2 using an interpolation function, first, as shown in FIG. 1, the control points P1.2. . . . , position coordinates of Pl, end points Pi, 0 at P7; i Given the termination conditions as described above, the curve between each control point is expressed by an interpolation function. At this time, the tangent vector value at each control point is calculated and stored. A cubic spline function can be used as the interpolation function at this time. Next, the shape of the generated curve 5 is confirmed by displaying the generated curve on a display device or the like. If the shape of the curve does not fit, correct the position coordinates of the control points that are considered inappropriate in the section where the shape of the curve should be corrected (correction section), and then update the 112 correct section. As a curve generation section, the position coordinates of the control point included in the curve generation section and the tangential vector value which is the storage of the control point at the point 0;:j of the curve generation section are given, and the fixed path 5iii conditions (i.e.,
The curve shape of the correction section is calculated again using the interpolation function under the termination condition that specifies the tangent hexagonal value at the end point.

この際、修正区間の各制御点における接線ベクトル値を
算出して記憶しておく。このように動作するので、修正
区間の制御点位置座標を変更しても修正区間以外の曲線
形状を変えないようにすることが出来、がつ修正区間の
両端点において滑らかな曲線の接続を可能とする。曲線
の形状がフィツトしていない場合は前述の操作を繰り返
すことができる。
At this time, tangent vector values at each control point in the correction section are calculated and stored. Because it operates in this way, even if the control point position coordinates of the correction section are changed, the shape of the curve outside the correction section does not change, making it possible to connect smooth curves at both end points of the correction section. shall be. If the shape of the curve does not fit, the above operation can be repeated.

第2図は制御点P4の位置をP4’ に変更した場合に
本発明の方式で補間関数により生成した曲線を点線41
2で示す。第2図に示す従来の方式の結果と比べて違い
が明らかなように1本発明では制御点をP4からP4’
 の位置に変更してもl) 1と23に挟まれた曲線お
よびP5とP7に挟まれた曲線の形状には変化が無い。
Figure 2 shows the curve generated by the interpolation function according to the method of the present invention when the position of the control point P4 is changed to P4', as indicated by the dotted line 41.
Shown as 2. As is clear from the results of the conventional method shown in FIG. 2, in the present invention the control points are changed from P4 to P4'
Even if the position is changed to l), there is no change in the shape of the curve between 1 and 23 and the curve between P5 and P7.

第1図および第2図では、一つの制御点の修正を例に取
り説明したが、複数の制御点(即ち、制御点列)の修正
の場合でも、該制御点列の修正位置座標と、該制御点列
の1つ前の制御点および1つ後の制御点における位置座
標と接線ベクトルとを用いて、前記制御点列の1つ前の
制御点および1つ後の制御点に挟まれた曲線区間のみの
形状修正をすることが、同様にして出来ることは明らが
である。
In FIGS. 1 and 2, the explanation was given using the example of modifying one control point, but even in the case of modifying multiple control points (i.e., a control point sequence), the modified position coordinates of the control point sequence, Using the position coordinates and tangent vectors at the previous control point and the next control point in the control point sequence, find the position between the previous control point and the next control point in the control point sequence. It is obvious that it is possible to modify the shape of only the curved section in the same way.

第3図は本発明による曲線袖間生成方代の一実施例の構
成を示す図である。501はデータの入力や各種処理の
コマンド情報を入力する会話端末袋71、 502は生
成した曲線等を表示するグラフインクデイスプレィ、5
04は制御点の位置圧(票・接線ベクトル値、終端条件
1曲線形状等を記4gするデータ記憶装置、505は制
御点列の位置座標及び化成曲線終端条件を与えることに
より補間関数を用いて曲線を生成する曲線生成演算装置
、5o3は前記装置および全体の処理の制御をする制御
装置。
FIG. 3 is a diagram showing the structure of an embodiment of the curved sleeve gap generation method according to the present invention. 501 is a conversation terminal bag 71 for inputting data and command information for various processes; 502 is a graph ink display for displaying generated curves, etc.;
04 is a data storage device that records the positional pressure of control points (votes, tangent vector values, termination condition 1 curve shape, etc.); A curve generation arithmetic device that generates a curve, and 5o3 a control device that controls the device and the overall processing.

506は装置間を接続するハス(あるいは通信回線)で
ある。
Reference numeral 506 denotes a hub (or communication line) that connects the devices.

これを動作させるには、初期設定した後、制御装置50
3の指示に基づいて、先ず会話端末501より制御点の
個数、それぞれの位置座標、終端条件を入力し、制御装
置503を介してデータ記憶装置504に記憶する。デ
ータの記憶形式は例えば第4図の様に夫々の制御点に対
応して接線ベクトルを保持するものでよい。制御装置5
03は曲線生成演′T、1装置505に指示して、デー
タ記憶装置504に記1aされている制御点の個数・位
置座標、終端条件を読み出し1曲線形状を算出させ、そ
の曲線形状データおよび曲線形状を〕γ出する過程で求
めた各制御点における接線ベクトル値を制御装置503
を介してデータ記憶装置504に記憶しておく。制御装
置503はグラフィックデイスプレィ 502に指示し
てデータ記tα装置504から該曲線形状データを読み
ださせ1曲線を表示させる。グラフインクデイスプレィ
502に表示された曲線形状を見て1代作者は曲線形状
が一部分フィソトシていないと判断した場合は、会話O
:を末501から予め決められた11′?+taを人力
することにより制御装置503にその旨 ゛を通知する
。この後、制御装置503からの指示に基づいて会話◇
:を末501よりフィツトしていない曲線区間(r13
f正区間)に含まれる位置を修正すべき制御点あるいは
制御点列(これをPixPi+jとする:l+Jは数字
)情報(例えば前記の場合はi、i+j)、修正後の制
御点(列)の修正位置座標を人力する(この際5修正区
間の一部に位置座標が変更されない場合があってもかま
わない)。
To operate this, after initial setting, the control device 50
3, the number of control points, their respective position coordinates, and termination conditions are inputted from the conversation terminal 501 and stored in the data storage device 504 via the control device 503. The data storage format may be, for example, as shown in FIG. 4, in which tangent vectors are held corresponding to each control point. Control device 5
03 instructs the curve generation operation 'T, 1 device 505 to read out the number of control points, position coordinates, and termination conditions recorded in the data storage device 504 1a, calculate the 1 curve shape, and store the curve shape data and The control device 503 calculates the tangent vector value at each control point obtained in the process of calculating [gamma] of the curve shape.
The information is stored in the data storage device 504 via the . The control device 503 instructs the graphic display 502 to read the curve shape data from the data recording tα device 504 and display one curve. If the first author looks at the curved shape displayed on the graph ink display 502 and determines that some of the curved shapes are not correct, he/she can use conversation O.
: from 501 to predetermined 11'? By manually inputting +ta, the controller 503 is notified of this fact. After this, the conversation is based on instructions from the control device 503 ◇
: is the curve section that is not fitted from the end 501 (r13
control point or control point sequence (this is referred to as PixPi+j: l+J is a number) information (for example, i, i+j in the above case) whose position is to be corrected in the corrected control point (sequence), The corrected position coordinates are manually entered (at this time, it is okay even if the position coordinates are not changed in part of the 5 correction sections).

制御装置503は入力された修正区間制御点番号12i
+jを曲線生成区間制御点番号として、また制御点(列
)Pi、・・・・・・、Pi+Jの修正位置座標をデー
タ記jll装置504の該当アドレスに曾き込む。
The control device 503 receives the input correction section control point number 12i.
+j is the curve generation section control point number, and the corrected position coordinates of the control points (column) Pi, . . . , Pi+J are loaded into the corresponding address of the data recording device 504.

制御装置503は曲線生成演算袋E 505に修正区間
の曲線形状の算出を指示すると1曲線生成演算装置50
5はデータ記憶装置504から曲線生成区間制御部点番
号i、++jを読み出し、これに基づいて制御点Pi 
 1、Pi、・・・・・・、Pi→−j、Pi+j+1
(i−1≧1、i+j+l≦7)の位置座標、および制
御点Pi−1およびPi+j+lの接線ベクトル値を読
み出し、終〃;条件として固定条件(即ら、端点におけ
る接線ベクトル値を指定する終端条件)で制御点Pi−
1と制御点Pi+j+lに挟まれた曲線の形状を算出す
る。曲線生成演算装置505からの曲線形状算出完了に
基づいて、 a、lH]n装置503はデータ記憶装置
504から既に算出した曲線形状データを読み出し、制
御点Pi−1とPj+」+lに挟まれた曲線形状データ
を曲線生成演算装置505で新たに算出された修正区間
の曲線形状データと入れ換えてデータ記tq装置504
の曲線形状データに再度読t0する(この修正区間の曲
線形状データの“入れ換え゛は、形状データの形式によ
り、制御装置503の指示により曲線生成演算装置50
5からデータ記憶装置504に直接書き込むことにより
行うこともできる)。また曲線生成演算装置505にお
いて修正区間の曲線形状算出の過程で求められた制御点
Pi、・・・・・・。
When the control device 503 instructs the curve generation calculation bag E 505 to calculate the curve shape of the correction section, one curve generation calculation device 50
5 reads the curve generation section control unit point numbers i and ++j from the data storage device 504, and based on these, controls the control points Pi.
1, Pi,..., Pi→-j, Pi+j+1
The position coordinates of (i-1≧1, i+j+l≦7) and the tangent vector values of the control points Pi-1 and Pi+j+l are read out, and the end condition is a fixed condition (i.e., the end point that specifies the tangent vector value at the end point). control point Pi-
1 and the control point Pi+j+l. Based on the completion of the curve shape calculation from the curve generation calculation device 505, the a,lH]n device 503 reads out the already calculated curve shape data from the data storage device 504, The curve shape data is replaced with the curve shape data of the correction section newly calculated by the curve generation calculation device 505, and the data is recorded in the tq device 504.
The curve shape data of the correction section is reread t0 (the "replacement" of the curve shape data of this correction section is performed by the curve generation calculation unit 50 according to the shape data format and according to the instructions of the control device 503.
5 to the data storage device 504). Also, the control points Pi, .

Pi→−Jの接線ベクトル値は、データ肥土a装置50
4の該当の位置に記憶させる。この後、制御装置503
はグラフィックデイスプレィ 502に指示してデータ
記憶装置504から該曲線形状データを読みだし1曲線
を表示させる。
The tangent vector value of Pi→−J is obtained from the data Hito a device 50.
4. Store it in the corresponding position. After this, the control device 503
commands the graphic display 502 to read out the curve shape data from the data storage device 504 and display one curve.

以後1操作者が曲線形状が適当であると判断するまで曲
線の(1に正動作を繰り返す。
Thereafter, the normal operation of the curve (1) is repeated until one operator determines that the curve shape is appropriate.

前記説明では、生成した曲線の一部を修正する際に1位
置を修正する制御点(列)Pi、・・・・・・。
In the above description, control points (columns) Pi, which modify one position when modifying a part of the generated curve, are used.

Pi+jの1つ前および1つ後の制御点Pi−1゜Pi
+j+1の接線ベクトルを用いて制?ffU点Pi−1
と制御点Pi+j+1に挾まれた曲線を修正する方法を
説明したが2位置を修正する制御点(列)Pi、・・・
・・・、Pi+jのm1個前およびm2個後の制御点P
i−ml  (i−ml上1)。
Control point Pi-1゜Pi before and after Pi+j
Control using +j+1 tangent vector? ffU point Pi-1
I explained how to modify the curve sandwiched by the control points Pi+j+1, but the control points (column) Pi that corrects the two positions...
..., control points P m1 before and m2 after Pi+j
i-ml (i-ml top 1).

Pi+j+m2  (i+j+m2≦7)の接線ベクト
ルを用いて制御点Pi−mlと制御点Pi+j+rr1
2に挟まれた曲線を修正する場合も、以下のようにして
可能である。
Control point Pi-ml and control point Pi+j+rr1 using the tangent vector of Pi+j+m2 (i+j+m2≦7)
2 can also be corrected as follows.

曲線を最初に生成し、グラフインクデイスプレィに該曲
線を表示するところまでは前記説明と同様である。
The process of first generating a curve and displaying the curve on the graph ink display is similar to the above description.

グラフインクデイスプレィ 502に表示された曲線形
状を見て、操作者が曲線形状が一部分フイツトしていな
いと判断した場合は、会話端末501から予め決められ
た情報を入力することにより制?1n装置503にその
旨を通知する。この後、制御装置503からの指示に基
づいて会話端末501よりフィ・2トしていない曲線区
間(修正区間)に含まれる位置を修正すべき制御点ある
いは制御点列(Pi〜P i + j)情報(例えばi
、i+j)、該制御点(列)の修正位置座標(この際、
修正区間の一部に位置座標が変更されない場合があって
もかまわない)および新たな曲線生成区間制御点番号1
−m1→−1,1−1−j+m2−1を人力する。制御
装置503は人力された修正ずべき制御点(列)情報i
、i十jに基づいてから、制御点Pi、・・・・・・、
Pi+jの修正位置座標を、および曲線生成区間制御点
番号1−m1+1、i+j+rn2−1をデータ記41
装置504の該当アドレスにそれぞれ書き込む。制御装
置503は曲線生成演算装置505に修正区間の曲線形
状の算出を指示すると1曲線生成演算装置505はデー
タ記憶装置504から曲線生成区間制御点番号1−m1
+1.i+j+m2−1を読み出し、これに基づいて制
御点Pi−m1、Pi−ml+1.−、Pi+j+m2
−1 、  P i + j+ m 2  (i  m
 1≧1、i+j+m2≦7)の位置座標、および制御
点Pi−mlおよびPi+j+m2の接線ベクトル値を
読み出し、終端条件として固定条件(即ら、端点におけ
る接線ベクトル値を指定する終端条件)で制御点Pi−
mlと制御点Pi+j+m2に挟まれた曲線の形状を算
出する。
If the operator looks at the curved shape displayed on the graph ink display 502 and determines that some of the curved shape is not properly fitted, the operator can control the curved shape by inputting predetermined information from the conversation terminal 501. The 1n device 503 is notified of this fact. Thereafter, based on an instruction from the control device 503, the conversation terminal 501 selects a control point or a control point sequence (Pi to P i + j ) information (e.g. i
, i+j), the corrected position coordinates of the control point (column) (in this case,
It does not matter if the position coordinates may not be changed in part of the correction section) and the new curve generation section control point number 1
-m1→-1, 1-1-j+m2-1 is manually generated. The control device 503 receives control point (column) information i that should be manually corrected.
, i + j, then control point Pi,...
Record the corrected position coordinates of Pi+j and the curve generation section control point numbers 1-m1+1 and i+j+rn2-1 as data 41.
Each is written to the corresponding address of the device 504. When the control device 503 instructs the curve generation calculation device 505 to calculate the curve shape of the correction section, the 1-curve generation calculation device 505 retrieves the curve generation section control point number 1-m1 from the data storage device 504.
+1. i+j+m2-1 is read, and based on this, the control points Pi-m1, Pi-ml+1 . −, Pi+j+m2
-1 , P i + j + m 2 (i m
1≧1, i+j+m2≦7) and the tangent vector values of the control points Pi-ml and Pi+j+m2 are read out, and the control points are set with a fixed condition as the terminal condition (i.e., a terminal condition that specifies the tangent vector value at the terminal point). Pi-
The shape of the curve sandwiched between ml and the control point Pi+j+m2 is calculated.

曲線生成してから再度グラフィックデイスプレィ502
に表示するところまでは前記説明と同様である。以後、
操作者が曲線形状が適当であると判断するまで曲線の修
正動作を繰り返す。
After generating the curve, display the graphic display 502 again.
It is the same as the above explanation up to the point where it is displayed. From then on,
The curve correction operation is repeated until the operator determines that the curve shape is appropriate.

以上では2次元座標空間への適用を例に取り説明したが
1本発明はN次元座標空間で一般的に適用できる。
Although the above description has been made using an example of application to a two-dimensional coordinate space, the present invention can be generally applied to an N-dimensional coordinate space.

〔発明の効果〕〔Effect of the invention〕

以上説明したように5本発明によれば、−度指定した制
御点から補間関数により曲線形状を算出した後で、一部
の制御点(列)の位置座標を修正しても、咳修正制御点
を除いた他の制?7[1点間では曲線形状が変化しない
かもしくは変化を小さく抑えることが出来る。このため
、会話的に曲線を生成したり、形状を修正したりするこ
とが容易であり、か・つ特別な知識がなくとも補間関数
の曲線形状表現への直怒的な適用を可能とする。
As explained above, according to the present invention, even if the position coordinates of some control points (columns) are corrected after calculating the curve shape using the interpolation function from the control points specified by − degrees, the cough correction control Any other system except points? 7 [The curve shape does not change between one point or the change can be kept small. Therefore, it is easy to generate curves and modify shapes conversationally, and it is also possible to directly apply interpolation functions to curve shape representations without special knowledge. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の曲線補間生成方式の一実施例の処理概
要を示す図、第2図は本発明により生成された曲線の例
を示す図、第3図は本発明の一実施例のffi成を示す
図、第4図はデータ記憶装置504のデータの記憶形式
の例を示す図、第5図は従来の曲線補間生成方式の処理
概要を示す図、第6図は従来方式により生成された曲線
形状を示す図である。 201、401・・・・・・制御点1 202、402・・・・・・補間生成曲線。 211、411・・・・・・修正制御点。 212、412・・・・・・修正補間生成曲線。 特許出願人 日本電信電話株式会社
FIG. 1 is a diagram showing a processing overview of an embodiment of the curve interpolation generation method of the present invention, FIG. 2 is a diagram showing an example of a curve generated by the present invention, and FIG. Fig. 4 is a diagram showing an example of the data storage format of the data storage device 504, Fig. 5 is a diagram showing an outline of the processing of the conventional curve interpolation generation method, and Fig. 6 is a diagram showing the processing outline of the conventional curve interpolation generation method. FIG. 201, 401... Control point 1 202, 402... Interpolation generation curve. 211, 411... Correction control point. 212, 412... Modified interpolation generation curve. Patent applicant Nippon Telegraph and Telephone Corporation

Claims (2)

【特許請求の範囲】[Claims] (1)N次元座標空間において表現しようとする曲線の
上あるいはその近傍に制御点列P1、P2、・・・・・
・、Peをとり、これらの制御点列から補間関数により
前記制御点間に位置する点を補間することにより当該曲
線あるいは当該曲線の近似曲線を生成する曲線補間生成
方式において、生成された曲線の形状の一部を修正する
際に、該曲線の制御点列位置座標および該制御点列の始
点P1、終点Peにおける曲線終端条件を用いて算出さ
れた各々の制御点の接線ベクトル値の内、前記曲線の修
正する必要のある区間に含まれる制御点あるいは制御点
列Pi、Pi+1、・・・・・・、Pi+jの1つ前の
制御点Pi−1(i−1≧1)および1つ後の制御点P
i+j+1(i+j+1≦e)における接線ベクトル値
を記憶する第一の手段と、 前記修正を必要とする制御点あるいは制御点列Pi、P
i+1、・・・・・・、Pi+jの修正後の位置座標と
前記第一の手段により記憶された制御点Pi−1、Pi
+j+1の接線ベクトル値とを用いて制御点Pi−1、
Pi+j+1に挟まれた曲線区間の曲線形状を修正する
第二の手段とを有する ことを特徴とする曲線補間生成方式。
(1) A sequence of control points P1, P2, etc. on or near the curve to be expressed in the N-dimensional coordinate space.
・In the curve interpolation generation method, which generates the curve or an approximate curve of the curve by taking Pe, and interpolating the points located between the control points using an interpolation function from these control point sequences, When modifying a part of the shape, among the tangent vector values of each control point calculated using the control point sequence position coordinates of the curve and the curve end conditions at the start point P1 and end point Pe of the control point sequence, Control points or control point sequences Pi, Pi+1, . . . , one control point Pi-1 (i-1≧1) before Pi+j and one control point included in the section of the curve that needs to be corrected Later control point P
a first means for storing a tangent vector value at i+j+1 (i+j+1≦e); and a control point or control point sequence Pi, P that requires the correction.
The corrected position coordinates of i+1, ..., Pi+j and the control points Pi-1, Pi stored by the first means
Using the tangent vector value of +j+1, control point Pi-1,
A curve interpolation generation method comprising: second means for modifying the curve shape of a curve section sandwiched by Pi+j+1.
(2)N次元座標空間において表現しようとする曲線の
上あるいはその近傍に制御1点列P1、P2、・・・・
・・、Peをとり、これらの制御点列から補間関数によ
り前記制御点間に位置する点を補間することにより当該
曲線あるいは当該曲線の近似曲線を生成する曲線補間生
成方式において、生成された曲線の形状の一部を修正す
る際に、該曲線の制御点列位置座標および該制御点列の
始点P1、終点Peにおける曲線終端条件を用いて算出
された各々の制御点の接線ベクトル値の内、前記曲線の
制御点の位置座標を修正する必要のある区間に含まれる
制御点あるいは制御点列Pi、Pi+1、・・・・・・
、Pi+jのm1個前の制御点Pi−m1(i−m1≧
1)およびm2個後の制御点Pi+j+m2(i+j+
m2≦e)における接線ベクトル値を記憶する第三の手
段と、 該曲線の制御点あるいは制御点列Pi−m1、Pi−m
1+1、・・・・・・、Pi−1およびPi+j+1、
Pi+j+2、・・・・・・、Pi+j+m2の位置座
標を記憶する第四の手段と、 前記位置座標の修正を必要とする制御点あるいは制御点
列Pi、Pi+1、・・・・・・、Pi+jの修正後の
位置座標と前記第四の手段により記憶された制御点ある
いは制御点列Pi−m1、Pi−m1+1、・・・・・
・、Pi−1およびPi+j+1、Pi+j+2、・・
・・・・、Pi+j+m2の位置座標と前記第三の手段
により記憶された制御点Pi−m1、Pi+j+m2の
接線ベクトル値とを用いて制御点Pi−m1と制御点P
i+j+m2に挟まれる区間の曲線形状を修正する第五
の手段とを有する ことを特徴とする曲線補間生成方式。
(2) A sequence of control points P1, P2, etc. on or near the curve to be expressed in the N-dimensional coordinate space.
..., a curve generated in a curve interpolation generation method that generates the curve or an approximate curve of the curve by taking Pe and interpolating the points located between the control points using an interpolation function from a sequence of control points. When modifying a part of the shape of the curve, among the tangent vector values of each control point calculated using the control point sequence position coordinates of the curve and the curve termination conditions at the start point P1 and end point Pe of the control point sequence. , control points or control point sequences Pi, Pi+1, etc. included in the section where the position coordinates of the control points of the curve need to be corrected.
, control point Pi-m1 (i-m1≧
1) and m2 subsequent control points Pi+j+m2(i+j+
a third means for storing tangent vector values at m2≦e); and control points or control point sequences Pi-m1, Pi-m of the curve.
1+1, ......, Pi-1 and Pi+j+1,
A fourth means for storing the position coordinates of Pi+j+2, . . . , Pi+j+m2; Corrected position coordinates and control points or control point sequences Pi-m1, Pi-m1+1, . . . stored by the fourth means
・, Pi-1 and Pi+j+1, Pi+j+2,...
..., the control point Pi-m1 and the control point P using the position coordinates of Pi+j+m2 and the tangent vector values of the control points Pi-m1 and Pi+j+m2 stored by the third means.
A curve interpolation generation method comprising: fifth means for modifying the curve shape of the section sandwiched by i+j+m2.
JP26994887A 1987-10-26 1987-10-26 Curve interpolation generator Expired - Fee Related JP2683239B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26994887A JP2683239B2 (en) 1987-10-26 1987-10-26 Curve interpolation generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26994887A JP2683239B2 (en) 1987-10-26 1987-10-26 Curve interpolation generator

Publications (2)

Publication Number Publication Date
JPH01112384A true JPH01112384A (en) 1989-05-01
JP2683239B2 JP2683239B2 (en) 1997-11-26

Family

ID=17479438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26994887A Expired - Fee Related JP2683239B2 (en) 1987-10-26 1987-10-26 Curve interpolation generator

Country Status (1)

Country Link
JP (1) JP2683239B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03121572A (en) * 1989-10-04 1991-05-23 Canon Inc Image processor
US5635700A (en) * 1994-07-27 1997-06-03 Symbol Technologies, Inc. Bar code scanner with multi-channel light collection
KR100812577B1 (en) * 2000-12-15 2008-03-13 니혼 유피카 가부시키가이샤 O/w aqueous thermosetting resin dispersion, frp precision filter medium made with the aqueous dispersion, and process for producing the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03121572A (en) * 1989-10-04 1991-05-23 Canon Inc Image processor
US5635700A (en) * 1994-07-27 1997-06-03 Symbol Technologies, Inc. Bar code scanner with multi-channel light collection
KR100812577B1 (en) * 2000-12-15 2008-03-13 니혼 유피카 가부시키가이샤 O/w aqueous thermosetting resin dispersion, frp precision filter medium made with the aqueous dispersion, and process for producing the same

Also Published As

Publication number Publication date
JP2683239B2 (en) 1997-11-26

Similar Documents

Publication Publication Date Title
WO1990004818A1 (en) Spline interpolation system
JPS6367680A (en) Curved line generating method
JPH01112384A (en) Curve interpolation forming system
US6693646B1 (en) Method and system for iterative morphing
JP2714100B2 (en) How to make a video
JPH05127720A (en) Offline instruction device for robot
JP2812861B2 (en) Graphic specific part movement control method
JP3489233B2 (en) Data display device and data display method
JP2596546B2 (en) Reproduction time correction device for industrial robots
JPH01217608A (en) Generation of spline curve
JPH09147127A (en) Free-form curve generating method
Atkinson et al. An approach to the simulation of control systems using the digital computer
JP2969798B2 (en) Flow diagram creation device
JP3172846B2 (en) Shape processing equipment
JPS62226203A (en) Off-line teaching system for robot
JPH04171536A (en) Support device for development of fuzzy control system
JPS63245575A (en) Plotting system for connecting point of continuous segment
JPS60144788A (en) Cursor display system
JP3089064B2 (en) Mixed waveform generator for two kinds of waveforms
JPH01217607A (en) Generation of spline curve
JPH0546704A (en) Size change processing system
JPH03229379A (en) Data processor
JPH05135183A (en) Control point data processor
JPH01237880A (en) Logic circuit diagram input device
JPH0926777A (en) Method and device for graphic processing

Legal Events

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