JPH1153579A - Shape conversion method, storage medium recorded with its conversion procedure and shape conversion device - Google Patents

Shape conversion method, storage medium recorded with its conversion procedure and shape conversion device

Info

Publication number
JPH1153579A
JPH1153579A JP9205134A JP20513497A JPH1153579A JP H1153579 A JPH1153579 A JP H1153579A JP 9205134 A JP9205134 A JP 9205134A JP 20513497 A JP20513497 A JP 20513497A JP H1153579 A JPH1153579 A JP H1153579A
Authority
JP
Japan
Prior art keywords
shape
dimensional shape
dimensional
conversion
bit
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
JP9205134A
Other languages
Japanese (ja)
Other versions
JP3807571B2 (en
Inventor
Minoru Sakai
稔 境井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP20513497A priority Critical patent/JP3807571B2/en
Publication of JPH1153579A publication Critical patent/JPH1153579A/en
Application granted granted Critical
Publication of JP3807571B2 publication Critical patent/JP3807571B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a shape conversion technique for easily generating a three- dimensional shape from a given two-dimensional graphic (character data of a bit map font, for example). SOLUTION: A two-dimensional shape expressed by a bit map is inputted and the three-dimensional shapes are made to correspond to the respective bits constituting the two-dimensional shape. In converting a two-dimensional shape expressed by a rectangular bit map of I×J into a three-dimensional shape, for example, '0' is inserted into 'i' and 'j' (step S1) and an appropriate three-dimensional shape is allocated to a bit Pij against all the combinations of 'i' (0<=i<=I) and 'j' (0<=j<J) (steps S2-S7). Thus, the original rectangular two-dimensional shape of I×J is converted into a three-dimensional shape by synthesizing them.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電子計算機を用い
て2次元形状を3次元形状に変換する形状変換技術に係
り、特に、xy平面上の2次元形状(例えば、ビットマ
ップフォントなどの文字データ)として表現された図形
に、z軸方向の情報を付加することによって、これを立
体図形(3次元形状)に加工する形状変換方法、および
該形状変換方法を実現するための処理手順を記録した記
録媒体、ならびに形状変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shape conversion technique for converting a two-dimensional shape into a three-dimensional shape using an electronic computer, and more particularly to a two-dimensional shape (for example, a character such as a bitmap font) on an xy plane. A shape conversion method for processing information into a three-dimensional figure (three-dimensional shape) by adding information in the z-axis direction to a figure expressed as data) and a processing procedure for realizing the shape conversion method. And a shape conversion device.

【0002】[0002]

【従来の技術】従来から、2次元形状を3次元化する方
法として様々な方法が提案されており、特にアウトライ
ンフォントの分野においてはこれが著しい。ところが、
従来提案されてきたものは、全て、2次元形状を3次元
形状のように見せるようにしたものである。具体的な提
案例としては、例えば「特開平8−328534号公
報」に開示されたものが挙げられる。これは、文字の輪
郭に、それを斜めにずらした際の軌跡としての「影」ま
たは「側面」を表現するための輪郭線を新たに付加する
ことによって、その文字があたかも3次元空間にデザイ
ンされたものであるかのように見せるようにしたもので
ある。たとえ、これらを拡張して、実際の3次元図形を
作り出したとしても、その輪郭は曲線として残ってしま
う。これを3次元形状として処理する場合、その計算量
も多く、リアルタイムでの処理が困難である。このよう
に、2次元形状から、簡単に、3次元形状を生成する方
法については、未だ、提案されていないのが実情であ
る。
2. Description of the Related Art Conventionally, various methods have been proposed for converting a two-dimensional shape into a three-dimensional shape, particularly in the field of outline fonts. However,
In all of the conventional proposals, a two-dimensional shape is made to look like a three-dimensional shape. A specific example of the proposal is disclosed in, for example, JP-A-8-328534. This is because the character is designed in a three-dimensional space by adding a new outline to represent the "shadow" or "side" as a trajectory when the character is shifted diagonally. It is made to look like it was done. Even if these are extended to create an actual three-dimensional figure, the outline remains as a curve. When processing this as a three-dimensional shape, the amount of calculation is large, and real-time processing is difficult. As described above, a method of easily generating a three-dimensional shape from a two-dimensional shape has not yet been proposed.

【0003】[0003]

【発明が解決しようとする課題】上述したように、従来
技術においては、2次元形状を斜めにずらした軌跡によ
ってデザイン的に3次元形状に見せかけるようにしたも
のはあるが、実際に2次元形状を3次元形状に変換する
ことは行われていなかった。本発明は、この状況に鑑
み、与えられた2次元図形(例えば、ビットマップフォ
ントの文字データ)から、簡単に、3次元形状を生成す
る形状変換方法、その方法を計算機で処理するための処
理手順を記録した記録媒体、ならびに形状変換装置を提
供することを目的としている。
As described above, in the prior art, a two-dimensional shape is designed to look like a three-dimensional shape by a trajectory shifted obliquely. Has not been converted to a three-dimensional shape. In view of this situation, the present invention provides a shape conversion method for easily generating a three-dimensional shape from a given two-dimensional figure (for example, character data of a bitmap font), and processing for processing the method by a computer. It is an object to provide a recording medium on which a procedure is recorded and a shape conversion device.

【0004】[0004]

