JPH04195524A - Digital differential analyzer - Google Patents

Digital differential analyzer

Info

Publication number
JPH04195524A
JPH04195524A JP2327532A JP32753290A JPH04195524A JP H04195524 A JPH04195524 A JP H04195524A JP 2327532 A JP2327532 A JP 2327532A JP 32753290 A JP32753290 A JP 32753290A JP H04195524 A JPH04195524 A JP H04195524A
Authority
JP
Japan
Prior art keywords
point
interpolation
coordinate
information
points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2327532A
Other languages
Japanese (ja)
Inventor
Mitsuru Yamauchi
山内 満
Tomohiro Fukuoka
智博 福岡
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.)
Fujitsu VLSI Ltd
Fujitsu Ltd
Original Assignee
Fujitsu VLSI Ltd
Fujitsu Ltd
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 Fujitsu VLSI Ltd, Fujitsu Ltd filed Critical Fujitsu VLSI Ltd
Priority to JP2327532A priority Critical patent/JPH04195524A/en
Publication of JPH04195524A publication Critical patent/JPH04195524A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To attain efficient interpolating processing with simple circuit constitution by generating an interpolating point between two points by using a prescribed set point previously prepared in the case of judging that an amount of travel is less than a previously set threshold. CONSTITUTION:This digital differentiation analyzer is provided with a traveling amount analyzing means 4 for analyzing the amount of travel from a start point up to an end point based upon inputted coordinate information, a parameter computing means 5 for computing a parameter for interpolating processing based upon the inputted coordinate information and an interpolating point generating means 6 for generating an interpolating point between the two points, i.e., the start point and the end point, based upon the computed result of the means 5. When the means 4 judges that the amount of travel is less than the previously set threshold, the means 6 generates the interpolating point between the two points by using the prescribed set point previously prepared without using the computed result of the means 5. Thus efficient interpolating processing can be executed by the simple circuit constitution.

Description

【発明の詳細な説明】 〔概要〕 デジタル微分解析器に関し、 簡単な回路構成で、効率のよい補間処理を行なうデジタ
ル微分解析器を提供することを目的とし、 XY座標上の始点と終点との所定の2点間を補間するデ
ジタル微分解析器であって、前記始点の座標情報から前
記終点の座標情報に至る情報を入力する情報入力手段と
、該情報入力手段に入力された情報に基づいて始点から
終点までの移動量を解析する移動量解析手段と、該情報
入力手段から入力された座標情報に基づいて補間処理の
ためのパラメータを演算するパラメータ演算手段と、該
パラメータ演算手段の演算結果に基づいて該始点と終点
との2点間の補間点を発生する補間点発生手段とを備え
、前記移動量解析手段によって、移動量が予め設定され
た閾値よりも小さいと判断された場合、前記補間点発生
手段は前記パラメータ演算手段の演算結果を用いずに予
め用意されている所定の設定値を用いて該2点間の補間
点を発生するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a digital differential analyzer, the purpose of the present invention is to provide a digital differential analyzer that performs efficient interpolation processing with a simple circuit configuration. A digital differential analyzer for interpolating between two predetermined points, comprising: an information input means for inputting information from the coordinate information of the starting point to the coordinate information of the end point; A movement amount analysis means for analyzing the movement amount from a starting point to an end point, a parameter calculation means for calculating parameters for interpolation processing based on coordinate information input from the information input means, and calculation results of the parameter calculation means. interpolation point generation means for generating an interpolation point between two points, the starting point and the end point, based on the movement amount analysis means, and when the movement amount analysis means determines that the movement amount is smaller than a preset threshold, The interpolation point generation means is configured to generate an interpolation point between the two points using predetermined set values prepared in advance without using the calculation results of the parameter calculation means.

