Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3486937B2 - Figure transformation device - Google Patents
[go: Go Back, main page]

JP3486937B2 - Figure transformation device - Google Patents

Figure transformation device

Info

Publication number
JP3486937B2
JP3486937B2 JP33415593A JP33415593A JP3486937B2 JP 3486937 B2 JP3486937 B2 JP 3486937B2 JP 33415593 A JP33415593 A JP 33415593A JP 33415593 A JP33415593 A JP 33415593A JP 3486937 B2 JP3486937 B2 JP 3486937B2
Authority
JP
Japan
Prior art keywords
frame
graphic
triangular
deforming
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.)
Expired - Fee Related
Application number
JP33415593A
Other languages
Japanese (ja)
Other versions
JPH07200855A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP33415593A priority Critical patent/JP3486937B2/en
Publication of JPH07200855A publication Critical patent/JPH07200855A/en
Application granted granted Critical
Publication of JP3486937B2 publication Critical patent/JP3486937B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像処理において、任
意の線画を変形させることのできる図形変形装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic transformation device capable of transforming an arbitrary line drawing in image processing.

【0002】[0002]

【従来の技術及び発明が解決しようとする課題】コンピ
ュータ画像処理において、アニメーション処理を行うこ
となどを目的として、点描画、直線、曲線関数などによ
って描かれた線画を変形させる処理が多く行われる。
2. Description of the Related Art In computer image processing, a lot of processing is performed for transforming a line drawing drawn by a point drawing, a straight line, a curve function or the like for the purpose of performing animation processing.

【0003】しかし、従来は、線画を変形させるため
に、線画を構成する各点の変形情報、各直線の始点及び
終点の変形情報、又は曲線関数の各パラメータの変形情
報などが必要であり、線画といえども、それを変形させ
るためには大量のデータが必要であるという問題点を有
していた。
However, conventionally, in order to deform a line drawing, the deformation information of each point forming the line drawing, the deformation information of the start point and the end point of each straight line, or the deformation information of each parameter of the curve function is required. Even a line drawing has a problem that a large amount of data is required to deform it.

【0004】本発明の課題は、任意の線画を少ない変形
情報のみで変形可能とし、かつ変形情報の作成を容易に
することにある。
An object of the present invention is to make it possible to transform an arbitrary line drawing with a small amount of transformation information and to facilitate the creation of the transformation information.

【0005】[0005]

【課題を解決するための手段】本発明はまず、線画図形
を表示する図形表示手段(表示装置104)を有する。
The present invention firstly has graphic display means (display device 104) for displaying a line drawing graphic.

【0006】次に、図形表示手段における表示画面上
で、線画図形を囲む任意の長方形のフレームを決定する
フレーム決定手段(CPU101によって実行される図
2のステップ202)を有する。
Next, the graphic display means has a frame determination means (step 202 in FIG. 2 executed by the CPU 101) for determining an arbitrary rectangular frame surrounding the line drawing figure on the display screen.

【0007】 次に、図形表示手段における表示画面上
で、フレーム決定手段で決定された長方形のフレームを
複数の三角形のフレームに分割した後、各三角形のフレ
ームを変形させるフレーム変形手段(CPU101によ
って実行される図2のステップ203)を有する。この
フレーム変形手段は、長方形のフレーム内の1点を固定
点として決定した後に、長方形のフレームをその固定点
を1頂点に含む複数の三角形のフレームに分割する。
は、フレーム変形手段は、長方形のフレーム内の1点を
固定点として決定した後、その固定点と長方形のフレー
ムの四隅の点のそれぞれとを結ぶ線分と、その固定点を
通り長方形のフレームの辺に平行又は垂直な2つの線分
とによって、長方形のフレームを8つの直角三角形のフ
レームに分割する。
Next, on the display screen of the graphic display means, the rectangular frame determined by the frame determination means is divided into a plurality of triangular frames, and then the frame deformation means (executed by the CPU 101) for deforming each triangular frame. 2 of FIG. 2). This frame deforming means fixes one point in a rectangular frame
After determining the points, the rectangular frame is fixed
Is divided into a plurality of triangular frames each including one vertex. Alternatively, the frame deforming means determines one point in the rectangular frame as a fixed point, and then passes through the fixed point and each of the four corner points of the rectangular frame and the rectangular frame. A rectangular frame is divided into eight right triangle frames by two line segments parallel or perpendicular to the sides of.

【0008】 そして、処理対象であるフレーム変形手
段で変形される前の三角形のフレームを構成する3つの
頂点とフレーム変形手段で変形された後の三角形のフレ
ームを構成する3つの頂点との位置関係に基づき、線画
図形のうちフレーム変形手段で変形される前の処理対象
である三角形のフレーム内の部分を変形させる動作を、
複数の三角形のフレームのそれぞれについて実行する図
形変形演算手段(CPU101によって実行される図2
のステップ204)を有する。
Then, the frame transforming hand to be processed
The three that make up the triangular frame before being transformed in steps
The frame of the triangle after being deformed by the vertices and the frame deforming means.
Line drawing based on the positional relationship with the three vertices that make up the
Object to be processed in the figure before it is transformed by the frame transformation means
The operation of deforming the part inside the frame of the triangle is
Illustration to perform for each of multiple triangular frames
Shape transformation calculation means (FIG. 2 executed by the CPU 101)
Step 204).

【0009】[0009]

【作用】フレーム決定手段で決定された長方形のフレー
ムを分割する複数の三角形のそれぞれ毎に図形変形が行
われるため、フレームの分割の仕方を変更することによ
り、図形変形の態様を細かく指定できる。
Since the graphic deformation is performed for each of the plurality of triangles that divide the rectangular frame determined by the frame determining means, the manner of dividing the frame can be specified in detail.