【課題を解決するための手段】本発明の形状変換方法
は、上記目的を達成するために、平面上のビットマップ
として表現された2次元形状を入力し、入力された2次
元形状を構成する各ビットそれぞれに3次元形状を対応
させ、それらを合成することにより、2次元形状を3次
元の形状に変換するようにしたことを特徴としている。
2次元形状を構成する各ビットそれぞれに対応させる前
記3次元形状は、該ビットに対応するピクセルの形状を
この平面とは独立した方向に移動した際の軌跡として得
られるものであり、また、ピクセルの形状の移動の際
に、その形状に変換を加えるようにしたことを特徴とし
ている。
In order to achieve the above object, a shape conversion method according to the present invention inputs a two-dimensional shape expressed as a bitmap on a plane and constructs the input two-dimensional shape. It is characterized in that a two-dimensional shape is converted into a three-dimensional shape by associating a three-dimensional shape with each bit and combining them.
The three-dimensional shape corresponding to each bit constituting the two-dimensional shape is obtained as a trajectory when the shape of the pixel corresponding to the bit is moved in a direction independent of this plane. When the shape is moved, the shape is converted.

【0005】また、本形状変換方法を、文字データのビ
ットマップに適用することにより、ビットマップフォン
トの立体化表示が可能になる。また、上記形状変換方法
の処理手順を記録したフレキシブルディスクなどの記録
媒体により、流通させることが可能になる。
Further, by applying the present shape conversion method to a bit map of character data, a three-dimensional display of a bit map font becomes possible. In addition, the recording medium such as a flexible disk recording the processing procedure of the shape conversion method can be distributed.

【0006】また、本発明の形状変換装置は、ビットマ
ップとして表現された2次元形状を受け取る2次元形状
入力部(図15の21)と、該2次元形状を構成する各
ビットに対応するピクセルの形状の移動の方法やその形
状に加える変換などを指定する制御情報入力部(同2
2)と、2次元形状入力部から入力された2次元形状の
各ビットに3次元形状を対応させることによって3次元
形状を生成する3次元形状変換部(同23)と、変換さ
れた3次元形状を出力する3次元形状出力部(同24)
から構成される。3次元形状変換部は、前述した形状変
換方法によって形状変換を行なう。
A shape conversion device according to the present invention includes a two-dimensional shape input unit (21 in FIG. 15) for receiving a two-dimensional shape represented as a bitmap, and a pixel corresponding to each bit constituting the two-dimensional shape. A control information input unit for specifying the method of moving the shape and the conversion to be added to the shape
2) a three-dimensional shape conversion unit (23) for generating a three-dimensional shape by associating a three-dimensional shape with each bit of the two-dimensional shape input from the two-dimensional shape input unit; 3D shape output unit for outputting shape (24)
Consists of The three-dimensional shape conversion unit performs shape conversion by the above-described shape conversion method.

【0007】[0007]

【発明の実施の形態】以下、図面を用いて本発明の実施
例を説明する。 (第1の実施例)<請求項1> 図1は、本発明の第1の実施例における形状変換方法の
概略を示すフローチャートであり、ビットマップである
2次元形状の各々のビットに3次元形状を対応させる処
理手順を示している。第1の実施例において、平面上の
ビットマップである2次元形状が、縦Iビット、横Jビ
ットから構成されるものとする。
Embodiments of the present invention will be described below with reference to the drawings. (First Embodiment) <Claim 1> FIG. 1 is a flowchart showing an outline of a shape conversion method according to a first embodiment of the present invention. The processing procedure which makes a shape correspond is shown. In the first embodiment, it is assumed that a two-dimensional shape, which is a bitmap on a plane, is composed of vertical I bits and horizontal J bits.

【0008】同図に示すように、まず、iとjに0を挿
入する(ステップS1)。次に、i<Iか否かを判定し
(ステップS2)、i<Iならば(ステップS2:
Y)、次に、j<Jか否かを判定する(ステップS
3)。jがJ未満であれば(ステップS3:Y)、Pij
に3次元形状を対応させる(ステップS4)。すなわ
ち、全てのi(0≦i<I)とj(0≦j<J)の組み
合わせに対し、ビットPijに、例えば黒ビットに黒い形
状、白ビットに透明な形状を対応させた適当な3次元形
状を割り当てる。次に、jに1を加算した後(ステップ
S5)、ステップS3に戻る。jがJ以上になったら
(ステップS3:N)、jを0にリセットし(ステップ
S6)、iに1を加算した後(ステップS7)、ステッ
プS2に戻る。これらを繰り返し、iがI以上になった
ら(ステップS2:N)、Pijに3次元形状を対応させ
る処理を終了する。以上により、縦Iビット,横Jビッ
トの2次元形状全体が3次元形状に変換される。
As shown in FIG. 1, first, 0 is inserted into i and j (step S1). Next, it is determined whether or not i <I (step S2). If i <I (step S2:
Y) Then, it is determined whether or not j <J (step S)
3). If j is less than J (step S3: Y), Pij
Correspond to the three-dimensional shape (step S4). That is, for all combinations of i (0 ≦ i <I) and j (0 ≦ j <J), an appropriate 3 in which the bit Pij corresponds to, for example, a black shape for a black bit and a transparent shape for a white bit. Assign a dimensional shape. Next, after adding 1 to j (step S5), the process returns to step S3. When j is equal to or greater than J (step S3: N), j is reset to 0 (step S6), 1 is added to i (step S7), and the process returns to step S2. These steps are repeated, and when i becomes equal to or greater than I (step S2: N), the processing for associating Pij with the three-dimensional shape is ended. As described above, the entire two-dimensional shape of vertical I bits and horizontal J bits is converted into a three-dimensional shape.

【0009】図2は、第1の実施例の具体例を長方形の
2次元図形を用いて説明する図である。まず、図2
(a)に元となる2次元図形を示す。ここでは、例とし
て(5×4)の20ビットで構成された長方形を用いる
が、これはあくまでも、説明を簡単にするために単純な
図形を選んだものである。それが、円やコニック曲線、
Bezier曲線などの曲線で構成されるものであれ、ドー
ナツ型などの穴の開いた形状であれ、本質的な内容に変
化は生じない。以下の説明は、その形状そのものに左右
されるものではない。
FIG. 2 is a diagram for explaining a specific example of the first embodiment using a rectangular two-dimensional figure. First, FIG.
(A) shows the original two-dimensional figure. Here, a rectangle composed of (5 × 4) 20 bits is used as an example, but this is a simple figure selected for the sake of simplicity. That is a circle or conic curve,
Regardless of what is constituted by a curve such as a Bezier curve or a shape having a hole such as a donut shape, the essential content does not change. The following description does not depend on the shape itself.

【0010】また、ここでは、各ビットを正方形で表
し、また、ビット間に隙間を設けて作図しているが、こ
れらは、あくまでも、説明を容易にするための措置であ
る。ビットの形状に制限は不要であるし、それらの間に
隙間があってもなくても、本発明に影響はない。
[0010] In this case, each bit is represented by a square and a space is provided between the bits for drawing. However, these are merely measures for facilitating the explanation. There is no need to limit the shape of the bits, and there is no effect on the present invention whether or not there is a gap between them.

【0011】さて、図2(b)には、図2(a)におい
て正方形で表された各ビットに直方体を対応させた例を
示した。その結果、元の2次元形状の長方形が、3次元
形状としての直方体に変換されている。この図において
は、元の長方形を構成していた各ビットが隙間なく詰ま
って見える。これは、あくまで、図がいたずらに複雑に
なることを避けたものである。本発明の主張は、元の2
次元形状の各ビットに3次元形状を対応づけることであ
り、その形状の間に隙間を設けてもよいし、重ね合わせ
ても構わない。
FIG. 2B shows an example in which a rectangular parallelepiped is associated with each bit represented by a square in FIG. 2A. As a result, the original two-dimensional rectangular shape is converted into a rectangular parallelepiped as a three-dimensional shape. In this figure, the bits forming the original rectangle appear to be tightly packed without gaps. This is to prevent the figure from becoming unnecessarily complicated. The claim of the present invention is
This is to associate the three-dimensional shape with each bit of the dimensional shape, and a gap may be provided between the shapes, or the bits may be overlapped.

【0012】また、図2(c)には、(5×4)の長方
形に並んでいる各ビットを円で表し、この各円に円柱を
対応づけた例を示した。但し、これらの例は、あくまで
も、説明を単純にするために用意したものである。各ビ
ットに対応づけられる3次元形状は、直線性を持ったも
のである必然性はなく、曲線に沿ったものでも全く問題
はない。本実施例によれば、与えられたビットマップの
2次元形状から、簡単に、3次元形状を生成する方法を
提供することが可能になる。
FIG. 2C shows an example in which each bit arranged in a (5 × 4) rectangle is represented by a circle, and each circle is associated with a cylinder. However, these examples are provided for the sake of simplicity. The three-dimensional shape associated with each bit does not necessarily have to be linear, and there is no problem even if it is along a curve. According to this embodiment, it is possible to provide a method for easily generating a three-dimensional shape from a two-dimensional shape of a given bitmap.

【0013】(第2の実施例)<請求項2> 第2の実施例は、2次元形状を構成する各ビットに対応
させる3次元形状(曲がった直方体,曲がった円柱)を
最初に生成しておく実施例である。図3は、第2の実施
例に特有の処理手順を示すフローチャートである。この
実施例でも、平面上のビットマップである2次元形状
が、縦Iビット、横Jビットから構成されるものとす
る。
(Second Embodiment) <Claim 2> In a second embodiment, a three-dimensional shape (bent cuboid, bent cylinder) corresponding to each bit constituting a two-dimensional shape is first generated. This is a working example. FIG. 3 is a flowchart showing a processing procedure unique to the second embodiment. Also in this embodiment, it is assumed that the two-dimensional shape, which is a bitmap on a plane, is composed of vertical I bits and horizontal J bits.

【0014】同図に示すように、まず、最初のステップ
として、2次元形状を構成する各ビットに対応させる3
次元形状Cを生成する(ステップS11)。次に、iと
jに0を挿入する(ステップS12)。iとIを比較し
(ステップS13)、iがI未満であれば(ステップS
13:Y)、次に、jとJを比較し(ステップS1
4)、jがJ未満であれば(ステップS14:Y)、P
ijに、例えば黒ビットに黒い形状、白ビットに透明な形
状を対応させた3次元形状Cを割り当てた後(ステップ
S15)、jを1加算しステップS14に戻り、同様の
処理を繰り返す。
As shown in FIG. 1, first, as a first step, 3 bits corresponding to each bit constituting the two-dimensional shape are set.
A dimensional shape C is generated (Step S11). Next, 0 is inserted into i and j (step S12). i is compared with I (step S13), and if i is less than I (step S13).
13: Y), and then j and J are compared (step S1).
4) If j is less than J (step S14: Y), P
After assigning a three-dimensional shape C in which a black bit corresponds to a black shape and a white bit corresponds to a transparent shape (step S15), j is incremented by 1, and the process returns to step S14 to repeat the same processing.

【0015】ステップS14において、jがJ以上にな
ったら(ステップS14:N)、jを0にリセットし
(ステップS17)、iを1加算して(ステップS1
8)、ステップS13に戻る。以上の処理を繰り返し、
iがI以上になったら(ステップS13:N)、処理を
終了する。
In step S14, when j becomes equal to or larger than J (step S14: N), j is reset to 0 (step S17), and i is incremented by 1 (step S1).
8) Return to step S13. Repeat the above process,
When i becomes equal to or greater than I (step S13: N), the processing is terminated.

【0016】以上の処理により、全てのi(0≦i<
I)とj(0≦j<J)の組み合わせに対し、ビットP
ijに、生成した3次元形状Cを割り当てることにより、
全体を3次元形状に変換することができる。図4には、
第2の実施例を用いて、第1の実施例と同一の長方形か
ら3次元形状を生成した例を示す。図4(a)は元の長
方形を示し、図4(b)は2次元形状を構成する長方形
の各ビットに「曲がった直方体」を割り当てた例を示
し、図4(c)は2次元形状を構成する長方形の各ビッ
トに「曲がった円柱」を割り当てた例を示している。す
なわち、図3のステップS11で生成した3次元形状C
が「曲がった直方体」の場合の例が図4(b)であり、
「曲がった円柱」の場合の例が図4(c)である。本実
施例によれば、簡単な処理により、2次元形状を、曲が
った形状を有する3次元形状に変換することが可能にな
る。
By the above processing, all i (0 ≦ i <
I) and j (0 ≦ j <J), the bit P
By assigning the generated three-dimensional shape C to ij,
The whole can be converted to a three-dimensional shape. In FIG.
An example in which a three-dimensional shape is generated from the same rectangle as in the first embodiment using the second embodiment will be described. 4A shows an original rectangle, FIG. 4B shows an example in which a “bent cuboid” is assigned to each bit of the rectangle forming the two-dimensional shape, and FIG. 4C shows a two-dimensional shape. Is an example in which a “bent cylinder” is assigned to each of the bits of the rectangle that constitutes. That is, the three-dimensional shape C generated in step S11 of FIG.
FIG. 4B shows an example in which is a “bent cuboid”.
FIG. 4C shows an example of the case of a “bent cylinder”. According to this embodiment, it is possible to convert a two-dimensional shape into a three-dimensional shape having a curved shape by a simple process.

【0017】(第3の実施例)<請求項3> 第3の実施例は、2次元形状を構成する各ビットに対応
させる3次元形状(捻れた直方体,歪んだ円柱)を最初
に生成しておく実施例である。図5は、第3の実施例に
特有の処理手順を示すフローチャートである。この実施
例でも、平面上のビットマップである2次元形状が、縦
Iビット、横Jビットから構成されるものとする。
(Third Embodiment) <Claim 3> In a third embodiment, a three-dimensional shape (twisted rectangular parallelepiped, distorted cylinder) corresponding to each bit constituting a two-dimensional shape is first generated. This is a working example. FIG. 5 is a flowchart showing a processing procedure unique to the third embodiment. Also in this embodiment, it is assumed that the two-dimensional shape, which is a bitmap on a plane, is composed of vertical I bits and horizontal J bits.

【0018】同図に示すように、まず、最初のステップ
として、2次元形状を構成する各ビットに対応させる3
次元形状Cを生成する(ステップS21)。次に、iと
jに0を挿入する(ステップS22)。iとIを比較し
(ステップS23)、iがI未満であれば(ステップS
23:Y)、次に、jとJを比較し(ステップS2
4)、jがJ未満であれば(ステップS24:Y)、P
ijに、例えば黒ビットに黒い形状、白ビットに透明な形
状を対応させた3次元形状Fij(C)を対応させた後
(ステップS25)、jを1加算しステップS24に戻
り、同様の処理を繰り返す。なお、ここで3次元形状F
ij(C)は、生成した3次元形状Cに変換Fijを施した
ものである。
As shown in FIG. 1, first, as a first step, 3 bits corresponding to each bit constituting the two-dimensional shape are set.
A dimensional shape C is generated (Step S21). Next, 0 is inserted into i and j (step S22). i is compared with I (step S23), and if i is less than I (step S23).
23: Y) Then, j is compared with J (step S2).
4) If j is less than J (step S24: Y), P
After associating ij with a three-dimensional shape Fij (C) in which, for example, a black shape is associated with a black bit and a transparent shape is associated with a white bit (step S25), j is added by 1, and the process returns to step S24. repeat. Here, the three-dimensional shape F
ij (C) is obtained by performing a transformation Fij on the generated three-dimensional shape C.

【0019】ステップS24において、jがJ以上にな
ったら(ステップS24:N)、jを0にリセットし
(ステップS27)、iを1加算して(ステップS2
8)、ステップS23に戻る。以上の処理を繰り返し、
iがI以上になったら(ステップS23:N)、処理を
終了する。
In step S24, if j is equal to or larger than J (step S24: N), j is reset to 0 (step S27), and i is incremented by 1 (step S2).
8) Return to step S23. Repeat the above process,
When i becomes equal to or greater than I (step S23: N), the processing is terminated.

【0020】以上の処理により、全てのi(0≦i<
I)とj(0≦j<J)の組み合わせに対し、ビットP
ijに、生成した3次元形状Cに変換Fijを施した、Fij
(C)を割り当てることにより、全体を3次元形状に変
換することができる。図6には、第3の実施例を用い
て、第1の実施例と同一の長方形から3次元形状を生成
した例を示す。図6(a)は元の長方形を示し、図6
(b)は2次元形状を構成する長方形の各ビットに「捻
れた直方体」を割り当てた例を示し、図6(c)は2次
元形状を構成する長方形の各ビットに「歪んだ円柱」を
割り当てた例を示している。すなわち、図5のステップ
S21で生成した3次元形状Cが「捻れた直方体」の場
合の例が図6(b)であり、「歪んだ円柱」の場合の例
が図6(c)である。本実施例によれば、簡単な処理に
より、2次元形状を、捻れた形状または歪んだ形状を有
する3次元形状に変換することが可能になる。
By the above processing, all i (0 ≦ i <
I) and j (0 ≦ j <J), the bit P
Fij obtained by subjecting the generated three-dimensional shape C to conversion Fij
By assigning (C), the whole can be converted into a three-dimensional shape. FIG. 6 shows an example in which a three-dimensional shape is generated from the same rectangle as in the first embodiment using the third embodiment. FIG. 6A shows the original rectangle, and FIG.
FIG. 6B shows an example in which a “twisted rectangular parallelepiped” is assigned to each of the rectangular bits forming the two-dimensional shape, and FIG. 6C shows a “distorted cylinder” in each of the rectangular bits forming the two-dimensional shape. An example of assignment is shown. That is, FIG. 6B illustrates an example in which the three-dimensional shape C generated in step S21 in FIG. 5 is a “twisted rectangular parallelepiped”, and FIG. 6C illustrates an example in the case of a “distorted cylinder”. . According to the present embodiment, it is possible to convert a two-dimensional shape into a three-dimensional shape having a twisted shape or a distorted shape by a simple process.

【0021】(第4の実施例)<請求項4> 第4の実施例は、前記第1〜第3の実施例の何れかにお
いて、入力となる2次元形状を、「ビットマップフォン
ト」の文字データに特定したものである。 (文字例1)本例では、入力する2次元形状として、ゴ
シック文字の“目”という文字を取り上げる。図7は、
本例で取り上げたゴシック体の“目”という文字を、1
5×15メッシュでデザインした2次元形状の図であ
る。図8は、図7の2次元形状を2次元のテーブルで表
した実際のデータである。ここでは、“0”が白に、
“1”が黒に対応している。
(Fourth Embodiment) <Claim 4> In a fourth embodiment, in any one of the first to third embodiments, the two-dimensional shape to be input is the same as that of the "bitmap font". This is specified for character data. (Character Example 1) In this example, the character "eyes" of Gothic characters is taken as a two-dimensional shape to be input. FIG.
In this example, the Gothic “eye” is 1
It is a figure of the two-dimensional shape designed by 5x15 mesh. FIG. 8 is actual data representing the two-dimensional shape of FIG. 7 in a two-dimensional table. Here, "0" is white,
“1” corresponds to black.

【0022】ただし、ここで、各ビットの色を白と黒の
2色としたのは単に説明を簡単にするためであり、格別
深い意味はない。その他の色を持っていた場合には、そ
の色を割り当てればよく、本実施例に何の影響も与えな
い。また、図8は、2次元のテーブルであるが、その実
装上の形態も各種の形態があり得る。例えば、メモリの
2次元配列でもよいし、メモリの1次元配列を2次元と
解釈して用いることも可能である。メモリのバイトを構
成する各ビットを、このテーブルの各要素に対応させて
もよいし、ニブル,バイト,ワードなどの単位をテーブ
ルの各要素に対応させてもよい。要するに、本実施例
は、論理的な表現である図8を、物理的にどのように実
装したものであってもよい。
However, the reason why the color of each bit is set to two colors of white and black is merely for simplicity of explanation and has no special significance. If the color has another color, it is sufficient to assign the color, and this embodiment has no effect. FIG. 8 shows a two-dimensional table, but various forms of mounting are possible. For example, a two-dimensional array of memory may be used, or a one-dimensional array of memory may be interpreted as two-dimensional and used. Each bit forming a byte of the memory may correspond to each element of this table, or a unit such as nibble, byte, word, etc. may correspond to each element of the table. In short, the present embodiment may physically implement the logical representation of FIG. 8 in any manner.

【0023】本実施例では、このように表現された2次
元形状を、前述した第1〜第3実施例のいずれかの形状
変換方法を適用して3次元化(立体化)する。図9は、
図7の2次元形状に第1の実施例を適用した場合の図で
あり、2次元形状の各ビットに対応させる3次元形状と
してその断面が正方形であるような直方体をそのまま用
いた場合の例である。図9は、図がいたずらに煩雑化す
るのを避けるためにに文字の四隅に割り当てられた直方
体のみを明示しているが、元の“目”という文字を構成
していた全てのビットに同様の直方体が割り当てられて
いることはいうまでもない。
In this embodiment, the two-dimensional shape expressed in this way is made three-dimensional (three-dimensional) by applying any one of the shape conversion methods of the first to third embodiments. FIG.
FIG. 8 is a diagram in a case where the first embodiment is applied to the two-dimensional shape of FIG. 7, in which a rectangular parallelepiped whose cross section is a square is used as a three-dimensional shape corresponding to each bit of the two-dimensional shape; It is. FIG. 9 shows only the rectangular parallelepipeds assigned to the four corners of the character to avoid complicating the figure unnecessarily, but the same applies to all the bits constituting the original character "eye". It is needless to say that the rectangular parallelepiped is assigned.

【0024】(文字例2)本例では、入力する2次元形
状として、ゴシック文字の“口”という文字を取り上げ
る。図10は、本例で取り上げたゴシック体の“口”と
いう文字を、8×8メッシュでデザインした2次元形状
の図である。図11は、図10の2次元形状“口”に対
して、第3の実施例の形状変換方法を適用した場合に生
成される3次元形状の図である。図12は、各ビットに
割り当てられる変換前の直方体を示す図である。図13
は、各ビットに割り当てられた図12の直方体に施す変
換式を示す図である。
(Character Example 2) In this example, the character "mouth" of Gothic characters is taken as a two-dimensional shape to be input. FIG. 10 is a diagram of a two-dimensional shape in which the Gothic character “mouth” taken up in this example is designed with an 8 × 8 mesh. FIG. 11 is a diagram of a three-dimensional shape generated when the shape conversion method of the third embodiment is applied to the two-dimensional shape “mouth” of FIG. FIG. 12 is a diagram showing a pre-conversion cuboid assigned to each bit. FIG.
FIG. 14 is a diagram showing a conversion equation applied to the rectangular parallelepiped of FIG. 12 assigned to each bit.

【0025】図11では、点Aを含むビットを基準(x
方向とy方向の基点;すなわち座標値(0,0))とし
て、右にi番目、下にj番目のビットには、図12に示
す直方体に以下に示すような変換を施した3次元形状を
割り当てる。すなわち、図12の直方体の頂点Mを原点
(0,0,0)とし、頂点Nを座標(0,0,5)とす
るとき、この直方体上の任意の点P(x,y,z)に対
して、図13に示す座標変換を施す。この結果、全体と
してみると、元の2次元形状“口”を、原点Aを中心に
時計回りに45度回転しつつ、距離5だけz方向に移動
し、最終的に大きさが2倍になるように拡大する、とい
う変換を施した際の各点の軌跡として表される3次元形
状が得られる。そのとき得られる3次元形状が図11に
示すものである。本実施例によれば、ビットマップフォ
ントの2次元形状の文字データから、これを3次元に拡
張した形状を、容易に得ることが可能になる。
In FIG. 11, the bit including the point A is referred to (x
The base point in the direction and the y direction; that is, the coordinate value (0,0)), the i-th bit on the right and the j-th bit on the bottom represent the three-dimensional shape obtained by performing the following transformation on the rectangular parallelepiped shown in FIG. Assign. That is, when the vertex M of the rectangular parallelepiped in FIG. 12 is the origin (0, 0, 0) and the vertex N is the coordinates (0, 0, 5), an arbitrary point P (x, y, z) on this rectangular parallelepiped Is subjected to the coordinate transformation shown in FIG. As a result, as a whole, the original two-dimensional shape “mouth” is moved in the z direction by a distance of 5 while being rotated clockwise by 45 degrees about the origin A, and finally the size is doubled. As a result, a three-dimensional shape represented as a locus of each point when the conversion of expanding the image is performed is obtained. The three-dimensional shape obtained at that time is shown in FIG. According to the present embodiment, it is possible to easily obtain a three-dimensionally expanded shape from character data of a two-dimensional shape of a bitmap font.

【0026】(第5の実施例)<請求項5> 図14は、本発明を実現するためのコンピュータを構成
する部分を模式的に描いた図である。同図において、1
はCPU、2はプログラムメモリ、3はデータメモリ、
4はディスプレイ、5はハードディスク、6はフレキシ
ブルディスク、7はプリンタ、8はキーボード,スキャ
ナ,マウスなどからなる入力装置である。ここで、上述
のソフトウェア(プログラム)は、ハードディスク5,
フレキシブルディスク6,CD−ROMといったいわゆ
る外部記憶装置に記憶され、実行の際にはメモリ上にロ
ードされて使用される。CPU1はこれを逐次的に読み
出し、実行する。
(Fifth Embodiment) <Claim 5> FIG. 14 is a diagram schematically illustrating a part constituting a computer for realizing the present invention. In the figure, 1
Is a CPU, 2 is a program memory, 3 is a data memory,
Reference numeral 4 denotes a display, 5 denotes a hard disk, 6 denotes a flexible disk, 7 denotes a printer, 8 denotes an input device including a keyboard, a scanner, a mouse, and the like. Here, the above-mentioned software (program) is stored on the hard disk 5,
It is stored in a so-called external storage device such as a flexible disk 6 or a CD-ROM, and is loaded on a memory and used at the time of execution. The CPU 1 sequentially reads out and executes this.

【0027】前述した第1〜第4の実施例は、処理手順
に特徴を有するものであり、コンピュータによって実行
されるソフトウェア(プログラム)として記述し、フレ
キシブルディスクやCD−ROMなどの記録媒体に格納
して流通させることが可能である。
The above-described first to fourth embodiments are characterized by the processing procedure, and are described as software (programs) executed by a computer and stored in a recording medium such as a flexible disk or a CD-ROM. It is possible to distribute.

【0028】(第6の実施例)<請求項6> 図15は、第6の実施例に係る形状変換装置の構成を示
す図である。前述の第1〜第5の実施例を実現するため
に本形状変換装置は、同図に示すように、入力装置8
と、プログラムメモリ2と、データメモリ3と、データ
格納装置(ハードディスクなど)50と、制御情報格納
部9などから構成される。プログラムメモリ2は、2次
元形状入力部21,制御情報入力部22,3次元形状変
換部23,3次元形状出力部24,制御部25から構成
される。
(Sixth Embodiment) <Claim 6> FIG. 15 is a diagram showing a configuration of a shape conversion apparatus according to a sixth embodiment. In order to realize the above-described first to fifth embodiments, the present shape conversion device includes an input device 8 as shown in FIG.
, A program memory 2, a data memory 3, a data storage device (such as a hard disk) 50, a control information storage unit 9, and the like. The program memory 2 includes a two-dimensional shape input unit 21, a control information input unit 22, a three-dimensional shape conversion unit 23, a three-dimensional shape output unit 24, and a control unit 25.

【0029】2次元形状入力部21は、ディスク装置な
どに代表されるデータ格納装置50または入力装置8な
どから、2次元形状の輪郭線データを読み込む。制御情
報入力部22は、この2次元形状を移動する方向や移動
量などの情報とともに、この2次元形状に加える変換を
指定するための情報、すわなち、この2次元形状を構成
する輪郭点それぞれの軌跡を指定するための情報を、制
御情報格納部9から読み込む。
The two-dimensional shape input section 21 reads the two-dimensional shape contour data from the data storage device 50 represented by a disk device or the input device 8 or the like. The control information input unit 22 includes information for specifying the transformation to be applied to the two-dimensional shape, along with information such as the direction and amount of movement of the two-dimensional shape, that is, the contour points constituting the two-dimensional shape. Information for designating each trajectory is read from the control information storage unit 9.

【0030】3次元形状変換部23は、制御情報入力部
21で読み込まれた情報を用いて、第1〜第4の実施例
の何れかの方法を用いて、2次元形状入力部21から読
み込んだ2次元形状を3次元形状に変換する。3次元形
状出力部24は、3次元形状変換部23で変換された3
次元形状を、ディスク装置などに代表されるデータ格納
装置50または出力装置などに出力する。なお、制御部
25は、以上の処理全体の制御を行なうものである。デ
ータメモリ3は、上記各部の間でやり取りされるデータ
を一時的に記憶するために用いられる。
The three-dimensional shape conversion unit 23 reads information from the two-dimensional shape input unit 21 by using the information read by the control information input unit 21 and using any of the methods of the first to fourth embodiments. The two-dimensional shape is converted into a three-dimensional shape. The three-dimensional shape output unit 24 converts the 3D shape converted by the three-dimensional shape
The dimensional shape is output to a data storage device 50 such as a disk device or an output device. The control unit 25 controls the entire processing described above. The data memory 3 is used for temporarily storing data exchanged between the above units.

【0031】[0031]

【発明の効果】本発明によれば、与えられた2次元形状
から、簡単に、3次元形状を生成する形状変換方法、そ
のための手順を記録した記憶媒体、および形状変換装置
を得ることが可能になる。
According to the present invention, it is possible to obtain a shape conversion method for easily generating a three-dimensional shape from a given two-dimensional shape, a storage medium recording a procedure for the method, and a shape conversion device. become.

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

【図1】本発明の第1の実施例における形状変換方法の
概略を示すフローチャートである。
FIG. 1 is a flowchart illustrating an outline of a shape conversion method according to a first embodiment of the present invention.

【図2】第1の実施例の具体例を長方形の2次元図形を
用いて説明する図である。
FIG. 2 is a diagram illustrating a specific example of the first embodiment using a rectangular two-dimensional figure.

【図3】第2の実施例に特有の処理手順を示すフローチ
ャートである。
FIG. 3 is a flowchart showing a processing procedure specific to the second embodiment.

【図4】第2の実施例を用いて、第1の実施例と同一の
長方形から3次元形状を生成した例を示す。
FIG. 4 shows an example in which a three-dimensional shape is generated from the same rectangle as in the first embodiment using the second embodiment.

【図5】第3の実施例に特有の処理手順を示すフローチ
ャートである。
FIG. 5 is a flowchart showing a processing procedure specific to the third embodiment.

【図6】第3の実施例を用いて、第1の実施例と同一の
長方形から3次元形状を生成した例を示す。
FIG. 6 shows an example in which a three-dimensional shape is generated from the same rectangle as in the first embodiment using the third embodiment.

【図7】ゴシック体の“目”という文字を、15×15
メッシュでデザインした2次元形状の図である。
FIG. 7 shows a 15 × 15
It is a figure of the two-dimensional shape designed with the mesh.

【図8】図7の2次元形状を2次元のテーブルで表した
実際のデータである。
8 is actual data representing the two-dimensional shape of FIG. 7 in a two-dimensional table.

【図9】図7の2次元形状に第1の実施例を適用した場
合の図である。
FIG. 9 is a diagram when the first embodiment is applied to the two-dimensional shape of FIG. 7;

【図10】ゴシック体の“口”という文字を、8×8メ
ッシュでデザインした2次元形状の図である。
FIG. 10 is a diagram of a two-dimensional shape in which a Gothic character “mouth” is designed with an 8 × 8 mesh.

【図11】2次元形状“口”に対して、第3実施例の形
状変換方法を適用した場合に生成される3次元形状の図
である。
FIG. 11 is a diagram of a three-dimensional shape generated when the shape conversion method of the third embodiment is applied to a two-dimensional shape “mouth”.

【図12】各ビットに割り当てられる変換前の直方体を
示す図である。
FIG. 12 is a diagram showing a rectangular parallelepiped before conversion assigned to each bit.

【図13】図12の直方体に施す変換式を示す図であ
る。
FIG. 13 is a diagram showing a conversion formula applied to the rectangular parallelepiped of FIG.

【図14】本発明を実現するためのコンピュータを構成
する部分を模式的に描いた図である。
FIG. 14 is a diagram schematically illustrating a part configuring a computer for realizing the present invention.

【図15】第6の実施例に係る形状変換装置の構成を示
す図である。
FIG. 15 is a diagram illustrating a configuration of a shape conversion device according to a sixth embodiment.

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

1:CPU、2:プログラムメモリ、3:データメモ
リ、4:ディスプレイ、5:ディスク、6:フレキシブ
ルディスク、7:プリンタ、8:入力装置、9:制御情
報格納部、21:2次元形状入力部、22:制御情報入
力部、23:3次元形状変換部、24:3次元形状出力
部、25:制御部、50:データ格納装置
1: CPU, 2: Program memory, 3: Data memory, 4: Display, 5: Disk, 6: Flexible disk, 7: Printer, 8: Input device, 9: Control information storage, 21: Two-dimensional shape input , 22: control information input unit, 23: three-dimensional shape conversion unit, 24: three-dimensional shape output unit, 25: control unit, 50: data storage device

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 電子計算機を用いて2次元形状を3次元
形状に変換する形状変換方法において、平面上のビット
マップとして表現された2次元形状を入力し、該2次元
形状を構成する各ビットそれぞれに3次元形状を対応さ
せ、それらを合成することにより、2次元形状を3次元
の形状に変換する形状変換方法。
In a shape conversion method for converting a two-dimensional shape into a three-dimensional shape using an electronic computer, a two-dimensional shape expressed as a bitmap on a plane is input, and each bit constituting the two-dimensional shape is input. A shape conversion method for converting a two-dimensional shape into a three-dimensional shape by associating three-dimensional shapes with each other and combining them.
【請求項2】 請求項1記載の形状変換方法において、
前記2次元形状を構成する各ビットそれぞれに対応させ
る3次元形状は、該ビットに対応するピクセルの形状を
この平面とは独立した方向に移動した際の軌跡として得
られるものであることを特徴とする形状変換方法。
2. The shape conversion method according to claim 1, wherein
The three-dimensional shape corresponding to each bit constituting the two-dimensional shape is obtained as a trajectory when the shape of the pixel corresponding to the bit is moved in a direction independent of this plane. Shape conversion method.
【請求項3】 請求項2記載の形状変換方法において、
前記ピクセルの形状の移動の際に、その形状に変換を加
えることを特徴とする形状変換方法。
3. The shape conversion method according to claim 2, wherein
A shape conversion method, wherein the shape is converted when the shape of the pixel is moved.
【請求項4】 請求項1〜3のいずれか1項に記載の形
状変換方法において、前記2次元形状はビットマップフ
ォントの文字データであることを特徴とする形状変換方
法。
4. The shape conversion method according to claim 1, wherein the two-dimensional shape is character data of a bitmap font.
【請求項5】 請求項1〜4のいずれか1項に記載の形
状変換方法の処理手順を記録した記録媒体。
5. A recording medium on which a processing procedure of the shape conversion method according to claim 1 is recorded.
【請求項6】 平面上のビットマップとして表現された
2次元形状を受け取る2次元形状入力部と、該2次元形
状を構成する各ビットに対応するピクセルの形状の移動
の方法やその形状に加える変換などを指定する制御情報
入力部と、前記2次元形状入力部から入力された2次元
形状の各ビットに3次元形状を対応させることによって
3次元形状を生成する3次元形状変換部と、変換された
3次元形状を出力する3次元形状出力部を有し、前記3
次元形状変換部において、請求項1〜4のいずれか1項
に記載の形状変換方法によって形状変換を行うことを特
徴とする形状変換装置。
6. A two-dimensional shape input unit for receiving a two-dimensional shape expressed as a bitmap on a plane, and a method of moving a shape of a pixel corresponding to each bit constituting the two-dimensional shape and adding the shape to the shape. A control information input unit for designating conversion and the like; a three-dimensional shape conversion unit for generating a three-dimensional shape by associating each bit of the two-dimensional shape input from the two-dimensional shape input unit with a three-dimensional shape; A three-dimensional shape output unit for outputting a three-dimensional shape obtained by
A shape conversion device, wherein the shape conversion is performed by the shape conversion method according to any one of claims 1 to 4 in the dimensional shape conversion unit.
JP20513497A 1997-07-31 1997-07-31 Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device Expired - Fee Related JP3807571B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20513497A JP3807571B2 (en) 1997-07-31 1997-07-31 Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20513497A JP3807571B2 (en) 1997-07-31 1997-07-31 Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device

Publications (2)

Publication Number Publication Date
JPH1153579A true JPH1153579A (en) 1999-02-26
JP3807571B2 JP3807571B2 (en) 2006-08-09

Family

ID=16501995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20513497A Expired - Fee Related JP3807571B2 (en) 1997-07-31 1997-07-31 Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device

Country Status (1)

Country Link
JP (1) JP3807571B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002358541A (en) * 2001-06-01 2002-12-13 Matsushita Electric Ind Co Ltd Device and method for generating three-dimensional graphics
US6850239B2 (en) 2000-12-05 2005-02-01 Matsushita Electric Industrial Co., Ltd. 3-D character data generating device and a 3-D graphics data generating device
GB2434288A (en) * 2006-01-17 2007-07-18 Peter Nicholas Stott Anamorphic typography

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6850239B2 (en) 2000-12-05 2005-02-01 Matsushita Electric Industrial Co., Ltd. 3-D character data generating device and a 3-D graphics data generating device
JP2002358541A (en) * 2001-06-01 2002-12-13 Matsushita Electric Ind Co Ltd Device and method for generating three-dimensional graphics
JP4679757B2 (en) * 2001-06-01 2011-04-27 パナソニック株式会社 3D graphic generation apparatus and 3D graphic generation method
GB2434288A (en) * 2006-01-17 2007-07-18 Peter Nicholas Stott Anamorphic typography

Also Published As

Publication number Publication date
JP3807571B2 (en) 2006-08-09

Similar Documents

Publication Publication Date Title
US6677944B1 (en) Three-dimensional image generating apparatus that creates a three-dimensional model from a two-dimensional image by image processing
JPS6158083A (en) Fast memory system, data processing method and memory segment
JPS6295666A (en) Picture generating device
JPH0154752B2 (en)
US4951230A (en) Method and apparatus for tiling an image
US5075779A (en) Apparatus and method for interpreting image data for use in a raster plotter
JPH0432362A (en) Picture integration processing unit
US6437779B1 (en) Image processing method image processing unit and recording medium recording integrated shaping model data and image processing program to be used thereof
JPH06149212A (en) Character generation method and its device
US5519412A (en) Pattern processing method
JP3807571B2 (en) Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device
JPH01296389A (en) Method and device for processing graphic
JP2774662B2 (en) Character processor
JP2007122188A (en) Image forming device, image processing method and program
JP3002972B2 (en) 3D image processing device
JP2598903B2 (en) 3D character typesetting device
KR900002631B1 (en) Image data processing method and apparatus
JP2747822B2 (en) Graphic display device
JP3129717B2 (en) Image processing apparatus and image processing method
JPH1125281A (en) Texture mapping method
JPH05224653A (en) Character output device
JP2000184197A (en) Image processor
JP3209359B2 (en) Image output device
JPS63210885A (en) Graphic generation system for character shape
JPH1153578A (en) Shape conversion method, storage medium recording processing procedure of the same and shape conversion device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050513

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050706

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050906

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051101

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060203

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060428

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060511

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110526

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120526

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees