JP3807571B2 - Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device - Google Patents

Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device Download PDF

Info

Publication number
JP3807571B2
JP3807571B2 JP20513497A JP20513497A JP3807571B2 JP 3807571 B2 JP3807571 B2 JP 3807571B2 JP 20513497 A JP20513497 A JP 20513497A JP 20513497 A JP20513497 A JP 20513497A JP 3807571 B2 JP3807571 B2 JP 3807571B2
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.)
Expired - Fee Related
Application number
JP20513497A
Other languages
Japanese (ja)
Other versions
JPH1153579A (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.)
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

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、電子計算機を用いて2次元形状を3次元形状に変換する形状変換技術に係り、特に、xy平面上の2次元形状(例えば、ビットマップフォントなどの文字データ)として表現された図形に、z軸方向の情報を付加することによって、これを立体図形(3次元形状)に加工する形状変換方法、および該方法を実行させるプログラムを記録した記録媒体、ならびに形状変換装置に関する。
【0002】
【従来の技術】
従来から、2次元形状を3次元化する方法として様々な方法が提案されており、特にアウトラインフォントの分野においてはこれが著しい。ところが、従来提案されてきたものは、全て、2次元形状を3次元形状のように見せるようにしたものである。具体的な提案例としては、例えば「特開平8−328534号公報」に開示されたものが挙げられる。これは、文字の輪郭に、それを斜めにずらした際の軌跡としての「影」または「側面」を表現するための輪郭線を新たに付加することによって、その文字があたかも3次元空間にデザインされたものであるかのように見せるようにしたものである。たとえ、これらを拡張して、実際の3次元図形を作り出したとしても、その輪郭は曲線として残ってしまう。これを3次元形状として処理する場合、その計算量も多く、リアルタイムでの処理が困難である。
このように、2次元形状から、簡単に、3次元形状を生成する方法については、未だ、提案されていないのが実情である。
【0003】
【発明が解決しようとする課題】
上述したように、従来技術においては、2次元形状を斜めにずらした軌跡によってデザイン的に3次元形状に見せかけるようにしたものはあるが、実際に2次元形状を3次元形状に変換することは行われていなかった。
本発明は、この状況に鑑み、与えられた2次元図形(例えば、ビットマップフォントの文字データ)から、簡単に、3次元形状を生成する形状変換方法、および該方法を実行させるプログラムを記録した記録媒体、ならびに形状変換装置を提供することを目的としている。
【0004】
【課題を解決するための手段】
本発明の形状変換方法は、上記目的を達成するために、平面上のビットマップとして表現された2次元形状を入力し、入力された2次元形状を構成する各ビットそれぞれに3次元形状を対応させ、それらを合成することにより、2次元形状を3次元の形状に変換するようにしたことを特徴としている。2次元形状を構成する各ビットそれぞれに対応させる前記3次元形状は、該ビットに対応するピクセルの形状をこの平面とは独立した方向に移動した際の軌跡として得られるものであり、また、ピクセルの形状の移動の際に、その形状に変換を加えるようにしたことを特徴としている。
【0005】
また、本形状変換方法を、文字データのビットマップに適用することにより、ビットマップフォントの立体化表示が可能になる。また、上記形状変換方法を実行させるプログラムを記録したフレキシブルディスクなどの記録媒体により、流通させることが可能になる。
【0006】
また、本発明の形状変換装置は、ビットマップとして表現された2次元形状を受け取る2次元形状入力部(図15の21)と、該2次元形状を構成する各ビットに対応するピクセルの形状の移動の方法やその形状に加える変換などを指定する制御情報入力部(同22)と、2次元形状入力部から入力された2次元形状の各ビットに3次元形状を対応させることによって3次元形状を生成する3次元形状変換部(同23)と、変換された3次元形状を出力する3次元形状出力部(同24)から構成される。3次元形状変換部は、前述した形状変換方法によって形状変換を行なう。
【0007】
【発明の実施の形態】
以下、図面を用いて本発明の実施例を説明する。
(第1の実施例)
図1は、本発明の第1の実施例における形状変換方法の概略を示すフローチャートであり、ビットマップである2次元形状の各々のビットに3次元形状を対応させる処理手順を示している。第1の実施例において、平面上のビットマップである2次元形状が、縦Iビット、横Jビットから構成されるものとする。
【0008】
同図に示すように、まず、iとjに0を挿入する(ステップS1)。次に、i<Iか否かを判定し(ステップS2)、i<Iならば(ステップS2:Y)、次に、j<Jか否かを判定する(ステップS3)。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次元形状に変換される。
【0009】
図2は、第1の実施例の具体例を長方形の2次元図形を用いて説明する図である。
まず、図2(a)に元となる2次元図形を示す。ここでは、例として(5×4)の20ビットで構成された長方形を用いるが、これはあくまでも、説明を簡単にするために単純な図形を選んだものである。それが、円やコニック曲線、Bezier曲線などの曲線で構成されるものであれ、ドーナツ型などの穴の開いた形状であれ、本質的な内容に変化は生じない。以下の説明は、その形状そのものに左右されるものではない。
【0010】
また、ここでは、各ビットを正方形で表し、また、ビット間に隙間を設けて作図しているが、これらは、あくまでも、説明を容易にするための措置である。ビットの形状に制限は不要であるし、それらの間に隙間があってもなくても、本発明に影響はない。
【0011】
さて、図2(b)には、図2(a)において正方形で表された各ビットに直方体を対応させた例を示した。その結果、元の2次元形状の長方形が、3次元形状としての直方体に変換されている。この図においては、元の長方形を構成していた各ビットが隙間なく詰まって見える。これは、あくまで、図がいたずらに複雑になることを避けたものである。本発明の主張は、元の2次元形状の各ビットに3次元形状を対応づけることであり、その形状の間に隙間を設けてもよいし、重ね合わせても構わない。
【0012】
また、図2(c)には、(5×4)の長方形に並んでいる各ビットを円で表し、この各円に円柱を対応づけた例を示した。
但し、これらの例は、あくまでも、説明を単純にするために用意したものである。各ビットに対応づけられる3次元形状は、直線性を持ったものである必然性はなく、曲線に沿ったものでも全く問題はない。
本実施例によれば、与えられたビットマップの2次元形状から、簡単に、3次元形状を生成する方法を提供することが可能になる。
【0013】
(第2の実施例)
第2の実施例は、2次元形状を構成する各ビットに対応させる3次元形状(曲がった直方体,曲がった円柱)を最初に生成しておく実施例である。
図3は、第2の実施例に特有の処理手順を示すフローチャートである。この実施例でも、平面上のビットマップである2次元形状が、縦Iビット、横Jビットから構成されるものとする。
【0014】
同図に示すように、まず、最初のステップとして、2次元形状を構成する各ビットに対応させる3次元形状Cを生成する(ステップS11)。次に、iとjに0を挿入する(ステップS12)。iとIを比較し(ステップS13)、iがI未満であれば(ステップS13:Y)、次に、jとJを比較し(ステップS14)、jがJ未満であれば(ステップS14:Y)、Pijに、例えば黒ビットに黒い形状、白ビットに透明な形状を対応させた3次元形状Cを割り当てた後(ステップS15)、jを1加算しステップS14に戻り、同様の処理を繰り返す。
【0015】
ステップS14において、jがJ以上になったら(ステップS14:N)、jを0にリセットし(ステップS17)、iを1加算して(ステップS18)、ステップS13に戻る。
以上の処理を繰り返し、iがI以上になったら(ステップS13:N)、処理を終了する。
【0016】
以上の処理により、全てのi(0≦i<I)とj(0≦j<J)の組み合わせに対し、ビットPijに、生成した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次元形状に変換することが可能になる。
【0017】
(第3の実施例)
第3の実施例は、2次元形状を構成する各ビットに対応させる3次元形状(捻れた直方体,歪んだ円柱)を最初に生成しておく実施例である。図5は、第3の実施例に特有の処理手順を示すフローチャートである。この実施例でも、平面上のビットマップである2次元形状が、縦Iビット、横Jビットから構成されるものとする。
【0018】
同図に示すように、まず、最初のステップとして、2次元形状を構成する各ビットに対応させる3次元形状Cを生成する(ステップS21)。次に、iとjに0を挿入する(ステップS22)。iとIを比較し(ステップS23)、iがI未満であれば(ステップS23:Y)、次に、jとJを比較し(ステップS24)、jがJ未満であれば(ステップS24:Y)、Pijに、例えば黒ビットに黒い形状、白ビットに透明な形状を対応させた3次元形状Fij(C)を対応させた後(ステップS25)、jを1加算しステップS24に戻り、同様の処理を繰り返す。なお、ここで3次元形状Fij(C)は、生成した3次元形状Cに変換Fijを施したものである。
【0019】
ステップS24において、jがJ以上になったら(ステップS24:N)、jを0にリセットし(ステップS27)、iを1加算して(ステップS28)、ステップS23に戻る。
以上の処理を繰り返し、iがI以上になったら(ステップS23:N)、処理を終了する。
【0020】
以上の処理により、全てのi(0≦i<I)とj(0≦j<J)の組み合わせに対し、ビットPijに、生成した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次元形状に変換することが可能になる。
【0021】
(第4の実施例)
第4の実施例は、前記第1〜第3の実施例の何れかにおいて、入力となる2次元形状を、「ビットマップフォント」の文字データに特定したものである。
(文字例1)
本例では、入力する2次元形状として、ゴシック文字の“目”という文字を取り上げる。
図7は、本例で取り上げたゴシック体の“目”という文字を、15×15メッシュでデザインした2次元形状の図である。図8は、図7の2次元形状を2次元のテーブルで表した実際のデータである。ここでは、“0”が白に、“1”が黒に対応している。
【0022】
ただし、ここで、各ビットの色を白と黒の2色としたのは単に説明を簡単にするためであり、格別深い意味はない。その他の色を持っていた場合には、その色を割り当てればよく、本実施例に何の影響も与えない。
また、図8は、2次元のテーブルであるが、その実装上の形態も各種の形態があり得る。例えば、メモリの2次元配列でもよいし、メモリの1次元配列を2次元と解釈して用いることも可能である。メモリのバイトを構成する各ビットを、このテーブルの各要素に対応させてもよいし、ニブル,バイト,ワードなどの単位をテーブルの各要素に対応させてもよい。要するに、本実施例は、論理的な表現である図8を、物理的にどのように実装したものであってもよい。
【0023】
本実施例では、このように表現された2次元形状を、前述した第1〜第3実施例のいずれかの形状変換方法を適用して3次元化(立体化)する。
図9は、図7の2次元形状に第1の実施例を適用した場合の図であり、2次元形状の各ビットに対応させる3次元形状としてその断面が正方形であるような直方体をそのまま用いた場合の例である。図9は、図がいたずらに煩雑化するのを避けるためにに文字の四隅に割り当てられた直方体のみを明示しているが、元の“目”という文字を構成していた全てのビットに同様の直方体が割り当てられていることはいうまでもない。
【0024】
(文字例2)
本例では、入力する2次元形状として、ゴシック文字の“口”という文字を取り上げる。
図10は、本例で取り上げたゴシック体の“口”という文字を、8×8メッシュでデザインした2次元形状の図である。
図11は、図10の2次元形状“口”に対して、第3の実施例の形状変換方法を適用した場合に生成される3次元形状の図である。
図12は、各ビットに割り当てられる変換前の直方体を示す図である。
図13は、各ビットに割り当てられた図12の直方体に施す変換式を示す図である。
【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次元に拡張した形状を、容易に得ることが可能になる。
【0026】
(第5の実施例)
図14は、本発明を実現するためのコンピュータを構成する部分を模式的に描いた図である。同図において、1はCPU、2はプログラムメモリ、3はデータメモリ、4はディスプレイ、5はハードディスク、6はフレキシブルディスク、7はプリンタ、8はキーボード,スキャナ,マウスなどからなる入力装置である。ここで、上述のソフトウェア(プログラム)は、ハードディスク5,フレキシブルディスク6,CD−ROMといったいわゆる外部記憶装置に記憶され、実行の際にはメモリ上にロードされて使用される。CPU1はこれを逐次的に読み出し、実行する。
【0027】
前述した第1〜第4の実施例は、処理手順に特徴を有するものであり、コンピュータによって実行されるソフトウェア(プログラム)として記述し、フレキシブルディスクやCD−ROMなどの記録媒体に格納して流通させることが可能である。
【0028】
(第6の実施例)
図15は、第6の実施例に係る形状変換装置の構成を示す図である。前述の第1〜第5の実施例を実現するために本形状変換装置は、同図に示すように、入力装置8と、プログラムメモリ2と、データメモリ3と、データ格納装置(ハードディスクなど)50と、制御情報格納部9などから構成される。プログラムメモリ2は、2次元形状入力部21,制御情報入力部22,3次元形状変換部23,3次元形状出力部24,制御部25から構成される。
【0029】
2次元形状入力部21は、ディスク装置などに代表されるデータ格納装置50または入力装置8などから、2次元形状の輪郭線データを読み込む。
制御情報入力部22は、この2次元形状を移動する方向や移動量などの情報とともに、この2次元形状に加える変換を指定するための情報、すわなち、この2次元形状を構成する輪郭点それぞれの軌跡を指定するための情報を、制御情報格納部9から読み込む。
【0030】
3次元形状変換部23は、制御情報入力部21で読み込まれた情報を用いて、第1〜第4の実施例の何れかの方法を用いて、2次元形状入力部21から読み込んだ2次元形状を3次元形状に変換する。
3次元形状出力部24は、3次元形状変換部23で変換された3次元形状を、ディスク装置などに代表されるデータ格納装置50または出力装置などに出力する。
なお、制御部25は、以上の処理全体の制御を行なうものである。データメモリ3は、上記各部の間でやり取りされるデータを一時的に記憶するために用いられる。
【0031】
【発明の効果】
本発明によれば、与えられた2次元形状から、簡単に、3次元形状を生成する形状変換方法、該方法を実行させるプログラムを記録した記憶媒体、および形状変換装置を得ることが可能になる。
【図面の簡単な説明】
【図1】本発明の第1の実施例における形状変換方法の概略を示すフローチャートである。
【図2】第1の実施例の具体例を長方形の2次元図形を用いて説明する図である。
【図3】第2の実施例に特有の処理手順を示すフローチャートである。
【図4】第2の実施例を用いて、第1の実施例と同一の長方形から3次元形状を生成した例を示す。
【図5】第3の実施例に特有の処理手順を示すフローチャートである。
【図6】第3の実施例を用いて、第1の実施例と同一の長方形から3次元形状を生成した例を示す。
【図7】ゴシック体の“目”という文字を、15×15メッシュでデザインした2次元形状の図である。
【図8】図7の2次元形状を2次元のテーブルで表した実際のデータである。
【図9】図7の2次元形状に第1の実施例を適用した場合の図である。
【図10】ゴシック体の“口”という文字を、8×8メッシュでデザインした2次元形状の図である。
【図11】2次元形状“口”に対して、第3実施例の形状変換方法を適用した場合に生成される3次元形状の図である。
【図12】各ビットに割り当てられる変換前の直方体を示す図である。
【図13】図12の直方体に施す変換式を示す図である。
【図14】本発明を実現するためのコンピュータを構成する部分を模式的に描いた図である。
【図15】第6の実施例に係る形状変換装置の構成を示す図である。
【符号の説明】
1:CPU、2:プログラムメモリ、3:データメモリ、4:ディスプレイ、5:ディスク、6:フレキシブルディスク、7:プリンタ、8:入力装置、9:制御情報格納部、21:2次元形状入力部、22:制御情報入力部、23:3次元形状変換部、24:3次元形状出力部、25:制御部、50:データ格納装置
[0001]
BACKGROUND 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 in particular, a figure expressed as a two-dimensional shape (for example, character data such as a bitmap font) on an xy plane. Further, the present invention relates to a shape conversion method for processing information into a three-dimensional figure (three-dimensional shape) by adding information in the z-axis direction, a recording medium on which a program for executing the method is recorded, and a shape conversion device.
[0002]
[Prior art]
Conventionally, various methods have been proposed as methods for converting a two-dimensional shape into a three-dimensional shape, and this is particularly remarkable in the field of outline fonts. However, all that has been proposed in the past is to make a two-dimensional shape look like a three-dimensional shape. Specific examples of the proposal include those disclosed in, for example, “Japanese Patent Laid-Open No. 8-328534”. This is because a new contour line is added to the outline of a character to express "shadows" or "sides" as a trajectory when the character is shifted diagonally, so that the character is designed in a three-dimensional space. It looks like it was done. Even if these are expanded to create an actual three-dimensional figure, the outline remains as a curve. When this is processed as a three-dimensional shape, the amount of calculation is large and real-time processing is difficult.
As described above, a method for easily generating a three-dimensional shape from a two-dimensional shape has not been proposed yet.
[0003]
[Problems to be solved by the invention]
As described above, in the prior art, there is a design that looks like a three-dimensional shape by a locus in which the two-dimensional shape is obliquely shifted, but actually converting a two-dimensional shape into a three-dimensional shape is not possible. It was not done.
In view of this situation, the present invention records 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 a program for executing the method . It is an object of the present invention to provide a recording medium and a shape conversion device.
[0004]
[Means for Solving the Problems]
In order to achieve the above object, the shape conversion method of the present invention inputs a two-dimensional shape expressed as a bitmap on a plane, and associates the three-dimensional shape with each bit constituting the input two-dimensional shape. The two-dimensional shape is converted into a three-dimensional shape by 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. This is characterized in that when the shape is moved, the shape is converted.
[0005]
Further, by applying this shape conversion method to a bitmap of character data, a stereoscopic display of a bitmap font becomes possible. Further, it can be distributed by a recording medium such as a flexible disk on which a program for executing the shape conversion method is recorded.
[0006]
In addition, the shape conversion apparatus of the present invention includes a two-dimensional shape input unit (21 in FIG. 15) that receives a two-dimensional shape expressed as a bitmap, and a shape of a pixel corresponding to each bit constituting the two-dimensional shape. A control information input unit (22) for designating a movement method and conversion to be added to the shape, and a 3D shape by associating the 3D shape with each bit of the 2D shape input from the 2D shape input unit 3D shape converter (23) and 3D shape output unit (24) for outputting the converted 3D shape. The three-dimensional shape conversion unit performs shape conversion by the shape conversion method described above.
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
(First embodiment)
FIG. 1 is a flowchart showing an outline of a shape conversion method according to the first embodiment of the present invention, and shows a processing procedure for associating a three-dimensional shape with each bit of a two-dimensional shape that is a bitmap. 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]
As shown in the figure, first, 0 is inserted into i and j (step S1). Next, it is determined whether i <I (step S2). If i <I (step S2: Y), it is then determined whether j <J (step S3). If j is less than J (step S3: Y), a three-dimensional shape is made to correspond to Pij (step S4). That is, for all combinations of i (0 ≦ i <I) and j (0 ≦ j <J), an appropriate 3 corresponding to the bit Pij, for example, a black shape corresponding to a black bit and a transparent shape corresponding to a white bit. Assign a dimensional shape. Next, after adding 1 to j (step S5), the process returns to step S3. When j is greater than or equal to 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 processes are repeated, and when i becomes I or more (step S2: N), the process of associating the three-dimensional shape with Pij 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]
FIG. 2 is a diagram illustrating a specific example of the first embodiment using a rectangular two-dimensional figure.
First, FIG. 2A shows the original two-dimensional figure. Here, a rectangle composed of 20 bits of (5 × 4) is used as an example, but this is just a simple figure selected for ease of explanation. Whether it is composed of a curve such as a circle, a conic curve, a Bezier curve, or a shape with a hole such as a donut shape, the essential content does not change. The following description does not depend on the shape itself.
[0010]
In addition, here, each bit is represented by a square and is drawn with a gap between the bits, but these are merely measures for facilitating the explanation. There is no need to limit the shape of the bit, and whether or not there is a gap between them does not affect the present invention.
[0011]
FIG. 2B shows an example in which a rectangular parallelepiped is associated with each bit represented by a square in FIG. 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 constituting the original rectangle appear to be packed without gaps. This is to avoid the figure from becoming unnecessarily complicated. The claim of the present invention is to associate a three-dimensional shape with each bit of the original two-dimensional shape, and a gap may be provided between the shapes or they may be overlapped.
[0012]
FIG. 2C shows an example in which each bit arranged in a (5 × 4) rectangle is represented by a circle, and a cylinder is associated with each circle.
However, these examples are provided for the sake of simplicity. The three-dimensional shape associated with each bit is not necessarily linear, and there is no problem even if it is along a curve.
According to the present 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]
(Second embodiment)
In the second embodiment, a three-dimensional shape (bent cuboid, bent cylinder) corresponding to each bit constituting the two-dimensional shape is first generated.
FIG. 3 is a flowchart showing a processing procedure peculiar to the second embodiment. Also in this embodiment, it is assumed that a two-dimensional shape that is a bitmap on a plane is composed of vertical I bits and horizontal J bits.
[0014]
As shown in the figure, first, as a first step, a three-dimensional shape C corresponding to each bit constituting the two-dimensional shape is generated (step S11). Next, 0 is inserted into i and j (step S12). i and I are compared (step S13). If i is less than I (step S13: Y), then j and J are compared (step S14). If j is less than J (step S14: Y), after assigning, to Pij, for example, a three-dimensional shape C corresponding to a black shape corresponding to a black bit and a transparent shape corresponding to a white bit (step S15), j is incremented by 1, and the processing returns to step S14, and the same processing is performed. repeat.
[0015]
In step S14, when j becomes J or more (step S14: N), j is reset to 0 (step S17), i is incremented by 1 (step S18), and the process returns to step S13.
The above process is repeated, and when i becomes I or more (step S13: N), the process is terminated.
[0016]
Through the above processing, the generated three-dimensional shape C is assigned to the bit Pij for all combinations of i (0 ≦ i <I) and j (0 ≦ j <J), so that the whole is converted into a three-dimensional shape. Can be converted.
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. 4A shows the original rectangle, FIG. 4B shows an example in which a “curved rectangular parallelepiped” is assigned to each bit of the rectangle constituting the two-dimensional shape, and FIG. 4C shows the two-dimensional shape. Is an example in which a “curved cylinder” is assigned to each bit of the rectangle that constitutes. That is, FIG. 4B shows an example in which the three-dimensional shape C generated in step S11 of FIG. 3 is “curved rectangular parallelepiped”, and FIG. 4C shows an example in the case of “curved cylinder”. .
According to the present embodiment, it is possible to convert a two-dimensional shape into a three-dimensional shape having a bent shape by a simple process.
[0017]
(Third embodiment)
In the third embodiment, a three-dimensional shape (twisted rectangular parallelepiped, distorted cylinder) corresponding to each bit constituting the two-dimensional shape is first generated. FIG. 5 is a flowchart showing a processing procedure peculiar to the third embodiment. Also in this embodiment, it is assumed that a two-dimensional shape that is a bitmap on a plane is composed of vertical I bits and horizontal J bits.
[0018]
As shown in the figure, first, as a first step, a three-dimensional shape C corresponding to each bit constituting the two-dimensional shape is generated (step S21). Next, 0 is inserted into i and j (step S22). i and I are compared (step S23), and if i is less than I (step S23: Y), then j and J are compared (step S24), and if j is less than J (step S24: Y), Pij is associated with, for example, a black shape corresponding to a black bit and a three-dimensional shape Fij (C) corresponding to a transparent shape corresponding to a white bit (step S25), j is incremented by 1, and the process returns to step S24. Similar processing is repeated. Here, the three-dimensional shape Fij (C) is obtained by performing transformation Fij on the generated three-dimensional shape C.
[0019]
In step S24, when j becomes J or more (step S24: N), j is reset to 0 (step S27), i is incremented by 1 (step S28), and the process returns to step S23.
The above process is repeated, and when i becomes I or more (step S23: N), the process is terminated.
[0020]
Through the above processing, Fij (C) is obtained by performing transformation Fij on the generated three-dimensional shape C on the bit Pij for all combinations of i (0 ≦ i <I) and j (0 ≦ j <J). 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. 6A shows the original rectangle, FIG. 6B shows an example in which “twisted rectangular parallelepiped” is assigned to each bit of the rectangle constituting the two-dimensional shape, and FIG. 6C shows the two-dimensional shape. An example in which a “distorted cylinder” is assigned to each bit of a rectangle that constitutes “” is shown. That is, FIG. 6B shows an example in which the three-dimensional shape C generated in step S21 in FIG. 5 is “twisted rectangular parallelepiped”, and FIG. 6C shows an example in the case of “distorted cylinder”. .
According to this 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]
(Fourth embodiment)
In the fourth embodiment, the input two-dimensional shape is specified as character data of “bitmap font” in any of the first to third embodiments.
(Character example 1)
In this example, a Gothic character “eye” is taken up as a two-dimensional shape to be input.
FIG. 7 is a diagram of a two-dimensional shape in which the Gothic “eye” character taken up in this example is designed with a 15 × 15 mesh. FIG. 8 shows actual data representing the two-dimensional shape of FIG. 7 in a two-dimensional table. Here, “0” corresponds to white and “1” corresponds to black.
[0022]
However, the reason that the color of each bit is set to two colors of white and black is merely for the sake of simplicity, and has no special meaning. In the case of having other colors, those colors may be assigned, and this embodiment is not affected.
Further, FIG. 8 shows a two-dimensional table, but there may be various forms of mounting. For example, a two-dimensional array of memories may be used, or a one-dimensional array of memories may be interpreted as two-dimensional and used. Each bit constituting the memory byte may correspond to each element of this table, or a unit such as nibble, byte, word, or the like may correspond to each element of the table. In short, the present embodiment may be a physical implementation of FIG. 8, which is a logical expression.
[0023]
In the present embodiment, the two-dimensional shape expressed in this way is three-dimensionalized (three-dimensionalized) by applying any of the shape conversion methods of the first to third embodiments described above.
FIG. 9 is a diagram when the first embodiment is applied to the two-dimensional shape of FIG. 7, and a rectangular parallelepiped having a square cross section is used as it is as a three-dimensional shape corresponding to each bit of the two-dimensional shape. This is an example of the case. FIG. 9 clearly shows only the rectangular parallelepipeds assigned to the four corners of the character in order to avoid making the figure unnecessarily complicated, but it is similar to all the bits constituting the original “eye” character. Needless to say, a rectangular parallelepiped is assigned.
[0024]
(Character example 2)
In this example, a Gothic character “mouth” is taken up 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 illustrating a rectangular parallelepiped before conversion assigned to each bit.
FIG. 13 is a diagram showing a conversion formula applied to the rectangular parallelepiped of FIG. 12 assigned to each bit.
[0025]
In FIG. 11, the bit including the point A is used as a reference (base points in the x and y directions; that is, the coordinate value (0, 0)), and the i-th bit on the right and the j-th bit on the lower side are the rectangular parallelepipeds shown in FIG. Is assigned a three-dimensional shape subjected to the following transformation. 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. The coordinate transformation shown in FIG. As a result, when viewed as a whole, the original two-dimensional shape “mouth” is moved 45 degrees clockwise around the origin A while moving in the z direction by a distance 5 and finally doubled in size. A three-dimensional shape represented as the locus of each point when the transformation of enlarging 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 the two-dimensional character data of the bitmap font.
[0026]
(Fifth embodiment)
FIG. 14 is a diagram schematically showing 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, 4 is a display, 5 is a hard disk, 6 is a flexible disk, 7 is a printer, 8 is an input device comprising a keyboard, scanner, mouse and the like. Here, the above-mentioned software (program) is stored in a so-called external storage device such as a hard disk 5, a flexible disk 6, or a CD-ROM, and is loaded onto the memory and used for execution. The CPU 1 sequentially reads and executes it.
[0027]
The first to fourth embodiments described above are characterized by processing procedures, described as software (programs) executed by a computer, and stored in a recording medium such as a flexible disk or a CD-ROM for distribution. It is possible to make it.
[0028]
(Sixth embodiment)
FIG. 15 is a diagram illustrating a configuration of a shape conversion apparatus according to the sixth embodiment. In order to realize the first to fifth embodiments described above, the present shape conversion apparatus includes an input device 8, a program memory 2, a data memory 3, and a data storage device (such as a hard disk) as shown in FIG. 50 and 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]
The two-dimensional shape input unit 21 reads contour data of a two-dimensional shape from the data storage device 50 typified by a disk device or the input device 8.
The control information input unit 22 includes information such as the direction and amount of movement of the two-dimensional shape and information for designating conversion to be added to the two-dimensional shape, that is, contour points constituting the two-dimensional shape. Information for designating each locus is read from the control information storage unit 9.
[0030]
The three-dimensional shape conversion unit 23 uses the information read by the control information input unit 21 to read the two-dimensional shape read from the two-dimensional shape input unit 21 using any one of the first to fourth embodiments. The shape is converted into a three-dimensional shape.
The three-dimensional shape output unit 24 outputs the three-dimensional shape converted by the three-dimensional shape conversion unit 23 to a data storage device 50 represented by a disk device or the like or an output device.
The control unit 25 controls the entire process described above. The data memory 3 is used for temporarily storing data exchanged between the above units.
[0031]
【The invention's effect】
According to the present invention, it is possible to easily obtain a shape conversion method for generating a three-dimensional shape from a given two-dimensional shape, a storage medium storing a program for executing the method, and a shape conversion device. .
[Brief description of the drawings]
FIG. 1 is a flowchart showing an outline of a shape conversion method according to a first embodiment of the present invention.
FIG. 2 is a diagram illustrating a specific example of the first embodiment using a rectangular two-dimensional figure.
FIG. 3 is a flowchart showing a processing procedure peculiar to the second embodiment.
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.
FIG. 5 is a flowchart showing a processing procedure peculiar to the third embodiment.
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. 7 is a diagram of a two-dimensional shape in which a Gothic character “eye” is designed with a 15 × 15 mesh.
8 is actual data representing the two-dimensional shape of FIG. 7 in a two-dimensional table.
FIG. 9 is a diagram when the first embodiment is applied to the two-dimensional shape of FIG. 7;
FIG. 10 is a diagram of a two-dimensional shape in which a Gothic character “mouth” 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 a two-dimensional shape “mouth”.
FIG. 12 is a diagram illustrating a rectangular parallelepiped before conversion assigned to each bit;
13 is a diagram showing a conversion formula applied to the rectangular parallelepiped in FIG. 12;
FIG. 14 is a diagram schematically showing a part constituting a computer for realizing the present invention.
FIG. 15 is a diagram showing a configuration of a shape conversion apparatus according to a sixth embodiment.
[Explanation of symbols]
1: CPU, 2: program memory, 3: data memory, 4: display, 5: disk, 6: flexible disk, 7: printer, 8: input device, 9: control information storage unit, 21: two-dimensional shape input unit , 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 (5)

電子計算機を用いてxy平面上の2次元形状からz軸方向の情報を有する3次元形状に変換する形状変換方法において、ビットマップとして表現された2次元形状が2次元形状入力部から入力される手順と、前記2次元形状の各ビットに対応するxy平面上の任意のピクセル形状から、xy方向の位置変化を含めたz軸方向の移動軌跡を伴う3次元形状への変換情報が制御情報入力部から入力される手順と、入力されたビットマップとして表現された前記2次元形状の各ビットに、前記3次元形状への変換情報を3次元形状変換部で対応させる手順を、電子計算機に実行させることを特徴とする2次元形状を3次元形状に変換する形状変換方法。  In a shape conversion method for converting from a two-dimensional shape on an xy plane to a three-dimensional shape having information in the z-axis direction using an electronic computer, a two-dimensional shape expressed as a bitmap is input from a two-dimensional shape input unit. Procedure and input of control information from any pixel shape on the xy plane corresponding to each bit of the two-dimensional shape to a three-dimensional shape with a movement locus in the z-axis direction including a change in position in the xy direction The computer inputs the procedure inputted from the unit and the procedure for making the conversion information to the three-dimensional shape correspond to each bit of the two-dimensional shape expressed as the input bitmap by the three-dimensional shape transformation unit. A shape conversion method for converting a two-dimensional shape into a three-dimensional shape. 請求項1記載の形状変換方法において、前記3次元形状への変換情報を入力する手順は、xy平面上の任意のピクセル形状から、xy方向の形状変化と、xy方向の位置変化を含めたz軸方向の移動軌跡を伴う3次元形状への変換情報を入力する手順であることを特徴とする電子計算機を用いた形状変換方法。  The shape conversion method according to claim 1, wherein the step of inputting the conversion information into the three-dimensional shape is a z including a shape change in the xy direction and a position change in the xy direction from an arbitrary pixel shape on the xy plane. A shape conversion method using an electronic computer, which is a procedure for inputting conversion information into a three-dimensional shape accompanied by an axial movement trajectory. 請求項1〜2のいずれか1項に記載の形状変換方法において、前記2次元形状はビットマップフォントの文字データであることを特徴とする形状変換方法In shape conversion method according to any one of claims 1-2, shape conversion method, wherein the two-dimensional shape is a character data of a bit map font. 請求項1〜3のいずれか1項に記載の形状変換方法を実行させるプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。A computer-readable recording medium having recorded thereon a program for executing the shape conversion method according to claim 1. 平面上のビットマップとして表現された2次元形状を受け取る2次元形状入力部と、該2次元形状を構成する各ビットに対応するピクセルの形状の移動の方法やその形状に加える変換などを指定する制御情報入力部と、前記2次元形状入力部から入力された2次元形状の各ビットに3次元形状を対応させることによって3次元形状を生成する3次元形状変換部と、変換された3次元形状を出力する3次元形状出力部を有し、請求項1〜3のいずれか1項に記載の形状変換方法によって、2次元形状を3次元形状に変換することを特徴とする形状変換装置。  Designates a two-dimensional shape input unit that receives a two-dimensional shape expressed as a bitmap on a plane, a method of moving the shape of a pixel corresponding to each bit constituting the two-dimensional shape, and a conversion to be added to the shape. A control information input unit, a 3D shape conversion unit that generates a 3D shape by associating the 3D shape with each bit of the 2D shape input from the 2D shape input unit, and the converted 3D shape The shape conversion apparatus characterized by having a three-dimensional shape output part which outputs 2D shape to a three-dimensional shape by the shape conversion method of any one of Claims 1-3.
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 JPH1153579A (en) 1999-02-26
JP3807571B2 true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100821026B1 (en) 2000-12-05 2008-04-08 마쯔시다덴기산교 가부시키가이샤 3-d character data generating device and a 3-d graphics data generating device
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
JPH1153579A (en) 1999-02-26

Similar Documents

Publication Publication Date Title
EP0950988B1 (en) Three-Dimensional image generating apparatus
JPS61249175A (en) Graphic processor
JP3586991B2 (en) Texture data reading device and rendering device
EP1031946B1 (en) Recording medium,Image processing method and unit with integrated shaping model data
JP3807571B2 (en) Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device
US5519412A (en) Pattern processing method
JP3002972B2 (en) 3D image processing device
JP2911464B2 (en) Image processing method
JP2774662B2 (en) Character processor
JP3002971B2 (en) 3D model creation device
KR900002631B1 (en) Image data processing method and apparatus
JP2000155851A (en) Texture mapping device and rendering device equipped with the same and information processor
JP4408152B2 (en) Texture mapping method and texture mapping apparatus
JP3129717B2 (en) Image processing apparatus and image processing method
JP3553249B2 (en) Image generating apparatus and image generating method
JP3004993B2 (en) Image processing device
JPH05224653A (en) Character output device
JPH1153578A (en) Shape conversion method, storage medium recording processing procedure of the same and shape conversion device
JPS62157089A (en) Generation of vector character
JPH02260080A (en) Character graphic generator
JP2001209813A (en) Method and device for generating two-dimensional pattern
JPS60245085A (en) Solid painting process system
JPS63218993A (en) Character/graphics expander
JPS63314591A (en) Smearing image generation system
JPH0636049A (en) Highlight display method for figure and graphics 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