〔産業上の利用分野) 本発明は、デジタル微分解析器に係り、詳しくは、例え
ば、コンピュータグラフィックス(CG)やCAD (
computer aided design )の分
野に用いて好適な、線分を描画する際に所定の2点間を
補間するデジタル微分解析器に関する。
[Industrial Application Field] The present invention relates to a digital differential analyzer, and more specifically, for example, computer graphics (CG) and CAD (
The present invention relates to a digital differential analyzer suitable for use in the field of computer aided design, which interpolates between two predetermined points when drawing a line segment.

コンピュータを用いたグラフィックス処理における描画
の基本は所定の2点間を結ぶ線分の描画であり、このよ
うな線分の描画には所定の始点と終点とを指定し、この
2点間を補間することが必要である。
The basis of drawing in graphics processing using a computer is the drawing of a line segment connecting two predetermined points. To draw such a line segment, a predetermined start point and end point are specified, and the drawing between these two points is It is necessary to interpolate.

近年、このような所定の2点間を補間するものとして、
複雑な回路構成をとる乗算器を用いずとも、加算器やビ
ットシフタのみで構成可能であるため、デジタル微分解
析器(以下、DDAという)が数多く開発されている。
In recent years, interpolation between two predetermined points has been developed.
Many digital differential analyzers (hereinafter referred to as DDA) have been developed because they can be constructed using only adders and bit shifters without using multipliers with complicated circuit configurations.

しかし、DDAを用いて2点間を補間する場合、前処理
として補間すべき2点の座標がらパラメータを算出する
必要があり、回路構成を簡単にするため、この前処理と
補間点の発生処理とを同一の演算器で処理すると、速度
が犠牲になるとともに、制御が複雑になってしまう。
However, when interpolating between two points using DDA, it is necessary to calculate parameters from the coordinates of the two points to be interpolated as preprocessing, and in order to simplify the circuit configuration, this preprocessing and interpolation point generation processing If both are processed by the same arithmetic unit, speed will be sacrificed and control will become complicated.

−そこで、処理速度の向上のためにはパラメータの演算
と、補間点の発生処理とを別々にパイプライン処理で行
なうことが要求される。
- Therefore, in order to improve processing speed, it is required to perform parameter calculation and interpolation point generation processing separately in pipeline processing.

(従来の技術〕 従来のこの種のデジタル微分解析器としては、処理速度
向上のため、パラメータを演算するパラメータ演算手段
と、補間点を発生させる補間点発生手段とを別々に備え
、これらパラメータ演算手段と補間点発生手段とをパイ
プライン処理を行なっていた。
(Prior Art) In order to improve processing speed, conventional digital differential analyzers of this type are equipped with separate parameter calculation means for calculating parameters and interpolation point generation means for generating interpolation points. Pipeline processing was performed between the means and the interpolation point generating means.

そして、パラメータ演算手段と補間点発生手段とを別々
に設けるような構成をとることで、回路が複雑化するの
を避けるため、一般に、パラメータ演算手段を1つの演
算器で構成し、この演算器をシーケンシャルに操作して
補間点の発生処理に必要なパラメータの全てを算出して
いる。
In order to avoid complicating the circuit by providing separate parameter calculation means and interpolation point generation means, the parameter calculation means is generally configured with one calculation unit, and this calculation unit are operated sequentially to calculate all the parameters necessary for the interpolation point generation process.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、このような従来のデジタル微分解析器に
あっては、パラメータ演算手段が1つの演算器からなる
という構成となっていたため、以下に述べるような問題
点があった。
However, in such a conventional digital differential analyzer, since the parameter calculation means is composed of one calculation unit, there are problems as described below.

すなわち、DDAによる補間点の発生処理に要する時間
は、入力される2点、つまり、始点から終点までの移動
距離によって決定されるのに比べて、パラメータの算出
に要する時間は、パラメータ演算手段の回路構成により
一定である。このことは、入力される2点の差分がある
値よりも大きい場合にはパラメータ演算を高速に行なう
必要がないが、一方、2点の差分がある値よりも小さい
場合には、パラメータ演算を高速に行なわなければなら
ないということを意味する。
In other words, the time required to generate an interpolation point by DDA is determined by the two input points, that is, the moving distance from the start point to the end point, whereas the time required to calculate the parameters depends on the parameter calculation means. It is constant depending on the circuit configuration. This means that if the difference between the two input points is larger than a certain value, there is no need to perform parameter calculations quickly, but on the other hand, if the difference between the two points is smaller than a certain value, then the parameter calculations need to be performed quickly. This means that it must be done quickly.

したがって、DDAの性質上、バイブライン処理を高率
よく行なうためには、入力される2点のデータの性質を
よく検討してパラメータ演算手段の回路構成を決定しな
ければならず、パラメータ演算手段を1つの演算器で構
成すると、第6図に示すように、例えば、パラメータ演
算手段による演算に5サイクル、補間点発生手段による
補間点の発生が1ドツトに付き1サイクルで実行される
ものと仮定した場合、人力される2点のデータによって
は、パラメータの演算が終了するまで補間点発生手段の
処理が待ち状態(WAIT状態)となり、著しい処理効
率の低下を招くという問題点があった。なお、図中、v
lは始点座標(0,O)、終点座標(2,1)が入力さ
れた場合、同様に、v2は始点座標(2゜1)、終点座
標(3,1)、V3は始点座標(3゜1)、終点座標(
5,1)、V4は始点座標(5゜1)、終点座標(6,
2)が入力された場合を示す。
Therefore, due to the nature of the DDA, in order to perform vibration line processing at a high rate, it is necessary to carefully consider the nature of the two input data points and determine the circuit configuration of the parameter calculation means. When configured with one arithmetic unit, as shown in FIG. 6, for example, the parameter calculation means performs calculation in five cycles, and the interpolation point generation means performs interpolation point generation in one cycle per dot. Assuming this, there is a problem in that depending on the two-point data input manually, the processing of the interpolation point generating means goes into a WAIT state until the parameter calculation is completed, resulting in a significant drop in processing efficiency. In addition, in the figure, v
If l is the starting point coordinates (0, O) and ending point coordinates (2, 1) are input, similarly, v2 is the starting point coordinates (2°1), ending point coordinates (3, 1), and V3 is the starting point coordinates (3゜1), end point coordinates (
5,1), V4 is the starting point coordinate (5°1), the ending point coordinate (6,
2) is input.

また、このような問題を解決するため、非常に稀なデー
タを考慮してパラメータ演算手段の演算器の数を増やす
ということは、1路構成を簡単にするという前提条件に
反するばかりか、制御も複雑なものとなり、コストアッ
プの要因になるという問題点があった。
Furthermore, in order to solve such problems, increasing the number of computing units in the parameter computing means by considering extremely rare data not only violates the prerequisite of simplifying the one-path configuration, but also increases the control However, there was a problem in that the process also became complicated, leading to an increase in costs.

そこで本発明は、簡単な回路構成で、効率のよい補間処
理を行なうデジタル微分解析器を提供することを目的と
している。
Therefore, an object of the present invention is to provide a digital differential analyzer that performs efficient interpolation processing with a simple circuit configuration.

〔課題を解決するための手段〕[Means to solve the problem]

本発明によるデジタル微分解析器は上記目的達成のため
、その原理説明図を第1図に示すように、XY座標上の
始点と終点との所定の2点間を補間するDDAIであっ
て、前記始点の座標情報を入力する始点座標入力手段2
と、前記終点の座標情報を入力する終点座標入力手段3
と、該始点座標入力手段2、および終点座標入力手段3
から入力された座標情報に基づいて始点から終点までの
移動量を解析する移動量解析手段4と、該始点座標入力
手段2、および終点座標入力手段3から入力された座標
情報に基づいて補間処理のためのパラメータを演算する
パラメータ演算手段5と、該パラメータ演算手段5の演
算結果に基づいて該始点と終点との2点間の補間点を発
生する補間点発生手段6とを備え、前記移動量解析手段
4によって、移動量が予め設定された閾値よりも小さい
と判断された場合、前記補間点発生手段6は前記パラメ
ータ演算手段5の演算結果を用いずに予め用意されてい
る所定の設定値を用いて該2点間の補間点を発生するよ
うに構成している。
In order to achieve the above object, the digital differential analyzer according to the present invention is a DDAI that interpolates between two predetermined points, a starting point and an ending point, on the XY coordinates, as shown in FIG. Starting point coordinate input means 2 for inputting coordinate information of the starting point
and end point coordinate input means 3 for inputting the coordinate information of the end point.
, the starting point coordinate input means 2, and the end point coordinate input means 3.
movement amount analysis means 4 for analyzing the movement amount from the start point to the end point based on the coordinate information input from the start point coordinate input means 2 and the interpolation processing based on the coordinate information input from the start point coordinate input means 2 and the end point coordinate input means 3; and an interpolation point generating means 6 that generates an interpolation point between the starting point and the ending point based on the calculation result of the parameter calculating means 5. When the amount analysis means 4 determines that the amount of movement is smaller than a preset threshold, the interpolation point generation means 6 uses a predetermined setting prepared in advance without using the calculation result of the parameter calculation means 5. The configuration is such that an interpolation point between the two points is generated using the value.

また、前記補間点発生手段はBresenhamの方法
を用い、前記所定の設定値は補間する2点間のX座標、
およびY座標の各差分であるΔX、およびΔY(ΔX>
ΔY)に対応してY座標が移動するかしないかの情報を
予めテーブルフ化したもの、あるいは、ΔX1およびΔ
Y(ΔX>ΔY)に対応する2・ΔY−ΔX、2・ΔY
Further, the interpolation point generating means uses Bresenham's method, and the predetermined setting value is the X coordinate between two points to be interpolated;
ΔX and ΔY (ΔX>
ΔX1 and ΔX1 and ΔX1 and ΔX1 and Δ
2・ΔY−ΔX, 2・ΔY corresponding to Y (ΔX>ΔY)
.

2・ (ΔY+ΔX)の各値を予め算出してテーブルフ
化したものであることが有効である。
2. It is effective to calculate each value of (ΔY+ΔX) in advance and create a table.

〔作用〕[Effect]

本発明では、移動量解析手段によって、移動量が予め設
定された閾値よりも小さいと判断された場合、補間点発
生手段の入力データとしてパラメータ演算手段の演算結
果ではなく、予め用意されている所定の設定値(例えば
、テーブル)が用いられ、補間点発生手段によって2点
間の補間点が発生される。
In the present invention, when the movement amount analysis means determines that the movement amount is smaller than a preset threshold value, the input data of the interpolation point generation means is not the calculation result of the parameter calculation means, but a predetermined value prepared in advance. A set value (for example, a table) is used, and an interpolation point between the two points is generated by an interpolation point generation means.

すなわち、パラメータ演算手段が簡単な構成でもパラメ
ータ演算手段の処理によって補間点発生手段の処理が待
ち状態となることが防止され、効率のよいパイプライン
処理による補間処理がなされる。
That is, even if the parameter calculation means has a simple configuration, the processing of the parameter calculation means prevents the processing of the interpolation point generation means from entering a waiting state, and the interpolation processing is performed by efficient pipeline processing.

〔実施例〕〔Example〕

以下、本発明を図面に基づいて説明する。 Hereinafter, the present invention will be explained based on the drawings.

第2図は本発明に係るDDAの第1実施例の全体構成を
示すブロック図である。
FIG. 2 is a block diagram showing the overall configuration of a first embodiment of the DDA according to the present invention.

まず、構成を説明する。First, the configuration will be explained.

本実施例のD D A、 1は、大別して、始点座標入
力手段である始点座標入力部2、終点座標入力手段であ
る終点座標入力部3、移動量解析手段である移動量解析
部4、パラメータ演算手段であるパラメータ演算部5、
補間点発生手段である補間点発生部6、ROM等に記憶
されたテーブル7から構成されている。
The DDA 1 of this embodiment is roughly divided into a starting point coordinate input section 2 which is a starting point coordinate input means, an end point coordinate input section 3 which is an end point coordinate input means, a movement amount analysis section 4 which is a movement amount analysis means, a parameter calculation unit 5, which is a parameter calculation means;
It is composed of an interpolation point generation section 6, which is an interpolation point generation means, and a table 7 stored in a ROM or the like.

移動量解析部4は、予めパラメータ処理部5の処理サイ
クルより1サイクル少ない数が閾値として設定されてい
る。
In the movement amount analysis section 4, a number one cycle less than the processing cycle of the parameter processing section 5 is set in advance as a threshold value.

なお、8は演算回路であり、演算回路8は始点座標入力
部2と終点座標入力部3とから入力される2点の座標に
よって、始点から終点までの移動量Mを演算するもので
あり、本実施例の補間点発生部6には、Bresenh
amの方法が用いられて線分の補間処理が行なわれる。
In addition, 8 is an arithmetic circuit, and the arithmetic circuit 8 calculates the amount of movement M from the start point to the end point based on the coordinates of two points input from the start point coordinate input section 2 and the end point coordinate input section 3. The interpolation point generating section 6 of this embodiment includes Bresenh
Line segment interpolation processing is performed using the am method.

第3図は本実施例のテーブル化された設定値の例を示す
図である。
FIG. 3 is a diagram showing an example of set values tabulated in this embodiment.

Bresenhamの方法を用いたDDAでは、座標の
移動量として2点間のX座標、およびY座標の各差分で
あるΔX1およびΔY(ΔX>ΔY)が与えられた場合
、X方向への移動に対してX方向に移動するかどうかを
算出されたパラメータに基づいて逐次判断し、補間点の
座標を発生する。
In DDA using Bresenham's method, if ΔX1 and ΔY (ΔX>ΔY), which are the differences between the X and Y coordinates between two points, are given as the amount of coordinate movement, The coordinates of the interpolation point are generated by sequentially determining whether or not to move in the X direction based on the calculated parameters.

これに基づいて本実施例のテーブル7はΔX、およびΔ
Y(ΔX>ΔY)に対応してY座標が移動するかしない
かの情報を予めテーブル化したものとなっており、テー
ブル値の0は移動無し、lは移動有り、を示し、各ビッ
ト位置により移動すべき回数をみている。
Based on this, Table 7 of this embodiment has ΔX and Δ
Information on whether or not the Y coordinate moves in response to Y (ΔX>ΔY) is compiled into a table in advance. The table value 0 indicates no movement, l indicates movement, and each bit position is We are looking at the number of times we should move.

次に作用を説明する。Next, the effect will be explained.

はじめに、パラメータ演算部5による演算に5サイクル
、補間点発生部6による補間点の発生が1ドツトに付き
1サイクルで実行されるものと仮定し、これによって、
移動量解析部4の閾値は4に設定されるものとする。
First, it is assumed that the calculation by the parameter calculation unit 5 is performed in 5 cycles, and the generation of interpolation points by the interpolation point generation unit 6 is performed in 1 cycle for each dot.
It is assumed that the threshold value of the movement amount analysis section 4 is set to 4.

まず、始点座標として(0,O)が始点座標人力部2に
、終点座標として(6,5)が終点座標入力部3に入力
された場合、演算回路8により2点間のX座標、および
Y座標の各差分であるΔX、およびΔYが演算される。
First, when (0, O) is input as the starting point coordinate to the starting point coordinate human input unit 2 and (6, 5) is input as the ending point coordinate to the ending point coordinate input unit 3, the arithmetic circuit 8 calculates the X coordinate between the two points, and Differences in Y coordinates, ΔX and ΔY, are calculated.

この場合、X方向の移動量Mは6、X方向の移動量Mは
5であり、これらの値は移動量解析部4によって閾値よ
りも大きな値であると判断されるので、パラメータ演算
部5によってパラメータの演算が行なわれ、算出された
パラメータに基づいて補間点発生部6により補間点の発
生処理が行なわれる。
In this case, the amount of movement M in the X direction is 6, and the amount M of movement in the Parameter calculations are performed, and interpolation point generation processing is performed by the interpolation point generation section 6 based on the calculated parameters.

次に、始点座標として(0,O)が始点座標入力部2に
、終点座標として(2,1)が終点座標入力部3に入力
された場合、X方向の移動量Mは2、X方向の移動量M
は1であり、これらの値は移動量解析部4によって閾値
よりも小さな値であると判断されるので、第3図に示す
ように、テーブル7の値が参照される。この場合のテー
ブル7の値は0010であり、この値は1回目のX方向
への移動の際にはX方向への移動が無く、2回目のX方
向への移動の際にX方向への移動が有ることを示してい
る。そして、テーブル7の参照値は補間点発生部6に入
力され、補間点発生部6はテーブル7の値により補間点
の発生処理が行なわれる。
Next, when (0, O) is input as the starting point coordinate to the starting point coordinate input section 2 and (2, 1) is inputted as the ending point coordinate to the ending point coordinate input section 3, the amount of movement M in the X direction is 2, and the amount of movement M in the X direction is 2. The amount of movement M
is 1, and these values are determined by the movement amount analysis unit 4 to be smaller than the threshold value, so the values in the table 7 are referred to, as shown in FIG. In this case, the value of Table 7 is 0010, which means that there is no movement in the X direction during the first movement in the X direction, and there is no movement in the X direction during the second movement in the X direction. This shows that there is movement. Then, the reference values of table 7 are input to the interpolation point generation section 6, and the interpolation point generation section 6 performs interpolation point generation processing based on the values of table 7.

したがって、従来例と同様に、vlとして始点座標(0
,O)、終点座標(2,1)、V2として始点座標(2
,1)、終点座標(3,1)、v3として始点座標(3
,1)、終点座標(5゜1 ) 、V4として始点座標
(5,1)、終点座標(6,2)が入力された場合の動
作例は、第4図に示すようになり、従来例と比較して処
理が高速化される。 第5図は本発明の第2実施例のテ
ーブル化された設定値の例を示す図であり、本実施例の
テーブル7はΔX、およびΔY(ΔX>ΔY)に対応す
る2・△Y−ΔX、2・ΔY、2・ (ΔY+ΔX)の
各個を予め算出してテーブル化したものとなっているだ
けで、主要な構成は第2図に示した第1実施例と同一で
ある。
Therefore, as in the conventional example, vl is the starting point coordinate (0
, O), the end point coordinates (2, 1), and the starting point coordinates (2, 1) as V2.
, 1), end point coordinates (3, 1), and starting point coordinates (3, 1) as v3.
, 1), end point coordinates (5°1), an example of operation when the start point coordinates (5, 1) and end point coordinates (6, 2) are input as V4 is shown in Fig. 4, and is similar to the conventional example. Processing is faster compared to . FIG. 5 is a diagram showing an example of tabulated setting values according to the second embodiment of the present invention, and table 7 of the present embodiment is 2·ΔY− corresponding to ΔX and ΔY (ΔX>ΔY). The main structure is the same as the first embodiment shown in FIG. 2, except that ΔX, 2·ΔY, and 2·(ΔY+ΔX) are calculated in advance and tabulated.

このように本実施例では、移動量解析手段によって求め
られた移動量が、予め設定された閾値よりも小さい場合
、補間点発生手段の入力データとしてパラメータ演算手
段の演算結果ではなく、予め用意されている所定の設定
値を用いて、補間点発生手段による2点間の補間点の発
生ができ、パラメータ演算手段を簡単な構成としても補
間点発生手段の処理は、パラメータ演算手段の処理を待
つことなく行なうことができる。
As described above, in this embodiment, when the movement amount determined by the movement amount analysis means is smaller than a preset threshold value, the input data of the interpolation point generation means is not the calculation result of the parameter calculation means, but is prepared in advance. Using a predetermined set value, the interpolation point generation means can generate an interpolation point between two points, and even if the parameter calculation means has a simple configuration, the processing of the interpolation point generation means waits for the processing of the parameter calculation means. You can do it without any trouble.

したがって、簡単な回路構成で、効率のよいパイプライ
ン処理による補間処理ができ、補間処理の高速化できる
Therefore, with a simple circuit configuration, interpolation processing can be performed by efficient pipeline processing, and the interpolation processing speed can be increased.

(発明の効果〕 本発明では、移動量解析手段によって求められた移動量
が、予め設定された閾値よりも小さい場合、補間点発生
手段の入力データとしてパラメータ演算手段の演算結果
ではなく、予め用意されている所定の設定値を用いて、
補間点発生手段による2点間の補間点の発生ができ、パ
ラメータ演算手段を簡単な構成としても補間点発生手段
の処理は、パラメータ演算手段の処理を待つことなく行
なうことができる。
(Effects of the Invention) In the present invention, when the movement amount calculated by the movement amount analysis means is smaller than a preset threshold value, the input data of the interpolation point generation means is not the calculation result of the parameter calculation means, but is prepared in advance. Using the predetermined settings,
The interpolation point generation means can generate an interpolation point between two points, and even if the parameter calculation means has a simple configuration, the processing of the interpolation point generation means can be performed without waiting for the processing of the parameter calculation means.

したがって、簡単な回路構成で、効率のよいパイプライ
ン処理による補間処理ができる。
Therefore, interpolation processing can be performed using efficient pipeline processing with a simple circuit configuration.

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

第1図は本発明のDDAの原理説明図、第2〜4図は本
発明に係るDDAの第1実施例を示し、 第2図はその全体構成を示すブロック図、第3図はその
テーブル化された設定値の例を示す図、 第4図は第1実施例の動作例を説明するための図、 第5図は第2実施例のテーブル化された設定値の例を示
す図、 第6図は従来例の動作例を説明するための図である。 1・・・・・・DDA (デジタル微分解析器)、2・
・・・・・始点座標入力部(始点座標入力手段)、3・
・・・・・終点座標入力部(終点座標入力手段)、4・
・・・・・移動量解析部(手段移動量解析手段)、5・
・・・・・パラメータ演算部(パラメータ演算手段)、
6・・・・・・補間点発生部(補間点発生手段)、7・
・・・・・テーブル、 8・・・・・・演算回路。 第1実施例のテーブル化された設定値の例を示す図第3
図 第2実施例のテーブル化された設定値の例を示す図第5
Fig. 1 is a diagram explaining the principle of the DDA of the present invention, Figs. 2 to 4 show a first embodiment of the DDA according to the invention, Fig. 2 is a block diagram showing its overall configuration, and Fig. 3 is its table. 4 is a diagram for explaining an example of the operation of the first embodiment. FIG. 5 is a diagram illustrating an example of tabulated setting values of the second embodiment. FIG. 6 is a diagram for explaining an example of the operation of the conventional example. 1...DDA (digital differential analyzer), 2.
...Starting point coordinate input section (starting point coordinate input means), 3.
... End point coordinate input section (end point coordinate input means), 4.
...Movement amount analysis unit (means movement amount analysis means), 5.
...parameter calculation section (parameter calculation means),
6... Interpolation point generation section (interpolation point generation means), 7.
...Table, 8...Arithmetic circuit. Figure 3 shows an example of tabulated setting values in the first embodiment.
Figure 5 shows an example of tabulated setting values of the second embodiment.
figure

Claims (4)

【特許請求の範囲】[Claims] (1)XY座標上の始点と終点との所定の2点間を補間
するデジタル微分解析器であって、 前記始点の座標情報から前記終点の座標情 報に至る情報を入力する情報入力手段と、 該情報入力手段に入力された情報に基づい て始点から終点までの移動量を解析する移動量解析手段
と、 該情報入力手段から入力された座標情報に 基づいて補間処理のためのパラメータを演算するパラメ
ータ演算手段と、 該パラメータ演算手段の演算結果に基づい て該始点と終点との2点間の補間点を発生する補間点発
生手段とを備え、 前記移動量解析手段によって、移動量が予 め設定された閾値よりも小さいと判断された場合、 前記補間点発生手段は前記パラメータ演算 手段の演算結果を用いずに予め用意されている所定の設
定値を用いて該2点間の補間点を発生することを特徴と
するデジタル微分解析器。
(1) A digital differential analyzer that interpolates between two predetermined points, a starting point and an ending point on the XY coordinates, and an information input means for inputting information from the coordinate information of the starting point to the coordinate information of the ending point; a movement amount analysis means for analyzing the movement amount from the starting point to the end point based on the information inputted to the information inputting means; and calculating parameters for interpolation processing based on the coordinate information inputted from the information inputting means. comprising a parameter calculation means, and an interpolation point generation means for generating an interpolation point between the starting point and the end point based on the calculation result of the parameter calculation means, and the movement amount is preset by the movement amount analysis means. If it is determined that the interpolation point is smaller than the set threshold, the interpolation point generation means generates an interpolation point between the two points using a predetermined set value prepared in advance without using the calculation result of the parameter calculation means. A digital differential analyzer characterized by:
(2)前記情報入力手段は、始点の座標情報を入力する
始点座標入力手段と、 終点の座標情報を入力する終点座標入力手 段と、 を有することを特徴とする請求項1記載の デジタル微分解析器。
(2) The digital differential analysis according to claim 1, wherein the information input means includes: a start point coordinate input means for inputting coordinate information of a starting point; and an end point coordinate input means for inputting coordinate information of an end point. vessel.
(3)前記補間点発生手段はBresenhamの方法
を用い、前記所定の設定値は補間する2点間のX座標、
およびY座標の各差分であるΔX、およびΔY(ΔX>
ΔY)に対応してY座標が移動するかしないかの情報を
予めテーブル化したものであることを特徴とする請求項
2記載のデジタル微分解析器。
(3) The interpolation point generating means uses Bresenham's method, and the predetermined setting value is the X coordinate between two points to be interpolated;
ΔX and ΔY (ΔX>
3. The digital differential analyzer according to claim 2, wherein information on whether or not the Y coordinate moves in response to ΔY) is prepared in advance in a table.
(4)前記補間点発生手段はBresenhamの方法
を用い、前記所定の設定値は補間する2点間のX座標、
およびY座標の各差分であるΔX、およびΔY(ΔX>
ΔY)に対応する2・ΔY−ΔX、2・ΔY、2・(Δ
Y+ΔX)の各値を予め算出してテーブル化したもので
あることを特徴とする請求項2記載のデジタル微分解析
器。
(4) The interpolation point generating means uses Bresenham's method, and the predetermined setting value is the X coordinate between two points to be interpolated;
ΔX and ΔY (ΔX>
2・ΔY−ΔX, 2・ΔY, 2・(Δ
3. The digital differential analyzer according to claim 2, wherein each value of Y+ΔX) is calculated in advance and tabulated.
JP2327532A 1990-11-28 1990-11-28 Digital differential analyzer Pending JPH04195524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2327532A JPH04195524A (en) 1990-11-28 1990-11-28 Digital differential analyzer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2327532A JPH04195524A (en) 1990-11-28 1990-11-28 Digital differential analyzer

Publications (1)

Publication Number Publication Date
JPH04195524A true JPH04195524A (en) 1992-07-15

Family

ID=18200154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2327532A Pending JPH04195524A (en) 1990-11-28 1990-11-28 Digital differential analyzer

Country Status (1)

Country Link
JP (1) JPH04195524A (en)

Similar Documents

Publication Publication Date Title
US5926389A (en) Computer control system for generating geometric designs
US5309521A (en) Method and apparatus for generating a character curve by dividing and developing a bezier curve
US6295072B1 (en) Method and apparatus for rendering cubic curves
CN106041928A (en) Robot job task generation method based on workpiece model
JP2618951B2 (en) 3D graphics processor
JPS6367680A (en) Curved line generating method
JPH06110992A (en) Shape deformation input operation method in CAD system
CN108648248A (en) A kind of equidistant generation method of sewing style and system
JP2684609B2 (en) Graphic display method in graphic data processing device
JPH0368086A (en) Linear interpolating circuit
JP2538645B2 (en) Curved line approximation device
JP2768331B2 (en) Curve linear approximation device
JP2904994B2 (en) Coordinate connection display method
JPH0424774A (en) Information processing device and processing method with curve drawing function
KR0177750B1 (en) Method for finding one-end point for polygonal rendering
JP3887894B2 (en) Curved surface control apparatus and method
JPS63100507A (en) Numerical controller
JPH08106479A (en) State transition diagram creation device
JPS62204312A (en) Pulse distributing method for numerical controller
JPS62212707A (en) Graphic display system for numerical controller
JPS63310008A (en) linear interpolator
JPH0283787A (en) Segment pixel generating system
JPH01286002A (en) Curve interpolating system
JP2868122B2 (en) Logical expression evaluation order determination method
JPH01188924A (en) data input device to computer