【0010】この場合、変形前の三角形のフレームを構
成する3つの頂点とフレーム変形手段で変形された後の
三角形のフレームを構成する3つの頂点との位置関係の
みとして、線画図形の変形情報を作成できるため、図形
変形処理の処理量が少なくて済む。
In this case, the deformation information of the line drawing figure is obtained only as the positional relationship between the three vertices forming the triangular frame before deformation and the three vertices forming the triangular frame after being deformed by the frame deforming means. Since it can be created, the processing amount of the graphic transformation processing is small.

【0011】また、そのような位置関係が保存されるよ
うに線画図形を変形するだけで、線画図形の変形を簡単
に実現できる。ここで、長方形のフレームがそのフレー
ム内の固定点を1頂点に含む複数の三角形のフレームに
分割されることにより、各三角形のフレームの1つの頂
点が固定された状態で三角形のフレームが変形されるこ
とになり、この結果、線画図形の変形時の演算量を削減
できる。
Further, the transformation of the line drawing figure can be easily realized only by transforming the line drawing figure so that such positional relationship is preserved. Here, the rectangular frame is divided into a plurality of triangular frames each having a fixed point in the frame as one vertex, so that the triangular frame is deformed with one vertex of each triangular frame fixed. As a result, it is possible to reduce the calculation amount when the line drawing figure is deformed.

【0012】更に、長方形のフレームがフレーム内の固
定点とフレームの四隅の点のそれぞれとを結ぶ線分と、
その固定点を通りフレームの辺に平行又は垂直な2つの
線分とによって8つの直角三角形のフレームに分割され
ることにより、線画図形の変形時の演算量を更に削減で
きる。
Further, a rectangular frame connects a fixed point in the frame and each of the four corner points of the frame, and
By dividing the frame into eight right-angled triangle frames by two line segments that pass through the fixed points and are parallel or perpendicular to the sides of the frame, it is possible to further reduce the calculation amount when the line drawing figure is deformed.

【0013】[0013]

【実施例】以下、図面を参照しながら本発明の実施例に
つき詳細に説明する。図1は、図形変形装置の実施例の
構成図である。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of a graphic transformation apparatus.

【0014】CPU101は、ROM102に記憶され
た制御プログラムに従ってRAM103をワークメモリ
として使用しながら動作し、図形変形のための全ての動
作を制御する。
The CPU 101 operates while using the RAM 103 as a work memory according to a control program stored in the ROM 102, and controls all operations for graphic transformation.

【0015】表示装置104は、変形前の図形と変形後
の図形を表示するための例えばCRTディスプレイであ
る。この場合、図形を長方形のフレーム(後述する)で
囲むための、マウスなどによる表示位置のポイント機能
も含む。
The display device 104 is, for example, a CRT display for displaying a figure before transformation and a figure after transformation. In this case, a point function of a display position by a mouse or the like for enclosing a figure in a rectangular frame (described later) is also included.

【0016】図2は、図1の実施例における図形変形処
理の概略を示す動作フローチャートである。まず、ステ
ップ201では、ユーザが、表示装置104上で、変形
を行いたい元図形を選択する。具体的には、ユーザは、
表示装置104上に表示されているマウスカーソルを選
択したい元図形(線画)上に移動しマウスボタンをクリ
ックすることによって、その元図形を選択する。又は、
ユーザは、複数の元図形(線画)を含む範囲を、マウス
を使ってボックスで囲むようにしてもよい。これに反応
して、CPU101は、RAM103上に展開されてい
る図形データ上において、選択された元図形の座標値、
具体的には選択された線画を構成する各座標値を計算す
る。これらの処理の結果、例えば図4(a) に示されるよ
うに、点P1とP2を両端とする直線図形lが選択さ
れ、点P1とP2の座標値が演算されて、RAM103
に保持される。
FIG. 2 is an operation flowchart showing an outline of the graphic transformation process in the embodiment of FIG. First, in step 201, the user selects an original figure to be transformed on the display device 104. Specifically, the user
The original cursor is selected by moving the mouse cursor displayed on the display device 104 to the original figure (line drawing) to be selected and clicking the mouse button. Or
The user may enclose a range including a plurality of original figures (line drawings) with a box using a mouse. In response to this, the CPU 101 causes the coordinate values of the selected original graphic on the graphic data developed on the RAM 103,
Specifically, each coordinate value forming the selected line drawing is calculated. As a result of these processes, for example, as shown in FIG. 4A, a straight line figure 1 having both ends P1 and P2 is selected, the coordinate values of the points P1 and P2 are calculated, and the RAM 103
Held in.

【0017】次に、ステップ202では、ユーザが、表
示装置104上で、ステップ201で選択した元図形を
囲む長方形のフレームを決定する。これに反応して、C
PU101は、RAM103上に展開されている図形デ
ータ上で、決定されたフレームを構成する長方形の四隅
の4点の座標を計算し、RAM103に保持する。
Next, in step 202, the user determines, on the display device 104, a rectangular frame surrounding the original figure selected in step 201. In response to this, C
The PU 101 calculates the coordinates of the four points of the four corners of the rectangle forming the determined frame on the graphic data developed on the RAM 103, and stores the coordinates in the RAM 103.

【0018】次に、ステップ203では、ユーザは、ま
ず、表示装置104上で、マウスを用いることにより、
ステップ202で決定した長方形のフレームを、図3
(a) 、(b) 、又は(c) に示されるような形態で、複数の
三角形のフレームに分割する。続いて、ユーザは、長方
形のフレームと分割された複数の三角形のフレームとに
よって構成される任意の交点上でマウスボタンをクリッ
クしそのまま変形先の位置までドラッグした後にマウス
ボタンを離すという操作を、任意の交点毎に繰り返すこ
とにより、長方形のフレーム及びそのフレーム内の複数
の三角形のフレームを変形させる。これに反応して、C
PU101は、RAM103上に展開されている図形デ
ータ上において、変形後の任意の交点の座標値を計算
し、RAM103に保持すると共に、変形後のフレーム
を表示装置104に表示する。
Next, in step 203, the user first uses the mouse on the display device 104 to
The rectangular frame determined in step 202 is shown in FIG.
The frame is divided into a plurality of triangular frames in the form shown in (a), (b), or (c). Next, the user clicks the mouse button on an arbitrary intersection composed of a rectangular frame and a plurality of divided triangular frames, drags it to the position of the transformation destination, and then releases the mouse button. The rectangular frame and the triangular frames within the frame are deformed by repeating each arbitrary intersection. In response to this, C
The PU 101 calculates the coordinate value of an arbitrary intersection after deformation on the graphic data developed on the RAM 103, stores the coordinate value in the RAM 103, and displays the frame after deformation on the display device 104.

【0019】ステップ204では、CPU101は、変
形前の長方形のフレームを分割する複数の三角形フレー
ム毎に、ステップ202でRAM103に保持した、処
理対象である変形前の三角形のフレームを構成する3頂
点である例えば図4(a) の点T1、T2、T3の各座標
値と、ステップ203でRAM103に保持した、処理
対象である変形前の三角形のフレームに対応する変形後
の三角形のフレームを構成する3頂点である例えば図4
(b) の点T1′、T2′、T3′の各座標値との位置関
係に基づいて、ステップ201でRAM103に保持し
た元図形を構成する例えば図4(a) の点P1、P2の座
標値を変形することにより、例えば図4(b) に示される
点P1′、P2′を計算する。
At step 204, the CPU 101 divides the rectangular frame before deformation into a plurality of triangular frames and divides the triangular vertices, which are held in the RAM 103 at step 202, into three vertices forming the triangular frame before deformation. For example, the coordinate values of points T1, T2, and T3 in FIG. 4A and the post-deformation triangular frame corresponding to the pre-deformation triangular frame to be processed, which is held in the RAM 103 in step 203, are configured. 3 vertices, for example, FIG.
Based on the positional relationship with the coordinate values of points T1 ', T2', and T3 'in (b), the original figure stored in the RAM 103 in step 201 is constructed, for example, the coordinates of points P1 and P2 in FIG. 4 (a). By transforming the values, points P1 'and P2' shown in FIG. 4 (b) are calculated.

【0020】ステップ205においては、CPU101
は、ステップ204で計算された例えば図4(b) の点P
1′、P2′によって構成される変形後の図形l′を、
表示装置104に表示させる。
In step 205, the CPU 101
Is, for example, the point P calculated in step 204 in FIG. 4 (b).
1 ′ and P2 ′ are the transformed figures l ′,
It is displayed on the display device 104.

【0021】次に、ステップ203のフレームの具体的
な分割のタイプと、各タイプ毎のステップ204での図
形変形演算の具体的な処理について説明する。まず、図
2のステップ203において、ユーザが長方形のフレー
ムを複数の三角形のフレームに分割する場合の分割のタ
イプを、図3(a) 、(b) 、及び(c) に示す。
Next, the specific type of frame division in step 203 and the specific processing of the graphic transformation operation in step 204 for each type will be described. First, FIG. 3A, FIG. 3B, and FIG. 3C show division types when the user divides a rectangular frame into a plurality of triangular frames in step 203 of FIG.

【0022】図3(a) のタイプ1では、ユーザは長方形
を自由に分割できる。図3(b) のタイプ2では、ユーザ
は長方形内の1点を固定点として決定した後に、その固
定点を1頂点に含む複数の三角形のフレームを決定でき
る。
In the type 1 of FIG. 3A, the user can freely divide the rectangle. In the type 2 of FIG. 3B, the user can determine one point in the rectangle as a fixed point and then determine a plurality of triangular frames including the fixed point at one vertex.

【0023】図3(c) のタイプ3では、ユーザは長方形
内の1点を固定点として決定する動作のみを行う。これ
により、その固定点と長方形のフレームの四隅の点のそ
れぞれとを結ぶ線分と、その固定点を通り長方形のフレ
ームの辺に平行(又は垂直)な2つの線分とによって分
割される長方形のフレーム内の8つの直角三角形のフレ
ーム〜が自動的に決定される。
In the type 3 of FIG. 3C, the user only performs the operation of determining one point in the rectangle as a fixed point. As a result, a rectangle that is divided by a line segment that connects the fixed point and each of the four corner points of the rectangular frame, and two line segments that pass through the fixed point and are parallel (or perpendicular) to the sides of the rectangular frame. Eight right-angled triangle frames within the frame are automatically determined.

【0024】上述の図3(a) 、(b) 、及び(c) の各分割
タイプを比較すると、分割の自由度の高さは(a) >(b)
>(c) の順になるが、図形変形演算の演算量は(c) >
(b) >(a) の順になる。従って、ユーザは、分割の自由
度と図形変形演算の演算量とのバランスを考えて、好き
な分割タイプを選択すればよい。
Comparing the division types shown in FIGS. 3 (a), 3 (b) and 3 (c), the degree of freedom of division is (a)> (b).
> (c) is the order, but the calculation amount of figure transformation is (c) >
(b)> (a). Therefore, the user may select a desired division type in consideration of the balance between the degree of freedom of division and the calculation amount of the graphic transformation calculation.

【0025】ユーザは、図2のステップ203におい
て、上述の図3(a) 、(b) 、又は(c)の何れかの分割タ
イプを選択して長方形のフレームを複数の三角形のフレ
ームに分割した後、前述したように、各三角形のフレー
ムを構成する頂点毎にその位置を移動させることによ
り、各三角形のフレームが変形され、それに基づいて、
図2のステップ204で、図形変形演算が実行される。
In step 203 of FIG. 2, the user selects one of the division types shown in FIG. 3 (a), (b), or (c) to divide the rectangular frame into a plurality of triangular frames. After that, as described above, by moving the position for each vertex forming the frame of each triangle, the frame of each triangle is transformed, based on that,
In step 204 of FIG. 2, a graphic transformation operation is executed.

【0026】例えば、ユーザが、図3(a) の分割タイプ
を選択して各三角形のフレームを変形させる場合、処理
対象である三角形のフレームを構成する3頂点を例えば
図4(a) に示されるように点T1、T2、T3とすれ
ば、変形後の三角形のフレームを構成する3頂点は例え
ば図4(b) の点T1′、T2′、T3′で表される。
For example, when the user selects the division type shown in FIG. 3 (a) and transforms each triangular frame, the three vertices forming the triangular frame to be processed are shown in FIG. 4 (a), for example. If the points are T1, T2, and T3 as described above, the three vertices constituting the deformed triangular frame are represented by points T1 ′, T2 ′, and T3 ′ in FIG. 4B, for example.

【0027】この場合の具体的な図形変形処理を、以下
に説明する。まず、図4(a) において、元図形である直
線lを構成する各点P1、P2につき、それぞれの点を
通り点T1、T2、T3を3頂点とする三角形の任意の
辺に平行な直線が算出される。図4(a) の例では、点P
1については辺T1−T2に平行な直線W11−W12
が算出され、点P2については辺T1−T3に平行な直
線W21−W22が算出される。ここで、W11、W1
2、W21、及びW22は、各平行線と三角形の各辺と
が交わる点である。なお、三角形の各辺に対する平行線
の引き方は全部で3通りあるため、図4(a) に示される
ように、点P2については、辺T1−T2に平行な直線
(W21)−(W22)が算出されてもよい。
A specific graphic transformation process in this case will be described below. First, in FIG. 4 (a), for each point P1 and P2 forming the straight line l that is the original figure, a straight line passing through each point and parallel to any side of a triangle having points T1, T2 and T3 as three vertices. Is calculated. In the example of FIG. 4 (a), the point P
For 1, the straight line W11-W12 parallel to the side T1-T2
Is calculated, and a straight line W21-W22 parallel to the sides T1-T3 is calculated for the point P2. Where W11 and W1
2, W21, and W22 are points where each parallel line intersects each side of the triangle. Since there are three ways of drawing a parallel line for each side of the triangle, as shown in FIG. 4A, for the point P2, a straight line (W21)-(W22 parallel to the sides T1-T2 is used. ) May be calculated.

【0028】次に、元の三角形の3頂点T1、T2、T
3が3頂点T1′、T2′、T3′に変形された場合、
平行線W11−W12とW21−W22が、直線W1
1′−W12′とW21′−W22′に変形される。こ
の場合の制限条件は、直線W11′−W12′とW2
1′−W22′が、それぞれ辺T1′−T2′とT1′
−T3′に平行であることである。
Next, the three vertices T1, T2, T of the original triangle
When 3 is transformed into three vertices T1 ', T2', T3 ',
Parallel lines W11-W12 and W21-W22 are straight lines W1
It is transformed into 1'-W12 'and W21'-W22'. The limiting conditions in this case are straight lines W11'-W12 'and W2.
1'-W22 'are sides T1'-T2' and T1 ', respectively.
-Parallel to T3 '.

【0029】この制限条件より、変形後の4点W1
1′、W12′、W21′、W22′は次式で示される
4元連立1次方程式を解くことにより、算出される。
From these limiting conditions, the four points W1 after deformation are
1 ', W12', W21 ', and W22' are calculated by solving a simultaneous four-dimensional linear equation represented by the following equation.

【0030】[0030]

【数1】 [Equation 1]

【0031】この式に基づき変形後の4点W11′、W
12′、W21′、W22′が算出された後、元図形で
ある直線lを構成する各点P1、P2が、点P1′、P
2′に変形される。この場合の制限条件は、図形を構成
する点を通る前述の平行線上において、その平行線と三
角形の辺とが交わる2点を端点とする線分が当該図形を
構成する点によって分割される場合の分割比が、変形前
と変形後とで等しいことである。
Based on this equation, the four points W11 ', W after deformation are
After 12 ′, W21 ′ and W22 ′ are calculated, the points P1 and P2 forming the straight line 1 which is the original figure are changed to points P1 ′ and P1.
It is transformed into 2 '. The limiting condition in this case is that, on the above-mentioned parallel line passing through the points forming the figure, a line segment whose two end points intersect the parallel line and the sides of the triangle is divided by the points forming the figure. That is, the division ratio of is equal before and after deformation.

【0032】この制限条件より、変形後の点P1′、P
2′は、次式で示される2元連立1次方程式を解くこと
により、算出される。
According to this restriction condition, the points P1 'and P after deformation are changed.
2'is calculated by solving a simultaneous binary linear equation represented by the following equation.

【0033】[0033]

【数2】 [Equation 2]

【0034】以上のようにして、図3(a) の分割タイプ
1に対応する各三角形のフレーム毎の図形変形演算が実
現される。次に、例えば、ユーザが、図3(b) の分割タ
イプを選択して各三角形のフレームを変形させる場合、
処理対象である三角形のフレームを構成する3頂点を例
えば図5に示されるように点T1、T2、T3とするな
らば、変形後の三角形のフレームを構成する3頂点は例
えば図5の点T1′、T2′、T3で表される。ここ
で、点T3は、図3(b) に示される長方形のフレーム内
の1固定点である。
As described above, the graphic transformation operation for each frame of each triangle corresponding to the division type 1 in FIG. 3A is realized. Next, for example, when the user selects the division type of FIG. 3 (b) to deform the frame of each triangle,
If the three vertices forming the triangular frame to be processed are points T1, T2, and T3 as shown in FIG. 5, for example, the three vertices forming the modified triangular frame are, for example, point T1 in FIG. It is represented by ', T2', and T3. Here, the point T3 is one fixed point in the rectangular frame shown in FIG. 3 (b).

【0035】この場合の具体的な図形変形処理を、以下
に説明する。図5において、元図形を構成する点Pにつ
き、その点を通り点T1、T2、T3を3頂点とする三
角形の任意の辺に平行な直線が1つ算出される。図5の
例では、点Pにつき、辺T1−T2に平行な直線が算出
される。ここで、V1、V2は、上記平行線と三角形の
各辺T1−T3、T2−T3とが交わる点である。
A specific graphic transformation process in this case will be described below. In FIG. 5, with respect to the point P constituting the original figure, one straight line passing through that point and parallel to any side of a triangle having points T1, T2 and T3 as three vertices is calculated. In the example of FIG. 5, a straight line parallel to the sides T1-T2 is calculated for the point P. Here, V1 and V2 are points at which the parallel line and the sides T1-T3 and T2-T3 of the triangle intersect.

【0036】次に、元の三角形の2頂点T1、T2が2
頂点T1′、T2′に変形された場合、平行線V1−V
2が、直線V1′−V2′に変形される。この場合の制
限条件は、直線V1′−V2′が、辺T1′−T2′に
平行であることである。
Next, the two vertices T1 and T2 of the original triangle are 2
When transformed into vertices T1 'and T2', parallel lines V1-V
2 is transformed into a straight line V1'-V2 '. The limiting condition in this case is that the straight line V1'-V2 'is parallel to the side T1'-T2'.

【0037】この制限条件より、変形後の2点V1′、
V2′は次式で示される2元連立1次方程式を解くこと
により、算出される。
From this restriction condition, two points V1 'after deformation,
V2 'is calculated by solving a simultaneous binary linear equation shown by the following equation.

【0038】[0038]

【数3】 [Equation 3]

【0039】この式に基づき変形後の2点V1′、V
2′が算出された後、元図形を構成する点Pが、点P′
に変形される。この場合の制限条件は、図3(a) の分割
タイプ1の場合と同様に、図形を構成する点を通る前述
の平行線上において、その平行線と三角形の辺とが交わ
る2点を端点とする線分が当該図形を構成する点によっ
て分割される場合の分割比が、変形前と変形後とで等し
いことである。
Based on this equation, the two points V1 ', V after deformation are transformed.
After 2 ′ is calculated, the point P that constitutes the original figure is changed to the point P ′.
Is transformed into. The limiting condition in this case is, as in the case of division type 1 in FIG. 3 (a), on the above-mentioned parallel line passing through the points forming the figure, the two points where the parallel line and the sides of the triangle intersect are the end points. That is, the division ratio when the line segment is divided by the points forming the figure is equal before and after the deformation.

【0040】この制限条件より、変形後の点P′は、次
式で示される1次方程式を解くことにより、算出され
る。
Under this restriction condition, the deformed point P'is calculated by solving the linear equation shown by the following equation.

【0041】[0041]

【数4】 [Equation 4]

【0042】以上のようにして、図3(b) の分割タイプ
2に対応する各三角形のフレーム毎の図形変形演算が実
現される。続いて、例えば、ユーザが、図3(c) の分割
タイプを選択して各直角三角形のフレームを変形させる
場合について説明する。
As described above, the graphic transformation operation for each frame of each triangle corresponding to the division type 2 in FIG. 3B is realized. Next, for example, a case where the user selects the division type shown in FIG. 3C to deform the frame of each right triangle will be described.

【0043】ここで、ユーザが、図3(c) の、、
、又はの各直角三角形のフレームを変形させる場合
に、処理対象である三角形のフレームを構成する3頂点
を例えば図6に示されるように点T1、T2、T3とす
るならば、変形後の三角形のフレームを構成する3頂点
は例えば図6の点T1′、T2′、T3で表される。
Here, the user selects
When deforming each of the right-angled triangle frames of, or, if the three vertices forming the triangular frame to be processed are points T1, T2, and T3 as shown in FIG. The three vertices that make up the frame are represented by points T1 ', T2', T3 in FIG.

【0044】また、ユーザが、図3(c) の、、、
又はの各直角三角形のフレームを変形させる場合に、
処理対象である三角形のフレームを構成する3頂点を例
えば図7に示されるように点T1、T2、T3とするな
らば、変形後の三角形のフレームを構成する3頂点は例
えば図7の点T1′、T2′、T3で表される。
Further, the user selects ,, in FIG.
When deforming the frame of each right triangle of or,
If the three vertices forming the triangular frame to be processed are points T1, T2, and T3 as shown in FIG. 7, for example, the three vertices forming the modified triangular frame are, for example, point T1 in FIG. It is represented by ', T2', and T3.

【0045】まず、図6の場合の具体的な図形変形処理
を、以下に説明する。図6において、図3(b) の分割タ
イプ2の場合と同様に、元図形を構成する点Pについ
て、その点を通り点T1、T2、T3を3頂点とする直
角三角形の任意の辺に平行な直線が1つ算出される。図
6の例では、点Pについて、辺T1−T2に平行な直線
が算出される。ここで、V1、V2は、上記平行線と三
角形の各辺T1−T3、T2−T3とが交わる点であ
る。
First, a specific graphic transformation process in the case of FIG. 6 will be described below. In FIG. 6, as in the case of division type 2 in FIG. 3 (b), with respect to the point P which constitutes the original figure, the point P is formed on an arbitrary side of a right triangle having three vertices T1, T2 and T3. One parallel straight line is calculated. In the example of FIG. 6, for the point P, a straight line parallel to the sides T1-T2 is calculated. Here, V1 and V2 are points at which the parallel line and the sides T1-T3 and T2-T3 of the triangle intersect.

【0046】次に、元の直角三角形の2頂点T1、T2
が2頂点T1′、T2′に変形された場合、平行線V1
−V2が、直線V1′−V2′に変形される。この場合
の制限条件は、図3(b) の分割タイプ2の場合と同様
に、直線V1′−V2′が、辺T1′−T2′に平行で
あることである。
Next, the two vertices T1 and T2 of the original right triangle
Is transformed into two vertices T1 'and T2', the parallel line V1
-V2 is transformed into a straight line V1'-V2 '. The limiting condition in this case is that the straight line V1'-V2 'is parallel to the side T1'-T2', as in the case of the division type 2 in FIG. 3 (b).

【0047】この制限条件と、点T1、T2、T3を3
頂点とする三角形が直角三角形であるという条件より、
次式の関係が成立する。
This limiting condition and points T1, T2 and T3 are set to 3
From the condition that the triangle that is the vertex is a right triangle,
The following relationship holds.

【0048】[0048]

【数5】 [Equation 5]

【0049】この数5式では、辺T1−T3がxy座標
軸上のx軸に平行で、辺T1−T2がy軸に平行である
と仮定されている。そして、点Pのx座標及びy座標は
Px及びPy、同様に、点P′のx座標及びy座標はP
x′及びPy′として表されている。また、2頂点T
1、T2の各x座標及びy座標は、T1x及びT1y、
T2x及びT2y、同様に、2頂点T1′、T2′の各
x座標及びy座標は、T1x′及びT1y′、T2x′
及びT2y′として表されている。更に、点V1及びV
2のx座標及びy座標は、V1x及びV1y、V2x及
びV2y、同様に、点V1′及びV2′のx座標及びy
座標は、V1x′及びV1y′、V2x′及びV2y′
として表されている。
In the equation (5), it is assumed that the side T1-T3 is parallel to the x-axis on the xy coordinate axes and the side T1-T2 is parallel to the y-axis. The x coordinate and the y coordinate of the point P are Px and Py, and similarly, the x coordinate and the y coordinate of the point P ′ are P
Represented as x'and Py '. 2 vertices T
The x and y coordinates of 1 and T2 are T1x and T1y,
Similarly, T2x and T2y, as well as the x and y coordinates of the two vertices T1 'and T2' are T1x 'and T1y', T2x '.
And T2y '. Furthermore, points V1 and V
The x and y coordinates of 2 are V1x and V1y, V2x and V2y, as well as the x and y coordinates of points V1 ′ and V2 ′.
The coordinates are V1x 'and V1y', V2x 'and V2y'.
Is represented as.

【0050】ここで更に、図3(a) の分割タイプ1及び
図3(b) の分割タイプ2の場合と同様に、図形を構成す
る点を通る前述の平行線上において、その平行線と三角
形の辺とが交わる2点を端点とする線分が当該図形を構
成する点によって分割される場合の分割比が、変形前と
変形後とで等しい、という制限条件が付加される。
Further, as in the case of the division type 1 in FIG. 3A and the division type 2 in FIG. 3B, the parallel line and the triangle are formed on the parallel line passing through the points forming the figure. A restriction condition is added that the division ratio in the case where a line segment whose two end points intersect with the edge is divided by the points forming the figure is equal before and after the deformation.

【0051】この制限条件と数5式より、変形後の点
P′のx座標は、次式により算出することができる。
From this limiting condition and the equation (5), the x coordinate of the deformed point P'can be calculated by the following equation.

【0052】[0052]

【数6】 [Equation 6]

【0053】同様に、変形後の点P′のy座標は、次式
により算出することができる。
Similarly, the y coordinate of the deformed point P'can be calculated by the following equation.

【0054】[0054]

【数7】 [Equation 7]

【0055】以上のようにして、図3(b) の分割タイプ
3における、、、又はの各直角三角形のフレー
ムを変形させる場合の図形変形演算が実現される。次
に、図7の場合の具体的な図形変形処理を、以下に説明
する。
As described above, the graphic transformation operation in the case of transforming the frame of each of the right triangles of, or in the division type 3 of FIG. 3B is realized. Next, a specific graphic transformation process in the case of FIG. 7 will be described below.

【0056】図7における演算は、図6における演算と
比較して、辺T1−T3がxy座標軸上のx軸ではなく
y軸に平行で、辺T1−T2がx軸ではなくy軸に平行
であると仮定される点が異なるのみである。
The operation in FIG. 7 is different from the operation in FIG. 6 in that the side T1-T3 is parallel to the y-axis instead of the x-axis on the xy coordinate axes, and the side T1-T2 is parallel to the y-axis instead of the x-axis. The only difference is that they are assumed to be.

【0057】従って、図6の場合と同様に考えることに
より、次式の関係が成立する。
Therefore, by considering in the same manner as in the case of FIG. 6, the relation of the following equation is established.

【0058】[0058]

【数8】 [Equation 8]

【0059】更に、図6の場合と同様に、図形を構成す
る点を通る平行線上において、その平行線と三角形の辺
とが交わる2点を端点とする線分が当該図形を構成する
点によって分割される場合の分割比が、変形前と変形後
とで等しい、という制限条件と、数8式より、変形後の
点P′のx座標は、次式で算出することができる。
Further, as in the case of FIG. 6, on a parallel line passing through the points forming the figure, a line segment having two points at which the parallel line and the sides of the triangle intersect as the end points constitutes the figure. The x-coordinate of the point P ′ after the deformation can be calculated by the following expression from the restriction condition that the division ratio in the case of division is the same before and after the deformation and the equation (8).

【0060】[0060]

【数9】 [Equation 9]

【0061】同様に、変形後の点P′のy座標は、次式
で算出することができる。
Similarly, the y coordinate of the deformed point P'can be calculated by the following equation.

【0062】[0062]

【数10】 [Equation 10]

【0063】このようにして、図3(b) の分割タイプ3
における、、、又はの各直角三角形のフレーム
を変形させる場合の図形変形演算が実現される。以上説
明した図形変形処理により、例えば図8に示されるよう
に、長方形のフレームで囲んだ線画図形を様々に変形さ
せることができ、長方形のフレームを複数の三角形のフ
レームに分割する仕方を変化させることにより、細かい
図形変形が可能となる。
In this way, the division type 3 of FIG.
In the case of deforming the frame of each right-angled triangle in ,, or, the graphic deformation operation is realized. By the graphic transformation processing described above, for example, as shown in FIG. 8, a line drawing figure surrounded by a rectangular frame can be variously transformed, and the manner of dividing the rectangular frame into a plurality of triangular frames is changed. As a result, it is possible to finely deform the figure.

【0064】[0064]

【発明の効果】本発明によれば、フレーム決定手段で決
定された長方形のフレームを分割する複数の三角形のそ
れぞれ毎に図形変形が行われるため、フレームの分割の
仕方を変更することにより、図形変形の態様を細かく指
定することが可能となる。
According to the present invention, since the graphic transformation is performed for each of a plurality of triangles that divide the rectangular frame determined by the frame determining means, the figure can be changed by changing the method of dividing the frame. It is possible to specify the deformation mode in detail.

【0065】また、フレーム決定手段で決定された変形
前の三角形のフレームを構成する3つの頂点とフレーム
変形手段で変形された後の三角形のフレームを構成する
3つの頂点との位置関係のみとして、線画図形の変形情
報を作成できるため、図形変形処理の処理量が少なくて
済むという効果が生ずる。
Further, only the positional relationship between the three vertices forming the triangular frame before deformation determined by the frame determining means and the three vertices forming the triangular frame deformed by the frame deforming means is as follows. Since the deformation information of the line drawing figure can be created, there is an effect that the processing amount of the figure changing process is small.

【0066】更に、ユーザは、各頂点を移動させるとい
う簡単な操作で線画図形を変形することが可能となる。
また、上述のような位置関係が保存されるように線画図
形を変形するだけで、線画図形の変形を簡単に実現する
ことが可能となる。
Further, the user can transform the line drawing figure by a simple operation of moving each vertex.
Further, it is possible to easily realize the deformation of the line drawing figure only by changing the line drawing figure so that the positional relationship as described above is preserved.

【0067】ここで、長方形のフレームがそのフレーム
内の固定点を1頂点に含む複数の三角形のフレームに分
割されることにより、各三角形のフレームの1つの頂点
が固定された状態で三角形のフレームが変形されること
になり、この結果、線画図形の変形時の演算量を削減す
ることが可能となる。
Here, the rectangular frame is divided into a plurality of triangular frames each having a fixed point in the frame as one vertex, so that the triangular frame is fixed with one vertex of each triangular frame fixed. Is deformed, and as a result, it is possible to reduce the amount of calculation when the line drawing figure is deformed.

【0068】更に、長方形のフレームがフレーム内の固
定点とフレームの四隅の点のそれぞれとを結ぶ線分と、
その固定点を通りフレームの辺に平行又は垂直な2つの
線分とによって8つの直角三角形のフレームに分割され
ることにより、線画図形の変形時の演算量を更に削減す
ることが可能となる。
Further, a rectangular frame connects a fixed point in the frame and each of the four corner points of the frame, and
By dividing the frame into eight right-angled triangle frames by the two line segments that pass through the fixed points and are parallel or perpendicular to the sides of the frame, it is possible to further reduce the amount of calculation when transforming the line drawing figure.

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

【図1】図形変形装置の実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of a graphic transformation device.

【図2】図形変形装置の実施例の処理を示す動作フロー
チャートである。
FIG. 2 is an operation flowchart showing a process of an embodiment of the graphic transformation device.

【図3】長方形の三角形分割のタイプを示した図であ
る。
FIG. 3 is a diagram showing types of rectangular triangulation.

【図4】タイプ1での三角形毎の図形変形処理の説明図
である。
FIG. 4 is an explanatory diagram of type-1 graphic transformation processing for each triangle.

【図5】タイプ2での三角形毎の図形変形処理の説明図
である。
FIG. 5 is an explanatory diagram of a type 2 graphic transformation process for each triangle.

【図6】タイプ3での直角三角形毎の図形変形処理の説
明図(その1)である。
FIG. 6 is an explanatory diagram (No. 1) of the graphic transformation process for each right triangle in Type 3.

【図7】タイプ3での直角三角形毎の図形変形処理の説
明図(その2)である。
FIG. 7 is an explanatory diagram (No. 2) of the graphic transformation processing for each right triangle in the type 3;

【図8】図形変形処理の動作例を示した図である。FIG. 8 is a diagram showing an operation example of graphic transformation processing.

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

101 CPU 102 ROM 103 RAM 104 表示装置 101 CPU 102 ROM 103 RAM 104 display device

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 線画図形を表示する図形表示手段と、 前記図形表示手段における表示画面上で、前記線画図形
を囲む任意の長方形のフレームを決定するフレーム決定
手段と、 前記図形表示手段における表示画面上で、前記フレーム
決定手段で決定された前記長方形のフレーム内の1点を
固定点として決定した後に、前記長方形のフレームを前
記固定点を1頂点に含む複数の三角形のフレームに分割
し、その後該各三角形のフレームを変形させるフレーム
変形手段と、 処理対象である前記フレーム変形手段で変形される前の
三角形のフレームを構成する3つの頂点と前記フレーム
変形手段で変形された後の三角形のフレームを構成する
3つの頂点との位置関係に基づき、前記線画図形のうち
前記フレーム変形手段で変形される前の処理対象である
三角形のフレーム内の部分を変形させる動作を、前記複
数の三角形のフレームのそれぞれについて実行する図形
変形演算手段と、 を有することを特徴とする図形変形装置。
1. A graphic display means for displaying a line drawing graphic, a frame determining means for deciding an arbitrary rectangular frame surrounding the line drawing graphic on the display screen of the graphic display means, and a display screen for the graphic display means. Above, one point in the rectangular frame determined by the frame determination means is
After determining as a fixed point, move the rectangular frame
Divide into multiple triangular frames with fixed points at one vertex
After that, the frame deforming means for deforming each of the triangular frames, the three vertices constituting the triangular frame before being deformed by the frame deforming means which is the processing target, and the three points after being deformed by the frame deforming means Based on the positional relationship with the three vertices forming the triangular frame, the operation of deforming the portion of the line drawing figure in the triangular frame that is the processing target before being deformed by the frame deforming means is performed. A graphic transformation device, comprising: a graphic transformation calculation unit that executes each of the triangular frames.
【請求項2】 線画図形を表示する図形表示手段と、 前記図形表示手段における表示画面上で、前記線画図形
を囲む任意の長方形のフレームを決定するフレーム決定
手段と、 前記図形表示手段における表示画面上で、前記フレーム
決定手段で決定された前記長方形のフレーム内の1点を
固定点として決定した後に、該固定点と前記長方形のフ
レームの四隅の点のそれぞれとを結ぶ線分と、前記固定
点を通り前記長方形のフレームの辺に平行又は垂直な2
つの線分とによって、前記長方形のフレームを8つの直
角三角形のフレームに分割し、その後該各三角形のフレ
ームを変形させるフレーム変形手段と、 処理対象である前記フレーム変形手段で変形される前の
三角形のフレームを構成する3つの頂点と前記フレーム
変形手段で変形された後の三角形のフレームを構成する
3つの頂点との位置関係に基づき、前記線画図形のうち
前記フレーム変形手段で変形される前の処理対象である
三角形のフレーム内の部分を変形させる動作を、前記複
数の三角形のフレームのそれぞれについて実行する図形
変形演算手段と、 を有することを特徴とする図形変形装置。
2. A graphic display unit for displaying a line drawing graphic, and the line drawing graphic on a display screen of the graphic display unit.
Frame determination that determines the frame of any rectangle that surrounds
Means and the frame on the display screen of the graphic display means.
One point in the rectangular frame determined by the determination means
After determining the fixed point, the fixed point and the rectangular frame
The line segment connecting each of the four corner points of the ram and the fixed
2 which is parallel or perpendicular to the side of the rectangular frame passing through the point
The rectangular frame is divided into eight straight lines by
Divide it into rectangular triangular frames, and then
A frame deforming means for deforming the over arm, before being deformed by said frame deforming device to be processed
Three vertices forming a triangular frame and the frame
Construct a triangular frame after it has been deformed by the deformation means
Based on the positional relationship with the three vertices, among the line drawing figures
It is a processing target before being deformed by the frame deforming means.
The operation of deforming the part inside the triangular frame is
Shape to execute for each of a number of triangular frames
A graphic transformation device comprising: a transformation calculation means .
JP33415593A 1993-12-28 1993-12-28 Figure transformation device Expired - Fee Related JP3486937B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33415593A JP3486937B2 (en) 1993-12-28 1993-12-28 Figure transformation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33415593A JP3486937B2 (en) 1993-12-28 1993-12-28 Figure transformation device

Publications (2)

Publication Number Publication Date
JPH07200855A JPH07200855A (en) 1995-08-04
JP3486937B2 true JP3486937B2 (en) 2004-01-13

Family

ID=18274154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33415593A Expired - Fee Related JP3486937B2 (en) 1993-12-28 1993-12-28 Figure transformation device

Country Status (1)

Country Link
JP (1) JP3486937B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080139A (en) * 2005-09-16 2007-03-29 Atlus Co Ltd Image forming program

Also Published As

Publication number Publication date
JPH07200855A (en) 1995-08-04

Similar Documents

Publication Publication Date Title
JPH02230470A (en) Computer graphics display system
JP2005310164A (en) System and method for acquiring target by using intelligent pointer movement
CN112380357A (en) Method for realizing interactive navigation of knowledge graph visualization
JPH07111742B2 (en) Method and apparatus for transforming figure
JP3486937B2 (en) Figure transformation device
JP3361652B2 (en) 3D figure arrangement input method and graphic system
JPH07200852A (en) Graphic transformation device
US6856325B2 (en) Information processing method and apparatus
JP3451293B2 (en) Figure transformation device
JPH0765205A (en) 3D shape display
JPH07200857A (en) Graphic transformation device
EP4362057A1 (en) Electron beam rendering device, electron beam rendering method, and recording medium
JPH07200853A (en) Graphic transformation device
JPH08212390A (en) Image processing method and apparatus
JP2786098B2 (en) Figure enlargement editing method
US5444831A (en) Developed product shape deciding method for a computer-aided design system
JPH11219441A (en) Image editing apparatus, image editing method, and recording medium storing image editing processing program
JPH04137074A (en) Graphic processor
JP3142191B2 (en) Graphic processing unit
JPH04195478A (en) Image processing device, its image display method, and display image pixel calculation method
JPH07282285A (en) Graphic editing device
JP2001357076A (en) Image display method in CAD system
JPH05242088A (en) Method for displaying picture
JPH0489299A (en) Plotter output position simple determination method and device
CN111899351A (en) A screening method for objects in a 3D visualization scene

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030930

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081031

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101031

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101031

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees