JP2002260008A - Three-dimensional character data forming device and three-dimensional diagram data forming device - Google Patents

Three-dimensional character data forming device and three-dimensional diagram data forming device

Info

Publication number
JP2002260008A
JP2002260008A JP2001371077A JP2001371077A JP2002260008A JP 2002260008 A JP2002260008 A JP 2002260008A JP 2001371077 A JP2001371077 A JP 2001371077A JP 2001371077 A JP2001371077 A JP 2001371077A JP 2002260008 A JP2002260008 A JP 2002260008A
Authority
JP
Japan
Prior art keywords
character
data
outer periphery
dimensional
hole
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
JP2001371077A
Other languages
Japanese (ja)
Other versions
JP2002260008A5 (en
JP4028979B2 (en
Inventor
Yoshiyuki Mochizuki
義幸 望月
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001371077A priority Critical patent/JP4028979B2/en
Publication of JP2002260008A publication Critical patent/JP2002260008A/en
Publication of JP2002260008A5 publication Critical patent/JP2002260008A5/ja
Application granted granted Critical
Publication of JP4028979B2 publication Critical patent/JP4028979B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically form a high-grade three-dimensional diagram shape from contour line data on two-dimensional character and diagram. SOLUTION: A character shape structure analyzing part 4 determines whether or not the outer periphery of a character hole is included in the outer periphery of a character from two-dimensional outline data inputted via a character outer peripheral data acquiring part 2, and stored in a character outer peripheral data storage part 3. When determined that the answer is affirmative, a character shape upper-under surface projecting polygon dividing part 5 divides an area between both outer peripheral data into projecting polygons. A character shape side surface forming part 6 forms a side surface of a three-dimensional character by moving divided respective components in the z axis direction, and forms three-dimensional shape data on the character.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、2次元平面上の輪
郭線で構成される文字等の任意の2次元形状を表すデー
タから、3次元形状を表すデータを生成するための3次
元形状データ生成装置に関し、特に文字や図形について
の3次元文字データ生成装置及び3次元図形データ生成
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to three-dimensional shape data for generating data representing a three-dimensional shape from data representing an arbitrary two-dimensional shape such as a character constituted by a contour on a two-dimensional plane. More particularly, the present invention relates to a three-dimensional character data generator and a three-dimensional graphic data generator for characters and graphics.

【0002】[0002]

【従来の技術】従来の3次元文字データ生成装置として
は、例えば第1の従来例として、特開昭63−1033
80号公報に開示された「3次元文字の作成装置」があ
る。この従来例について、図27を参照しながら説明す
る。2次元文字は2次元文字入力装置140により入力
され、xy平面上の2次元文字が記憶装置120内に定
義される。次に、表示装置110の表示を見ながら行わ
れる、操作者のz方向修正装置130の操作によって、
3次元文字の形状設計が進められる。この際、xz投影
面112またはyz投影面113上で、各点のz座標値
の変更が行なわれ、入力された2次元文字は3次元文字
に修整される。修整中の3次元文字の立体像は立体像投
影面114で確認することが可能である。次に、領域背
景入力装置150から入力された絵柄の画像データに基
づいて、記憶装置120内の3次元文字の表面に絵柄を
付した状態の画像データが生成され、これが立体像投影
面114に表示される。但し、この発明における3次元
文字形状の生成は、xz投影面112またはyz投影面
113を利用して操作者が調整を行うものであり、自動
生成ではない。
2. Description of the Related Art As a conventional three-dimensional character data generating apparatus, for example, a first conventional example is disclosed in Japanese Patent Laid-Open No. 63-1033.
There is a "three-dimensional character creation device" disclosed in Japanese Patent Publication No. 80. This conventional example will be described with reference to FIG. The two-dimensional character is input by the two-dimensional character input device 140, and the two-dimensional character on the xy plane is defined in the storage device 120. Next, the operator operates the z-direction correcting device 130 while watching the display on the display device 110,
The shape design of the three-dimensional character is advanced. At this time, the z-coordinate value of each point is changed on the xz projection plane 112 or the yz projection plane 113, and the input two-dimensional character is modified into a three-dimensional character. The three-dimensional image of the three-dimensional character being modified can be confirmed on the three-dimensional image projection surface 114. Next, based on the image data of the pattern input from the area background input device 150, image data in a state where a pattern is attached to the surface of the three-dimensional character in the storage device 120 is generated. Is displayed. However, the generation of the three-dimensional character shape in the present invention is performed by the operator using the xz projection plane 112 or the yz projection plane 113, and is not automatic generation.

【0003】また、3次元文字形状の自動生成を目指し
たものとしては、例えば第2の従来例として、特開平1
1−53578号公報に開示された「形状変換方法、該
方法の処理手順を記録した記録媒体、及び形状変換装
置」がある。これは、2次元平面上での文字形状を表す
アウトラインデータから文字の側面形状のみを生成する
ものである。従って、この従来例は、3次元形状の一部
を生成するだけであり、文字の完全な3次元形状が得ら
れるわけではない。
In order to automatically generate a three-dimensional character shape, Japanese Patent Laid-Open Publication No.
There is a “shape conversion method, a recording medium recording the processing procedure of the method, and a shape conversion device” disclosed in Japanese Patent Application Laid-Open No. 1-53578. This is to generate only a side shape of a character from outline data representing a character shape on a two-dimensional plane. Therefore, in this conventional example, only a part of the three-dimensional shape is generated, and a complete three-dimensional shape of the character cannot be obtained.

【0004】また、第3の従来例としては、特開平11
−53579号公報に開示された「形状変換方法および
その変換手順を記録した記録媒体、ならびに形状変換装
置」がある。これは、与えられた2次元のビットマップ
フォント文字を入力し、このビットマップフォント文字
を構成する各ビットデータを3次元形状に対応させ、そ
れらを合成することで文字全体としての3次元形状を生
成するものである。しかし、ビットマップフォントは、
輪郭においてジャギーが発生しやすく、このジャギーを
目立たなくするためには、文字を構成するビット数の多
い精緻なビットマップフォントを用いる必要がある。
A third conventional example is disclosed in Japanese Unexamined Patent Application Publication No.
JP-A-53579 discloses “a shape conversion method and a recording medium on which the conversion procedure is recorded, and a shape conversion device”. That is, a given two-dimensional bitmap font character is input, each bit data constituting the bitmap font character is made to correspond to a three-dimensional shape, and the three-dimensional shape as a whole character is synthesized by combining them. To generate. However, bitmap fonts
Jaggies are likely to occur in the outline, and in order to make the jaggies inconspicuous, it is necessary to use a sophisticated bitmap font having a large number of bits constituting a character.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記の
第1の従来例では、操作者が手動で3次元文字形状の生
成を行うため、操作者の処理負担が大きく、また処理時
間も多大に掛かり実時間での生成は不可能である。上記
の第2の従来例は、3次元文字形状の自動での生成を目
指したものではあるが、生成されるデータは側面のデー
タだけであり、特に重要な文字そのものの形状を表す表
面、裏面がない不完全なもので、実用上役に立たないデ
ータと言わざるを得ない。上記の第3の従来例では、と
りあえず3次元文字形状は生成できるものの、ビットマ
ップデータから生成するため、文字形状の輪郭部分にジ
ャギーが発生する。従って、これを利用してCG等で描
画した場合には、更に描画時のジャギーが加わり、文字
の品位は非常に低いものとなる。また、全てのビットマ
ップ文字を3次元形状に対応させるため、ある程度の品
位の3次元形状を実現しようとすると、非常に多くのデ
ータ量が必要となる。
However, in the first conventional example, since the operator manually generates a three-dimensional character shape, the processing load on the operator is large, and the processing time is extremely long. Real-time generation is not possible. Although the above-mentioned second conventional example aims at automatic generation of a three-dimensional character shape, the data to be generated is only the data of the side surface. There is no incomplete data, and it must be said that it is useless data for practical use. In the above third conventional example, although a three-dimensional character shape can be generated for the time being, it is generated from bitmap data, so that jaggies occur in the outline of the character shape. Therefore, when drawing is performed by CG or the like using this, jaggies at the time of drawing are further added, and the character quality is extremely low. Further, in order to make all bitmap characters correspond to the three-dimensional shape, an extremely large amount of data is required to realize a certain-quality three-dimensional shape.

【0006】本発明は、上記問題に鑑みてなされたもの
であり、容易に高品位の3次元形状データの生成が可能
な装置を提供することを目的とする。すなわち、操作者
の手を煩わせることなく、与えられた2次元の文字や図
形のアウトラインデータから、3次元形状を表すデータ
を自動かつ実時間で生成し、文字や図形の品位もビット
マップフォントをベースに生成したものに比べ、はるか
に高品位な3次元形状のデータ生成が可能な装置を提供
する。また、3次元化した文字や図形の表面に様々なテ
クスチャ模様を施したり、文字形状の台座の据え付けや
刻印板化することを可能とすることで、様々な3次元的
文字表現に対応し得る3次元形状データ装置を提供す
る。
The present invention has been made in view of the above problems, and has as its object to provide an apparatus capable of easily generating high-quality three-dimensional shape data. That is, data representing a three-dimensional shape is automatically and real-time generated from outline data of a given two-dimensional character or figure without trouble of an operator, and the quality of the character or figure is also represented by a bitmap font. The present invention provides an apparatus capable of generating data of a three-dimensional shape with much higher quality than that generated based on the. In addition, various texture patterns can be applied to the surface of three-dimensional characters and figures, and a character-shaped pedestal can be installed or stamped, so that various three-dimensional character expressions can be supported. A three-dimensional shape data device is provided.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
に、本発明に係る3次元文字データ生成装置は、2次元
文字データから3次元文字データを生成する装置であっ
て、2次元文字データを用いて、文字を構成する文字部
品の外周及び当該文字に形成されている穴の外周を決定
する外周決定手段と、前記外周決定手段により決定され
た穴の外周と包含関係を有し、且つ、当該穴の外周から
直近の位置にある文字部品の外周を特定する包含関係特
定手段と、前記包含関係特定手段により特定された文字
部品の外周の内部領域から、その文字部品と包含関係に
ある穴の外周の内部領域を除いた領域をポリゴン分割
し、特定されない文字部品の外周については、その内部
領域をポリゴン分割する分割手段と、前記分割手段によ
りポリゴン分割された領域に係る文字部品の複製を移動
し、前記文字部品と前記複製された文字部品との頂点か
ら側面を生成する側面生成手段とを備える。
According to another aspect of the present invention, there is provided a three-dimensional character data generating apparatus for generating three-dimensional character data from two-dimensional character data. Using, the outer circumference determining means for determining the outer circumference of the character parts constituting the character and the outer circumference of the hole formed in the character, and has an inclusion relationship with the outer circumference of the hole determined by the outer circumference determining means, and A containment relation specifying means for specifying the outer periphery of the character component located at a position closest to the outer periphery of the hole; and an inclusive relation with the character part based on the internal region of the outer periphery of the character part specified by the inclusion relation specify means. A region excluding the inner region around the hole is divided into polygons, and the outer periphery of an unspecified character part is divided into polygons by the above-mentioned dividing region. Move the replication of character parts according to region, and a side surface generating means for generating a side from the apex of the character component and the cloning character parts.

【0008】具体的には、文字形状構造解析部が、文字
外周データ取得部を介して入力された文字外周データ記
憶部に記憶されている2次元のアウトラインデータか
ら、文字穴の外周が文字の外周にの包含されるか否かに
ついて判定する。包含されると判定された場合に、文字
形状上下面凸ポリゴン分割部が、両外周データの間の領
域を凸ポリゴンに分割する。さらに、文字形状側面生成
部6が、分割された各構成要素をz軸方向に移動して3
次元文字の側面を形成し、文字の3次元形状データを生
成する。
More specifically, the character shape structure analysis unit determines the outer periphery of the character hole from the two-dimensional outline data stored in the character outer periphery data storage unit input via the character outer periphery data acquisition unit. It is determined whether or not the outer periphery is included. If it is determined that the data is included, the character-shaped upper / lower surface convex polygon division unit divides the area between both outer peripheral data into convex polygons. Further, the character-shaped side surface generation unit 6 moves each of the divided components in the z-axis direction to
The side of the three-dimensional character is formed, and three-dimensional shape data of the character is generated.

【0009】さらに、上記課題を解決するために、本発
明に係る3次元図形データ生成装置は、2次元図形デー
タから3次元図形データを生成する装置であって、2次
元図形データを用いて、図形を構成する図形部品の外周
及び当該図形に形成されている穴の外周を決定する外周
決定手段と、前記外周決定手段により決定された穴の外
周と包含関係を有し、且つ、当該穴の外周から直近の位
置にある図形部品の外周を特定する包含関係特定手段
と、前記包含関係特定手段により特定された図形部品の
外周の内部領域から、その図形部品と包含関係にある穴
の外周の内部領域を除いた領域をポリゴン分割し、特定
されない図形部品の外周については、その内部領域をポ
リゴン分割する分割手段と、前記分割手段によりポリゴ
ン分割された領域に係る図形部品の複製を移動し、前記
図形部品と前記複製された図形部品との頂点から側面を
生成する側面生成手段とを備える。
Further, in order to solve the above problems, a three-dimensional graphic data generating apparatus according to the present invention is an apparatus for generating three-dimensional graphic data from two-dimensional graphic data. An outer circumference determining means for determining an outer circumference of a graphic component constituting the graphic and an outer circumference of a hole formed in the graphic; and an inclusive relationship with the outer circumference of the hole determined by the outer circumference determining means, and An inclusive relation specifying means for specifying the outer periphery of the graphic component located at a position closest to the outer periphery, and an inner peripheral area of the graphic component specified by the inclusive relation specifying means, and The area excluding the internal area is divided into polygons, and the outer periphery of the unspecified graphic part is divided into polygons by dividing the internal area into polygons. That moves a copy of the graphic components, and a side surface generating means for generating a side from the apex of the graphic component and the duplicated figure component.

【0010】なお、上記目的を達成するために、本発明
は、上記3次元文字データ生成装置及び3次元図形デー
タ生成装置の特徴的な構成手段をステップとする3次元
文字データ生成方法及び3次元図形データ生成方法とし
て実現したり、それらのステップを含むプログラムとし
て実現することもできる。そして、そのプログラムは、
3次元文字データ生成装置や3次元図形データ生成装置
が備えるROM等に格納しておくだけでなく、CD−R
OM等の記録媒体や通信ネットワーク等の伝送媒体を介
して流通させることもできる。
[0010] In order to achieve the above object, the present invention provides a three-dimensional character data generation method and a three-dimensional character data generation method, each of which comprises the characteristic constituent means of the three-dimensional character data generation device and the three-dimensional graphic data generation device. It can be realized as a graphic data generation method, or as a program including those steps. And the program is
Not only is it stored in a ROM or the like provided in the three-dimensional character data generation device or the three-dimensional graphic data generation device, but also in a CD-R
It can also be distributed via a recording medium such as an OM or a transmission medium such as a communication network.

【0011】[0011]

【発明の実施の形態】以下、本発明に係る実施の形態1
〜6について、図面を用いながら詳細に説明する。 (実施の形態1)図1は、実施の形態1における3次元
文字データ生成装置101の機能構成を示すブロック図
である。3次元文字データ生成装置101は、文字コー
ド入力部1、文字外周データ取得部2、文字外周データ
記憶部3、文字形状構造解析部4、文字形状上下面凸ポ
リゴン分割部5、文字形状側面生成部6及び文字形状デ
ータ出力部7から構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment according to the present invention will be described.
6 will be described in detail with reference to the drawings. (Embodiment 1) FIG. 1 is a block diagram showing a functional configuration of a three-dimensional character data generation apparatus 101 according to Embodiment 1. The three-dimensional character data generation device 101 includes a character code input unit 1, a character outer periphery data acquisition unit 2, a character outer periphery data storage unit 3, a character shape structure analyzer 4, a character shape upper / lower surface convex polygon division unit 5, and a character shape side surface generator. It comprises a unit 6 and a character shape data output unit 7.

【0012】文字コード入力部1は、いわゆるキーボー
ドやマウスなどの入力装置で、これらの入力信号を変換
し、ASCIIコードやJISコードなどの文字コー
ド、図形コードを生成する。文字コード入力部1で生成
された文字コードは、文字外周データ取得部2に出力さ
れる。
The character code input unit 1 is an input device such as a so-called keyboard and mouse, and converts these input signals to generate character codes such as ASCII codes and JIS codes and graphic codes. The character code generated by the character code input unit 1 is output to the character periphery data acquisition unit 2.

【0013】文字外周データ取得部2は、文字コード入
力部1から入力した文字コードに対応する文字の、いわ
ゆる外郭線データ(以下、「アウトラインデータ」とも
いう。)を、文字外周データ記憶部3から取得する。
The character outer periphery data acquiring unit 2 stores so-called outline data (hereinafter, also referred to as “outline data”) of a character corresponding to the character code input from the character code input unit 1, and stores the character outer periphery data. To get from.

【0014】文字外周データ記憶部3には、予め、文字
のアウトラインデータが、文字コードに対応して記憶さ
れている。この場合、文字としては同一であってもフォ
ントの種類が異なっている場合は、アウトラインデータ
も異なったものとなる。従って、文字外周データ記憶部
3には、アウトラインデータが、文字コード及びフォン
トの種類に対応付けられて記憶されている。文字外周デ
ータ取得部2において取得されたアウトラインデータ
は、文字形状構造解析部4に出力される。
The character outline data storage section 3 stores character outline data in advance corresponding to character codes. In this case, if the fonts are different even if the characters are the same, the outline data will also be different. Therefore, outline data is stored in the character periphery data storage unit 3 in association with the character code and the font type. The outline data acquired by the character periphery data acquiring unit 2 is output to the character shape structure analyzing unit 4.

【0015】なお、一般にアウトラインデータは、点の
総個数、曲線のタイプの識別子、開始点の座標データ
(アウトラインデータにおける座標は、2次元xy座標
とする。以下同じ。)、点間の接続方法(例えば、直線
による接続方法や曲線による接続方法がある。)を表す
識別子、文字の外周を構成する点列(または制御点列)
の座標データ(以下、「点列座標データ」という。)な
どの1セットのデータが、1文字を構成する後述の文字
部品の数だけ集まって構成されている。
In general, outline data includes a total number of points, an identifier of a curve type, coordinate data of a start point (coordinates in the outline data are two-dimensional xy coordinates, the same applies hereinafter), and a connection method between points. (For example, there are a connection method using a straight line and a connection method using a curve.)
(Hereinafter, referred to as “point sequence coordinate data”), one set of data is constituted by the number of character parts, which will be described later, forming one character.

【0016】通常、点間の接続は、直線または2次元の
B−Spline曲線を用いることによって行われ、そ
れら点間の接続をさらに接続することによって連続曲線
が生成される。そのため、直線による接続方法において
は、点列の位置データは端点を表し、曲線による接続方
法においては、点列の位置データは曲線を生成する際の
制御点を表す。また、点列の開始点と終点とを結ぶこと
で閉曲線を構成することができ、この閉曲線が文字の外
周を表す曲線となる。なお、本実施の形態では、文字の
アウトラインデータの中の点列座標データはxy座標の
値を示すものとし、文字を3次元で表す場合の高さ方向
の座標軸はz軸とする。
Usually, the connection between the points is made by using a straight or two-dimensional B-Spline curve, and a continuous curve is generated by further connecting the connections between the points. Therefore, in the connection method using a straight line, the position data of the point sequence represents an end point, and in the connection method using a curve, the position data of the point sequence represents a control point when a curve is generated. Also, a closed curve can be formed by connecting the start point and the end point of the point sequence, and this closed curve is a curve representing the outer periphery of the character. In the present embodiment, the point sequence coordinate data in the character outline data indicates the value of the xy coordinate, and the coordinate axis in the height direction when the character is represented three-dimensionally is the z-axis.

【0017】さらに、文字によっては穴のあるトーラス
構造を持つ場合があるため、アウトラインデータの点列
には、文字の外形の外周を構成する点列(以下、「文字
外周点列」という。)と、文字の穴の外周を構成する点
列(以下、「穴外周点列」という。)の2種類が存在す
る。
Further, since some characters have a torus structure with a hole, the point sequence of the outline data includes a point sequence that constitutes the outer periphery of the outer shape of the character (hereinafter, referred to as a “character outer peripheral point sequence”). And a sequence of points forming the outer periphery of the hole of the character (hereinafter, referred to as “hole outer periphery point sequence”).

【0018】漢字の「回」のように、文字の中には、複
数の文字部品によって1文字が構成される場合がある。
ここで、「文字部品」とは、文字を構成する、互いに非
接続の要素をいう。上記の「回」の場合は、外側の
「口」の文字部品と内側の「ロ」の文字部品から構成されて
いる。また、ロシア語の「ё」の場合は、「・」、「・」
及び「e」の3つの文字部品から構成されている。従っ
て、個々の文字部品は、文字外周点列を1つ有する。ま
た、文字部品によっては、1つまたは複数の穴外周点列
を有するものがある。
As in the case of the Chinese character "", one character may be composed of a plurality of character parts.
Here, the “character part” refers to elements that are not connected to each other and that constitute a character. In the case of the above "time", the character part of the outer "mouth" and the character part of the inner "b" are constituted. In the case of Russian "ё", "・", "・"
And "e". Therefore, each character component has one character peripheral point sequence. Further, some character parts have one or a plurality of hole peripheral point sequences.

【0019】上記の文字外周点列と穴外周点列とを区別
を実現するため、通常は、文字外周点列の個々の点を定
義する際の各点の並べられる方向(即ち、各点を順に辿
るときの回り方)と、穴外周点列における各点の並べら
れる方向とは、双方逆の関係にしている。ここでは、文
字外周点列を辿る時の回り方は「時計回り」に、また、
穴外周点列を辿る時の回り方は「反時計回り」になるよ
うに点列座標データが文字外周データ記憶部3に記憶さ
れているものとする。但し、この回り方の決め方には、
特別な理由はない。なお、明示的に文字外周と穴外周と
を区別する識別子を設けても良いが、その場合は、文字
外周データ記憶部3で記憶すべきデータ量が増大する。
In order to realize the distinction between the character outer peripheral point sequence and the hole outer peripheral point sequence, usually, the direction in which the individual points of the character outer peripheral point sequence are defined (that is, The direction of tracing in order) and the direction in which the points in the hole outer periphery point sequence are arranged have opposite relationships. Here, the trajectory when tracing the character periphery point sequence is "clockwise",
It is assumed that point sequence coordinate data is stored in the character periphery data storage unit 3 so that the way of tracing the hole periphery point sequence is “counterclockwise”. However, how to decide this way,
There is no special reason. Note that an identifier for explicitly distinguishing the outer periphery of the character from the outer periphery of the hole may be provided, but in this case, the data amount to be stored in the outer character data storage unit 3 increases.

【0020】図2は、上述のように、文字外周点列及び
穴外周点列をたどるときの回り方を示したものである。
図2では、文字外周点列を時計回りの黒点P0〜P9で表
し、穴外周点列を反時計回りの白点P10〜P15で表して
いる。
FIG. 2 shows the way of turning when the character outer peripheral point sequence and the hole outer peripheral point sequence are traced as described above.
In FIG. 2, the character peripheral point sequence is represented by clockwise black points P0 to P9, and the hole peripheral point sequence is represented by counterclockwise white points P10 to P15.

【0021】文字形状構造解析部4では、まず、受け取
った文字のアウトラインデータの点列座標データに対し
て、文字外周点列なのか、穴外周点列なのかの判別を行
う。この判別の手順について、図2を用いながら説明す
る。
First, the character shape structure analysis section 4 determines whether the received character string outline data is a character line point sequence or a hole line point sequence. The procedure of this determination will be described with reference to FIG.

【0022】(1)アウトラインデータから得られる点
列をP0,P1,・・・,Pnとするとき、これらの点列から
生成される2つの隣り合うベクトルPiPi+1とベクトル
Pi+1Pi+2に対して、内積をなす角θi+1を求める(但
し、i=0,1,・・・,nであり、Pn+1=P0とする。以
下、同じ)。例えば、ベクトルP0P1とベクトルP1P2
の場合の内積をなす角はθ1である。
(1) Assuming that the point sequence obtained from the outline data is P0, P1,..., Pn, two adjacent vectors PiPi + 1 and Pi + 1Pi + 2 generated from these point sequences. , An angle θi + 1 forming an inner product is obtained (where i = 0, 1,..., N, and Pn + 1 = P0; the same applies hereinafter). For example, a vector P0P1 and a vector P1P2
In this case, the angle forming the inner product is θ1.

【0023】(2)その内積をなす角θi+1に係る2つ
のベクトルの外積を求め、その値が正ならば正の符合
を、負ならば負の符合を付加する。以上の内積をなす角
θi+1を順次算出し、それらを合計した値が±2πであ
る。
(2) The outer product of two vectors related to the angle θi + 1 forming the inner product is obtained, and if the value is positive, a positive sign is added, and if the value is negative, a negative sign is added. The angles θi + 1 forming the above inner products are sequentially calculated, and the sum of them is ± 2π.

【0024】(3)上記(1)(2)で求めた符合付き
の内積をなす角θi+1の合計を求め、その合計が−2π
ならば時計回りでたどる文字外周点列であると判別し、
2πならば反時計回りでたどる穴外周点列であると判別
する。
(3) The sum of the angles θi + 1 forming the signed inner product obtained in (1) and (2) above is obtained, and the sum is −2π
If this is the case, it is determined that the character is a character outline point sequence that can be traced clockwise,
If it is 2π, it is determined that it is a hole outer peripheral point sequence that follows in a counterclockwise direction.

【0025】次に、上記(3)の判別の結果、文字外周
点列だけで構成される文字の場合は、以下のバウンダリ
ーボックスを求める処理を行った後、後述する構造解析
結果情報とアウトラインデータとを文字形状上下面凸ポ
リゴン分割部5に出力する。文字外周点列と穴外周点列
とが混在する場合は(即ち、穴外周点列が存在する場
合)、以下で説明する構造解析(包含関係の解析)処理
を行う。
Next, as a result of the discrimination in the above (3), in the case of a character consisting only of a character outer peripheral point sequence, a process for obtaining the following boundary box is performed, and then the structural analysis result information described later and an outline are obtained. The data is output to the character shape upper / lower surface convex polygon division unit 5. When the character outer periphery point sequence and the hole outer periphery point sequence coexist (that is, when the hole outer periphery point sequence exists), a structure analysis (analysis of inclusion relation) described below is performed.

【0026】以下では、図2に示されるように、数字
の"0"を用いながら、文字外周点列の対するバウンダリ
ーボックスを求める方法について説明する。 (1)文字外周点列から、x座標の最小値(xo-min)
と最大値(xo-max)、y座標の最小値(yo-min)と最
大値(yo-max)を求める。 (2)(1)で求められた最小値及び最大値に基づいて
作成した4つの点A(xo-min,yo-max)、点B(xo-
max,yo-max)、点C(xo-max,yo-min)、点D(x
o-min,yo-min)による、四角形ABCDをバウンダリ
ーボックスとする。但し、通常の数学表記の場合、反時
計回りに頂点を指定していくが、本実施の形態では、文
字外周点列の順序表記に合わせ、時計回りに頂点を指定
している。
In the following, as shown in FIG. 2, a description will be given of a method of obtaining a boundary box for a character outer peripheral point sequence using the numeral "0". (1) The minimum value of the x coordinate from the character outline point sequence (xo-min)
And the maximum value (xo-max), and the minimum value (yo-min) and the maximum value (yo-max) of the y coordinate. (2) Four points A (xo-min, yo-max) and point B (xo-max) created based on the minimum and maximum values obtained in (1).
max, yo-max), point C (xo-max, yo-min), point D (x
o-min, yo-min) is used as a boundary box. However, in the case of normal mathematical notation, vertices are specified in a counterclockwise direction. In the present embodiment, vertices are specified in a clockwise direction in accordance with the order notation of the character outer peripheral point sequence.

【0027】(3)バウンダリーボックスABCDの各
辺の長さの総和の半分(以下、「長さL」という。)
を、長さL=(辺AB)+(辺BC)より算出する。こ
の処理後、点列座標データ、バウンダリーボックスの個
数、バウンダリーボックスの4つの頂点の座標(また
は、xo-min,xo-max,yo-min,yo-max)、各辺の長
さの総和を文字外周データ記憶部3に記憶する。穴外周
点列に対しても、上記と同様のバウンダリーボックスa
bcdを構成する4つの座標値(以下「4座標値」とい
う。)のxh-min,xh-max,yh-min,yh-maxを求め、
同様に文字外周データ記憶部3に記憶する。
(3) Half of the total length of each side of the boundary box ABCD (hereinafter, referred to as "length L")
Is calculated from the length L = (side AB) + (side BC). After this processing, the point sequence coordinate data, the number of boundary boxes, the coordinates of four vertices of the boundary box (or xo-min, xo-max, yo-min, yo-max), and the length of each side The sum is stored in the character outer data storage unit 3. The same boundary box a as above for the hole periphery point sequence
xh-min, xh-max, yh-min, yh-max of four coordinate values (hereinafter referred to as “four coordinate values”) constituting the bcd are obtained,
Similarly, it is stored in the character periphery data storage unit 3.

【0028】以上のことより、例えば「回」という文字の
場合は、外側の「口」の文字部品の文字外周点列と内側
の「ロ」の文字部品の文字外周点列によって文字外周点列
のグループを構成し、外側の「口」の文字部品と内側の
「ロ」の文字部品の2つの文字穴の穴外周点列により穴外
周点列のグループを構成する。従って、2つの文字外周
点列に基づいて2つのバウンダリーボックスABCDが
作成され、2つの穴外周点列に基づいて2つのバウンダ
リーボックスabcdが作成されることとなる。
From the above, for example, in the case of the character "", the character outer peripheral point sequence of the character component of the outer "mouth" and the character outer peripheral point sequence of the character component of the inner "b" are used. And a group of outer-peripheral points of two character holes, that is, a character part of the outer “mouth” and a character part of the inner “b”. Therefore, two boundary boxes ABCD are created based on the two character outer peripheral point sequences, and two boundary boxes abcd are created based on the two hole outer peripheral point sequences.

【0029】次に、文字外周点列のグループと、穴外周
点列のグループの間の包含関係を明らかにするために、
文字外周点列のバウンダリーボックス毎に、全ての穴外
周点列のバウンダリーボックスを構成する4座標値に対
して、次の包含関係の判定を行う。
Next, in order to clarify the inclusion relation between the group of the character outer peripheral point sequence and the group of the hole outer peripheral point sequence,
For each of the boundary boxes of the character outer peripheral point sequence, the following inclusion relationship is determined for the four coordinate values constituting the boundary boxes of all the hole outer peripheral point sequences.

【0030】(包含関係の判定) 「"xo-min<xh-min<xh-max<xo-max"かつ"yo-min
<yh-min<yh-max<yo-max"ならば、当該穴外周は当
該文字外周に含まれる。それ以外の場合は含まれな
い。」
(Judgment of Inclusion Relationship) "" xo-min <xh-min <xh-max <xo-max "and" yo-min
If <yh-min <yh-max <yo-max ", the perimeter of the hole is included in the perimeter of the character. Otherwise, it is not included."

【0031】上記の包含関係の判定では、1つの文字穴
の穴外周点列が、複数の文字部品の文字外周点列に含ま
れたり、実際は含まれていないのに、見かけ上、含まれ
てしまっているという状態が起こり得る。例えば、
「固」や「店」などの場合が、そのような場合に該当す
る。従って、このような場合は包含関係を修正する必要
が有るが、それは以下の修正ルールによって実行し得
る。
In the above-described determination of the inclusion relationship, the hole peripheral point sequence of one character hole is included in the character peripheral point sequence of a plurality of character parts, or is apparently included even though it is not actually included. It is possible that a situation has occurred. For example,
The case of “solid” or “store” corresponds to such a case. Therefore, in such a case, it is necessary to correct the inclusion relation, which can be executed by the following correction rule.

【0032】(修正ルール) 「一つの文字穴の外周が、複数の文字部品の外周に含ま
れている場合、その穴は最も内側の文字部品の外周に含
まれる。」 以下では、この修正ルールを具体的に実施する2つの方
法について述べる。まず第1の方法は下記の通りであ
る。 (第1の方法)2つの文字同士における文字外周間の内
外判定は、先に求めておいた、文字外周点列のバウンダ
リーボックスの長さLを比較することによって代替し、
Lの値の小さい方が内側の文字であると判定する。この
第1の方法は計算時間が短く、高速に包含関係が判定可
能である。しかし、例外的なフォントの場合は、包含関
係の判定が上手く行かないことがある。そこで、計算時
間は掛かるものの、安定的に包含関係の判定ができる第
2の方法ついて、以下で述べる。
(Correction Rule) "When the outer periphery of one character hole is included in the outer periphery of a plurality of character parts, the hole is included in the outer periphery of the innermost character part." Are specifically described below. First, the first method is as follows. (First method) The inside / outside judgment between the character outer peripheries of two characters is substituted by comparing the length L of the boundary box of the character outer perimeter point sequence, which was obtained earlier,
It is determined that the smaller value of L is the inner character. In the first method, the calculation time is short, and the inclusion relation can be determined at high speed. However, in the case of an exceptional font, the determination of the inclusion relationship may not be successful. Therefore, a second method that requires a long calculation time but can stably determine the inclusion relation will be described below.

【0033】(第2の方法) (1)文字外周点列のバウンダリーボックスに対して、
包含関係の判定を行う。つまり、「ある穴を含むと判定
された複数の文字のうち、一の文字の文字外周点列のバ
ウンダリーボックスの座標をxoj-min,xoj-max,yoj
-min,yoj-maxとすると(但し、jは文字穴を含む文字
外形の添字であり、j=1〜n)、あるkに対して次の
条件が成り立つならば、文字穴は添字kの文字の穴であ
ると判定する。」 (条件) 「任意のj≠kに対して、xoj-min<xok-min"かつ"y
oj-min<yok-min"かつ"xok-max<xoj-max"かつ"yok
-max<yoj-max"」
(Second Method) (1) For a boundary box of a character outer peripheral point sequence,
The inclusion relation is determined. That is, “coordinates of a boundary box of a character outer peripheral point sequence of one character among a plurality of characters determined to include a certain hole are xoj-min, xoj-max, yoj
-min, yoj-max (where j is a suffix of the character outline including the character hole, j = 1 to n), and if the following condition is satisfied for a certain k, the character hole is replaced by the suffix k. Judge as a hole in the character. (Condition) “For any j ≠ k, xoj-min <xok-min” and “y
oj-min <yok-min "and" xok-max <xoj-max "and" yok
-max <yoj-max ""

【0034】この条件が成り立たないときは、次の
(2)の判定を行う。なお、上の条件が成り立つとき
は、 xok-min=max(xoj-min) yok-min=max(yoj-min) xok-max=min(xoj-max) yok-max=min(yoj-max) である。従って、判定の手順としては、まず、max
(xoj-min)=xok-minよりkを求め(バウンダリーボ
ックスのx座標の最小値について、任意のバウンダリー
ボックス同士で比較し、その中で最大値を有するjをk
とする)、そのkに対して、残り3つの条件が成り立つ
かどうか調べれば良い。
If this condition is not satisfied, the following judgment (2) is made. When the above condition is satisfied, xok-min = max (xo-min) yok-min = max (yoj-min) xok-max = min (xo-max) yok-max = min (yoj-max) It is. Therefore, as a determination procedure, first, max
(Xoj-min) = k is obtained from xok-min (the minimum value of the x coordinate of the boundary box is compared between arbitrary boundary boxes, and j having the maximum value among them is k)
It is sufficient to check whether the remaining three conditions are satisfied with respect to k.

【0035】(2)(1)の条件が成り立たないとき
は、穴外周点列ののバウンダリーボックスの重心から各
文字外形の外周までの距離の最小値を算出し、それら最
小距離の中で最小となる文字外形の外周にその穴は属す
ると判定する。但し、「文字穴のバウンダリーボックス
の重心から文字外形の外周までの最小距離」とは、文字
外周上の点までの距離の最小値と文字外周の辺までの距
離の最小値を算出して、それら2つのうちの小さい方の
ことである。
(2) When the condition of (1) is not satisfied, the minimum value of the distance from the center of gravity of the boundary box of the hole outer periphery point sequence to the outer periphery of each character outer shape is calculated, and among these minimum distances, It is determined that the hole belongs to the outer periphery of the minimum character outline. However, the "minimum distance from the center of gravity of the boundary box of the character hole to the outer periphery of the character outer shape" is calculated by calculating the minimum value of the distance to a point on the character outer periphery and the minimum value of the distance to the side of the character outer periphery. , The smaller of the two.

【0036】文字外周上の点までの距離は、通常のユー
クリッド距離(2乗和のルート)を用いて算出する。文
字外周の辺までの距離は以下のように求める。但し、文
字外周点列をP0(p0x,p0y),P1(p1x,p1y),
・・・,Pn(pnx,pny)とし、文字穴のバウンダリーボ
ックスの重心をC(cx,cy)、Cから辺PkPk+
1に下ろした垂線の足をH(hx,hy)とする。 a=pk+1x−pkx,b=pk+1y−pky,d=Cx−p
kx e=Cy−pky α=(a×d+b×e)/(a**2+b**2) hx=α×a+pkx hy=α×a+pky 但し、k=0,1,2,・・・,nであり、Pn+1=P0と
する(ここで、「X**Y」はXのY乗を表すものとす
る。以下、同様。)。
The distance to a point on the outer periphery of the character is calculated using a normal Euclidean distance (root of the sum of squares). The distance to the outer edge of the character is obtained as follows. However, the character peripheral point sequence is represented by P0 (p0x, p0y), P1 (p1x, p1y),
.., Pn (pnx, pny), the center of gravity of the boundary box of the character hole is C (cx, cy), and the side PkPk +
Let the foot of the perpendicular dropped to 1 be H (hx, hy). a = pk + 1x-pkx, b = pk + 1y-pky, d = Cx-p
kx e = Cy-pky α = (a × d + b × e) / (a ** 2 + b ** 2) hx = α × a + pkx hy = α × a + pky where k = 0, 1, 2,..., n And Pn + 1 = P0 (here, “X ** Y” represents X to the Yth power; the same applies hereinafter).

【0037】次に、min(pkx,pk+1x)≦hx≦
max(pkx,pk+1x)かつmin(pky,pk+1
y)≦hy≦max(pky,pk+1y)ならば、辺まで
の距離|CH|を以下の式で算出する。この条件が成り
立たなければ、辺までの距離は存在しないので、次の辺
の処理に移る。 |CH|=(|PkC×PkPk+1|)/|PkPk+1| =|d×b−a×e|/(a**2+b**2)**(1/2)
Next, min (pkx, pk + 1x) ≦ hx ≦
max (pkx, pk + 1x) and min (pky, pk + 1)
y) ≦ hy ≦ max (pky, pk + 1y), the distance | CH | to the side is calculated by the following equation. If this condition does not hold, there is no distance to the side, so the processing moves to the next side. | CH | = (| PkC × PkPk + 1 |) / | PkPk + 1 | = | d × b−a × e | / (a ** 2 + b ** 2) ** (1/2)

【0038】文字の構造解析結果情報は、文字の構造に
ついて、階層を有する木構造の情報(例えば、点列「L
B」が点列「LA」に包含される場合は、"LA−LB"な
ど)として表記することが可能である。この木構造で表
された情報は、文字構造解析結果情報として、文字形状
上下面凸ポリゴン分割部5に出力される。
The character structure analysis result information is a tree structure information having a hierarchy (for example, a point sequence "L").
When "B" is included in the dot sequence "LA", it can be described as "LA-LB" or the like. The information represented by the tree structure is output to the character shape upper / lower surface convex polygon division unit 5 as character structure analysis result information.

【0039】以上のように構成される文字形状構造解析
部4における処理について、漢字の「回」を例として挙
げた図3及び図4を参照しながら詳細に説明する。
The processing in the character shape structure analysis unit 4 configured as described above will be described in detail with reference to FIGS.

【0040】図3は、漢字の「回」について文字形状構
造解析を実施した場合の模式図である。また、図4は、
図3における包含関係解析処理における詳細な処理の流
れを示すフローチャートである。なお、図3に示される
ように、「回」の点列は、外側の「口」の部分の外周の
点列401、外側の「口」の部分の穴の外周の点列40
2、内側の「ロ」の部分の外周の点列403及び内側の「ロ」
の部分の穴の外周の点列404によって構成されてい
る。
FIG. 3 is a schematic diagram showing a case where a character shape structure analysis is performed on the Chinese character "". Also, FIG.
4 is a flowchart showing a detailed processing flow in the inclusion relation analysis processing in FIG. 3. As shown in FIG. 3, the point sequence of “times” includes a point sequence 401 of the outer periphery of the “mouth” portion, and a point sequence 40 of the outer periphery of the hole of the outer “mouth” portion.
2. Point sequence 403 on the outer periphery of the inner "B" portion and the inner "B"
Is constituted by a dot sequence 404 on the outer periphery of the hole of the portion.

【0041】最初に、文字形状構造解析部4は、文字外
周データ取得部2から受け取った「回」の点列に対し
て、上述の方法により、それが文字外周点列を表すの
か、穴外周点列を表すのかについての判別を行う(S4
05)。その結果、点列401(Lo-1)及び点列40
3(Lo-2)が文字外周点列に該当し(406)、点列
402(Lh-1)及び点列404(Lh-2)が穴外周点列
に該当すると判別される(407)。この後、文字外周
点列401、403についてはバウンダリーボックス及
び長さLが算出され(S408)、穴外周点列402、
404についてはバウンダリーボックスが算出される
(S409)。
First, the character shape structure analysis unit 4 determines whether the point sequence of “times” received from the character periphery data acquisition unit 2 represents the character periphery point sequence by the above-described method. It is determined whether a point sequence is represented (S4).
05). As a result, the point sequence 401 (Lo-1) and the point sequence 40
3 (Lo-2) corresponds to the character peripheral point sequence (406), and it is determined that the point sequence 402 (Lh-1) and the point sequence 404 (Lh-2) correspond to the hole peripheral point sequence (407). Thereafter, the boundary box and the length L are calculated for the character outer peripheral point strings 401 and 403 (S408), and the hole outer peripheral point strings 402 and 403 are calculated.
A boundary box is calculated for 404 (S409).

【0042】次に、上記の穴外周点列402(Lh-1)
及び穴外周点列404(Lh-2)が、どの文字外周点列
に含まれるのかについての包含関係解析処理が実行され
る(S410)。
Next, the above-mentioned hole outer periphery point sequence 402 (Lh-1)
Then, an inclusion relation analysis process is performed on which character peripheral point sequence includes the hole peripheral point sequence 404 (Lh-2) (S410).

【0043】包含関係解析処理(S410)では、ま
ず、解析対象とする文字外周点列(Lo-1、Lo-2)のバ
ウンダリーボックスと穴外周点列(Lh-1、Lh-2)のバ
ウンダリーボックスが特定され(S501)、穴外周点
列のバウンダリーボックスが文字外周点列のバウンダリ
ーボックスに包含されているか否かについて判定がなさ
れる(S502、S503)。この判定は、すべての文
字外周点列のバウンダリーボックスと穴外周点列のバウ
ンダリーボックスとの組合せについて実施される(S5
04、S501〜S503)。「回」の場合であれば、
文字外周点列Lo-1が穴外周点列Lh-1及びLh-2を包含
し、文字外周点列Lo-2が穴外周点列Lh-2を包含してい
ると判定される(411)。
In the inclusion relation analysis processing (S410), first, the boundary box of the character outer peripheral point sequence (Lo-1, Lo-2) to be analyzed and the hole outer peripheral point sequence (Lh-1, Lh-2) are obtained. The boundary box is specified (S501), and it is determined whether or not the boundary box of the hole peripheral point sequence is included in the boundary box of the character peripheral point sequence (S502, S503). This determination is performed for all combinations of the boundary boxes of the character outer peripheral point sequence and the boundary boxes of the hole outer peripheral point sequence (S5).
04, S501 to S503). In the case of "times",
It is determined that the character outer peripheral point sequence Lo-1 includes the hole outer peripheral point sequences Lh-1 and Lh-2, and the character outer peripheral point sequence Lo-2 includes the hole outer peripheral point sequence Lh-2 (411). .

【0044】上記の判定において、1つの穴外周点列が
複数の文字外周点列に含まれていると判定された場合
は、その穴外周点列を包含する唯一の文字外周点列を特
定する必要があるため、以下のような包含関係の修正を
行う必要がある(S412、S413、S505)。
In the above determination, when it is determined that one hole peripheral point sequence is included in a plurality of character peripheral point sequences, the only character peripheral point sequence that includes the hole peripheral point sequence is specified. Therefore, it is necessary to correct the inclusion relation as described below (S412, S413, S505).

【0045】まず、1つの穴外周点列を特定し、これを
包含する文字外周点列を全て(例えば、N個)特定し、
さらに、前述の第1または第2(1)の方法によってN
個の中から最も内側にある文字外周点列を特定する(S
506、S509)。
First, one hole outer peripheral point sequence is specified, and all (for example, N) character outer peripheral point sequences including the same are specified.
Further, N is calculated by the above-described first or second (1) method.
Identify the innermost character peripheral point sequence from among the characters (S
506, S509).

【0046】もし、特定できなかった場合は(S50
7)、前述の第2(2)の方法によって、最も内側にあ
る文字外周点列を特定する(S508、S510)。
If it cannot be specified (S50)
7) The innermost character peripheral point sequence is specified by the above-described second (2) method (S508, S510).

【0047】以上により、「回」についての包含関係の
判定は、内側の「ロ」の部分の穴外周点列(Lh-2)は、そ
の「ロ」の部分の文字外周点列(Lo-2)のみに包含される
ように修正され、この構造解析結果情報を木構造で表す
ことが可能となる(414)。
As described above, the determination of the inclusion relation for “times” is based on the fact that the hole outer peripheral point sequence (Lh-2) of the inner “b” portion is the character outer peripheral point sequence (Lo− It is corrected to be included only in 2), and this structural analysis result information can be represented by a tree structure (414).

【0048】なお、文字(または文字部品)に穴がない
場合は、その構造は階層のないフラットな構造であると
するという構造解析結果情報が、穴のある場合と同様に
文字形状上下面凸ポリゴン分割部5に出力される。この
ように、文字(または文字部品)は、文字形状構造解析
部4から得られる構造解析結果情報により、その構成要
素を"外形のみ"または"外形+文字穴"という木構造で表
現することができる。ここで、「構成要素」とは、文字
又は文字部品において後述のポリゴン分割の対象とな
る、文字外周点列によって定義される文字外周の内部領
域(文字外周点列を含む)、又は文字外周点列によって
定義される文字外周の内部領域から穴外周点列によって
定義される穴の内側の内部領域を除いた領域(文字外周
点列と穴外周点列とを含む)をいう。
When there is no hole in the character (or character part), the structure analysis result information that the structure is a flat structure without a hierarchy is provided in the same manner as in the case of the hole, and the character shape upper and lower surface is convex. Output to the polygon division unit 5. As described above, a character (or character part) can be represented by a tree structure such as “outer shape only” or “outer shape + character hole” based on the structure analysis result information obtained from the character shape structure analysis unit 4. it can. Here, the “component” refers to an internal area (including a character peripheral point sequence) or a character peripheral point defined by a character peripheral point sequence, which is a target of polygon division in a character or a character part, which will be described later. A region (including a character peripheral point sequence and a hole peripheral point sequence) excluding an internal region inside a hole defined by a hole peripheral point sequence from a character peripheral internal region defined by a column.

【0049】文字形状上下面凸ポリゴン分割部5は、上
述した構成要素に対して、それぞれ凸ポリゴン分割を行
う。なお、本実施の形態では、凸ポリゴンの一例として
三角形をとりあげ、これによってポリゴン分割を行う場
合について説明する。
The character-shaped upper / lower surface convex polygon division unit 5 divides the above-mentioned components into convex polygons. In the present embodiment, a case will be described in which a triangle is taken as an example of a convex polygon, and polygon division is performed using this.

【0050】まず、文字形状上下面凸ポリゴン分割部5
では、分割を行う構成要素に穴外周点列が含まれている
場合に、三角形ポリゴン分割を行うための前処理とし
て、文字外周点列と穴外周点列とを接続する処理を行い
(以下「接続化」という。)、一つの外周の点列に変換
する。同時に、点列番号(点列の並びの順序を表す番
号)の付け替え処理を行う。この接続化は、上記のアウ
トラインデータに基づいて文字外周と穴外周とを接続し
て、いわゆる一筆書きが可能な並び方の点列座標データ
を生成する処理である。接続化は、以下の2つの方法に
より実現が可能である。
First, the character shape upper / lower surface convex polygon division unit 5
In a case where a hole outer periphery point sequence is included in a component to be divided, a process of connecting a character outer periphery point sequence and a hole outer periphery point sequence is performed as a pre-process for performing triangular polygon division (hereinafter, “ Is referred to as “connection”), and is converted into a single point sequence on the outer periphery. At the same time, a reordering process of the point sequence numbers (numbers indicating the order of arrangement of the point sequences) is performed. This connection is a process of connecting the outer periphery of the character and the outer periphery of the hole based on the outline data to generate so-called one-stroke writing point sequence coordinate data. The connection can be realized by the following two methods.

【0051】図5は、第1の接続化の方法を漢字の
「田」に適用し、さらに点列番号の付け替えを実施した
様子を示す図である。以下、第1の接続化の方法につい
て図5を参照しながら説明する。なお、図5において
は、各点列の点列番号のみを示している。
FIG. 5 is a diagram showing a state in which the first connection method is applied to the kanji character “ta” and the point sequence numbers are changed. Hereinafter, the first connection method will be described with reference to FIG. In FIG. 5, only the point sequence number of each point sequence is shown.

【0052】(第1の接続化の方法) (1)全ての文字穴について、各文字穴の穴外周点列に
基づいて、x、y座標の最大値x−max,y−max
と最小値x−min,y−minを求め、各文字穴の中
心座標((x−max+x−min)/2,(y−ma
x+y−min)/2)を求める。
(First Connection Method) (1) For all the character holes, the maximum values x-max, y-max of the x and y coordinates based on the sequence of the hole outer peripheral points of each character hole.
And the minimum values x-min and y-min are obtained, and the center coordinates of each character hole ((x-max + x-min) / 2, (y-ma
x + y-min) / 2).

【0053】(2)各文字穴の中心座標から最も近い文
字外周点を求める(以下、「近接点」という。)。但
し、この場合の距離は、計算量を減らすため、x、y座
標の2乗和で代替し、ルートは取らないこととする。複
数の文字穴がある場合は、近接点に重複がないよう、一
つの文字穴に対して近接点を求めた後は、次の文字穴に
対してはその近接点を除いた文字外周点から近接点を選
択する。図5の例では、文字穴615についての近接点
を文字外周点列の中の点「4」とする。
(2) The nearest character outer peripheral point is determined from the center coordinates of each character hole (hereinafter, referred to as "proximal point"). However, in order to reduce the amount of calculation, the distance in this case is replaced by the sum of squares of the x and y coordinates, and no route is taken. If there is more than one character hole, after determining the proximity point for one character hole so that there is no overlap in the proximity points, for the next character hole, start from the character outer peripheral point excluding the proximity point. Select a nearby point. In the example of FIG. 5, the point of proximity to the character hole 615 is point “4” in the character peripheral point sequence.

【0054】(3)上記の近接点に最も近い文字穴の穴
外周点を求め、その点が始点となるように穴外周点列の
順序を並べ変える(即ち、点列番号の付け替えを行
う)。例えば、元の穴外周点列を{P0,P1,・・・,P
k,・・・,Pm}とし、近接点に最も近い文字穴の外周上
の点がPkのときは、{Pk,・・・,Pm,P0,P1,・・
・,Pk-1}の順になるように点列番号を付け替える。図
5の例であれば、文字穴615の穴外周点列{0,1,
2,3}のうち、近接点に最も近い穴外周上の点は、点
「2」であるため、{2,3,0,1}の順になるよう
に点列番号を付け替える。
(3) The hole outer peripheral point of the character hole closest to the above-mentioned adjacent point is obtained, and the order of the hole outer peripheral point sequence is rearranged so that the point becomes the starting point (that is, the point sequence number is changed). . For example, the original hole periphery point sequence is represented by {P0, P1,.
, Pm}, and when the point on the outer periphery of the character hole closest to the proximity point is Pk, {Pk,..., Pm, P0, P1,.
・ Replace the dot sequence numbers in the order of, Pk-1}. In the case of the example of FIG.
Since the point on the outer periphery of the hole closest to the adjacent point among the points 2, 3 is point “2”, the point sequence numbers are changed so as to be in the order of {2, 3, 0, 1}.

【0055】(4)文字外周点列に穴外周点列を埋め込
み、点列番号の付け替えを行う。例えば、元の文字外周
点列の点列番号が{Q0,Q1,Q2,・・・,Qi,Qi+1,
・・・,Qn}であり、上記(3)の付け替えを行った後の
新たな穴外周点列が{P0,P1,・・・,Pm}で、近接点
が「Qi」のときは、穴外周点列の埋め込みは、{Q0,
Q1,Q2,・・・,Qi,{P0,P1,・・・,Pm,P0},
Qi,Qi+1,・・・,Qn}のように行う。このように埋め
込まれた点列に、新たに点列番号を付け替えると、それ
らは{0,1,2,・・・,i,i+1,・・・,i+m+
1,i+m+2,i+m+3,・・・,n+m+3}とな
る。複数の文字穴がある場合は、上記の近接点の点列番
号の小さい方から、順次埋め込みを行って接続化を行
う。図5の例の場合、便宜上、文字穴615の穴外周点
列のみを埋め込むこととすると、文字外周点列の順序番
号が{0,1,・・・,4,・・・,11}であり、上記
(3)の並べ替えを行った後の新たな穴外周点列を
{0,1,2,3}とするときは、文字穴615につい
ての近接点が点「4」であるので、穴外周点列を埋め込
むと、{0,1,・・・,4,{0,1,2,3,0},
4,・・・,11}となる。さらに、新たに点列番号を付
け替えると、{0,1,・・・,4,5,・・・,9,10,
・・・,17}となる。図5に示されるように、以上の接
続化を他の文字穴616〜618についても適用する
と、最終的には、新たに生成された外周の点列の点列番
号は、{0,1,・・・,35}となる。
(4) A hole peripheral point sequence is embedded in a character peripheral point sequence, and a point sequence number is changed. For example, if the point sequence number of the original character peripheral point sequence is {Q0, Q1, Q2,..., Qi, Qi + 1,
, Qn}, the new hole periphery point sequence after the replacement of (3) is {P0, P1,..., Pm} and the proximity point is "Qi", The embedding of the hole periphery point sequence is {Q0,
, Qi, {P0, P1,..., Pm, P0},
Qi, Qi + 1,..., Qn}. When a new point sequence number is assigned to the point sequence thus embedded, they become {0, 1, 2, ..., i, i + 1, ..., i + m +
1, i + m + 2, i + m + 3,..., N + m + 3}. When there are a plurality of character holes, connection is performed by sequentially embedding the dot sequence numbers of the adjacent points in ascending order. In the case of the example of FIG. 5, if it is assumed that only the hole periphery point sequence of the character hole 615 is embedded for convenience, the sequence number of the character periphery point sequence is {0, 1,..., 4,. If the new hole perimeter point sequence after the rearrangement of (3) is {0, 1, 2, 3}, the point adjacent to the character hole 615 is point “4”. , Embedding the hole sequence, {0,1,..., 4, {0,1,2,3,0},
4, ..., 11}. Furthermore, when the point sequence numbers are newly changed, {0, 1,..., 4, 5,.
.., 17 °. As shown in FIG. 5, when the above connection is applied to other character holes 616 to 618, the point sequence numbers of the newly generated outer peripheral point sequence are finally {0, 1, .., 35 °.

【0056】この後、文字形状上下面凸ポリゴン分割部
5は、この接続化によって新たに生成された外周の点列
と接続化を行う前の文字外周点列及び穴外周点列とを対
応付けて(例えば、テーブル形式で)文字外周データ記
憶部3に記憶する。なお、この接続化によって生成され
た外周の点列には重複点が含まれているため、重複点で
あることを示す識別子についても合わせて文字外周デー
タ記憶部3に記憶する。
Thereafter, the character shape upper / lower surface convex polygon division unit 5 associates the point sequence of the outer periphery newly generated by this connection with the character outer periphery point sequence and the hole outer periphery point sequence before connection. (For example, in a table format). In addition, since the point sequence of the outer periphery generated by this connection includes an overlap point, an identifier indicating the overlap point is also stored in the character outer periphery data storage unit 3 together.

【0057】次に、例外的な文字(または文字部品)に
対しても処理が可能なように、上記第1の接続化の方法
のアルゴリズムを強化修正した第2の接続化の方法につ
いて述べる。
Next, a description will be given of a second connection method in which the algorithm of the first connection method is reinforced and modified so that an exceptional character (or character part) can be processed.

【0058】(第2の接続化の方法) (1)1つ処理対象とする文字穴に着目し、その穴外周
点列の各点から文字外周点列の各点までの距離を算出
し、その中から最小のもの(最小距離)を特定する。ま
た、上記の穴外周点列の各点から文字外周の辺までの距
離を算出し、その中から最小距離を特定する。
(Second Connection Method) (1) Focusing on one character hole to be processed, calculate the distance from each point of the hole peripheral point sequence to each point of the character peripheral point sequence, The smallest one (minimum distance) is specified. Further, the distance from each point of the above-mentioned hole outer periphery point sequence to the side of the character outer periphery is calculated, and the minimum distance is specified from the calculated distance.

【0059】(2)上記(1)により特定された最小距
離のうち、より小さい方を上記着目した文字穴の最小距
離として採用し、その穴外周点列の点と文字外周点列の
点(または、穴外周点列の点と文字外周の辺に下ろした
垂線の足の点)の2つの点を決定する。
(2) The smaller one of the minimum distances specified in (1) above is adopted as the minimum distance of the noted character hole, and the point of the hole outer peripheral point sequence and the point of the character outer peripheral point sequence ( Alternatively, two points are determined: a point in the hole periphery point sequence and a point of a perpendicular foot lowered to the side of the character periphery.

【0060】(3)上記(2)で決定した穴外周点列の
点を始点とする順序に穴外周点列の点列番号の付け替え
を行う。例えば、元の穴外周点列が{0,1,・・・,
k,・・・,m}で、近接点に最も近い穴外周点が点
「k」のとき、{k,・・・,m,0,1,・・・,k−1}
の順になるように点列番号の付け替えを行う。
(3) The point sequence numbers of the hole periphery point sequence are changed in the order starting from the point of the hole periphery point sequence determined in (2). For example, if the original hole periphery point sequence is {0, 1,.
k,..., m}, and when the hole peripheral point closest to the adjacent point is the point “k”, {k,..., m, 0, 1,.
The point sequence numbers are rearranged in the order of.

【0061】(4)文字外周までの最小距離の最小値を
満たすものが文字外周点列の点の場合は、文字外周点列
に穴外周点列を埋め込み、点列番号の付け替えを行う。
例えば、元の文字外周点列の点列番号が{0,1,2,
・・・,i,i+1,・・・,n}であり、上記(3)の並べ
替えを行った後の穴外周点列の点列番号を{0,1,・・
・,m}とするとき、穴外周点列の始点に最も近い点が
iの場合の埋め込みは、{0,1,2,・・・,i,
{0,1,・・・,m,0},i,i+1,・・・,n}とな
り、これに対してシリアルに点列番号を付け替えるの
で、{0,1,2,・・・,i,i+1,・・・,i+m+
1,i+m+2,i+m+3,・・・,n+m+3}とな
る。これを新たな外周の点列とする。このとき、新たな
外周の点列の他に、穴外周点列の始点と接続化前の文字
外周点列及び穴外周点列、さらに、i,i+1,i+m
+1,i+m+2を重複点として文字外周データ記憶部
3に記憶する。
(4) If the minimum value of the minimum distance to the character periphery is a point in the character periphery point sequence, the hole periphery point sequence is embedded in the character periphery point sequence and the point sequence number is changed.
For example, the point sequence number of the original character peripheral point sequence is {0, 1, 2,
.., I, i + 1,..., N}, and the point sequence numbers of the hole periphery point sequence after the rearrangement of the above (3) are {0, 1,.
, M}, the embedding when the point closest to the start point of the hole periphery point sequence is i is {0, 1, 2, ..., i,
{0, 1,..., M, 0}, i, i + 1,..., N}, and since the point sequence numbers are serially changed, {0, 1, 2,. i, i + 1, ..., i + m +
1, i + m + 2, i + m + 3,..., N + m + 3}. This is a new point sequence on the outer periphery. At this time, in addition to the new outer peripheral point sequence, the starting point of the hole outer peripheral point sequence, the character outer peripheral point sequence before connection, and the hole outer peripheral point sequence, and further, i, i + 1, i + m
+1 and i + m + 2 are stored in the character outer data storage 3 as overlapping points.

【0062】一方、外周までの最小距離の最小値を満た
すものが文字外形の辺に下ろした垂線の足の点の場合
は、文字外周点列にこの垂線の足の点を埋め込み、点列
番号の付け替えを行う。例えば、垂線の足が文字外周点
列の点kとk+1で生成される辺上にある場合は、kと
k+1の間にこの点を埋め込む。次に、この埋め込みが
終わった文字外周点列に対して、上記と同様に穴外周点
列を埋め込み、点列番号の付け替えを行うが、接続化
は、上記の垂線の足の点(新たに埋め込まれた文字外周
点k+1)を近接点として埋め込みを行う。この場合
も、新たな外周の点列の他に、穴外周点列の始点と接続
化前の文字外周点列及び穴外周点列、さらに、k+1,
k+2,k+m+3,k+m+4を重複点として文字外
周データ記憶部3に記憶する。
On the other hand, if the point satisfying the minimum value of the minimum distance to the outer periphery is the point of the perpendicular foot lowered to the side of the character outer shape, the point of this perpendicular foot is embedded in the character outer peripheral point sequence, and the point sequence number Replace For example, when the foot of the perpendicular line is on the side generated by points k and k + 1 in the character peripheral point sequence, this point is embedded between k and k + 1. Next, the hole outer peripheral point sequence is embedded in the character outer peripheral point sequence after completion of embedding in the same manner as above, and the point sequence numbers are changed. Embedding is performed using the embedded character outer peripheral point k + 1) as a proximity point. Also in this case, in addition to the new outer peripheral point sequence, the start point of the hole outer peripheral point sequence, the character outer peripheral point sequence before connection, and the hole outer peripheral point sequence, and further, k + 1,
k + 2, k + m + 3, k + m + 4 are stored in the character periphery data storage unit 3 as overlapping points.

【0063】(5)複数の文字穴がある場合は、次の文
字穴に対して上記(1)から(4)の処理を行う。但
し、(4)において一旦重複点となった点については、
(1)における最小距離の算出対象から除外する。
(5) If there are a plurality of character holes, the above-described processes (1) to (4) are performed for the next character hole. However, regarding the point that once became an overlap point in (4),
Exclude from the minimum distance calculation target in (1).

【0064】次に、構成要素の三角形分割の方法につい
て、2通りの方法について説明する。まず、第1の三角
形分割方法について説明する。平面上の点列に対する凸
包の三角形分割のアルゴリズムとしては、計算幾何学の
分野で研究が行われており、著名なものとしては、Du
launayの三角形分割アルゴリズムがある。また、
点列に対する凸包の算出アルゴリズムとしては、Gra
hamのアルゴリズムや、Quickhullのアルゴ
リズムがある。従って、構成要素が、文字外周のみで、
しかも文字の外形が凸形ならばDulaunayのアル
ゴリズムを適用することで三角形分割が完了する。しか
し一般には、上記の説明からも判るように、構成要素に
は穴が存在したり、文字の外形は、例えば「あ」のよう
に凹多角形であることが多い。そのため、以下で述べる
ような、これらのアルゴリズムを組合せ改良した方法に
よって、構成要素に対する三角形分割を行う。
Next, two methods of dividing the constituent elements into triangles will be described. First, the first triangulation method will be described. Algorithms for triangulation of a convex hull with respect to a sequence of points on a plane have been studied in the field of computational geometry.
There is a launay triangulation algorithm. Also,
The algorithm for calculating the convex hull for the point sequence is Gra
ham algorithm and Quickhul algorithm. Therefore, the component is only the character periphery,
Moreover, if the outer shape of the character is convex, the triangulation is completed by applying the Duraunay algorithm. However, in general, as can be seen from the above description, there are often holes in the constituent elements, and the outer shape of the character is often a concave polygon such as "A". Therefore, the components are subjected to triangulation by a method in which these algorithms are combined and improved as described below.

【0065】(1)前述の接続化によって生成した外周
の点列から、その後方に位置する重複点を除いた点列を
新たに生成して(これを「点列B」とし)、その対応関
係を文字外周データ記憶部3にテーブル形式で記憶す
る。つまり、このテーブルには、接続化した外周の点列
と接続化する前の点列とが対応付けられており、接続化
した外周の点列とそこから後方の重複点を除去した点列
Bとが対応付けられている。
(1) A point sequence is newly generated from the point sequence on the outer periphery generated by the above-described connection except for the overlapping point located behind the point sequence (this is referred to as “point sequence B”). The relation is stored in the character outer data storage unit 3 in a table format. In other words, in this table, the connected peripheral point sequence and the point sequence before connection are associated, and the connected peripheral point sequence and the point sequence B from which the rear overlapping point is removed therefrom. Are associated with each other.

【0066】(2)点列Bに対して、Grahamまた
はQuickhullの方法で、凸包を生成する。 (3)構成要素の外周の点列が1つの文字外形の点列
で、しかも生成した凸包の外形の点列が、接続化する前
の外周の点列と一致するならば識別子0を、そうでない
ものは識別子1を与える。
(2) For the point sequence B, a convex hull is generated by the Graham or Quickhull method. (3) If the point sequence on the outer periphery of the component is one character outline, and the generated point sequence on the outer shape of the convex hull matches the point sequence on the outer periphery before connection, an identifier 0 is assigned. Others give identifier 1.

【0067】(4)Dulaunayのアルゴリズムに
より、(2)で生成した凸包を三角形分割する。もし、
識別子が0ならば次の構成要素に対して、上記(1)か
ら処理を行い、識別子が1ならば(5)の処理に移る。 (5)(4)で生成した三角形の重心を算出する。
(4) The convex hull generated in (2) is triangulated by the Duraunay algorithm. if,
If the identifier is 0, the process from (1) is performed on the next component, and if the identifier is 1, the process proceeds to (5). (5) The center of gravity of the triangle generated in (4) is calculated.

【0068】(6)前記接続化によって得られた外周の
点列をP0,P1,・・・,Pmとすると、Pi、Pi+1に対応
する点列Bの点を上記のテーブルを参照して求め、それ
をQ,Rとすると、QRを1つの辺として三角形を構成
した場合のそれらの三角形の重心Ciに対して(このCi
は最多であっても2つである)、ベクトルPiPi+1とベ
クトルPiCiとの外積を計算する。但し、QRを辺とし
て含む三角形が2つある場合は、それぞれの重心に対し
て外積計算を行う。
(6) Let P0, P1,..., Pm be the point sequence on the outer periphery obtained by the connection, and refer to the above table for the points in the point sequence B corresponding to Pi and Pi + 1. Assuming that Q and R are Q and R, when a triangle is constituted by QR as one side, the center of gravity Ci of those triangles (this Ci
Is at most two), and the cross product of the vector PiPi + 1 and the vector PiCi is calculated. However, if there are two triangles that include QR as a side, outer product calculation is performed for each center of gravity.

【0069】このとき、文字形状が定義される空間の座
標系が右手系であって、外積の計算結果が正の場合、そ
の三角形は、文字外形の凹部に作られた三角形である
か、もしくは文字穴の内部の三角形であるので、棄却す
る。左手系の場合は、外積の結果が負の場合に棄却す
る。以上の処理をi=0,・・・,m−1に対して順次行
う。このとき、Pi,Pi+1が共に重複点の場合は、それ
に対応するPj-1(Piに対応する重複点),Pj(Pi+1
に対応する重複点)が点列Bの後方に存在する(つま
り、i<j−1)ことになるので、辺PiPi+1に対する
三角形の除去判定が終了したら、後方の辺Pj−1Pj
の判定は行わないように終了識別子をテーブルに設定す
る。i=m−1まで処理が終了したら、次の構成要素に
対して、上記(1)から全ての構成要素に対して処理を
繰り返す。
At this time, when the coordinate system of the space in which the character shape is defined is a right-handed system and the calculation result of the cross product is positive, the triangle is a triangle formed in a concave portion of the character outline, or It is rejected because it is a triangle inside the character hole. In the case of a left-handed system, reject if the result of the cross product is negative. The above processing is sequentially performed for i = 0,..., M−1. At this time, if both Pi and Pi + 1 are overlapping points, corresponding Pj-1 (overlapping point corresponding to Pi) and Pj (Pi + 1
Are present behind the point sequence B (i.e., i <j-1), and when the triangle removal determination for the side PiPi + 1 is completed, the rear side Pj-1Pj
Is set in the table so as not to perform the determination of. When the process is completed up to i = m-1, the process is repeated for all components from the above (1) for the next component.

【0070】以上の第1の三角形分割方法を「田」につ
いて適用した場合の処理結果の例を、図6(a)に示
す。但し、図中の番号は点列Bの点列番号を示してい
る。三角形分割されたときの結果は、点列Bの3点の組
で表される。一般に、右手系の場合、上記3点の並びが
反時計回りとなる面が上面で、逆に時計回りとなる面を
下面と定義される(反時計回りを下面、時計回りを上面
としても何ら問題はない)。また、この並びの回転方向
の判定は三角形を構成する3点をPQRとすると、ベク
トルPQとベクトルPRの外積を計算し、その符合によ
って判定できる。例えば、座標系が右手系で外積計算結
果が正ならばPQRの並びが反時計回りで、PRQの並
びが時計回りである。左手系の場合も同様に判定が行え
る(但し、時計回りが一般には表面と定義される)。
FIG. 6A shows an example of a processing result when the above-described first triangulation method is applied to “ta”. However, the numbers in the figure indicate the point sequence numbers of the point sequence B. The result of the triangulation is represented by a set of three points in point sequence B. In general, in the case of a right-handed system, a surface where the above three points are arranged in a counterclockwise direction is defined as an upper surface, and a surface which is clockwise in the opposite direction is defined as a lower surface. No problem). In addition, assuming that three points constituting the triangle are PQR, the rotation direction of the arrangement can be determined by calculating the cross product of the vector PQ and the vector PR and determining the sign thereof. For example, if the coordinate system is a right-handed system and the cross product calculation result is positive, the arrangement of PQR is counterclockwise and the arrangement of PRQ is clockwise. The same determination can be made for the left-handed system (however, clockwise is generally defined as the surface).

【0071】次に、第2の三角形分割方法について説明
する。前処理で得られた接続化した外周の点列をP0,
P1,・・・,Pmとすると、第2の方法では以下のように
処理を行う。但し、ここでは先のテーブルにおいて、文
字外形の外周の凹部の点と文字穴の外周の点に対して識
別子1を保持する。凹部の点の検出は文字外形の外周の
点列から生成される2つのベクトルPiPi+1とベクトル
Pi+1Pi+2の外積を計算し、右手系の場合ならばその符
合が正の時、Pi+1が凹部の点である(左手系の場合は
逆)。
Next, a second triangulation method will be described. The point sequence of the connected outer periphery obtained in the preprocessing is represented by P0,
Assuming that P1,..., Pm, the second method performs the following processing. However, here, in the above table, the identifier 1 is held for the point of the concave portion on the outer periphery of the character outline and the point of the outer periphery of the character hole. The detection of the point of the concave portion calculates an outer product of two vectors PiPi + 1 and Pi + 1Pi + 2 generated from a sequence of points on the outer periphery of the character outline, and in the case of a right-handed system, when the sign is positive, Pi +1 is the point of the recess (the reverse is the case for the left-handed system).

【0072】(1)ベクトルP0P1とP1P2の外積を計
算し、その符合を算出する(ここでは右手系として話を
進めるが、左手系の場合も符合が逆なだけで同様に行え
る)。但し、下記(2b)で点の除去が行われているの
で、最終的に点列の残りの点の個数が3つになったなら
ば、外積は行わず、その3点をその順序で保持する。そ
の3点によって構成される三角形が分割処理の最後の三
角形であるため、そこで処理を終了する。
(1) The cross product of the vectors P0P1 and P1P2 is calculated and its sign is calculated (here, the right-hand system is used, but in the case of the left-hand system, the same operation can be performed only by reversing the sign). However, since point removal is performed in the following (2b), if the number of remaining points in the point sequence finally becomes three, no outer product is performed, and the three points are held in that order. I do. Since the triangle formed by the three points is the last triangle in the division processing, the processing ends there.

【0073】(2a)(1)の外積の結果が負ならば、
三角形P0P1P2の内部に、テーブルに保持した文字穴
の外周又は文字外形の凹部の点列Bの点が含まれていな
いかチェックする。このチェックは、ベクトルP0P1と
P0とチェックを行う点を結んでできるベクトルの外積
の符合が正で、ベクトルP1P2とP1とチェックを行う
点を結んでできるベクトルの外積の符合が正で、ベクト
ルP2P0とP2とチェックを行う点を結んでできるベ
クトルの外積の符合が正の場合には、そのチェックした
点は三角形の内部にあると判定される。
(2a) If the result of the cross product of (1) is negative,
It is checked whether the inside of the triangle P0P1P2 does not include the point of the point sequence B of the outer periphery of the character hole held in the table or the concave part of the character outer shape. In this check, the sign of the cross product of the vectors formed by connecting the points to be checked with the vectors P0P1 and P0 is positive, the sign of the cross product of the vectors formed by connecting the points to be checked with the vectors P1P2 and P1 is positive, and the vector P2P0 If the sign of the cross product of the vector formed by connecting the points to be checked with P2 and P2 is positive, it is determined that the checked point is inside the triangle.

【0074】(2b)(2a)の判定で三角形の内部に
点が含まれていない場合は、3点P0P1P2をこの並び
で保持し(この並びは時計回りに相当)、P1を点列B
から除去した新たな点列を生成し、三角形P0P2P3に
対して引続き上記(1)から処理を行う。
(2b) If no point is included in the triangle in the judgment of (2a), three points P0P1P2 are held in this arrangement (this arrangement is equivalent to clockwise), and P1 is a point sequence B
, A new sequence of points is generated, and the processing from (1) above is continuously performed on the triangle P0P2P3.

【0075】(2c)(2a)の判定で三角形の内部に
点が含まれている場合は、P0を点列Bの最後部に移動
した新たな点列を生成し、三角形P1P2P3に対して引
続き上記(1)から処理を行う。
(2c) If a point is included in the triangle in the judgment of (2a), a new point sequence is generated by moving P0 to the end of the point sequence B, and the triangle P1P2P3 is continued. The processing is performed from the above (1).

【0076】(2d)(1)の外積の結果が正または0
ならば、P0を点列Bの最後部に移動した新たな点列を
生成し、三角形P1P2P3に対して引続き上記(1)か
ら処理を行う。
(2d) The result of the cross product of (1) is positive or 0
If so, a new point sequence in which P0 is moved to the end of the point sequence B is generated, and the processing from (1) is continued for the triangles P1, P2, and P3.

【0077】以上の第2の三角形分割方法を「田」に適
用した場合の処理結果の例を、図6(b)に示す。但
し、図中の番号は前処理で接続化を行った外周の点列の
点列番号を示している。なお、上記の分割において生成
された、辺と三角形とを複数組み合わせることにより、
一般の多角形の形による分割が可能になる。
FIG. 6B shows an example of the processing result in the case where the above-described second triangulation method is applied to “ta”. However, the numbers in the figure indicate the dot sequence numbers of the dot sequences on the outer periphery that have been connected in the preprocessing. By combining a plurality of sides and triangles generated in the above division,
Division by a general polygonal shape becomes possible.

【0078】さらに、上記の第2の三角形分割方法をロ
シア語の「ё」に適用した場合の処理結果の例を、図7
に示す。各構成要素に対して、第1の三角形分割方法を
適用することにより、点列Bの座標データ(ここでは2
次元)と、分割された各三角形を表す3点の並びを表す
データ(点列Bにおける3つのインデックスにより表さ
れるデータ)が生成される。一般に、右手系のデータ形
式では、文字を3次元で表示する場合の下面の構成要素
における上記3点の並び方は時計回り、上面の構成要素
における上記3点の並び方は反時計回りとなる。また、
第2の三角形分割方法を適用することにより、前記接続
化した外周の点列の座標データ(ここでは2次元)と、
同様に各三角形の3点の並びを表すデータ(接続化した
外周の点列における3つのインデックスにより表される
データ)が生成される。ここで、「インデックス」と
は、分割された三角形の各頂点を表すための識別子をい
う。例えば、三角形がP1P2P3で構成されている場合の
「1」、「2」「3」がインデックスである。以上の第1
の三角形分割方法又は第2の三角形分割方法によって生
成されたデータの形式は、一般にインデックスドサーフ
ェースデータと呼ばれる。但し、左手系の場合の点列の
並び方は、上記右手系の場合と逆になる。このように、
文字形状上下面凸ポリゴン分割部5において、1つの文
字に対する上面の各構成要素のインデックスドサーフェ
ースデータと、下面の各構成要素のインデックスドサー
フェースデータが生成され、文字形状側面生成部6に出
力される。
Further, FIG. 7 shows an example of a processing result when the above-mentioned second triangulation method is applied to Russian “ё”.
Shown in By applying the first triangulation method to each component, the coordinate data of the point sequence B (here, 2
(Dimensions) and data (data represented by three indices in point sequence B) representing an arrangement of three points representing each divided triangle. In general, in the right-handed data format, when characters are displayed in three dimensions, the arrangement of the three points on the components on the lower surface is clockwise, and the arrangement of the three points on the components on the upper surface is counterclockwise. Also,
By applying the second triangulation method, coordinate data (here, two-dimensional) of the connected sequence of points on the outer periphery can be obtained,
Similarly, data representing an arrangement of three points of each triangle (data represented by three indices in a connected outer peripheral point sequence) is generated. Here, the “index” refers to an identifier for representing each vertex of the divided triangle. For example, when the triangle is composed of P1P2P3, “1”, “2”, and “3” are indexes. The above first
The format of the data generated by the triangulation method or the second triangulation method is generally referred to as indexed surface data. However, the arrangement of the point sequence in the case of the left-handed system is opposite to that in the case of the right-handed system. in this way,
In the character-shaped upper and lower convex polygon dividing unit 5, indexed surface data of each component on the upper surface and indexed surface data of each component on the lower surface for one character are generated and output to the character-shaped side surface generating unit 6. You.

【0079】文字形状側面生成部6は、文字形状上下面
凸ポリゴン分割部5から出力されたインデックスドサー
フェースデータを入力し、文字外周データ記憶部3から
各構成要素に関する元の外周の点列(接続化される以前
の形式の文字外周点列と穴外周点列)のデータを取得す
る。さらに、文字形状側面生成部6は、上記インデック
スドサーフェースデータを三次元に拡張する。以下で
は、文字形状側面生成部6におけるインデックスドサー
フェースデータを三次元に拡張する文字形状側面生成処
理について、図8及び図9を参照しながら説明する。
The character shape side surface generation unit 6 receives the indexed surface data output from the character shape upper / lower surface convex polygon division unit 5, and from the character outer circumference data storage unit 3, a sequence of original outer periphery points ( The data of the character outer peripheral point sequence and the hole outer peripheral point sequence in the format before the connection is obtained. Furthermore, the character-shaped side surface generating unit 6 extends the indexed surface data three-dimensionally. Hereinafter, the character shape side surface generation processing for expanding the indexed surface data in the character shape side surface generation unit 3 three-dimensionally will be described with reference to FIGS. 8 and 9.

【0080】図8は、文字形状側面生成処理における処
理の流れを示すフローチャートである。図9(a)〜
(d)は、インデックスドサーフェースデータを三次元
に拡張する際に必要となる、文字の上面を高さ方向に移
動する4種類の方法について、それらの概要を示した図
である。
FIG. 8 is a flowchart showing the flow of processing in the character shape side surface generation processing. FIG. 9 (a)-
(D) is a diagram showing an outline of four types of methods for moving the upper surface of the character in the height direction, which are required when the indexed surface data is extended three-dimensionally.

【0081】最初に、文字形状側面生成部6は、初期化
処理として、上記下面の各構成要素のインデックスドサ
ーフェースデータのうち、点列座標データを3次元に拡
張し、z座標値に相当する部分を全て0にする。同様
に、上記の元の外周の点列を3次元に拡張した下面にお
ける点列(以下「下点列」という。)の点列座標データ
のz座標値に相当する部分を全て0にする(S90
1)。
First, as the initialization processing, the character-shaped side surface generating section 6 expands the point sequence coordinate data in the indexed surface data of each component on the lower surface into three dimensions, and corresponds to the z coordinate value. All parts are set to 0. Similarly, all the parts corresponding to the z-coordinate values of the point sequence coordinate data of the point sequence (hereinafter referred to as “lower point sequence”) on the lower surface obtained by expanding the original outer peripheral point sequence into three dimensions are set to 0 ( S90
1).

【0082】次に、文字の上面を高さ方向に移動する方
法を特定し、それぞれの方法に基づいて(S902)、
文字の上面の各構成要素のインデックスドサーフェース
データのうちの点列座標データのz座標値、及び元の外
周の点列を3次元に拡張した上面における点列(以下
「上点列」という。)の点列座標データのz座標値とを
決定する。
Next, a method of moving the upper surface of the character in the height direction is specified, and based on each method (S902),
The z-coordinate value of the point sequence coordinate data in the indexed surface data of each component on the upper surface of the character, and the point sequence on the upper surface obtained by expanding the original outer peripheral point sequence into three dimensions (hereinafter referred to as “upper point sequence”). ) Is determined.

【0083】図9(a)は、第1の方法の概要を示す図
である。第1の方法は、文字の上面を高さ方向に垂直に
持ち上げる方法である(持ち上げた高さをhとする)。
この場合は、文字の上面の各構成要素のインデックスド
サーフェースデータのうち、点列座標データのz座標値
を全てhにする。同様に、元の外周の点列の点列座標デ
ータを3次元に拡張して上点列を生成し、そのz座標値
に相当する部分を全てhにする(S903)。
FIG. 9A is a diagram showing an outline of the first method. The first method is to lift the upper surface of the character vertically in the height direction (h is the height of the lift).
In this case, among the indexed surface data of each component on the upper surface of the character, all the z coordinate values of the point sequence coordinate data are set to h. Similarly, the point sequence coordinate data of the original point sequence on the outer periphery is extended three-dimensionally to generate an upper point sequence, and all parts corresponding to the z coordinate value are set to h (S903).

【0084】図9(b)は、第2の方法の概要を示す図
である。第2の方法は、基準ベクトルv(vx,vy,
vz)の方向に平行移動する方法である。この場合は、
文字の上面の各構成要素のインデックスドサーフェース
データのうち、点列座標データのz座標値を0として3
次元に拡張し、これらに基準ベクトル分の座標値を加算
する。同様に、元の外周の点列の点列座標データのz座
標値を0にして3次元に拡張した上点列を生成し、これ
らに基準ベクトル分の座標値を加算する(S904)。
FIG. 9B is a diagram showing an outline of the second method. In the second method, the reference vector v (vx, vy,
vz). in this case,
Of the indexed surface data of each component on the upper surface of the character, the z coordinate value of the point sequence
The dimension is extended to these dimensions, and the coordinate values for the reference vector are added to these dimensions. Similarly, the z-coordinate value of the point sequence coordinate data of the original point sequence on the outer periphery is set to 0 to generate a three-dimensionally extended upper point sequence, and the coordinate values of the reference vector are added to these (S904).

【0085】図9(c)は、第3の方法の概要を示す図
である。第3の方法は、文字を縮小変換または拡大変換
した後に高さ方向へ移動する方法である(高さをhとす
る)。この場合は、文字の上面の各構成要素のインデッ
クスドサーフェースデータのうち、点列座標データに対
して縮小または拡大変換を行い、z座標値をhとして3
次元に拡張する。同様に、元の外周の点列の点列座標デ
ータに対して縮小又は拡大変換を行い、z座標値をhに
して3次元に拡張した上点列を生成する(S905)。
FIG. 9C is a diagram showing an outline of the third method. A third method is a method in which a character is reduced or enlarged and then moved in the height direction (h is h). In this case, reduction or enlargement conversion is performed on the point sequence coordinate data in the indexed surface data of each component on the upper surface of the character, and the z coordinate value is set to 3
Extend to dimensions. Similarly, reduction or enlargement conversion is performed on the point sequence coordinate data of the original point sequence on the outer periphery, and the z-coordinate value is set to h to generate a three-dimensionally expanded upper point sequence (S905).

【0086】図9(d)は、第4の方法の概要を示す図
である。第4の方法は、回転変換により移動する方法で
あり、適当な回転軸ベクトルと回転角θが予め与えられ
る。この場合は、文字の上面の各構成要素のインデック
スドサーフェースデータのうち、点列座標データのz座
標値を0として3次元に拡張し、これらの座標値に対し
て、予め与えられた回転軸ベクトルと回転角θによって
定義される回転変換を施し、変換後の座標値を算出す
る。同様に、元の外周の点列の点列座標データのz座標
値を0にして3次元に拡張した上点列を生成し、この座
標値に対して、予め与えられた回転軸ベクトルと回転角
によって定義される回転変換を施し、変換後の座標値を
算出する(S906)。
FIG. 9D is a diagram showing an outline of the fourth method. The fourth method is a method of moving by rotation conversion, and an appropriate rotation axis vector and rotation angle θ are given in advance. In this case, among the indexed surface data of each component on the upper surface of the character, the z-coordinate value of the point sequence coordinate data is extended to three dimensions by setting it to 0, and a rotation axis given in advance to these coordinate values is set. The rotation conversion defined by the vector and the rotation angle θ is performed, and the coordinate values after the conversion are calculated. Similarly, the z-coordinate value of the point sequence coordinate data of the original perimeter point sequence is set to 0 to generate a three-dimensionally extended upper point sequence, and a predetermined rotation axis vector and rotation The rotation transformation defined by the angle is performed, and the coordinate value after the transformation is calculated (S906).

【0087】なお、以上の処理からも判るように、3次
元に拡張した上記元の外周の下点列と上点列は、点列番
号が一致している。以上のように、文字形状側面生成部
6において、3次元に拡張された文字上下面の各構成要
素のインデックスドサーフェースデータが生成され(S
907)、文字形状データ出力部7に出力される。
As can be seen from the above processing, the lower point sequence and the upper point sequence of the three-dimensionally expanded original outer periphery have the same point sequence number. As described above, the character-shaped side surface generating unit 6 generates the indexed surface data of each component of the upper and lower surfaces of the character extended in three dimensions (S
907), and is output to the character shape data output unit 7.

【0088】3次元に拡張した各構成要素の外周の下点
列を{P'n}、上点列を{Pn}とすると、右手系の場
合、側面は四角形PiP'iP'i+1Pi+1として生成できる
(反時計回りの順で、左手系の場合は時計回りに並べ変
えれば良い)。インデックスドサーフェースデータの形
式の側面データとするためには、上点列の後に下点列を
付加した点列(ここでは{Q2n})の点列座標データ
に、QiQi+nQi+1Qi+n+1の並びのインデックスデータ
を並べる。このように生成された、各構成要素の側面の
インデックスドサーフェースデータは、文字形状データ
出力部7に出力される。
Assuming that the lower point sequence of the periphery of each component expanded in three dimensions is {P′n} and the upper point sequence is {Pn}, in the case of the right-handed system, the side surface is a square PiP′iP′i + 1Pi + It can be generated as 1 (in the counterclockwise order, in the case of a left-handed system, you can rearrange it clockwise). In order to obtain side data in the form of indexed surface data, QiQi + nQi + 1Qi + n + is added to point sequence coordinate data of a point sequence (here, {Q2n}) in which a lower point sequence is added after an upper point sequence. Arrange the index data in the order of 1. The generated indexed surface data of the side surface of each component is output to the character shape data output unit 7.

【0089】文字形状データ出力部7では、文字形状側
面生成部6から出力されてきた、文字の各構成要素の上
下面のインデックスドサーフェースデータと、各構成要
素の側面のインデックスドサーフェースデータを階層的
な記述によって一まとめにして、外部(例えば、3次元
図形表示装置等)へ出力する。なお、データ形式を変換
する場合には、当該データ形式へ変換してから出力を行
う。
The character shape data output unit 7 hierarchically combines the indexed surface data of the upper and lower surfaces of each component of the character and the indexed surface data of the side of each component output from the character shape side surface generator 6. And collectively output it to an external device (for example, a three-dimensional graphic display device). When the data format is converted, the data format is converted and then output.

【0090】以上のように、穴が含まれている文字につ
いて、文字や文字部品の外形と文字穴との包含関係を明
確にすることにより、文字部品の単位までに分割した3
次元表示を可能とすることができる。
As described above, for a character including a hole, the inclusion relation between the outline of the character or character part and the character hole is clarified, so that the character is divided into units of the character part.
Dimensional display can be enabled.

【0091】(実施の形態2)上記の実施の形態1で
は、文字の上面を高さ(z軸)方向に直線的に持ち上げ
ることによって、3次元文字の側面を直線的に形成し、
3次元の文字を生成する実施例について述べたが、実施
の形態2では、3次元の文字の側面に任意の中間外周を
設け、その中間外周に基づいて種々のべベル形状の側面
を形成する実施例について述べる。なお、本実施の形態
では、上記実施の形態1と同じ構成部分についての説明
は省略する。
(Embodiment 2) In Embodiment 1 described above, the upper surface of the character is linearly lifted in the height (z-axis) direction to form the side surface of the three-dimensional character linearly.
Although an example of generating a three-dimensional character has been described, in the second embodiment, an arbitrary intermediate outer periphery is provided on a side surface of a three-dimensional character, and various bevel-shaped side surfaces are formed based on the intermediate outer periphery. An embodiment will be described. In the present embodiment, the description of the same components as those in the first embodiment is omitted.

【0092】図10は、本実施の形態における3次元文
字データ生成装置201の機能構成を示すブロック図で
ある。本装置201は、前記文字形状側面生成部6に代
えてべベル形状側面生成部11を備え、前記文字形状デ
ータ出力部7に代えて文字形状データ出力部12を備え
る。以上のように構成される3次元文字データ生成装置
201について、以下詳細に説明を行う。
FIG. 10 is a block diagram showing a functional configuration of the three-dimensional character data generation device 201 according to the present embodiment. The apparatus 201 includes a bevel-shaped side surface generation unit 11 instead of the character-shaped side surface generation unit 6, and includes a character-shape data output unit 12 instead of the character-shape data output unit 7. The three-dimensional character data generation device 201 configured as described above will be described in detail below.

【0093】べベル形状側面生成部11では、上記文字
形状上下面凸ポリゴン分割部5の出力結果のほかに、上
記実施の形態1と同様に元の外周の点列のデータを文字
外周データ記憶部3から入力する。文字下面の各構成要
素のインデックスドサーフェースデータのうち、点列座
標データを3次元に拡張し、z座標値に相当する部分を
全て0にする。同様に、元の外周の点列の点列座標デー
タを3次元に拡張した下点列を生成し、そのz座標値に
相当する部分を全て0にする。
In the bevel-shaped side surface generating section 11, in addition to the output result of the character-shaped upper / lower-surface convex polygon dividing section 5, as in the first embodiment, the data of the original outer point sequence is stored in the character outer peripheral data. Input from section 3. In the indexed surface data of each component on the lower surface of the character, the point sequence coordinate data is extended three-dimensionally, and all parts corresponding to the z coordinate value are set to 0. Similarly, a lower point sequence obtained by expanding the point sequence coordinate data of the original outer peripheral point sequence into three dimensions is generated, and all parts corresponding to the z coordinate values are set to 0.

【0094】次に、高さ方向に垂直に持ち上げ(持ち上
げた高さをhとする)、文字上面の各構成要素のインデ
ックスドサーフェースデータのうち、点列座標データを
3次元に拡張し、z座標値に相当する部分を全てhにす
る。同様に、元の外周の点列の点列座標データを3次元
に拡張した上点列を生成し、z座標値に相当する部分を
全てhにする。3次元に拡張した上面及び下面の各構成
要素のインデックスドサーフェースデータは文字形状デ
ータ出力部12に出力される(但し、最後に述べる鋳型
タイプのべベル形状を除く)。
Next, it is lifted vertically in the height direction (h is the lifted height), and the point sequence coordinate data of the indexed surface data of each component on the upper surface of the character is extended three-dimensionally. All parts corresponding to coordinate values are set to h. Similarly, an upper point sequence is generated by extending the point sequence coordinate data of the original point sequence on the outer periphery into three dimensions, and all portions corresponding to z coordinate values are set to h. The indexed surface data of each of the three-dimensionally expanded upper surface and lower surface components is output to the character shape data output unit 12 (except for the mold type bevel shape described last).

【0095】図11は、べベル形状の外形及びべベル形
状の中間外周の生成方法を説明するための図である。図
11(a)は、最も単純なベベル形状の外形を示した図
である。図11(a)では、文字の上下面の間に中間外
周1220を生成し、文字の側面を斜めに切ったときの
断面が凸六角形となるようにして、べベル形状を成形さ
せている。この場合、文字の外側の中間外周1220
は、文字の上面(または下面)の外周1210(又は1
230)を拡大して生成し、文字穴の中間外周は、文字
の上面(または下面)の穴外周を縮小して生成する。
FIG. 11 is a view for explaining a method of generating a bevel-shaped outer shape and a bevel-shaped intermediate outer periphery. FIG. 11A is a diagram showing the simplest bevel-shaped outer shape. In FIG. 11A, an intermediate outer periphery 1220 is generated between the upper and lower surfaces of the character, and the bevel shape is formed such that the cross section of the side of the character when cut obliquely becomes a convex hexagon. . In this case, the middle outer periphery 1220 outside the character
Is the outer circumference 1210 (or 1
230) is generated by enlarging, and the middle outer periphery of the character hole is generated by reducing the outer periphery of the hole on the upper surface (or lower surface) of the character.

【0096】その他のべベル形状としては、上記図11
(a)とは逆に、文字の側面を斜めに内側に切り、その
断面が窪んだ凹六角となるようにしてべベル形状を成形
させる場合が考えられる。この場合、文字の外側の中間
外周は、文字の上面(または下面)の外周1210(又
は1230)を縮小して生成し、文字穴の中間外周は、
文字の上面(または下面)の穴外周を拡大して生成す
る。文字の外側の中間外周と文字穴の中間外周との組合
せとしては、他に、文字外形、文字穴ともに拡大して生
成した場合、文字外形、文字穴ともに縮小して生成した
場合などがある。
The other bevel shapes shown in FIG.
Contrary to (a), a case may be considered in which the side surface of the character is cut obliquely inward, and the bevel shape is formed so that the cross section becomes a concave hexagon. In this case, the middle outer periphery of the character is generated by reducing the outer periphery 1210 (or 1230) of the upper surface (or lower surface) of the character, and the middle outer periphery of the character hole is
It is generated by enlarging the outer periphery of the hole on the upper surface (or lower surface) of the character. Other combinations of the middle outer periphery of the outside of the character and the middle outer periphery of the character hole include a case where the character outline and the character hole are both enlarged and generated, and a case where both the character outline and the character hole are reduced and generated.

【0097】以下では、中間外周を生成する方法につい
て、図11(b)及び図12のフローチャートを参照し
ながら説明する。
Hereinafter, a method for generating the intermediate outer circumference will be described with reference to the flowcharts of FIGS.

【0098】上記のように、中間外周を生成するために
は、各構成要素の外周を拡大または縮小して生成する必
要がある。中間外周は、構成要素の外周の法線ベクトル
を求め、構成要素の外周の点列の点を法線方向へ移動
(拡大の場合は、法線ベクトルを正の方向へ、縮小の場
合は負の方向へ移動)することによって得られる。構成
要素の外周上の点を、P0,P1,・・・,Pnとした場合の
中間外周の生成方法を以下で説明する。
As described above, in order to generate the intermediate outer circumference, it is necessary to expand or reduce the outer circumference of each component. For the intermediate outer periphery, the normal vector of the outer periphery of the component is obtained, and the points in the point sequence of the outer periphery of the component are moved in the normal direction (in the case of enlargement, the normal vector is moved in the positive direction; In the direction of.). A method of generating an intermediate outer circumference when points on the outer circumference of the component are P0, P1,..., Pn will be described below.

【0099】(1)ベクトルpi=PiPi+11340
(添字iの点を始点とし、次の添字i+1の点を終点と
したベクトル)を求める。但し、最後に求まるベクトル
は、pn=PnP0(添字が最後の外周上の点を始点と
し、最初の点を終点としたベクトル)とする(S130
1)。
(1) Vector pi = PiPi + 1 1340
(A vector with the point of the subscript i as a starting point and the point of the next subscript i + 1 as an end point) is obtained. However, the last vector obtained is pn = PnP0 (a vector whose suffix is the last point on the outer circumference as the start point and the first point as the end point) (S130).
1).

【0100】(2)各ベクトルpi=(pix,piy)の
法線ベクトルNi=(Nix,Niy)1341を求める
(S1302)。法線ベクトルの求め方は以下の通りで
ある。但し、法線ベクトルは2通りある。 (pix*piy≠0のとき): Nix=±1/(1+(pix/piy)**2)**(1/2), −Niy=±(pix/piy)×1/(1+(pix/piy)
**2)**(1/2) (pix=0,piy≠0のとき): Nix=±1,Niy=0 (pix≠0,piy=0のとき): Nix=0,Niy=±1 上記で求めた、2通りの法線ベクトルのうち、以下の条
件を満たす方を選択する。 (条件式):pix*Niy−piy*Nix>0
(2) A normal vector Ni = (Nix, Niy) 1341 of each vector pi = (pix, piy) is obtained (S1302). The method of obtaining the normal vector is as follows. However, there are two types of normal vectors. (When pix * piy ≠ 0): Nix = ± 1 / (1+ (pix / piy) ** 2) ** (1/2), −Niy = ± (pix / piy) × 1 / (1+ (pix / Piy)
** 2) ** (1/2) (when pix = 0, piy ≠ 0): Nix = ± 1, Niy = 0 (when pix ≠ 0, piy = 0): Nix = 0, Niy = ± 1. The one that satisfies the following condition is selected from the two normal vectors obtained above. (Conditional expression): pix * Niy-piy * Nix> 0

【0101】(3)外周の各点Piに対して、法線ベク
トルNPi=(NPxi,NPyi)を以下の式によって求
める(S1303)。 NPi=(Ni-1+Ni)/||Ni-1+Ni|| =((Ni-1x+Nix)/((Ni-1x+Nix)**2+(Ni-1y+Niy) **2))**(1/2),(Ni-1y+Niy)/((Ni-1x+Nix)**2 +(Ni-1y+Niy)**2))**(1/2) 但し、NP0については、以下の通りとする。 NP0=(Nn+N0)/||Nn+N0|| =((Nnx+N0x)/((Nnx+N0x)**2 +(Nny+N0y)**2))**(1/2), (Nny+N0y)/((Nnx+N0x)**2+(Nny+N0y)**2)) **(1/2))
(3) A normal vector NPi = (NPxi, NPyi) is obtained for each point Pi on the outer periphery by the following equation (S1303). NPi = (Ni-1 + Ni) / || Ni-1 + Ni || = ((Ni-1x + Nix) / ((Ni-1x + Nix) ** 2+ (Ni-1y + Niy) ** 2)) ** (1/2), (Ni-1y + Niy) / ((Ni-1x + Nix) ** 2+ (Ni-1y + Niy) ** 2)) ** (1/2) However, NP0 is as follows. NP0 = (Nn + N0) / || Nn + N0 || = ((Nnx + N0x) / ((Nnx + N0x) ** 2+ (Nny + N0y) ** 2)) ** (1/2), (Nny + N0y) / ((Nnx + N0x) * * 2 + (Nny + N0y) ** 2)) ** (1/2))

【0102】(4)外周を拡大/縮小する量をLとした
とき、次のαiを算出する(S1304)。但し、具体
的な拡大/縮小量Lについては後述する。 αi=L/cosθi=L/(NpixNix+NpiyNiy) 但し、構成要素の外周の場合,上式の分母が0以下にな
ることはない。従って、もし0以下になった場合は、異
常が起こっている。
(4) When the amount of enlargement / reduction of the outer periphery is L, the next αi is calculated (S1304). However, the specific enlargement / reduction amount L will be described later. αi = L / cos θi = L / (NpixNix + NpiyNiy) However, in the case of the outer periphery of the component, the denominator of the above equation does not become 0 or less. Therefore, if it becomes 0 or less, an abnormality has occurred.

【0103】(5)外周の各点Piに対応する中間外周
の点をPi'1242とすると、Pi'を以下の式によっ
て求める。これらが拡大した中間外周を構成する点列に
なる(S1306)。 Pi'=Pi+αiNPi 縮小の場合の中間外周の点をPi'については、 Pi'=PiαiNPi によって求める(S1307)。
(5) Assuming that a point on the middle outer periphery corresponding to each point Pi on the outer periphery is Pi'1242, Pi 'is obtained by the following equation. These become a dot sequence constituting the enlarged intermediate outer periphery (S1306). Pi ′ = Pi + αiNPi In the case of reduction, the point on the intermediate outer periphery is obtained by Pi ′ = PiαiNPi for Pi ′ (S1307).

【0104】このように生成された中間外周の点列と上
点列、下点列を用いて、側面形状の生成方法を図11
(a)を参照しながら説明する。まず、中間外周の点列
を3次元に拡張し、z座標値をここでは半分のh/2と
する(この場合、z座標値を0とhの間の任意の値に設
定することが可能である)。次に、上点列Pn,Pn+1に
対応する中間外周の点列をPcn,Pcn+1,下点列をP
n',Pn+1'とすると、上面の外周と中間外周を接続する
ことによって生成される側面は、反時計回りの場合「P
nPn+1Pcn+1Pcn」で、中間外周と下面の外周の接続で
生じる側面は、「PcnPcn+1Pn+1'Pn'」となる。
Using the sequence of points on the intermediate outer periphery thus generated, the sequence of upper points, and the sequence of lower points, a method of generating a side surface shape is shown in FIG.
This will be described with reference to FIG. First, the point sequence on the middle outer periphery is extended three-dimensionally, and the z coordinate value is set to half of h / 2 here (in this case, the z coordinate value can be set to any value between 0 and h. Is). Next, Pcn, Pcn + 1 are the point sequence on the middle outer periphery corresponding to the upper point sequence Pn, Pn + 1, and the lower point sequence is Pcn.
n ′, Pn + 1 ′, the side surface generated by connecting the outer periphery of the upper surface and the intermediate outer periphery is “P
In “nPn + 1Pcn + 1Pcn”, the side surface generated by the connection between the middle outer circumference and the lower circumference is “PcnPcn + 1Pn + 1′Pn ′”.

【0105】従って、上面の外周と中間外周から生成さ
れる側面のインデックスドサーフェースデータは、上点
列(個数n)に中間外周の点列をアペンドした点列Q
1,・・・,Qn,Qn+1,・・・,Q2nを構成し、反時計回り
の場合は、インデックスをQi,Qi+1,Qi+n+1,Qi+n
として順次構成する。同様に、中間外周と下面の外周か
ら生成される側面のインデックスドサーフェースデータ
についても生成できる。
Therefore, the indexed surface data of the side surface generated from the outer periphery of the upper surface and the intermediate outer periphery is represented by a point sequence Q obtained by appending the point sequence of the intermediate outer periphery to the upper point sequence (number n).
, Qn, Qn + 1,..., Q2n, and in the case of counterclockwise rotation, the indexes are Qi, Qi + 1, Qi + n + 1, Qi + n.
Are sequentially configured. Similarly, indexed surface data of a side surface generated from the middle outer circumference and the lower circumference can be generated.

【0106】次に、上記の中間外周を生成する場合の発
展形として、中間外周を2つ生成し、文字外周の上面及
び下面の端の角を削った形状、いわゆる典型的なベベル
形状の生成方法について、図13を参照しながら説明す
る。なお、この場合の中間外周の生成方法も、基本的に
は上記の生成方法と同様である。
Next, as an advanced form of generating the above-mentioned intermediate outer periphery, two intermediate outer peripheries are generated, and the shapes of the upper and lower edges of the character outer periphery are cut off, so-called typical bevel shapes. The method will be described with reference to FIG. In this case, the method of generating the intermediate outer circumference is basically the same as the above-described generation method.

【0107】図13(a)は、文字の上面及び下面より
も側面が突き出している、いわゆる凸状の側面を形成す
る2つの中間外周を生成する場合の概要を示す図であ
る。図13(a)において、生成する2つの中間外周の
うち、上面に近い方を第1中間外周1411、下面に近
い方を第2中間外周1412とする。次に、ベベル形状
の削ぎ落とし角度を、図13(a)に示したように、上
面外周に対する削ぎ落とし角度をθ1、下面外周に対す
る削ぎ落とし角度をθ2とする。この場合、2つの中間
外周1411、1412は、ともに上面の文字外周14
10に対して拡大を行うこととなる。
FIG. 13A is a diagram schematically showing a case where two intermediate outer peripheries forming a so-called convex side surface, the side surfaces protruding from the upper and lower surfaces of the character, are generated. In FIG. 13A, of the two intermediate outer peripheries to be generated, the one closer to the upper surface is referred to as a first intermediate outer perimeter 1411 and the one closer to the lower surface is referred to as a second intermediate outer perimeter 1412. Next, as shown in FIG. 13A, the beveling angle of the bevel shape is θ1 for the outer periphery of the upper surface and θ2 for the outer periphery of the lower surface. In this case, the two intermediate outer peripheries 1411 and 1412 are both the character outer perimeter 14 on the upper surface
10 will be enlarged.

【0108】図13(a)から分かるように、上面の文
字外周1410を拡大して中間外周を生成する場合は、
tanθi=hi/Liであるので、hi=Litanθiと
なる。但し、この場合は、i=1または2である。以上
の計算を行った後、h0=h−(h1+h2)を算出し、
第1中間外周1411の点列のz座標値をh0+h2(=
h−h1)とし、第2中間外周1412の点列のz座標
値をh2として3次元化した点列を生成する。側面の生
成については、中間外周が1つ増えたことに注意すれ
ば、上記で説明した、中間外周が1つの場合の側面を生
成する方法と同様に行うことが可能となる。
As can be seen from FIG. 13 (a), when enlarging the character outer periphery 1410 on the upper surface to generate an intermediate outer periphery,
Since tan θi = hi / Li, hi = Litan θi. However, in this case, i = 1 or 2. After performing the above calculations, h0 = h− (h1 + h2) is calculated,
The z coordinate value of the point sequence of the first intermediate outer periphery 1411 is represented by h0 + h2 (=
hh1), and a three-dimensional point sequence is generated by setting the z coordinate value of the point sequence of the second intermediate outer periphery 1412 as h2. The generation of the side surface can be performed in the same manner as the above-described method of generating the side surface in the case where the number of the intermediate outer circumference is one, by noting that the number of the intermediate outer circumference is increased by one.

【0109】図13(b)は、上記図13(a)とは逆
に、凹状の側面を形成する2つの中間外周を生成する場
合の概要を示す図である。この場合は、上面の文字外周
1420に対して縮小を行うことによって2つの中間外
周を生成することとなるが、基本的には、上記図13
(a)と同様の方法によって生成が可能である。
FIG. 13B is a diagram schematically showing a case where two intermediate outer peripheries forming a concave side surface are generated, contrary to FIG. 13A. In this case, two intermediate outer peripheries are generated by reducing the outer perimeter 1420 of the upper surface of the character.
It can be generated by the same method as in (a).

【0110】次に、側面の形状が曲線の場合に、この曲
線を多角形で近似し、その多角形に合わせて多数の中間
外周を発生させて側面を生成する方法について、図14
に基づいて説明する。ここでは中間外周の生成を制御す
る曲線は、基本的には2次曲線とし、例えば円や放物
線、スプライン曲線を想定して説明する。
Next, in the case where the shape of the side surface is a curve, this curve is approximated by a polygon, and a number of intermediate outer peripheries are generated according to the polygon to generate the side surface.
It will be described based on. Here, the curve for controlling the generation of the intermediate outer circumference is basically a quadratic curve, and a description will be given assuming, for example, a circle, a parabola, and a spline curve.

【0111】まず、図14(a)に示したように、側面
の形状が半円状に凸となっている場合について説明す
る。なお、拡大をL、立ち上げる高さをh(≧2L)、生
成する中間外周の数を2n+1とする。なお、図14
(a)の例では、n=2とする。
First, as shown in FIG. 14 (a), a case where the side surface has a semicircular convex shape will be described. Note that the enlargement is L, the rising height is h (≧ 2L), and the number of intermediate peripherals to be generated is 2n + 1. FIG.
In the example of (a), n = 2.

【0112】図14(a)から分かるように、生成され
る中間外周は、高さh/2における中央の中間外周15
11に関して対称となる。従って、中央の中間外周15
11より上側(または下側)の中間外周を生成すれば、
下側(または上側)の中間外周は対称性を利用して生成
すれば良い。側面の生成については、上記に述べた方法
によって生成する。中間外周の生成で問題となるのは、
中央の中間外周1511以外の拡大量とそのz座標値を
算出することである。これについて、図14(c)を参
照しながら、その算出方法について説明する。
As can be seen from FIG. 14 (a), the generated intermediate outer circumference is the middle intermediate outer circumference 15 at the height h / 2.
11 is symmetric. Accordingly, the central intermediate outer periphery 15
If you create an intermediate circumference above (or below) 11
The lower (or upper) middle outer periphery may be generated using symmetry. The aspect is generated by the method described above. The problem with generating the middle circumference is that
This is to calculate the amount of enlargement other than the center intermediate outer periphery 1511 and its z coordinate value. The calculation method will be described with reference to FIG.

【0113】図14(c)において、中央の中間外周1
511を中間外周0とし、以降その両側に離れる順に、
中間外周1,2,・・・とする。中間外周iの拡大量L
i、z座標値ziは、以下の式により算出することがで
きる(ここで、べベル円の半径をrとする)。 Li=L−r(1−cos(2iθ/(n+1))) zi=h/2±hi=h/2±rsin(2iθ/(n+
1)) r=1/2L(L**2+h**2/4) θ=arctan(2L/h) 但し、i=0,1,・・・,nで、ziはプラスのときが上
側の中間外周のz座標で、マイナスのときが下側の中間
外周のz座標を示す。
In FIG. 14 (c), the middle outer periphery 1
511 is defined as an intermediate outer circumference 0, and thereafter, in the order away from both sides,
The intermediate outer circumference is 1, 2,. Enlargement amount L of intermediate outer circumference i
The i and z coordinate values zi can be calculated by the following equation (where the radius of the bevel circle is r). Li = L−r (1-cos (2iθ / (n + 1))) zi = h / 2 ± hi = h / 2 ± rsin (2iθ / (n +
1)) r = 1 / 2L (L ** 2 + h ** 2/4) θ = arctan (2L / h) where i = 0, 1,..., N and zi In the z coordinate of the middle outer circumference, a minus value indicates the z coordinate of the lower middle circumference.

【0114】図14(b)は、側面の形状が凹の場合の
べベル形状の外観を示す。側面の形状が凹の場合は、L
iについては符号をマイナスにして縮小量とするが、z
iについては、上記図14(a)の凸の場合と同じであ
る。
FIG. 14B shows the appearance of a bevel when the shape of the side surface is concave. When the shape of the side surface is concave, L
For i, the sign is minus and the reduction amount is used, but z
i is the same as the case of the convex shape in FIG.

【0115】次に、側面のべベル形状が放物線の場合に
ついて説明する。円の場合と同様に、生成する中間外周
の個数を2n+1、中間外周iの拡大/縮小量をLi、
z座標値をzi,i=0,1,・・・,n,とすると、凸の
場合は、 Li=L(1−i**2/(n+1)**2) zi=h/2±ih/2(n+1)=h(1±i/(n
+1))/2 但し、ziは、その値がプラスのときが上側の中間外周
のz座標、マイナスのときが下側の中間外周のz座標を
示す。なお、以上は凸の場合だが、凹の場合は、Liに
ついては符号をマイナスにして縮小量とするが、ziに
ついては凸の場合と同じである。
Next, a case where the bevel shape of the side surface is a parabola will be described. As in the case of the circle, the number of intermediate outer circumferences to be generated is 2n + 1, the enlargement / reduction amount of the intermediate outer circumference i is Li,
Assuming that the z-coordinate value is zi, i = 0, 1,..., n, in the case of a convex, Li = L (1-i ** 2 / (n + 1) ** 2) zi = h / 2 ± ih / 2 (n + 1) = h (1 ± i / (n
+1)) / 2 where zi represents a z-coordinate of the upper middle outer periphery when its value is plus, and a z-coordinate of the lower middle outer periphery when its value is minus. Note that the above is the case of convex, but in the case of concave, the sign of Li is minus and the amount of reduction is used, but zi is the same as the case of convex.

【0116】2次スプライン曲線を用いる場合は、下面
と上面との間に仮想的にz座標値が0〜hのパラメータ
を導入することとする。本装置201の操作者によって
入力された上面と下面との間の適当な制御点と、上記パ
ラメータとに基づいてスプライン曲線を発生させる。但
し、上面と下面部の端点は0に固定する。スプライン曲
線によって凸/凹となった量が拡大/縮小量で、パラメ
ータが有するz座標値が中間外周のz座標値となる。以
上のように、2次スプライン曲線に合わせて中間外周を
発生させ、文字の側面を上記と同様の方法で生成する。
When a quadratic spline curve is used, it is assumed that a parameter whose z coordinate value is 0 to h is virtually introduced between the lower surface and the upper surface. A spline curve is generated based on the above parameters and appropriate control points between the upper and lower surfaces input by the operator of the apparatus 201. However, the end points of the upper surface and the lower surface are fixed to 0. The amount of projection / recess by the spline curve is the enlargement / reduction amount, and the z coordinate value of the parameter is the z coordinate value of the middle outer periphery. As described above, the middle outer periphery is generated according to the quadratic spline curve, and the side surface of the character is generated in the same manner as described above.

【0117】最後に、鋳型タイプのベベル形状の側面を
生成させる場合について、図15に基づいて説明する。
鋳型タイプのベベル形状の側面を生成させる場合も、上
述した中間外周を2つ発生させる方法を変形して適用す
ることによって生成が可能である。以下では、3段の鋳
型タイプのべベル形状の側面を生成する場合の手順を示
す。
Finally, a case of generating a mold-type bevel side surface will be described with reference to FIG.
When a mold-type bevel-shaped side surface is generated, it can be generated by modifying and applying the above-described method of generating two intermediate outer peripheries. Hereinafter, a procedure for generating a bevel-shaped side surface of a three-stage mold type will be described.

【0118】(1)元の構成要素の外周と同一(但し、
z座標値は同一ではない。)の中間外周1610,16
11と、元の外周を縮小した2つの中間外周1620、
1621と、元の外周を拡大した2つの中間外周163
0、1631を上記に述べた方法で生成する。
(1) Same as the outer periphery of the original component (however,
The z coordinate values are not the same. ) Middle outer circumference 1610, 16
11, two intermediate outer peripheries 1620 that are reduced from the original outer perimeter,
1621 and two intermediate outer peripheries 163 that enlarge the original outer perimeter.
0, 1631 are generated in the manner described above.

【0119】(2)立ち上げ高さをh(このhは、外部
より入力するかデフォルト値を使用する)としたとき、
縮小した2つの中間外周のz座標値をそれぞれh、2h
/3とし、元の外周と同一の2つの中間外周1610、
1611のz座標値をそれぞれ2h/3、h/3とし、
拡大した2つの中間外周のz座標値をそれぞれh/3、
0とする。
(2) When the starting height is h (this h is inputted from outside or a default value is used),
The z-coordinate values of the two reduced outer peripheries are h and 2h, respectively.
/ 2, and two intermediate outer circumferences 1610 identical to the original outer circumference,
The z coordinate values of 1611 are set to 2h / 3 and h / 3, respectively,
The z coordinate values of the two enlarged outer peripheries are respectively h / 3,
Set to 0.

【0120】(3)縮小して生成した中間外周のうち、
上位の中間外周により構成される面を構成要素の上面と
し、それらの中間外周の点列のz座標値をhにする(z
座標値がhの縮小した中間外周によって上面を生成す
る)。 (4)拡大して生成した中間外周のうち、下位の中間外
周により構成される面を構成要素の下面とし、それらの
中間外周の点列のz座標値を0にする(z座標値が0の
拡大した中間外周によって下面を生成する)。
(3) Of the intermediate periphery generated by reduction,
The surface constituted by the upper intermediate periphery is defined as the upper surface of the component, and the z coordinate value of the point sequence of the intermediate periphery is set to h (z
The upper surface is generated by the reduced middle outer periphery having the coordinate value h). (4) Of the intermediate outer circumferences generated by the enlargement, the surface constituted by the lower intermediate outer circumferences is defined as the lower surface of the component, and the z coordinate value of the point sequence of the intermediate outer circumferences is set to 0 (z coordinate value is 0). The lower surface is created by the enlarged intermediate outer periphery of

【0121】(5)縮小して生成した2つの中間外周間
において対応するそれぞれの点を結ぶことにより、上記
と同様の方法で最上位の段の側面1622を生成する。 (6)縮小して生成した中間外周(z座標値が2h/
3)と、元の外周と同一の中間外周のうち上位の中間外
周(z座標値が2h/3)との対応点を結ぶことによっ
て、上記と同様の方法で、中段の上面(水平面)を生成
する。
(5) By connecting corresponding points between the two intermediate outer circumferences generated by the reduction, the side face 1622 of the uppermost step is generated in the same manner as described above. (6) Reduced intermediate periphery (z coordinate value is 2h /
By connecting the corresponding point of 3) and the upper middle outer circumference (z coordinate value is 2h / 3) of the same middle outer circumference as the original outer circumference, the middle upper surface (horizontal plane) is formed in the same manner as described above. Generate.

【0122】(7)元の外周と同一の2つの中間外周間
において対応それぞれの点をむすぶことにより、上記と
同様の方法で中段の側面1612を生成する。 (8)元の外周と同一の中間外周のうち下位の中間外周
(z座標h/3)と拡大して生成した中間外周(z座標
値がh/3)との対応点を結ぶことにより、上記の方法
と同様の方法で下段の上面(水平面)を生成する。 (9)拡大して生成した2つの中間外周間において対応
するそれぞれの点を結ぶことにより、上記と同様の方法
で最下位の段の側面1632を生成する。
(7) Corresponding points between the two intermediate outer circumferences that are the same as the original outer circumference generate the middle side surface 1612 in the same manner as described above. (8) By connecting corresponding points of a lower intermediate outer circumference (z coordinate h / 3) of the same intermediate outer circumference as the original outer circumference and an intermediate outer circumference (z coordinate value h / 3) generated by enlargement, The lower upper surface (horizontal plane) is generated in the same manner as described above. (9) By connecting corresponding points between the two intermediate outer circumferences generated by enlargement, the lowermost side surface 1632 is generated in the same manner as described above.

【0123】なお、上記方法により上面と下面を生成す
る際は、元の構成要素に対する三角形分割を行っておけ
ば、外周のインデックスの対応関係自体は変化しないの
で、インデックスドサーフェースデータの点列座標デー
タ部分だけに対して縮小、または拡大するだけで良い。
また、この場合は、上記、元の構成要素の上面と下面の
インデックスドサーフェースデータは、文字形状データ
出力部12には出力せず、ここで生成されたインデック
スドサーフェースデータを生成後にまとめて送る。
When the upper surface and the lower surface are generated by the above-described method, if the original constituent elements are divided into triangles, the correspondence relationship between the indices on the outer periphery does not change. Therefore, the point sequence coordinates of the indexed surface data are not changed. It is only necessary to reduce or enlarge only the data portion.
In this case, the indexed surface data of the upper surface and the lower surface of the original component are not output to the character shape data output unit 12, but the indexed surface data generated here is sent together after generation. .

【0124】文字形状データ出力部12では、べベル形
状側面生成部11から送られてきた、文字の各構成要素
の上下面のインデックスドサーフェースデータと、各構
成要素のべベル形状側面のインデックスドサーフェース
データを階層的な記述によって一まとめにして、外部へ
出力する。なお、データ形式を変換する場合には、当該
データ形式へ変換してから出力する。
The character shape data output unit 12 outputs the indexed surface data of the upper and lower surfaces of each component of the character and the indexed surface data of the bevel side of each component sent from the bevel-shaped side surface generator 11. The face data is grouped by a hierarchical description and output to the outside. When the data format is converted, the data is converted and then output.

【0125】図16(a)〜(d)は、本実施の形態に
係る4種類のべベル形状の例を示す。図16(a)は、
前記実施の形態1において、第1の方法として文字の上
面を高さ方向に垂直に持ち上げた場合の側面の形状であ
り、「べベルなし」の場合である。図16(b)は、上
記図13(a)の形状と同様に、側面の断面が凸六角形
状に突き出たべベル形状を生成した例である。図16
(c)は、中間外周を2つ生成し、文字の上面及び下面
の外周に対する削ぎ落とし角度が等しい場合の側面の断
面が凸台形状のべベル形状を生成した例である。図16
(d)は、上記図15に示した「鋳型タイプ」のべベル
形状の例である。以上のように、中間外周を生成し、こ
れに基づいて側面を生成するため、自動的により多様な
3次元文字の側面形状を実現することが可能となる。
FIGS. 16A to 16D show examples of four types of bevel shapes according to the present embodiment. FIG. 16 (a)
In the first embodiment, the first method is a side surface shape when the upper surface of the character is lifted vertically in the height direction, which is a case of “no bevel”. FIG. 16B shows an example in which a bevel shape in which the cross section of the side surface protrudes in a convex hexagonal shape is generated similarly to the shape of FIG. FIG.
(C) is an example in which two intermediate outer peripheries are generated, and a bevel shape in which a side surface cross section is a convex trapezoidal shape when the scraping angles with respect to the outer peripheries of the upper surface and the lower surface of the character are equal. FIG.
(D) is an example of the “mold type” bevel shape shown in FIG. As described above, since the intermediate outer periphery is generated and the side surface is generated based on the intermediate outer periphery, it is possible to automatically realize more various three-dimensional character side shapes.

【0126】(実施の形態3)実施の形態3では、上記
の文字外周点列や穴外周点列の点間を適当な点で補間す
ることにより、より精細な3次元形状を可能とする場合
の実施例について述べる。なお、本実施の形態では、上
述した実施の形態と同じ構成部分についての説明は省略
する。
(Embodiment 3) In Embodiment 3, a case where a finer three-dimensional shape is made possible by interpolating between the points of the character outer peripheral point sequence and the hole outer peripheral point sequence with appropriate points. An example will be described. In the present embodiment, description of the same components as those in the above-described embodiment will be omitted.

【0127】図17は、本実施の形態3における3次元
文字データ生成装置301の機能構成を示すブロック図
である。3次元文字データ生成装置301は、文字外周
データ補間部21及び文字形状上下面凸ポリゴン再分割
部22及びテクスチャ座標生成部24を新たに備え、前
記文字形状側面生成部6に代えて文字形状側面生成部2
3を、文字形状データ出力部7に代えて文字形状データ
出力部25を備える。以上のように構成される3次元文
字データ生成装置301について、以下、詳細に説明す
る。
FIG. 17 is a block diagram showing a functional configuration of a three-dimensional character data generation device 301 according to the third embodiment. The three-dimensional character data generation device 301 newly includes a character outer periphery data interpolation unit 21, a character shape upper / lower surface convex polygon subdivision unit 22, and a texture coordinate generation unit 24, and replaces the character shape side surface generation unit 6 with a character shape side surface. Generator 2
3 is provided with a character shape data output unit 25 in place of the character shape data output unit 7. Hereinafter, the three-dimensional character data generation device 301 configured as described above will be described in detail.

【0128】文字外周データ補間部21は、文字形状構
造解析部4から出力される、各構成要素の文字外周点列
や穴外周点列に、適当な点を補間して3次元で表現する
文字の形状の精細化を行う。文字外周点列または穴外周
点列に点を補間する方法は以下の通りである。
The character peripheral data interpolating unit 21 interpolates appropriate points into the character peripheral point sequence and hole peripheral point sequence of each component output from the character shape structure analyzing unit 4 and expresses the character in three dimensions. The shape of the shape is refined. The method of interpolating points into a character outer peripheral point sequence or a hole outer peripheral point sequence is as follows.

【0129】(1)文字形状構造解析部4から送られて
くる、各構成要素の文字外周点列、穴外周点列に対し
て、連続する2つの点を接続した場合の距離の総和であ
る総和距離を算出する。また、その場合の点列の総個数
を算出する。 (2)上記総和距離をその総個数で割り、平均距離を算
出し、算出した平均距離を任意の細分化レベルに応じた
数で除することにより基準距離を算出する。 (3)元の文字外周点列または穴外周点列のうち、連続
する2つの点の間の距離が基準距離より大きい場合は、
基準距離以下となるように中間に点を発生させる。発生
させる点は、文字外周データ記憶部3に記憶されている
アウトラインデータに指定されている、上述した直線に
よって接続したライン、又は曲線によって接続したライ
ン上に発生させる。なお、既存の点列の間に新たに点を
付加した場合であっても、その並びを保持しながら(新
たな点の点列番号を最後にするのではなく)点列番号を
修正する。
(1) The sum of the distances when two consecutive points are connected to the character outer peripheral point sequence and the hole outer peripheral point sequence of each component sent from the character shape structure analyzer 4. Calculate the total distance. Also, the total number of point sequences in that case is calculated. (2) The reference distance is calculated by dividing the total distance by the total number, calculating an average distance, and dividing the calculated average distance by a number corresponding to an arbitrary subdivision level. (3) When the distance between two consecutive points in the original character outer peripheral point sequence or hole outer peripheral point sequence is larger than the reference distance,
A point is generated in the middle so as to be less than the reference distance. The point to be generated is generated on a line connected by a straight line or a line connected by a curve, which is specified in the outline data stored in the character outer circumference data storage unit 3. Even when a new point is added between the existing point sequences, the point sequence number is corrected while maintaining the arrangement (instead of making the new point sequence number last).

【0130】図18は、「回」に対して、点列の間に新
たに点を補間した場合の一例である。図18において
は、文字外周点列1911に対して1辺あたり3つの点
を補間し、穴外周点列1912に対して1辺あたり2つ
の点を補間している。以下同様に、文字外周点列191
3及び穴外周点列1914においては、1辺あたり1つ
の点を補間している。
FIG. 18 shows an example of a case where a new point is interpolated between a series of points for "times". In FIG. 18, three points per side are interpolated with respect to the character peripheral point sequence 1911, and two points are interpolated with respect to the hole peripheral point sequence 1912. Hereinafter, similarly, the character outer peripheral point sequence 191
In the third and hole peripheral point sequence 1914, one point is interpolated per side.

【0131】以上の方法のように、文字外周データ補間
部21において、点が補間され修正された各構成要素の
外周データが文字形状上下面凸ポリゴン分割部5に送ら
れる。文字形状上下面凸ポリゴン再分割部22では、文
字形状上下面凸ポリゴン分割部5で、各構成要素を上記
のように三角形分割した三角形を、更に分割する。この
再分割は、文字形状上下面凸ポリゴン分割部5で生成さ
れる三角形ポリゴンの頂点は文字の外周上にあるため、
形状を曲げたりねじったりする場合に、外周の変形が直
線的になってしまい、不自然な状況が生じる可能性が高
い。このような不自然さを防ぐために再分割を行う。
As described above, in the character peripheral data interpolating unit 21, the peripheral data of each component whose points have been interpolated and corrected are sent to the character shape upper / lower surface convex polygon dividing unit 5. In the character shape upper / lower surface convex polygon re-dividing unit 22, the character shape upper / lower surface convex polygon dividing unit 5 further divides a triangle obtained by dividing each component into the above-described triangle. This subdivision is performed because the vertices of the triangular polygon generated by the character shape upper and lower convex polygon division unit 5 are on the outer periphery of the character.
When the shape is bent or twisted, the deformation of the outer periphery becomes linear, and there is a high possibility that an unnatural situation will occur. Subdivision is performed to prevent such unnaturalness.

【0132】次に、三角ポリゴンを再分割する方法につ
いて、図19〜図21を参照しながら説明する。図19
は、元の三角形を4つに再分割する方法における処理の
流れを示すフローチャートである。図21(a)は、三
角形の辺の中点を用いて内分割を行う方法を説明するた
めの図である。本実施の形態では、図21(a)に示し
たような三角形の辺の中点を用いた内分割法によって行
う。この内分割法は、三角形の各辺の中点を算出し、中
点間を結んだ3つの線分によって、元の三角形を4つに
分割するというものである。従って、三角形の個数は、
分割する毎に4倍で増えていく。
Next, a method of subdividing a triangular polygon will be described with reference to FIGS. FIG.
9 is a flowchart showing a processing flow in a method of subdividing an original triangle into four parts. FIG. 21A is a diagram for explaining a method of performing the inner division using the midpoint of the side of the triangle. In the present embodiment, this is performed by the inner division method using the midpoint of the side of the triangle as shown in FIG. This inner division method calculates the midpoint of each side of the triangle, and divides the original triangle into four by three line segments connecting the midpoints. Therefore, the number of triangles is
It increases by a factor of four for each division.

【0133】ここで、各構成要素に対して、文字形状上
下面凸ポリゴン分割部5の前処理で接続化された外周の
点列を{P[0],P[1],・・・,P[n]}とし、
文字外形の外周の点列を{Po[0],Po[1],・・
・,Po[l]}、文字穴の外周の点列を{Ph[x]
[0],Ph[x][1],・・・,Ph[x][kx]と
する。以下、インデックスの並びが、{a,b,c}の
三角形ポリゴンに対する内分割法についてそのアルゴリ
ズムを説明する。
Here, for each of the constituent elements, the point sequence of the outer periphery connected in the preprocessing of the character shape upper / lower surface convex polygon division unit 5 is represented by {P [0], P [1],. P [n]},
The point sequence on the outer periphery of the character outline is represented by {Po [0], Po [1],.
・, Po [l]}, the point sequence on the outer periphery of the character hole is {Ph [x]
[0], Ph [x] [1],..., Ph [x] [kx]. Hereinafter, an algorithm of the inner division method for a triangular polygon having an index arrangement of {a, b, c} will be described.

【0134】(1)|a−b|,|b−c|,|c−a
|の値を計算する。 (2)|a−b|=1ならば、P[a]P[b]の中点
Pabを求め、Pab=P[last+1]として点列の最
後に加え、インデックスlast+1=αを保持する。 (3)|a−b|≠1かつ(a,b)≠(lastor
g,0)&(a,b)≠(0,lastorg)ならば
(但し、lastorgは、分割操作前の点列のインデ
ックスの最後の値)、P[a]P[b]の中点が求めら
れていないかチェックする。チェックの結果、求められ
ていたらそのインデックスをαとして保持し、後述のチ
ェックリストからその中点のデータを除去する。求めら
れていない場合は、P[a]P[b]の中点Pabを求
め、Pab=P[last+1]として点列の最後に加
え、インデックスlast+1=αを保持する。同時
に、チェックリストにインデックスの組番号(a,b)
とαを保持する。従って、チェックリストは、インデッ
クスの組番号とそれによって生成されたインデックスで
構成され、チェックにおいてはインデックスの組番号を
順不同で比較する。
(1) | ab |, | bc |, | ca
Calculate the value of |. (2) If | ab | = 1, the midpoint Pab of P [a] P [b] is obtained, added to the end of the point sequence as Pab = P [last + 1], and the index last + 1 = α is held. (3) | ab | {1 and (a, b)} (lastor
g, 0) & (a, b) ≠ (0, lastorg) (where lastorg is the last value of the index of the point sequence before the division operation), and the middle point of P [a] P [b] Check if you are not asked. As a result of the check, if found, the index is held as α, and the data at the midpoint is removed from the check list described later. If not found, the midpoint Pab of P [a] P [b] is found and added to the end of the point sequence as Pab = P [last + 1], and the index last + 1 = α is held. At the same time, the index set number (a, b) is added to the checklist.
And α. Therefore, the check list is composed of the index set number and the index generated by the index set number. In the check, the index set numbers are compared in any order.

【0135】(4)|b−c|,|c−a|について
も、上記(2)、(3)を同様に行い、|b−c|につ
いてはインデックスβ、|c−a|についてはインデッ
クスγを保持する。 (5)三角形を規定するインデックス列{a,b,c}
を除去し、4つの三角形を規定するインデックス列
{a,α,γ},{b,β,α},{c,γ,β},
{α,β,γ}を代わりに挿入する。
(4) The above (2) and (3) are performed in the same way for | bc | and | ca |, and the index β for | bc | and the index β for | ca | Holds the index γ. (5) Index sequence {a, b, c} that defines a triangle
And an index sequence {a, α, γ}, {b, β, α}, {c, γ, β},
{Α, β, γ} is inserted instead.

【0136】次に、三角形の再分割に伴う、文字外形の
外周の点列の再構成について説明する。元の文字外形の
外周の点列に対して次の操作を行う。 (1){Po[0],Po[1],・・・,Po[n]}に対
して、Po[I]Po[I+1]の中点を求め、それらを
W[I]とする。但し、I=0,1,・・・,nでPo
[n+1]=Po[0]とする。 (2){Po[0],Po[1],・・・,Po[n]}のイ
ンデックスの数を2倍して、{Po[0],Po[2],
Po[4],Po[6],・・・,Po[2n]}に変更し、
W[I]をPo[2I+1]として挿入する。このよう
にしてできた新たな点列{Po[0],Po[1],Po
[2]・・・,Po[2n],Po[2n+1]}が、再分
割された3角形により生成される新たな文字の外周の点
列である。なお、文字穴の外周の点列場合も、文字外形
の外周の点列の場合と同様の処理によって、再分割され
た3角形により生成される新たな文字穴の外周の点列が
求められる。
Next, a description will be given of the reconstruction of a sequence of points on the outer periphery of the character outline accompanying the subdivision of the triangle. The following operation is performed on the point sequence on the outer periphery of the original character outline. (1) With respect to {Po [0], Po [1],..., Po [n]}, the midpoint of Po [I] Po [I + 1] is obtained, and these are defined as W [I]. However, if I = 0, 1,..., N, Po
[N + 1] = Po [0]. (2) Double the number of indices of {Po [0], Po [1],..., Po [n]} to obtain {Po [0], Po [2],
Po [4], Po [6], ..., Po [2n]},
W [I] is inserted as Po [2I + 1]. The new point sequence {Po [0], Po [1], Po]
[2], Po [2n], Po [2n + 1]} is a point sequence on the outer periphery of a new character generated by the subdivided triangle. In addition, in the case of the point sequence on the outer periphery of the character hole, a new point sequence on the outer periphery of the character hole generated by the subdivided triangle is obtained by the same processing as the case of the point sequence on the outer periphery of the character outline.

【0137】上記の内分割法は、元の三角形を4つに分
割するというものなので、三角形の個数は4倍で増えて
いく。再分割を一度も行っていない最初の状態をレベル
0とし、1度の再分割でレベルが1ずつあがるとする
と、レベル0に対して、レベルrでは三角形が4r倍に
増加する。
Since the above-mentioned inner division method divides the original triangle into four, the number of triangles increases four times. Assuming that the initial state in which subdivision has never been performed is level 0, if the level increases by one in one subdivision, the triangle increases by 4r at level r with respect to level 0.

【0138】上記の内分割法の処理では、三角形の再分
割のレベルをrにしようとすると、r回の処理が必要に
なる。そこで、一気に2レベル以上、上げることができ
る方法について、図20及び図21(b)を参照しなが
ら説明する。
In the processing of the above inner division method, if the level of the subdivision of the triangle is set to r, r processing is required. Therefore, a method of raising the level by two or more at a stretch will be described with reference to FIGS. 20 and 21B.

【0139】図20は、三角形の再分割のレベルをrに
しようとする場合の再分割方法における処理の流れを示
すフローチャートである。図21(b)は、三角形の再
分割のレベルをレベル0からレベルrに一気に上げた場
合の様子を示す図である。図21(b)において、α
[I]はP[a]P[b]の内分点Pab[α[I]]の
インデックス(I=0,1,・・・,2**r−2)であ
り、Pab[α[I]]は、 Pab[α[I]]={(I+1)P[b]+(2**r−
I−1)P[a]}/2**r から算出できる。同様に、β[I]はP[b]P[c]
の内分点Pbc[β[I]]のインデックス(I=0,
1,・・・,2r−2)であり、Pbc[β[I]]は、 Pbc[β[I]]={(I+1)P[c]+(2**r−
I−1)P[b]}/2**r から算出できる。また、γ[I]はP[c]P[a]の
内分点Pca[γ[I]]のインデックス(I=0,1,
・・・,2r−2)であり、Pca[γ[I]]は、 Pca[γ[I]]={(I+1)P[a]+(2**r−
I−1)P[c]}/2**r から算出できる。ξ[I][k]はP[α]P[γ]の
内分点Pαγ[ξ[I][k]]のインデックス(I=
0,1,・・・,2**r−3,0≦k≦I,)であり、P
αγ[ξ[I][k]]は、 Pαγ[ξ[I][k]]={(I+1−k)P[α
[I+1]]+(k+1)P[γ[2**r−I−
3]]}/(I+2) から算出できる。以上の内分点の発生に基づいて、アル
ゴリズムを説明する。
FIG. 20 is a flowchart showing the flow of processing in the subdivision method when the subdivision level of the triangle is set to r. FIG. 21B is a diagram illustrating a state in which the level of subdivision of the triangle is increased from level 0 to level r at a stretch. In FIG. 21B, α
[I] is the index (I = 0, 1,..., 2 ** r-2) of the subdivision point Pab [α [I]] of P [a] P [b], and Pab [α [ I]] is Pab [α [I]] = {(I + 1) P [b] + (2 ** r−
I-1) It can be calculated from P [a]} / 2 ** r. Similarly, β [I] is P [b] P [c]
Of the subdivision point Pbc [β [I]] (I = 0,
1,..., 2r-2), and Pbc [β [I]] is Pbc [β [I]] = {(I + 1) P [c] + (2 ** r−
I-1) It can be calculated from P [b]} / 2 ** r. Further, γ [I] is an index (I = 0, 1, 1) of an internal dividing point Pca [γ [I]] of P [c] P [a].
, 2r-2), and Pca [γ [I]] is Pca [γ [I]] =] (I + 1) P [a] + (2 ** r−
I-1) It can be calculated from P [c]} / 2 ** r. ξ [I] [k] is the index of the subdivision point Pαγ [ξ [I] [k]] of P [α] P [γ] (I =
0, 1,..., 2 ** r-3, 0 ≦ k ≦ I,) and P
αγ [ξ [I] [k]] is Pαγ [ξ [I] [k]] = {(I + 1−k) P [α
[I + 1]] + (k + 1) P [γ [2 ** r−I−
3]]} / (I + 2). An algorithm will be described based on the occurrence of the above subdivision points.

【0140】(1)|a−b|,|b−c|,|c−a
|の値を計算する。 (2)|a−b|=1ならば、P[a]P[b]の上記
の内分点Pab[α[I]](I=0,1,・・・,2**r
−2)を求め、Pab=P[last+1+I]として点
列の最後に加えていき、インデックスlast+1+I
=α[I]を保持する。 (3)|a−b|≠1かつ(a,b)≠(lastor
g,0)&(a,b)≠(0,lastorg)ならば
(但し、lastorgは、分割操作前の点列のインデ
ックスの最後の値)、P[a]P[b]の内分点が求め
られていないかチェックする。チェックの結果、求めら
れていたらそのインデックスをα[I]として保持し、
後述のチェックリストからその内分点のデータを除去す
る。求められていない場合は、P[a]P[b]の上記
の内分点Pab[α[I]](I=0,1,・・・,2**r
−2)を求め、Pab=P[last+1+I]として点
列の最後に加えていき、インデックスlast+1+I
=α[I]を保持する。同時に、チェックリストにイン
デックスの組番号(a,b)とα[I]を保持する。従
って、チェックリストは、インデックスの組番号とそれ
によって生成されたインデックスで構成され、チェック
においてはインデックスの組番号を順不同で比較する。
(1) | ab |, | bc |, | ca
Calculate the value of |. (2) If | ab | = 1, the above-mentioned subdivision point Pab [α [I]] of P [a] P [b] (I = 0, 1,..., 2 ** r
-2), add Pab = P [last + 1 + I] to the end of the point sequence, and add the index last + 1 + I
= Α [I]. (3) | ab | {1 and (a, b)} (lastor
g, 0) & (a, b) ≠ (0, lastorg) (where lastorg is the last value of the index of the point sequence before the division operation), and the subdivision point of P [a] P [b] Check if is required. As a result of the check, if found, the index is held as α [I],
The data of the subdivision point is removed from a check list described later. If not obtained, the above-mentioned subdivision point Pab [α [I]] of P [a] P [b] (I = 0, 1,..., 2 ** r
-2), add Pab = P [last + 1 + I] to the end of the point sequence, and add the index last + 1 + I
= Α [I]. At the same time, the set number (a, b) and α [I] of the index are held in the check list. Therefore, the check list is composed of the index set number and the index generated by the index set number. In the check, the index set numbers are compared in any order.

【0141】(4)|b−c|,|c−a|について
も,上記(2)、(3)を同様に行い、P[b]P
[c]の内分点とP[c]P[a]の内分点を求め、点
列座標データに必要な場合は加えていく。また必要に応
じて、チェックリストにインデックスの組番号(b,
c)とβ[I]、インデックスの組番号(c,a)とγ
[I]を保持する。 (5)r>1のときは、上記のP[α]P[γ]の内分
点Pαγ[ξ[I][k]]を求めて点列の最後に加え
ていき、インデックスlast+1+I(I+1)/2
+k=ξ[I][k]を保持する。但し、I=0,1,
・・・,2**r−3,0≦k≦Iである。
(4) For | bc | and | ca |, the above (2) and (3) are performed in the same manner, and P [b] P
The subdivision point of [c] and the subdivision point of P [c] P [a] are obtained, and are added to the point sequence coordinate data if necessary. If necessary, the index set number (b,
c) and β [I], index pair numbers (c, a) and γ
[I] is held. (5) When r> 1, the internal dividing point Pαγ [ξ [I] [k]] of the above P [α] P [γ] is obtained and added to the end of the point sequence, and the index last + 1 + I (I + 1 ) / 2
+ K = ξ [I] [k] is held. Where I = 0,1,
.., 2 ** r-3, 0 ≦ k ≦ I.

【0142】(6)r=1のときは、三角形を規定する
インデックス列{a,b,c}を除去し、4個の三角形
を規定するインデックス列{a,α[0],γ
[0]},{b,β[0],α[0]},{c,γ
[0],β[0]},{α[0],β[0],γ
[0]}を代わりに挿入する。
(6) When r = 1, the index sequence {a, b, c} defining the triangle is removed, and the index sequence {a, α [0], γ defining the four triangles is removed.
[0]}, {b, β [0], α [0]}, {c, γ
[0], β [0]}, {α [0], β [0], γ
[0]} is inserted instead.

【0143】(7)r>1のときは、三角形を規定する
インデックス列{a,b,c}を除去し、以下の4r個
の三角形を規定するインデックス列を代わりに挿入す
る。但し、I=0,1,・・・,2**r−1で、Iに応じ
て処理を行う。 ・I=0のときは、{a,α[0],γ[2**r−
2]}を代わりに挿入する。 ・I=1のときは、{α[0],α[1],ξ[0]
[0]},{α[0],ξ[0][0],γ[2**r−
2]},{γ[2**r−2],ξ[0][0],γ[2
**r−3]}。 ・I=2のときは、{α[1],α[2],ξ[1]
[0]},{α[1],ξ[1][0],ξ[0]
[0]},{ξ[0][0],ξ[1][0],ξ
[1][1]},{ξ[0][0],ξ[1][1],
γ[2**r−3]},{γ[2**r−3],ξ[1]
[1],γ[2**r−4]}を代わりに挿入する。 ・3≦I≦2r−2のときは、{α[I−1],α
[I],ξ[I−1][0]},{α[I−1],ξ
[I−1][0],ξ[I−2][0]}の後、{ξ
[I−2][k],ξ[I−1][k],ξ[I−1]
[k+1]}と{ξ[I−2][k],ξ[I−1]
[k+1],ξ[I−2][k+1]}の組(但し,0
≦k≦I−3)の繰り返しの後(つまり、繰り返しはI
−2回起こる)、{ξ[I−2][I−2],ξ[I−
1][I−2],ξ[I−1][I−1]},{ξ[I
−2][I−2],ξ[I−1][I−1],γ[2**
r−1−I]},{γ[2**r−1−I],ξ[I−
1][I−1],γ[2**r−2−I]}で終わるイン
デックス列を代わりに挿入する。
(7) When r> 1, the index sequence {a, b, c} defining the triangle is removed, and the following index sequence defining 4r triangles is inserted instead. However, when I = 0, 1,..., 2 ** r−1, processing is performed according to I. When I = 0, {a, α [0], γ [2 ** r−
2] Insert} instead. When I = 1, {α [0], α [1], ξ [0]
[0]}, {α [0], ξ [0] [0], γ [2 ** r-
2], {γ [2 ** r-2], ξ [0] [0], γ [2
** r-3]}. When I = 2, {α [1], α [2], ξ [1]
[0]}, {α [1], ξ [1] [0], ξ [0]
[0]}, {[0] [0], {[1] [0],}
[1] [1]}, {[0] [0], {[1] [1],
γ [2 ** r-3], {γ [2 ** r-3], ξ [1]
[1], γ [2 ** r-4]} are inserted instead. When 3 ≦ I ≦ 2r−2, Δα [I−1], α
[I], {[I-1] [0]}, {α [I-1],}
After [I-1] [0], {[I-2] [0]}, {
[I-2] [k], ξ [I-1] [k], ξ [I-1]
[K + 1]} and {[I-2] [k], {[I-1]
[K + 1], {[I-2] [k + 1]} (where 0
≦ k ≦ I−3) (that is, the repetition is I
-2 times), {[I-2] [I-2],} [I-
1] [I-2], {[I-1] [I-1]}, {[I
-2] [I-2], ξ [I-1] [I-1], γ [2 **
r-1-I]}, {γ [2 ** r-1-I], {[I-
1] Insert an index sequence ending with [I-1], γ [2 ** r-2-I]} instead.

【0144】・I=2**r−1のときは、{α[2**r
−2],b,β[0]},{α[2**r−2],β
[0],ξ[2**r−3][0]}の後、{ξ[2**r
−3][k],β[k],β[k+1]}と{ξ[2**
r−3][k],β[k+1],ξ[2**r−3][k
+1]}の組(但し、0≦k≦2**r−4)の繰り返し
の後(つまり、繰り返しは2**r−3回起こる)、{ξ
[2**r−3][2**r−3],β[2**r−3],β
[2**r−2]}{ξ[2**r−3][2**r−3],
β[2**r−2],γ[0]},{γ[0],ξβ[2
**r−2],c}で終わるインデックス列を代わりに挿
入する。
When I = 2 ** r-1, {α [2 ** r
-2], b, β [0]}, {α [2 ** r-2], β
After [0], {[2 ** r-3] [0]}, {[2 ** r
-3] [k], β [k], β [k + 1]} and {[2 **
r-3] [k], β [k + 1], ξ [2 ** r-3] [k
+1]} (where 0 ≦ k ≦ 2 ** r-4) (ie, the repetition occurs 2 ** r-3 times), {
[2 ** r-3] [2 ** r-3], β [2 ** r-3], β
[2 ** r-2]} {ξ [2 ** r-3] [2 ** r-3],
β [2 ** r-2], γ [0]}, {γ [0], ξβ [2
** r-2], c} is inserted instead.

【0145】次に、文字外形の外周の点列の再生成につ
いて以下に説明する。 (1){Po[0],Po[1],・・・,Po[n]}に対
して、これを2**r分割したときのPo[I]Po[I+
1]の内分点を求め、それらをW[I][k]とする。
但し、I=0,1,・・・,nで、特に、Po[n+1]=
Po[0]とする。また、k=0,1,・・・,2**r−2
で、W[I][k]は以下の式によって求める。 W[l][k]={(k+1)Po[l+1]+(2**
r−k−1)Po[l]}/2**r
Next, the regeneration of the point sequence on the outer periphery of the character outline will be described below. (1) For {Po [0], Po [1],..., Po [n]}, Po [I] Po [I +
1], and these are set as W [I] [k].
However, when I = 0, 1,..., N, in particular, Po [n + 1] =
It is assumed that Po [0]. Also, k = 0, 1,..., 2 ** r-2
Then, W [I] [k] is obtained by the following equation. W [l] [k] = {(k + 1) Po [l + 1] + (2 **
rk-1) Po [l]} / 2 ** r

【0146】(2){Po[0],Po[1],・・・,Po
[n]}のインデックスを2**r倍して、{Po
[0],Po[2**r],Po[2×2**r],Po[3
×2**r],・・・,Po[n×2**r]}に変更し、W
[I][k]をPo[I×2**r+k+1]として挿入
する(但し、I=0,1,・・・,n,k=0,1,・・・,
2**r−2)。
(2) {Po [0], Po [1],..., Po
The index of [n] is multiplied by 2 ** r, and {Po}
[0], Po [2 ** r], Po [2 × 2 ** r], Po [3
× 2 ** r], ..., Po [nx2 ** r]}, and
[I] [k] is inserted as Po [I × 2 ** r + k + 1] (where I = 0, 1,..., N, k = 0, 1,.
2 ** r-2).

【0147】このようにしてできた新たな点列{Po
[0],Po[1],Po[2],Po[3],Po[4]
・・・,Po[n×2**r],Po[n×2**r+1],Po
[(n+1)×2**r−1]}が、再分割された3角形
により生成される新たな文字外形の外周の点列である。
文字穴の外周の点列の場合も、同様の処理によって、再
構成できる。
The new point sequence {Po} thus created
[0], Po [1], Po [2], Po [3], Po [4]
..., Po [nx2 ** r], Po [nx2 ** r + 1], Po
[(N + 1) × 2 ** r-1]} is a point sequence on the outer periphery of a new character outline generated by the subdivided triangle.
In the case of a dot sequence on the outer periphery of the character hole, it can be reconfigured by the same processing.

【0148】文字形状上下面凸ポリゴン再分割部22
は、元の0レベルのデータを保持しておけば、常に0レ
ベルから再分割を行うことで、一旦分割した三角形を粗
い三角形に戻すという可逆的な分割が可能である。例え
ば、rレベルに上げた時、pレベルに下げたいならば、
rレベルのデータを破棄して、新たに0レベルからpレ
ベルのデータを生成すれば、見かけ上はrレベルからp
レベルに移行したことになる。
Character shape upper / lower surface convex polygon subdivision unit 22
If the original 0-level data is held, re-division can be performed such that a once-divided triangle is returned to a coarse triangle by always re-dividing from the 0-level. For example, if you want to lower to p level when you increase to r level,
If the data of the r level is discarded and the data of the p level is newly generated from the 0 level, p
You have moved to the level.

【0149】文字形状側面生成部23は、前記実施の形
態1における文字形状側面生成部6、及び実施の形態2
のべベル形状側面生成部11と同様の処理により、文字
の各構成要素の上下面と側面のインデックスドサーフェ
ースデータを生成し、このデータをテクスチャ座標生成
部24に出力する。
The character-shaped side surface generating section 23 includes the character-shaped side surface generating section 6 in the first embodiment and the character-shaped side surface generating section 23 in the second embodiment.
By the same processing as that performed by the bevel-shaped side surface generation unit 11, indexed surface data of the upper and lower surfaces and side surfaces of each component of the character is generated, and this data is output to the texture coordinate generation unit 24.

【0150】テクスチャ座標生成部24は、各構成要素
を下面と上面に対し、これを含む最小の正方形を生成す
る。この正方形の最下点と構成要素の下面の最下点とが
原点で重なるように平行移動し、これらの平行移動後の
点列の座標を求め、求められた座標値を正方形の辺の長
さで除し、その結果をマッピング座標とする。これは、
外包正方形を正規化したときの座標に相当する。側面に
対しては、外周形状や穴形状を構成する閉曲線に対して
周回長(点列における連続する2点間の距離の総和)を
求め、開始点から各点までの2点間の距離と周回長の比
を、その開始点か各点までの距離を表すパラメータ(0
≦s≦1)として割り振る(開始点は0と1が割り振ら
れる)。高さ方向に関しては、下面に対してはt=0で
上面にはt=1を割り付ける。
The texture coordinate generating section 24 generates the smallest square including each of the constituent elements on the lower surface and the upper surface. The lowermost point of this square and the lowermost point of the lower surface of the component are translated so as to overlap at the origin, the coordinates of the point sequence after these translations are obtained, and the obtained coordinate value is the length of the side of the square. Then, the result is used as mapping coordinates. this is,
It corresponds to the coordinates when the envelope square is normalized. For the side surface, the circuit length (sum of the distance between two consecutive points in the point sequence) is determined for the closed curve forming the outer peripheral shape and the hole shape, and the distance between the two points from the starting point to each point is calculated. A parameter representing the distance between the start point or each point (0 to 0)
≦ s ≦ 1) (starting points are assigned 0 and 1). In the height direction, t = 0 is assigned to the lower surface and t = 1 is assigned to the upper surface.

【0151】なお、各構成要素(または全ての構成要
素)を含む円筒を設け、この円筒に円筒座標系を定義
し、構成要素の頂点を円筒の中心座標から投影し円筒座
標系における座標を用いて、テクスチャ座標を決定でき
る。但し、円筒座標系は正規化をする必要がある。ま
た、各構成要素(または全ての構成要素)を含む球を設
け、この球に極座標系を定義し、構成要素の頂点を球の
中心から投影した極座標系における座標値を用いてもテ
クスチャ座標を決定できる。但し、極座標系は正規化す
る必要がある。
A cylinder containing each component (or all components) is provided, a cylindrical coordinate system is defined for this cylinder, and the vertices of the component are projected from the center coordinates of the cylinder to use the coordinates in the cylindrical coordinate system. The texture coordinates can be determined. However, the cylindrical coordinate system needs to be normalized. Also, a sphere including each component (or all components) is provided, a polar coordinate system is defined on this sphere, and texture coordinates can be obtained by using coordinate values in the polar coordinate system in which vertices of the components are projected from the center of the sphere. Can decide. However, the polar coordinate system needs to be normalized.

【0152】以上のように求めたテクスチャ座標につい
ては、インデックスドサーフェースデータの外周の点列
座標データの順序と一致するように当該インデックスド
サーフェースデータに各々付加し、文字形状データ出力
部25へ出力する。文字形状データ出力部25では、テ
クスチャ座標生成部24から送られてきた、文字の各構
成要素の上下面のテクスチャ座標付のインデックスドサ
ーフェースデータと、各構成要素の側面のテクスチャ座
標付のインデックスドサーフェースデータを階層的な記
述によって一まとめにして、外部へ出力する。なお、デ
ータ形式を変換する場合には、当該データ形式へ変換し
てから出力する。以上のように、文字外周点列や穴外周
点列の点間を適当な点で補間し、これに基づいてポリゴ
ン分割を行うので、より精細な3次元文字を作成するこ
とが可能となる
The texture coordinates obtained as described above are added to the indexed surface data so as to match the order of the point sequence coordinate data on the outer periphery of the indexed surface data, and output to the character shape data output unit 25. I do. In the character shape data output unit 25, indexed surface data with texture coordinates of the upper and lower surfaces of each component of the character and indexed surface with texture coordinates of the side surface of each component are sent from the texture coordinate generator 24. The face data is grouped by a hierarchical description and output to the outside. When the data format is converted, the data is converted and then output. As described above, the points between the character outer peripheral point sequence and the hole outer peripheral point sequence are interpolated at appropriate points, and polygon division is performed based on the interpolated points. Therefore, a more precise three-dimensional character can be created.

【0153】(実施の形態4)上記の実施の形態1で
は、3次元の文字を生成する実施例について述べたが、
実施の形態4では、3次元の文字の下部に円柱状等の台
座を設ける場合の実施例について述べる。なお、本実施
の形態では、上記実施の形態1と同じ構成部分について
の説明は省略する。
(Embodiment 4) In Embodiment 1 described above, an example of generating a three-dimensional character has been described.
In the fourth embodiment, an example will be described in which a pedestal such as a column is provided below a three-dimensional character. In the present embodiment, the description of the same components as those in the first embodiment is omitted.

【0154】図22は、実施の形態4における3次元文
字データ生成装置401の機能構成を示すブロック図で
ある。3次元文字データ生成装置401は、台座形状生
成部35を新たに備え、文字コード入力部1に代えて文
字台座コード入力部31を、文字外周データ取得部2に
代えて文字外周台座形状取得部32を、文字外周データ
記憶部3に代えて文字外周台座形状記憶部33を、文字
形状構造解析部4に代えて文字台座形状構造解析部34
を、文字形状側面生成部6に代えて文字形状側面生成部
36を、文字形状データ出力部7に代えて文字台座形状
データ出力部37を備える。以上のように構成される3
次元文字データ生成装置401について、以下、詳細に
説明を行う。
FIG. 22 is a block diagram showing a functional configuration of a three-dimensional character data generation device 401 according to the fourth embodiment. The three-dimensional character data generating device 401 is provided with a pedestal shape generating unit 35, and a character pedestal code input unit 31 instead of the character code input unit 1, and a character outer pedestal shape obtaining unit instead of the character outer data acquisition unit 2. 32, a character peripheral pedestal shape storage unit 33 instead of the character peripheral data storage unit 3, and a character pedestal shape structure analysis unit 34 instead of the character shape structure analysis unit 4.
Is provided with a character shape side surface generation unit 36 in place of the character shape side surface generation unit 6, and a character base shape data output unit 37 in place of the character shape data output unit 7. 3 configured as above
Hereinafter, the three-dimensional character data generation device 401 will be described in detail.

【0155】文字台座コード入力部31は、実施の形態
1の文字コード入力部1と同様に、いわゆるキーボード
やマウスなどの入力装置で、これらの入力信号を変換
し、ASCIIコードやJISコードなどの文字コード
のほか、台座の形状を指定するための台座コードを生成
する。文字台座コード入力部31で生成された文字コー
ドと台座コードは、文字外周台座形状取得部32へ出力
される。
The character pedestal code input unit 31 is, similarly to the character code input unit 1 of the first embodiment, an input device such as a keyboard or a mouse, converts these input signals, and converts the input signals such as ASCII codes and JIS codes. Generate a pedestal code to specify the shape of the pedestal in addition to the character code. The character code and the pedestal code generated by the character pedestal code input unit 31 are output to the character outer pedestal shape acquisition unit 32.

【0156】文字外周台座形状取得部32は、文字台座
コード入力部31から受信した文字コードに対応する文
字のアウトラインデータと、台座コードに対応する台座
の3次元形状データを文字外周台座形状記憶部33から
取得する。上記実施の形態1の文字外周データ記憶部3
と同様に、文字のアウトラインデータは、予め文字外周
台座形状記憶部33に文字コードに対応して記憶されて
いる。また、台座の3次元形状データに関しても、台座
コードに対応した台座の3次元形状データが、文字外周
台座形状記憶部33に予め記憶されている。文字外周台
座形状取得部32で取得された文字のアウトラインデー
タと台座の3次元形状データは、文字台座形状構造解析
部34に出力される。なお、台座の3次元形状データに
は、どの面が台座の上面(以下、「台座上面」とい
う。)であるが定義されているものとする。
The character peripheral pedestal shape acquiring unit 32 stores the character outline data corresponding to the character code received from the character pedestal code input unit 31 and the three-dimensional shape data of the pedestal corresponding to the pedestal code in the character peripheral pedestal shape storage unit. 33. Character periphery data storage unit 3 of the first embodiment
Similarly to the above, character outline data is stored in advance in the character outer pedestal shape storage unit 33 in correspondence with the character code. Regarding the three-dimensional shape data of the pedestal, the three-dimensional shape data of the pedestal corresponding to the pedestal code is stored in the character outer pedestal shape storage unit 33 in advance. The outline data of the character and the three-dimensional shape data of the pedestal acquired by the character outer pedestal shape acquiring unit 32 are output to the character pedestal shape structure analyzing unit 34. It is assumed that the three-dimensional shape data of the pedestal defines which surface is the upper surface of the pedestal (hereinafter referred to as “pedestal upper surface”).

【0157】文字台座形状構造解析部34では、文字に
関しては、上記の実施の形態1の文字形状構造解析部4
と同様に、文字の構造解析結果情報を生成する。文字の
構造解析結果情報としては、文字穴毎にその穴を包含す
る唯一の文字部品が特定され、その包含関係を表す情報
が、上記実施の形態1と同様の方法によって作成され
る。
In the character pedestal shape structure analyzing section 34, the character shape structure analyzing section 4 of the first embodiment is used for the characters.
In the same manner as the above, character structure analysis result information is generated. As the character structure analysis result information, the only character part that includes the hole is specified for each character hole, and information representing the inclusion relationship is created by the same method as in the first embodiment.

【0158】文字外周台座形状構造解析部34では、そ
の他に文字全体のバウンダリーボックスとその中心座標
(以下「文字中心座標」という。)、及び台座の3次元
形状のバウンダリーボックス(直方体形状とする)と台
座上面に対応するバウンダリーボックスの中心座標(以
下「台座中心座標」という。)を求め、文字のバウンダ
リーボックスの中心と台座上面に対応するバウンダリー
ボックスの中心とが一致するように移動する。さらに、
予め定めた余白量を文字のバウンダリーボックスに加算
した拡大長方形を求め、これが移動された台座上面に対
応するバウンダリーボックスの面に含まれるように、最
小の台座スケーリング量を算出する。文字の構造解析結
果情報は、文字形状上下面凸ポリゴン分割部5に送ら
れ、実施の形態1と同様に処理される。また、文字のバ
ウンダリーボックスの中心座標と台座中心座標、及び台
座スケーリング量が、台座形状生成部35に出力され
る。
The character peripheral pedestal shape structure analyzing unit 34 additionally includes a boundary box of the entire character and its center coordinates (hereinafter referred to as “character center coordinates”), and a three-dimensional boundary box of the pedestal. ) And the center coordinates of the boundary box corresponding to the upper surface of the pedestal (hereinafter referred to as “base center coordinates”) so that the center of the boundary box of the character coincides with the center of the boundary box corresponding to the upper surface of the pedestal. Go to further,
An enlarged rectangle is obtained by adding a predetermined margin amount to the boundary box of the character, and the minimum pedestal scaling amount is calculated so that the enlarged rectangle is included in the boundary box surface corresponding to the moved pedestal upper surface. The character structure analysis result information is sent to the character shape upper / lower surface convex polygon division unit 5 and is processed in the same manner as in the first embodiment. Further, the center coordinates of the boundary box of the character, the center coordinates of the pedestal, and the pedestal scaling amount are output to the pedestal shape generating unit 35.

【0159】台座形状生成部35では、文字台座形状構
造解析部34から出力される台座スケーリング量で台座
の3次元形状データをスケーリング変換し、その変換後
に得られる台座中心座標が、文字中心座標と一致するよ
うに、台座を平行移動し、移動後の台座の3次元の座標
値を修正する。これらの変換後のデータは文字台座形状
データ出力部37に出力される。
The pedestal shape generation unit 35 scales and converts the three-dimensional shape data of the pedestal with the pedestal scaling amount output from the character pedestal shape structure analysis unit 34, and the pedestal center coordinates obtained after the conversion are the character center coordinates and the character center coordinates. The pedestal is translated so as to match, and the three-dimensional coordinate value of the pedestal after the movement is corrected. These converted data are output to the character pedestal shape data output unit 37.

【0160】文字形状側面生成部36では、上記実施の
形態1の文字形状側面生成部6、及び実施の形態2のべ
ベル形状側面生成部11と同様に、各構成要素に基づい
て、上面、下面、側面及びべベル形状側面を生成し、文
字台座形状データ出力部37に送られる。
In the character-shaped side surface generating section 36, like the character-shaped side surface generating section 6 in the first embodiment and the bevel-shaped side surface generating section 11 in the second embodiment, the upper surface, A lower surface, a side surface, and a bevel-shaped side surface are generated and sent to the character pedestal shape data output unit 37.

【0161】文字台座形状データ出力部37では、台座
形状生成部35と文字形状側面生成部36から送られて
きた、台座の3次元形状データと文字の各構成要素に基
づく上面及、下面及び側面のインデックスドサーフェー
スデータを階層的な記述によって一まとめにして、外部
へ出力する。その際、データ形式を変換する必要がある
場合であっても、一旦当該データ形式に変換を行い、こ
れを変換する。
The character pedestal shape data output unit 37 outputs the upper, lower, and side surfaces based on the three-dimensional shape data of the pedestal and the respective constituent elements of the character sent from the pedestal shape generator 35 and the character shape side surface generator 36. Of the indexed surface data are collectively output by a hierarchical description and output to the outside. At this time, even if it is necessary to convert the data format, the data format is once converted to the data format and then converted.

【0162】図23は、本実施の形態4によって生成さ
れた台座つきの3次元の漢字「田」の外観を示す。以上
のように、台座の3次元形状データに基づいて3次元文
字の下部に円柱状等の台座を設けることを可能にしたの
で、より多彩な装飾を施した3次元文字を表示すること
ができる。
FIG. 23 shows an appearance of a three-dimensional kanji character “ta” with a pedestal generated according to the fourth embodiment. As described above, since it is possible to provide a columnar or other pedestal under the three-dimensional character based on the three-dimensional shape data of the pedestal, it is possible to display a more variously decorated three-dimensional character. .

【0163】(実施の形態5)上記実施の形態4では、
台座の3次元形状データに基づいて台座付きの3次元文
字を生成する場合について示したが、実施の形態5で
は、台座のアウトラインデータに基づいて台座付きの3
次元文字を生成する場合の実施例について述べる。な
お、本実施の形態では、上記実施の形態4と重複する構
成部分についての説明は省略する。
(Embodiment 5) In Embodiment 4 described above,
Although a case has been described where a three-dimensional character with a pedestal is generated based on the three-dimensional shape data of the pedestal, in the fifth embodiment, a three-dimensional character with a pedestal is generated based on outline data of the pedestal.
An embodiment in which a two-dimensional character is generated will be described. Note that, in the present embodiment, description of the same components as those in the above-described fourth embodiment will be omitted.

【0164】図24は、本実施の形態5における3次元
文字データ生成装置501の機能構成を示すブロック図
である。3次元文字データ生成装置501は、文字台座
コード入力部41、文字台座外周データ取得部42、外
周データ記憶部43、文字台座形状構造解析部44、文
字台座形状面凸ポリゴン分割部45、文字台座形状側面
生成部46、文字台座形状データ出力部47によって構
成される。以上のように構成される3次元文字データ生
成装置501について、以下、詳細に説明を行う。
FIG. 24 is a block diagram showing a functional configuration of a three-dimensional character data generating device 501 according to the fifth embodiment. The three-dimensional character data generation device 501 includes a character base code input unit 41, a character base peripheral data acquisition unit 42, a peripheral data storage unit 43, a character base shape structure analysis unit 44, a character base shape surface convex polygon division unit 45, a character base. The shape side surface generation unit 46 and the character pedestal shape data output unit 47 are configured. The three-dimensional character data generation device 501 configured as described above will be described in detail below.

【0165】文字台座コード入力部41は、実施の形態
1の文字コード入力部1と同様に、いわゆるキーボード
やマウスなどの入力装置で、これらの入力信号を変換
し、ASCIIコードやJISコードなどの文字コード
のほか、台座のアウトラインデータを指定するための台
座コードを生成する。文字台座コード入力部41で生成
された文字コードと台座コードは、文字台座外周データ
取得部42へ送られる。
The character pedestal code input unit 41 is, similarly to the character code input unit 1 of the first embodiment, an input device such as a keyboard or a mouse, and converts these input signals to obtain an ASCII code or JIS code. Generate a pedestal code to specify the outline data of the pedestal in addition to the character code. The character code and the pedestal code generated by the character pedestal code input unit 41 are sent to the character pedestal outer periphery data acquisition unit 42.

【0166】文字台座外周データ取得部42は、文字台
座コード入力部41から受け取った文字コードに対応す
る文字のアウトラインデータと、台座コードに対応する
台座のアウトラインデータを、外周データ記憶部43か
ら取得する。文字のアウトラインデータに関しては、実
施の形態1の文字外周データ記憶部3と同様に、予め外
周データ記憶部43に文字コードに対応付けられて記憶
されている。また、台座のアウトラインデータに関して
も、台座コードに対応付けられて外周データ記憶部43
に予め記憶されている。文字台座外周データ取得部42
で取得された文字のアウトラインデータと台座のアウト
ラインデータは、文字台座形状構造解析部44に出力さ
れる。ここで、台座に穴が形成されている場合は、その
穴を表すアウトラインデータが、予め外周データ記憶部
43に記憶されている。
The character pedestal outer periphery data acquiring section 42 acquires from the outer peripheral data storage section 43 the outline data of the character corresponding to the character code received from the character pedestal code input section 41 and the outline data of the pedestal corresponding to the pedestal code. I do. The outline data of the character is stored in advance in the outer periphery data storage unit 43 in association with the character code, similarly to the outer periphery data storage unit 3 of the first embodiment. In addition, the outline data of the pedestal is also associated with the pedestal code, and
Is stored in advance. Character base outer circumference data acquisition unit 42
The outline data of the character and the outline data of the pedestal obtained in step (1) are output to the character pedestal shape structure analyzing unit 44. Here, when a hole is formed in the pedestal, outline data representing the hole is stored in the outer circumference data storage unit 43 in advance.

【0167】文字台座形状構造解析部44は、文字のア
ウトラインデータ、台座のアウトラインデータの各々に
関して、実施の形態1の文字形状構造解析部4と同様
に、文字と台座の構造解析結果情報を生成する。文字の
構造解析結果情報としては、文字穴毎にその穴を包含す
る唯一の文字部品が特定され、また、台座に穴が形成さ
れている場合は、台座の構造解析結果情報として、台座
の穴を包含する台座が特定され、これらの包含関係を表
す情報が、上記実施の形態1と同様の方法によって作成
される。文字台座形状構造解析部44は、その他に、上
記実施の形態4と同様に、文字中心座標、及び台座全体
のバウンダリーボックスと台座中心座標を求め、文字の
中心と台座の中心とが一致するように移動する。さら
に、予め定めた余白量を文字のバウンダリーボックスに
加算した拡大長方形を求め、これが台座上面に対応する
バウンダリーボックスの面に含まれるように、最小の台
座スケーリング量を算出する。文字と台座の構造解析結
果情報、文字中心座標と台座中心座標、及び台座スケー
リング量が、文字台座形状面凸ポリゴン分割部45に出
力される。
The character pedestal shape structure analysis unit 44 generates character and pedestal structure analysis result information for each of the character outline data and the pedestal outline data, similarly to the character shape structure analysis unit 4 of the first embodiment. I do. As the character structure analysis result information, the only character part that includes the hole is specified for each character hole, and if a hole is formed in the base, the hole in the base is used as the structure analysis result information of the base. Are identified, and information representing these inclusion relationships is created by the same method as in the first embodiment. The character pedestal shape structure analysis unit 44 also obtains the character center coordinates, the boundary box and the pedestal center coordinates of the entire pedestal in the same manner as in the fourth embodiment, and the center of the character coincides with the center of the pedestal. To move. Further, an enlarged rectangle in which a predetermined margin amount is added to the boundary box of the character is obtained, and a minimum pedestal scaling amount is calculated so that the enlarged rectangle is included in the surface of the boundary box corresponding to the upper surface of the pedestal. The structural analysis result information of the character and the pedestal, the character center coordinates and the pedestal center coordinates, and the pedestal scaling amount are output to the character pedestal shape surface convex polygon division unit 45.

【0168】文字台座形状面凸ポリゴン分割部45は、
文字の構成要素に対して、上記実施の形態1と同様に処
理を行い、台座の構成要素に対しては、台座スケーリン
グ量でスケーリング変換し、文字のバウンダリーボック
スの中心座標と台座のバウンダリーボックスの中心座標
が一致するように平行移動したデータに対して、文字と
同様に処理を行う。処理結果である文字と台座の各構成
要素のインデックスドサーフェースデータは、文字台座
形状側面生成部46に出力される。
The character pedestal shape surface convex polygon division unit 45
The components of the character are processed in the same manner as in the first embodiment, and the components of the pedestal are scaled by the pedestal scaling amount, and the center coordinates of the boundary box of the character and the boundary of the pedestal The same process is performed on the data that has been translated so that the center coordinates of the box match. Indexed surface data of each component of the character and the pedestal, which is the processing result, is output to the character pedestal shape side surface generation unit 46.

【0169】文字台座形状側面生成部46では、上記実
施の形態1の文字形状側面生成部6、及び実施の形態2
のべベル形状側面生成部11と同様に、文字と台座の各
構成要素の上下面、側面またはべベル形状の側面を生成
する。生成された台座の構成要素に関しては、生成後更
に、立ち上げ量に相当する量だけ、z軸の下方向へ平行
移動する。但し、台座の側面が回転変換で生成された場
合は、その際の回転量の分だけ逆回転変換を行う。以上
の処理で生成された文字と台座の各構成要素の上下面、
側面のインデックスドサーフェースデータの文字台座形
状データ出力部47に出力される。
The character pedestal-shaped side surface generator 46 includes the character-shaped side surface generator 6 of the first embodiment and the second embodiment.
Similarly to the bevel-shaped side surface generation unit 11, the upper and lower surfaces, the side surfaces, or the bevel-shaped side surfaces of the respective components of the character and the pedestal are generated. The generated pedestal components are further translated downward by the amount corresponding to the rising amount after the generation in the z-axis direction. However, when the side surface of the pedestal is generated by rotation conversion, reverse rotation conversion is performed by the amount of rotation at that time. The upper and lower surfaces of each component of the character and pedestal generated by the above processing,
The indexed surface data of the side surface is output to the character pedestal shape data output unit 47.

【0170】文字台座形状データ出力部47では、文字
台座形状側面生成部46から送られた文字と台座の各構
成要素の上下面、側面のインデックスドサーフェースデ
ータを階層的な記述によって一まとめにして、外部へ出
力する。データ形式を円筒座標または極座標等に変換す
る必要がある場合は、当該データ形式へ変換してから出
力する。なお、実施の形態4、実施の形態5において、
文字の3次元形状の下面については、台座に接続される
ので不可視なため省略が可能で、この省略によりデータ
量の削減が行える。
The character pedestal shape data output unit 47 combines the characters sent from the character pedestal shape side surface generation unit 46 with the indexed surface data of the upper and lower surfaces and side surfaces of each component of the pedestal by a hierarchical description. Output to the outside. When it is necessary to convert the data format into cylindrical coordinates or polar coordinates, the data format is converted and output. In Embodiments 4 and 5,
Since the lower surface of the three-dimensional shape of the character is connected to the pedestal and is invisible, it can be omitted, and the amount of data can be reduced by this omission.

【0171】以上のように、台座のアウトラインデータ
に基づいて3次元文字の下部に円柱状等の台座を設ける
ことを可能にしたので、より多様に装飾を施した3次元
文字を表示することができる。
As described above, it is possible to provide a columnar or other pedestal under the three-dimensional character based on the outline data of the pedestal, so that more variously decorated three-dimensional characters can be displayed. it can.

【0172】(実施の形態6)実施の形態6では、3次
元の刻印板を生成する場合の実施例について述べる。な
お、本実施の形態では、上記の実施の形態と同じ構成部
分についての説明は省略する。
(Embodiment 6) In Embodiment 6, an example in which a three-dimensional stamping plate is generated will be described. In this embodiment, the description of the same components as those in the above embodiment will be omitted.

【0173】図25は、本実施の形態6における3次元
文字データ生成装置601の機能構成を示すブロック図
である。3次元文字データ生成装置601は、文字刻印
板コード入力部51、文字刻印板外周データ取得部5
2、外周データ記憶部53、文字刻印板形状構造解析部
54、文字刻印板形状面凸ポリゴン分割部55、文字刻
印板形状側面生成部56、文字刻印板形状データ出力部
57によって構成される。以上のように構成される3次
元文字データ生成装置601について、以下、詳細に説
明を行う。
FIG. 25 is a block diagram showing a functional configuration of a three-dimensional character data generation device 601 according to the sixth embodiment. The three-dimensional character data generating device 601 includes a character engraving plate code input unit 51, a character engraving plate outer data acquisition unit 5,
2. An outer circumference data storage unit 53, a character stamping plate shape structure analyzing unit 54, a character stamping plate shape surface convex polygon dividing unit 55, a character stamping plate shape side surface generating unit 56, and a character stamping plate shape data output unit 57. Hereinafter, the three-dimensional character data generation device 601 configured as described above will be described in detail.

【0174】文字刻印板コード入力部51は、実施の形
態1の文字コード入力部1と同様に、いわゆるキーボー
ドやマウスなどの入力装置で、これらの入力信号を変換
し、ASCIIコードやJISコードなどの文字コード
のほか、刻印板のアウトラインデータを指定するための
刻印板コードを生成する。文字刻印板コード入力部51
で生成された文字コードと刻印板コードは、文字刻印板
外周データ取得部52へ出力される。
The character engraving plate code input unit 51 is an input device such as a so-called keyboard or mouse, similar to the character code input unit 1 of the first embodiment, and converts these input signals to obtain an ASCII code or a JIS code. In addition to the character code, a marking plate code for specifying outline data of the marking plate is generated. Character engraving board code input unit 51
The character code and the engraving plate code generated in are output to the character engraving plate outer periphery data acquisition unit 52.

【0175】文字刻印板外周データ取得部52は、文字
刻印板コード入力部51から受信した文字コードに対応
する文字のアウトラインデータと、刻印板コードに対応
する刻印板のアウトラインデータを、外周データ記憶部
43から取得する。文字のアウトラインデータに関して
は、上記実施の形態1の文字外周データ記憶部3と同様
に、文字のアウトラインデータは、予め外周データ記憶
部53に文字コードに対応して記憶されている。また、
刻印板のアウトラインデータに関しても、刻印板コード
に対応した刻印板のアウトラインデータが、外周データ
記憶部53に予め記憶されている。文字刻印板外周デー
タ取得部52で取得された文字のアウトラインデータと
刻印板のアウトラインデータは、文字刻印板形状構造解
析部54に出力される。ここで、刻印板に穴が形成され
ている場合は、その穴に対応するアウトラインデータ
が、予め外周データ記憶部53に記憶されている。
The character engraving plate outer periphery data acquiring unit 52 stores the outline data of the character corresponding to the character code received from the character engraving plate code input unit 51 and the outline data of the engraving plate corresponding to the engraving plate code in the outer periphery data. Obtained from the unit 43. As for the character outline data, similarly to the character outer periphery data storage unit 3 of the first embodiment, the character outline data is stored in the outer periphery data storage unit 53 in advance corresponding to the character code. Also,
Regarding the outline data of the engraved plate, the outline data of the engraved plate corresponding to the engraved plate code is stored in the outer peripheral data storage unit 53 in advance. The outline data of the character and the outline data of the engraving plate acquired by the character engraving plate outer periphery data acquiring unit 52 are output to the character engraving plate shape structure analyzing unit 54. Here, when a hole is formed in the marking plate, outline data corresponding to the hole is stored in the outer circumference data storage unit 53 in advance.

【0176】文字刻印板形状構造解析部54では、ま
ず、文字全体の長方形バウンダリーボックスとその長方
形中心座標、及び刻印板全体の長方形バウンダリーボッ
クスとその長方形中心座標を求め、文字のバウンダリー
ボックスの中心と刻印板のバウンダリーボックスの中心
とが一致するように移動する。さらに、予め定めた余白
量を文字のバウンダリーボックスに加算した拡大長方形
を求め、これが刻印板の上面に対応するバウンダリーボ
ックスの面に含まれるように、最小の刻印板スケーリン
グ量を算出する。次に、刻印板の外周の点列を刻印板ス
ケーリング量でスケーリング変換し、文字の長方形中心
座標とスケーリング変換後の刻印板長方形中心座標が一
致するように平行移動したものを、刻印板の新たなアウ
トラインデータとする。
The character engraving plate shape structure analyzing section 54 first obtains a rectangular boundary box of the entire character and its rectangular center coordinates, and a rectangular boundary box of the entire engraving plate and its rectangular center coordinates, and obtains the character boundary box. Move so that the center of the mark coincides with the center of the boundary box of the marking plate. Further, an enlarged rectangle in which a predetermined margin amount is added to the boundary box of the character is obtained, and a minimum engraving plate scaling amount is calculated so that the enlarged rectangle is included in the surface of the boundary box corresponding to the upper surface of the engraving plate. Next, the point sequence on the outer periphery of the engraving plate is scaled and converted by the engraving plate scaling amount, and the parallel movement is performed so that the center coordinates of the character rectangle and the engraved plate rectangular center coordinates after the scaling conversion coincide with each other. Outline data.

【0177】文字のアウトラインデータ、新たな刻印板
のアウトラインデータ、各々に関して、実施の形態1の
文字形状構造解析部4と同様に、文字と刻印板の構造解
析結果情報を生成する。文字の構造解析結果情報として
は、文字穴毎にその穴を包含する唯一の文字部品が特定
される。また、刻印板の構造解析結果情報としては、刻
印板に穴がある場合は、その穴を包含する刻印板が特定
され、これらの包含関係を表す情報が、上記実施の形態
1と同様の方法によって作成される。但し、ここで生成
される刻印板の構造解析結果情報は、刻印板形状の下面
(これを「刻印板下面」という。)に適用される情報で
ある。更に、刻印板の新たなアウトラインデータと、文
字のアウトラインデータのうち、文字外形外周の点列と
文字穴の外周の点列の順序を逆転したもの(文字外形を
文字穴に、文字穴を文字外形に相当するような並びに変
更することに相当する)とを合併したデータについて
も、実施の形態1の文字形状構造解析部4と同様に、構
造解析結果情報を生成する。但し、ここで生成される刻
印板の構造解析結果情報は、刻印板形状の上面に適用さ
れる情報である。
For each of the outline data of the character and the outline data of the new engraving plate, structural analysis result information of the character and the engraving plate is generated in the same manner as in the character shape structure analyzing section 4 of the first embodiment. As the character structure analysis result information, the only character part that includes the hole is specified for each character hole. Further, as the structural analysis result information of the stamping plate, when the stamping plate has a hole, the stamping plate including the hole is specified, and the information indicating the inclusion relation is determined by the same method as in the first embodiment. Created by However, the structural analysis result information of the marking plate generated here is information applied to the lower surface of the marking plate shape (this is referred to as “the lower surface of the marking plate”). Furthermore, of the new outline data of the engraving plate and the outline data of the character, those obtained by reversing the order of the point sequence on the outer periphery of the character outline and the point sequence on the outer periphery of the character hole (character outline as a character hole, character hole as a character) As with the character shape structure analysis unit 4 of the first embodiment, structure analysis result information is also generated for data obtained by combining data that corresponds to an outer shape and corresponds to a change. However, the structural analysis result information of the marking plate generated here is information applied to the upper surface of the marking plate shape.

【0178】文字刻印板形状面凸ポリゴン分割部55で
は、文字、刻印板上下面の各構成要素に対して実施の形
態1の文字形状上下面凸ポリゴン分割部5と同様に処理
を行う。図26(a)〜(c)は、この分割を行った後
の状態を示した例である(この例では、文字、刻印板上
下面の構成要素が、各々1つ存在している)。処理結果
の文字と刻印板上下面の各構成要素のインデックスドサ
ーフェースデータは、文字刻印板形状側面生成部56に
送られる。
The character stamping plate shape surface convex polygon dividing unit 55 performs the same processing as the character shape upper and lower surface convex polygon dividing unit 5 of the first embodiment on each component of the character and the marking plate upper and lower surfaces. FIGS. 26 (a) to 26 (c) show an example of a state after the division (in this example, one character and one component on the upper and lower surfaces of the marking plate exist). The characters resulting from the processing and the indexed surface data of the components on the upper and lower surfaces of the marking plate are sent to the character marking plate shape side surface generating unit 56.

【0179】文字刻印板形状側面生成部56では、上記
実施の形態1の文字形状側面生成部6、及び実施の形態
2のべベル形状側面生成部11と同様に、刻印板の各構
成要素の上下面、側面またはべベル形状側面を生成す
る。次に、刻印板上面のz軸の位置に対して、文字上面
の各部分構造をz軸の下方向(堀込みの深さに相当し、
立ち上げの高さより小さいことが必要)へ移動し、刻印
板上面の堀込み部の下面を生成する。最後に、堀込み部
下面と刻印板上面の対応点を、上記実施の形態1の文字
形状側面生成部6と同様の処理によって堀込み部の側面
を生成するが、その際、インデックスの並びは、上記実
施の形態1とは逆にする。以上の処理で生成された文字
と刻印板の各構成要素の上下面、側面のインデックスド
サーフェースデータの文字刻印板形状データ出力部57
に出力される。
In the character engraving plate side surface generating unit 56, similarly to the character shape side surface generating unit 6 of the first embodiment and the bevel side surface generating unit 11 of the second embodiment, each of the constituent elements of the engraving plate is provided. Create top, bottom, side or bevel shaped sides. Next, with respect to the position of the z-axis on the upper surface of the engraving plate, each partial structure on the upper surface of the character is moved downward in the z-axis (corresponding to the depth of engraving,
(Must be smaller than the height of the riser) to generate the lower surface of the engraved portion on the upper surface of the stamping plate. Lastly, the corresponding points between the lower surface of the engraved portion and the upper surface of the engraving plate are used to generate the side surface of the engraved portion by the same processing as that of the character-shaped side surface generating unit 6 of the first embodiment. , And the reverse of the first embodiment. Character engraving plate shape data output unit 57 of indexed surface data of the upper and lower surfaces and side surfaces of each component of the character and the engraving plate generated by the above processing
Is output to

【0180】文字刻印板形状データ出力部57では、文
字刻印板形状側面生成部56から出力された文字と刻印
板の各構成要素の上下面、側面のインデックスドサーフ
ェースデータを階層的な記述によって一まとめにして、
外部へ出力する。データ形式を円筒座標または極座標等
に変換する必要がある場合は、当該データ形式へ変換し
てから出力する。
The character engraving plate shape data output unit 57 compares the character output from the character engraving plate shape side surface generating unit 56 with the indexed surface data of the upper, lower, and side surfaces of each component of the engraving plate by hierarchical description. In summary,
Output to outside. When it is necessary to convert the data format into cylindrical coordinates or polar coordinates, the data format is converted and output.

【0181】以上のように、刻印板のアウトラインデー
タに基づいて3次元文字を含む刻印板の生成を可能にし
たので、凹状のより複雑な3次元文字についても表示す
ることができる。なお、上記の実施の形態1から実施の
形態6において、順次1文字ずつ処理を繰り返すことに
より、連続した文字列に対する処理も可能である。ま
た、文字列に対して1つの台座もしくは1つの刻印板で
対応するためには、文字のバウンダリーボックスを文字
列全体のバウンダリーボックスに拡大して処理を行えば
良い。
As described above, since it is possible to generate an engraved plate including three-dimensional characters based on the outline data of the engraved plate, it is possible to display even more complicated concave three-dimensional characters. In the above-described first to sixth embodiments, by repeating the processing one character at a time, processing for a continuous character string is also possible. Further, in order to deal with a character string with one pedestal or one marking plate, the processing may be performed by enlarging the boundary box of the character to the boundary box of the entire character string.

【0182】さらに、上記の実施の形態では、主に穴を
含む文字を対象として説明したが、穴を有する一般の図
形(図形を構成する図形部品を含む。)に対しても、上
記と同様の構成により、自動的に高品位の3次元図形を
表示し得る3次元データを生成することができる。
Further, in the above-described embodiment, the description has been made mainly on characters including holes, but the same applies to general graphics having holes (including graphic parts constituting graphics). With this configuration, three-dimensional data capable of automatically displaying a high-quality three-dimensional figure can be generated.

【0183】[0183]

【発明の効果】以上のように、本発明に係る3次元文字
データ生成装置は、2次元文字データから3次元文字デ
ータを生成する装置であって、2次元文字データを用い
て、文字を構成する文字部品の外周及び当該文字に形成
されている穴の外周を決定する外周決定手段と、前記外
周決定手段により決定された穴の外周と包含関係を有
し、且つ、当該穴の外周から直近の位置にある文字部品
の外周を特定する包含関係特定手段と、前記包含関係特
定手段により特定された文字部品の外周の内部領域か
ら、その文字部品と包含関係にある穴の外周の内部領域
を除いた領域をポリゴン分割し、特定されない文字部品
の外周については、その内部領域をポリゴン分割する分
割手段と、前記分割手段によりポリゴン分割された領域
に係る文字部品の複製を移動し、前記文字部品と前記複
製された文字部品との頂点から側面を生成する側面生成
手段とを備えることを特徴とする。
As described above, the three-dimensional character data generating device according to the present invention is a device for generating three-dimensional character data from two-dimensional character data, and forms a character using two-dimensional character data. Outer circumference determining means for determining the outer circumference of the character part to be formed and the outer circumference of the hole formed in the character, and having an inclusive relationship with the outer circumference of the hole determined by the outer circumference determining means, and being closest to the outer circumference of the hole. From the inner area of the outer periphery of the character component specified by the inclusion relation specifying means, and from the inner area of the outer circumference of the character part specified by the above-described inclusive relation specifying means, Dividing the removed area into polygons, and for the outer periphery of the character parts that are not specified, dividing means for dividing the internal area into polygons, and copying the character parts relating to the areas polygon-divided by the dividing means. Moved, characterized in that it comprises a side surface generating means for generating a side from the apex of the character component and the cloning character parts.

【0184】これにより、操作者の手を煩わせることな
く、与えられた2次元の文字の輪郭線データから、3次
元文字データを自動かつ実時間で生成し、ビットマップ
フォントをベースに生成した3次元文字に比べて、はる
かに高品位な3次元文字の生成が可能となる。
As a result, three-dimensional character data can be generated automatically and in real time from the given two-dimensional character outline data without bothering the operator, and generated based on a bitmap font. It is possible to generate a three-dimensional character with much higher quality than a three-dimensional character.

【0185】また、本発明に係る3次元文字データ生成
装置における前記2次元文字データは、前記文字の輪郭
や穴の輪郭を表す2次元平面で定義されたアウトライン
データであり、前記外周決定手段は、前記アウトライン
データを取得し、当該アウトラインデータを前記文字の
輪郭を表す第1アウトラインデータと前記穴の輪郭を表
す第2アウトラインデータとに分類し、分類された第1
アウトラインデータに基づいて前記文字部品の外周を決
定し、分類された第2アウトラインデータに基づいて前
記穴の外周を決定することを特徴とする。
In the three-dimensional character data generating apparatus according to the present invention, the two-dimensional character data is outline data defined on a two-dimensional plane representing the outline of the character or the outline of a hole. Acquiring the outline data, classifying the outline data into first outline data representing the outline of the character and second outline data representing the outline of the hole, and classifying the first outline data.
An outer periphery of the character component is determined based on outline data, and an outer periphery of the hole is determined based on the classified second outline data.

【0186】また、前記包含関係特定手段は、前記文字
部品の外周を囲う矩形を決定する第1決定部と、前記穴
の外周を囲う矩形を決定する第2決定部と、前記第1決
定部によって決定された矩形と前記第2決定部によって
決定された矩形とを比較することにより、当該穴の外周
を囲う矩形を包含する1又は複数の文字部品の外周を囲
う矩形を特定する第1特定部と、前記第1特定部により
特定された矩形のうち、最も内側の矩形に係る文字部品
の外周を特定する第2特定部と、前記第2特定部により
特定された文字部品の外周を、前記穴の外周を包含する
唯一の文字部品の外周であると特定し、当該包含関係を
表す情報を作成する包含情報作成部とを備えることを特
徴とする。
[0186] The inclusion relation specifying means may include a first determination unit that determines a rectangle surrounding the outer periphery of the character component, a second determination unit that determines a rectangle surrounding the outer periphery of the hole, and the first determination unit. A first specification that specifies a rectangle that surrounds the outer periphery of one or more character components that includes the rectangle that surrounds the outer periphery of the hole by comparing the rectangle that is determined by the second determination unit with the rectangle that is determined by the second determination unit. Part, a second specifying unit that specifies the outer periphery of the character component relating to the innermost rectangle among the rectangles specified by the first specifying unit, and an outer periphery of the character component specified by the second specifying unit. An inclusion information creating unit that identifies the outer periphery of the only character component that includes the outer periphery of the hole and creates information indicating the inclusion relationship.

【0187】なお、前記包含関係特定手段は、前記文字
部品の外周を囲う矩形を決定する第1決定部と、前記穴
の外周を囲う矩形を決定する第2決定部と、前記第2決
定部によって決定された穴の外周に係る矩形の重心と前
記第1決定部によって決定された文字部品の外周に係る
矩形の各辺との距離、又は前記重心と当該文字部品に係
る前記点列のうちの一の点との距離のうち、短い方を当
該文字部品についての最短距離と決定する最短距離決定
部と、前記最短距離決定部により決定された最短距離
を、全ての文字部品について比較し、最も短い最短距離
に係る文字部品を前記穴の外周を包含する唯一の文字部
品の外周であると判定し、当該包含関係を表す情報を作
成する包含情報作成部とを備えるように構成することも
できる。
[0187] The inclusive relation specifying means includes a first determining unit for determining a rectangle surrounding the outer periphery of the character component, a second determining unit for determining a rectangle surrounding the outer periphery of the hole, and the second determining unit. The distance between the center of gravity of the rectangle pertaining to the outer periphery of the hole determined by the first determination unit and each side of the rectangle pertaining to the outer periphery of the character component determined by the first determination unit, or the point sequence relating to the centroid and the character component Among the distances to one point, the shortest distance determining unit that determines the shorter one as the shortest distance for the character part, and the shortest distance determined by the shortest distance determining unit, for all character parts, It may also be configured to include an inclusion information creating unit that determines that the character component associated with the shortest shortest distance is the outer periphery of the only character component that includes the outer periphery of the hole, and creates information indicating the inclusion relationship. it can.

【0188】これにより、アウトラインデータによって
表される文字に対して幾何学的な構造解析を行うので、
文字に文字穴が形成されているか否かなどの文字の構造
が明確となり、文字を構成する各文字部品に対しても3
次元表示が可能となる。つまり、生成される3次元文字
については、階層構造を有しているか否かが明確となる
ので、文字形状の編集などをする場合やアニメーション
を行う場合に、文字部品の単位まで分割した、きめ細か
な3次元表示が可能となる。
Thus, a geometrical structure analysis is performed on the character represented by the outline data.
The character structure, such as whether or not a character hole is formed in the character, becomes clear.
Dimensional display becomes possible. That is, it is clear whether or not the generated three-dimensional character has a hierarchical structure. Therefore, when editing a character shape or performing an animation, it is divided into units of character parts, 3D display is possible.

【0189】また、前記3次元文字データ生成装置は、
さらに、前記文字部品の構成要素の下面と上面に対し、
これを含む最小の正方形を生成し、前記構成要素の上面
及び下面を規定する点列が前記正方形に含まれるように
当該正方形を平行移動して前記構成要素における個々の
座標値を特定し、これらの座標値を前記正方形の辺の長
さをで除した座標値をマッピング座標とし、前記生成さ
れた側面を規定する外周の点列の2点間の距離の総和と
開始点から各点までの距離との比と、下面から上面まで
の高さと前記外周の点列における各点の高さとの比に基
づいて、テクスチャ座標を生成するテクスチャ座標生成
手段を備えるように構成することもできる。
Further, the three-dimensional character data generating device is
Further, with respect to the lower and upper surfaces of the components of the character component,
Generate the smallest square including this, translate the square so that the sequence of points defining the top and bottom surfaces of the component is included in the square, identify individual coordinate values in the component, The coordinate value obtained by dividing the coordinate value of the square by the length of the side of the square is defined as the mapping coordinate, and the sum of the distance between the two points of the outer peripheral point sequence defining the generated side surface and the starting point to each point. It is also possible to provide a texture coordinate generation means for generating texture coordinates based on a ratio of a distance, a ratio of a height from the lower surface to the upper surface, and a height of each point in the point sequence on the outer periphery.

【0190】これにより、テクスチャ座標を生成するの
で、3次元化した文字表面に様々なテクスチャ模様を施
すことが可能となる。
Thus, since texture coordinates are generated, it is possible to apply various texture patterns to the three-dimensional character surface.

【0191】また、前記3次元文字データ生成装置は、
さらに、前記第1アウトラインデータ又は第2アウトラ
インデータに含まれる点列に対して、連続する2点間の
平均距離を所定の値で除することによって基準距離を算
出し、連続する2点間の距離が基準距離以上の場合に基
準距離以下となるように、前記2点の間に新たに1又は
複数の点を補間するデータ補間手段を備えるように構成
しても良い。
Further, the three-dimensional character data generating device may include:
Further, a reference distance is calculated by dividing an average distance between two consecutive points by a predetermined value with respect to a point sequence included in the first outline data or the second outline data, and calculates a reference distance between the two consecutive points. A data interpolating unit for interpolating one or more new points between the two points may be provided so that the distance becomes equal to or less than the reference distance when the distance is equal to or more than the reference distance.

【0192】さらに、3次元文字データ生成装置は、前
記分割手段により分割された凸ポリゴンを再分割する再
分割手段を備えることとしても良い。
Further, the three-dimensional character data generating apparatus may include a subdivision unit for subdividing the convex polygon divided by the division unit.

【0193】これにより、文字外周点列や穴外周点列に
対して点を補間し、また、分割されたポリゴンを再分割
して、より精細なにポリゴン分割を行うので、3次元形
状のさらなる高品位化を図ることが可能となる。
As a result, points are interpolated with respect to the character outer peripheral point sequence and the hole outer peripheral point sequence, and the divided polygons are re-divided to perform finer polygon division. Higher quality can be achieved.

【0194】また、本発明に係る3次元文字データ生成
装置は、文字コードに対応する文字のアウトラインデー
タと台座コードに対応する台座の3次元形状データや台
座コードに対応する台座のアウトラインデータとに基づ
いて、台座の上に3次元文字を据え付けたり、文字コー
ドに対応する文字のアウトラインデータと刻印板コード
に対応する刻印板のアウトラインデータとに基づいて、
逆に3次元に凹状に掘り込ませた文字を表示するように
構成することもできる。さらに、これらの3次元文字の
側面の形状としてべベル形状を生成するように構成する
こともできる。
Further, the three-dimensional character data generating apparatus according to the present invention converts the outline data of the character corresponding to the character code into the three-dimensional shape data of the base corresponding to the base code and the outline data of the base corresponding to the base code. Based on the three-dimensional characters on the base, or based on the outline data of the character corresponding to the character code and the outline data of the engraving plate corresponding to the engraving plate code,
Conversely, it is also possible to display a character that is dug into a three-dimensional concave shape. Further, a configuration may be employed in which a bevel shape is generated as the shape of the side surface of these three-dimensional characters.

【0195】これにより、台座に文字を据え付けたり文
字の刻印板化を可能とし、側面形状についても種々のべ
ベル形状を生成し得るので、文字の3次元表示に対する
様々な要求に柔軟に対応することが可能となる。
As a result, it is possible to mount characters on the pedestal and to make the characters engraved on a plate, and to generate various bevel shapes for the side surface shape, so that it is possible to flexibly respond to various requests for three-dimensional display of characters. It becomes possible.

【0196】また、本発明に係る3次元図形データ生成
装置は、2次元図形データから3次元図形データを生成
する装置であって、2次元図形データを用いて、図形を
構成する図形部品の外周及び当該図形に形成されている
穴の外周を決定する外周決定手段と、前記外周決定手段
により決定された穴の外周と包含関係を有し、且つ、当
該穴の外周から直近の位置にある図形部品の外周を特定
する包含関係特定手段と、前記包含関係特定手段により
特定された図形部品の外周の内部領域から、その図形部
品と包含関係にある穴の外周の内部領域を除いた領域を
ポリゴン分割し、特定されない図形部品の外周について
は、その内部領域をポリゴン分割する分割手段と、前記
分割手段によりポリゴン分割された領域に係る図形部品
の複製を移動し、前記図形部品と前記複製された図形部
品との頂点から側面を生成する側面生成手段とを備える
ことを特徴とする。
A three-dimensional graphic data generating apparatus according to the present invention is an apparatus for generating three-dimensional graphic data from two-dimensional graphic data. And an outer periphery determining means for determining the outer periphery of the hole formed in the figure, and a figure which has an inclusive relation with the outer periphery of the hole determined by the outer circumference determining means, and is located at a position closest to the outer periphery of the hole. An inclusion relation specifying means for specifying the outer periphery of the part, and a polygon obtained by removing the internal area of the outer periphery of the hole having the inclusion relation with the graphic part from the internal area of the outer periphery of the graphic part specified by the inclusion relation specifying means. For the outer periphery of the figure component that has been divided and not specified, a dividing unit that divides the internal region into polygons, and a copy of the figure component relating to the region that has been polygonally divided by the dividing unit are moved. Characterized in that it comprises a side surface generating means for generating a side serial figure component from the apex of the duplicated figure component.

【0197】これにより、穴が形成された図形に対して
も、操作者の手を煩わせることなく、与えられた2次元
の図形の輪郭線データから、3次元データを自動かつ実
時間で生成し、ビットマップフォントをベースに生成し
た3次元図形に比べて、はるかに高品位な3次元図形の
生成が可能となる。以上のことより、本発明による効果
は絶大で、新たな恩恵をもたらすものと考える。
Thus, even for a figure having a hole formed therein, three-dimensional data can be generated automatically and in real time from contour data of a given two-dimensional figure without bothering the operator. However, it is possible to generate a much higher-quality three-dimensional figure than a three-dimensional figure generated based on a bitmap font. From the above, it is considered that the effects of the present invention are enormous and bring new benefits.

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

【図1】実施の形態1における3次元文字データ生成装
置の機能構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a functional configuration of a three-dimensional character data generation device according to a first embodiment.

【図2】文字外周点列及び穴外周点列をたどるときの回
り方を示す図である。
FIG. 2 is a diagram showing how to turn when following a character outer peripheral point sequence and a hole outer peripheral point sequence.

【図3】漢字の「回」について文字形状構造解析を実施
した場合の模式図である。
FIG. 3 is a schematic diagram of a case where a character shape structure analysis is performed for a kanji character “”.

【図4】図3における包含関係解析処理における詳細な
処理の流れを示すフローチャートである。
FIG. 4 is a flowchart showing a detailed processing flow in the inclusion relation analysis processing in FIG. 3;

【図5】第1の接続化の方法を漢字の「田」に適用し、
さらに点列番号の付け替えを実施した様子を示す図であ
る。
FIG. 5 applies the first connection method to the kanji “ta”,
It is a figure showing signs that point sequence number change was performed further.

【図6】(a)は、第1の三角形分割方法を「田」に適
用した場合の処理結果の例を示す図である。(b)は、
第2の三角形分割方法を「田」に適用した場合の処理結
果の例を示す図である。
FIG. 6A is a diagram illustrating an example of a processing result when the first triangulation method is applied to “field”; (B)
It is a figure showing the example of the processing result at the time of applying the 2nd triangulation method to "field".

【図7】第2の三角形分割方法をロシア語の「ё」に適
用した場合の処理結果の例を示す図である。
FIG. 7 is a diagram illustrating an example of a processing result when the second triangulation method is applied to Russian “に”;

【図8】文字形状側面生成部における文字形状側面生成
処理の流れを示すフローチャートである。
FIG. 8 is a flowchart illustrating a flow of a character shape side surface generation process in a character shape side surface generation unit.

【図9】(a)は、文字の上面を高さ方向に移動する第
1の方法の概要を示す図である。(b)は、文字の上面
を高さ方向に移動する第2の方法の概要を示す図であ
る。(c)は、文字の上面を高さ方向に移動する第3の
方法の概要を示す図である。(d)は、文字の上面を高
さ方向に移動する第4の方法の概要を示す図である。
FIG. 9A is a diagram illustrating an outline of a first method of moving the upper surface of a character in a height direction. (B) is a figure which shows the outline of the 2nd method of moving the upper surface of a character to a height direction. (C) is a figure which shows the outline of the 3rd method of moving the upper surface of a character to a height direction. (D) is a figure which shows the outline of the 4th method of moving the upper surface of a character to a height direction.

【図10】実施の形態2における3次元文字データ生成
装置の機能構成を示すブロック図である。
FIG. 10 is a block diagram showing a functional configuration of a three-dimensional character data generation device according to a second embodiment.

【図11】(a)は、最も単純なベベル形状の外形を示
した図である。(b)は、べベル形状の中間外周の生成
方法を説明するための図である。
FIG. 11A is a diagram showing the simplest bevel-shaped outer shape. (B) is a figure for demonstrating the generation method of the intermediate outer periphery of a bevel shape.

【図12】中間外周生成処理における処理の流れを示す
フローチャートである。
FIG. 12 is a flowchart showing a flow of processing in an intermediate outer circumference generation processing.

【図13】(a)は、凸状の側面を形成するために、2
つの中間外周を生成する場合の概要を示す図である。
(b)は、凹状の側面を形成するために、2つの中間外
周を生成する場合の概要を示す図である。
FIG. 13 (a) shows 2D for forming a convex side surface.
It is a figure showing the outline in the case of generating two middle circumferences.
(B) is a figure which shows the outline | summary in the case of producing | generating two intermediate outer periphery in order to form a concave side surface.

【図14】(a)は、半円状に凸となっている側面の形
状を示す図である。(b)は、半円状に凹となっている
側面の形状を示す図である。(c)は、半円状に凸とな
っている側面の中間外周における各値の算出方法を説明
するための図である。
FIG. 14A is a diagram showing a shape of a side surface that is convex in a semicircular shape. (B) is a figure which shows the shape of the side surface which becomes concave in semicircle shape. (C) is a figure for demonstrating the calculation method of each value in the intermediate outer periphery of the side which is convex in the shape of a semicircle.

【図15】、鋳型タイプのベベル形状の側面を生成させ
る場合について説明するための図である。
FIG. 15 is a diagram for explaining a case where a mold-type bevel-shaped side surface is generated.

【図16】(a)は、上記実施の形態1における文字の
上面を高さ方向に垂直に持ち上げた場合の側面の形状を
示す図である。(b)は、その断面が凸六角形状に突き
出たべベル形状の側面を生成した例である。(c)は、
中間外周を2つ生成し、文字の上面及び下面の外周に対
する削ぎ落とし角度が等しい場合の側面の断面を凸台形
状のべベル形状とした例である。(d)は、側面の形状
を鋳型タイプのべベル形状とした例である。
FIG. 16A is a diagram illustrating a shape of a side surface when the upper surface of the character is lifted vertically in the height direction in the first embodiment. (B) is an example in which a bevel-shaped side surface whose cross section protrudes in a convex hexagonal shape is generated. (C)
This is an example in which two intermediate outer peripheries are generated, and the cross-section of the side surface when the scraping angles with respect to the outer peripheries of the upper surface and the lower surface of the character are equal is a convex trapezoidal bevel shape. (D) is an example in which the shape of the side surface is a mold type bevel shape.

【図17】実施の形態3における3次元文字データ生成
装置の機能構成を示すブロック図である。
FIG. 17 is a block diagram illustrating a functional configuration of a three-dimensional character data generation device according to a third embodiment.

【図18】漢字の「回」に対して、2つの点の間に新た
に点を補間した場合の一例を示す図である。
FIG. 18 is a diagram illustrating an example of a case where a new point is interpolated between two points for the Chinese character “times”.

【図19】元の三角形を4つに再分割する方法における
処理の流れを示すフローチャートである。
FIG. 19 is a flowchart showing a processing flow in a method of subdividing an original triangle into four parts.

【図20】三角形の再分割のレベルをrにしようとする
場合の再分割方法における処理の流れを示すフローチャ
ートである。
FIG. 20 is a flowchart showing a processing flow in a subdivision method when the level of subdivision of a triangle is set to r.

【図21】(a)は、三角形の辺の中点を用いて内分割
を行う方法を説明するための図である。(b)は、三角
形の再分割のレベルをレベル0からレベルrに一気に上
げる場合の様子を示す図である。
FIG. 21A is a diagram for explaining a method of performing internal division using a midpoint of a side of a triangle. (B) is a diagram showing a state in which the level of the subdivision of the triangle is increased from level 0 to level r at a stretch.

【図22】実施の形態4における3次元文字データ生成
装置の機能構成を示すブロック図である。
FIG. 22 is a block diagram illustrating a functional configuration of a three-dimensional character data generation device according to a fourth embodiment.

【図23】台座付き文字形状を説明するための図であ
る。
FIG. 23 is a view for explaining a character shape with a base.

【図24】実施の形態5における3次元文字データ生成
装置の機能構成を示すブロック図である。
FIG. 24 is a block diagram showing a functional configuration of a three-dimensional character data generation device according to a fifth embodiment.

【図25】実施の形態6における3次元文字データ生成
装置の機能構成を示すブロック図である。
FIG. 25 is a block diagram showing a functional configuration of a three-dimensional character data generation device according to a sixth embodiment.

【図26】(a)刻印板上面を説明するための図であ
る。 (b)刻印板の文字彫り込み部下面を説明するための図
である。 (c)刻印板下面を説明するための図である。
FIG. 26 (a) is a diagram for explaining the upper surface of the marking plate. (B) It is a figure for explaining the character engraving part lower surface of an engraving board. (C) It is a figure for explaining a marking plate lower surface.

【図27】従来例における3次元文字の作成装置の機能
ブロック図である。
FIG. 27 is a functional block diagram of a conventional three-dimensional character creation device.

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

101、102、 3次元文字データ生成装置 103、104、 105、106 1 文字コード入力部 2 文字外周データ取得部 3 文字外周データ記憶部 4 文字形状構造解析部 5 文字形状上下面凸ポリゴン分割部 6、36 文字形状側面生成部 7、12、25 文字形状データ出力部 11 べベル形状側面生成部 21 文字外周データ補間部 22 文字形状上下面凸ポリゴン再分割部 23 文字形状側面生成部 24 テクスチャ座標生成部 31、41 文字台座コード入力部 32 文字外周台座形状取得部 33 文字外周台座形状記憶部 34、44 文字台座形状構造解析部 35 台座形状生成部 37、47 文字台座形状データ出力部 42 文字台座外周データ取得部 43、53 外周データ記憶部 45 文字台座形状面凸ポリゴン分割部 46 文字台座形状側面生成部 51 文字刻印板コード入力部 52 文字刻印板外周データ取得部 54 文字刻印板形状構造解析部 55 文字刻印板形状面凸ポリゴン分割部 56 文字刻印板形状側面生成部 57 文字刻印板形状データ出力部 101, 102, 3D character data generator 103, 104, 105, 106 1 Character code input unit 2 Character outer periphery data acquisition unit 3 Character outer periphery data storage unit 4 Character shape structure analysis unit 5 Character shape upper and lower surface convex polygon division unit 6 , 36 Character shape side surface generation unit 7, 12, 25 Character shape data output unit 11 Bevel shape side surface generation unit 21 Character outer circumference data interpolation unit 22 Character shape upper and lower surface convex polygon subdivision unit 23 Character shape side surface generation unit 24 Texture coordinate generation Unit 31, 41 Character pedestal code input unit 32 Character outer pedestal shape acquisition unit 33 Character outer pedestal shape storage unit 34, 44 Character pedestal shape structure analysis unit 35 Pedestal shape generation unit 37, 47 Character pedestal shape data output unit 42 Character pedestal outer periphery Data acquisition units 43, 53 Outer circumference data storage unit 45 Character pedestal shape surface convex polygon division unit 46 sentences Base shape side generation unit 51 Character engraving plate code input unit 52 Character engraving plate peripheral data acquisition unit 54 Character engraving plate shape structure analysis unit 55 Character engraving plate shape surface convex polygon division unit 56 Character engraving plate shape side generation unit 57 Character engraving plate Shape data output section

Claims (32)

【特許請求の範囲】[Claims] 【請求項1】 2次元文字データから3次元文字データ
を生成する装置であって、 2次元文字データを用いて、文字を構成する文字部品の
外周及び当該文字に形成されている穴の外周を決定する
外周決定手段と、 前記外周決定手段により決定された穴の外周と包含関係
を有し、且つ、当該穴の外周から直近の位置にある文字
部品の外周を特定する包含関係特定手段と、 前記包含関係特定手段により特定された文字部品の外周
の内部領域から、その文字部品と包含関係にある穴の外
周の内部領域を除いた領域をポリゴン分割し、特定され
ない文字部品の外周については、その内部領域をポリゴ
ン分割する分割手段と、 前記分割手段によりポリゴン分割された領域に係る文字
部品の複製を移動し、前記文字部品と前記複製された文
字部品との頂点から側面を生成する側面生成手段とを備
えることを特徴とする3次元文字データ生成装置。
1. An apparatus for generating three-dimensional character data from two-dimensional character data, wherein the two-dimensional character data is used to determine the outer periphery of a character part constituting a character and the outer periphery of a hole formed in the character. Outer circumference determining means for determining, having an inclusion relationship with the outer circumference of the hole determined by the outer circumference determining means, and inclusion relation specifying means for specifying the outer circumference of the character component at a position closest to the outer circumference of the hole, From the inner region of the outer periphery of the character component specified by the inclusion relation specifying means, the region excluding the inner region of the outer periphery of the hole that has an inclusive relationship with the character component is divided into polygons. Dividing means for dividing the internal region into polygons; moving a copy of the character part relating to the area divided by the polygon by the dividing means; 3-D character data generating device, characterized in that it comprises a side surface generating means for generating a side from.
【請求項2】 前記2次元文字データは、前記文字の輪
郭や穴の輪郭を表す2次元平面で定義されたアウトライ
ンデータであり、 前記外周決定手段は、 前記アウトラインデータを取得し、当該アウトラインデ
ータを前記文字の輪郭を表す第1アウトラインデータと
前記穴の輪郭を表す第2アウトラインデータとに分類
し、分類された第1アウトラインデータに基づいて前記
文字部品の外周を決定し、分類された第2アウトライン
データに基づいて前記穴の外周を決定することを特徴と
する請求項1記載の3次元文字データ生成装置。
2. The two-dimensional character data is outline data defined by a two-dimensional plane representing the outline of the character or the outline of a hole, and the outer circumference determining means acquires the outline data and obtains the outline data. Are classified into first outline data representing the outline of the character and second outline data representing the outline of the hole, and the outer periphery of the character component is determined based on the classified first outline data. 2. The three-dimensional character data generating apparatus according to claim 1, wherein the outer periphery of the hole is determined based on two outline data.
【請求項3】 前記分割手段は、 前記包含関係特定手段において特定された文字部品の外
周の内部領域から、その文字部品の外周と包含関係にあ
る穴の外周の内部領域を除いた領域を構成要素とし、当
該構成要素を凸ポリゴンに分割し、特定されない文字部
品の外周については、その内部領域を構成要素とし、当
該構成要素を凸ポリゴンに分割し、分割された構成要素
を表すデータを生成することを特徴とする請求項2記載
の3次元文字データ生成装置。
3. The dividing means forms an area obtained by removing an inner area of an outer periphery of a hole which is inclusive of the outer periphery of the character component from an inner area of the outer periphery of the character part specified by the inclusion relation specifying means. Element, the component is divided into convex polygons, and for the outer periphery of an unspecified character part, its internal region is used as a component, the component is divided into convex polygons, and data representing the divided components is generated. 3. The three-dimensional character data generation device according to claim 2, wherein
【請求項4】 前記側面生成手段は、 前記分割手段によって分割された構成要素の複製を前記
2次元平面と直交する座標成分を有する方向に移動する
ことを特徴とする請求項3記載の3次元文字データ生成
装置。
4. The three-dimensional apparatus according to claim 3, wherein the side surface generating means moves the copy of the component divided by the dividing means in a direction having a coordinate component orthogonal to the two-dimensional plane. Character data generator.
【請求項5】 前記アウトラインデータには、 前記文字部品毎に、時計回り又は反時計回りのいずれか
一の方向に進む順に並べられた当該文字部品の外周を表
す点列を含むアウトラインデータと、 前記穴毎に、前記一の方向とは逆の方向に進む順に並べ
られた当該穴の外周を表す点列を含むアウトラインデー
タとが含まれ、 前記外周決定手段は、前記点列の点が並べられた方向に
基づいて、前記分類を行うことを特徴とする請求項4記
載の3次元文字データ生成装置。
5. The outline data includes, for each of the character components, outline data including a dot sequence representing an outer periphery of the character component arranged in an order of proceeding in one of a clockwise direction and a counterclockwise direction; For each of the holes, outline data including a point sequence representing an outer periphery of the hole arranged in an order proceeding in a direction opposite to the one direction is included, and the outer periphery determining unit arranges the points of the point sequence. 5. The three-dimensional character data generation device according to claim 4, wherein the classification is performed based on the determined direction.
【請求項6】 前記包含関係特定手段は、 前記文字部品の外周を囲う矩形を決定する第1決定部
と、 前記穴の外周を囲う矩形を決定する第2決定部と、 前記第1決定部によって決定された矩形と前記第2決定
部によって決定された矩形とを比較することにより、当
該穴の外周を囲う矩形を包含する1又は複数の文字部品
の外周を囲う矩形を特定する第1特定部と、 前記第1特定部により特定された矩形のうち、最も内側
の矩形に係る文字部品の外周を特定する第2特定部と、 前記第2特定部により特定された文字部品の外周を、前
記穴の外周を包含する唯一の文字部品の外周であると特
定し、当該包含関係を表す情報を作成する包含情報作成
部とを備えることを特徴とする請求項5記載の3次元文
字データ生成装置。
6. The inclusive relation specifying means includes: a first determining unit that determines a rectangle surrounding the outer periphery of the character component; a second determining unit that determines a rectangle surrounding the outer periphery of the hole; A first specification that specifies a rectangle that surrounds the outer periphery of one or more character components that includes the rectangle that surrounds the outer periphery of the hole by comparing the rectangle that is determined by the second determination unit with the rectangle that is determined by the second determination unit. Part, of the rectangles specified by the first specifying unit, a second specifying unit that specifies the outer periphery of the character component related to the innermost rectangle, and the outer periphery of the character component specified by the second specifying unit, 6. The three-dimensional character data generation device according to claim 5, further comprising: an inclusion information creating unit that identifies the outer periphery of the only character component that encompasses the outer periphery of the hole and creates information indicating the inclusion relationship. apparatus.
【請求項7】 前記側面生成手段は、 前記分割された構成要素を表すデータと当該データを複
製して前記2次元平面と直交する座標成分を有する方向
に移動することによって得られるデータとに基づいて、
3次元の上面及び下面を表すデータを生成する上下面生
成部と、 前記上下面生成部によって生成された上面又は下面の外
縁部のデータに基づいて、中間外周を表すデータを生成
する中間外周生成部と、 前記中間外周生成部により生成されたデータに係る中間
外周の頂点と前記上面及び下面の外縁部のデータに係る
頂点とを接続することによって側面を生成し、この側面
を表すデータを生成する側面生成部とを備えることを特
徴とする請求項6記載の3次元文字データ生成装置。
7. The side surface generating means, based on data representing the divided components and data obtained by copying the data and moving the data in a direction having a coordinate component orthogonal to the two-dimensional plane. hand,
An upper and lower surface generating unit for generating data representing a three-dimensional upper surface and a lower surface, and an intermediate outer peripheral generating unit for generating data representing an intermediate outer periphery based on data on the outer edge of the upper or lower surface generated by the upper and lower surface generating unit. And generating a side surface by connecting a vertex of the intermediate outer perimeter related to the data generated by the intermediate outer perimeter generating unit and a vertex pertaining to the data of the outer edge portion of the upper surface and the lower surface to generate data representing the side surface The three-dimensional character data generation device according to claim 6, further comprising: a side surface generation unit that performs the operation.
【請求項8】 前記中間外周生成部は、 前記上面又は下面の外縁部に係る頂点のうち、任意の隣
り合う2点の始点及び終点によって構成されるベクトル
の法線ベクトルを算出し、当該法線ベクトルに一定の倍
率を乗したもののxy座標と前記始点のxy座標と所定
のz座標値に基づいて、前記始点に対応する中間外周を
構成する点を特定し、前記上面又は下面の外縁一周につ
いて前記中間外周を構成する点を順次特定することによ
り、前記中間外周を表すデータを生成することを特徴と
する請求項7記載の3次元文字データ生成装置。
8. The intermediate outer circumference generating unit calculates a normal vector of a vector formed by starting and ending points of any two adjacent points among vertices related to the outer edge of the upper surface or the lower surface. Based on the xy coordinates of the line vector multiplied by a certain magnification, the xy coordinates of the start point, and a predetermined z coordinate value, a point constituting an intermediate outer periphery corresponding to the start point is specified, and the outer periphery of the upper surface or the lower surface is rounded. 8. The three-dimensional character data generation device according to claim 7, wherein data representing the intermediate outer periphery is generated by sequentially specifying points constituting the intermediate outer periphery.
【請求項9】 前記3次元文字データ生成装置は、さら
に、 前記文字部品の構成要素の下面と上面に対し、これを含
む最小の正方形を生成し、前記構成要素の上面及び下面
を規定する点列が前記正方形に含まれるように当該正方
形を平行移動して前記構成要素における個々の座標値を
特定し、これらの座標値を前記正方形の辺の長さをで除
した座標値をマッピング座標とし、 前記生成された側面を規定する外周の点列の2点間の距
離の総和と開始点から各点までの距離との比と、下面か
ら上面までの高さと前記外周の点列における各点の高さ
との比に基づいて、テクスチャ座標を生成するテクスチ
ャ座標生成手段を備えることを特徴とする請求項8記載
の3次元文字データ生成装置。
9. The three-dimensional character data generating device further generates a minimum square including the lower surface and the upper surface of the component of the character component and defines the upper surface and the lower surface of the component. The square is translated so that the column is included in the square, the individual coordinate values in the component are specified, and the coordinate values obtained by dividing these coordinate values by the length of the sides of the square are defined as mapping coordinates. The ratio of the sum of the distances between the two points of the outer peripheral point sequence defining the generated side surface and the distance from the starting point to each point, the height from the lower surface to the upper surface, and each point in the outer peripheral point sequence 9. The three-dimensional character data generating apparatus according to claim 8, further comprising texture coordinate generating means for generating texture coordinates based on a ratio to the height of the three-dimensional character data.
【請求項10】 前記3次元文字データ生成装置は、 前記構成要素を全て含む円筒、又は各構成要素を含む円
筒を設け、この円筒に正規化した円筒座標系を定義し、
構成要素の各頂点を円筒の中心座標から投影し、当該円
筒座標系における座標を用いることによってテクスチャ
座標を生成するテクスチャ座標生成手段を備えることを
特徴とする請求項8記載の3次元文字データ生成装置。
10. The three-dimensional character data generating device is provided with a cylinder including all of the constituent elements or a cylinder including each of the constituent elements, and defining a cylindrical coordinate system normalized to the cylinder.
9. The three-dimensional character data generation device according to claim 8, further comprising texture coordinate generation means for projecting each vertex of the component from the center coordinates of the cylinder and generating texture coordinates by using coordinates in the cylindrical coordinate system. apparatus.
【請求項11】 前記3次元文字データ生成装置は、さ
らに、 前記構成要素の全てを含む球、又は各構成要素を含む球
を設け、この球に正規化した極座標系を定義し、構成要
素の各頂点を球の中心座標から投影し、当該極座標系に
おける座標値を用いることによってテクスチャ座標を生
成するテクスチャ座標生成手段を備えることを特徴とす
る請求項8記載の3次元文字データ生成装置。
11. The three-dimensional character data generating apparatus further comprises: providing a sphere including all of the constituent elements or a sphere including each of the constituent elements; defining a normalized polar coordinate system on the sphere; 9. The three-dimensional character data generating apparatus according to claim 8, further comprising texture coordinate generating means for projecting each vertex from the center coordinates of the sphere and generating texture coordinates by using the coordinate values in the polar coordinate system.
【請求項12】 前記包含関係特定手段は、 前記文字部品の外周を囲う矩形を決定する第1決定部
と、 前記穴の外周を囲う矩形を決定する第2決定部と、 前記第2決定部によって決定された穴の外周に係る矩形
の重心と前記第1決定部によって決定された文字部品の
外周に係る矩形の各辺との距離、又は前記重心と当該文
字部品に係る前記点列のうちの一の点との距離のうち、
短い方を当該文字部品についての最短距離と決定する最
短距離決定部と、 前記最短距離決定部により決定された最短距離を、全て
の文字部品について比較し、最も短い最短距離に係る文
字部品を前記穴の外周を包含する唯一の文字部品の外周
であると判定し、当該包含関係を表す情報を作成する包
含情報作成部とを備えることを特徴とする請求項5記載
の3次元文字データ生成装置。
12. The inclusion determining unit, wherein: a first determining unit that determines a rectangle surrounding the outer periphery of the character component; a second determining unit that determines a rectangle surrounding the outer periphery of the hole; The distance between the center of gravity of the rectangle pertaining to the outer periphery of the hole determined by the first determination unit and each side of the rectangle pertaining to the outer periphery of the character component determined by the first determination unit, or the point sequence relating to the centroid and the character component Of the distance to one point
The shortest distance determining unit that determines the shorter one as the shortest distance for the character component, and the shortest distance determined by the shortest distance determining unit is compared for all the character components. 6. The three-dimensional character data generating apparatus according to claim 5, further comprising: an inclusion information creating unit that determines that the outer periphery of the only character component encompasses the outer periphery of the hole and creates information representing the inclusion relationship. .
【請求項13】 前記3次元文字データ生成装置は、さ
らに、 前記第1アウトラインデータ又は第2アウトラインデー
タに含まれる点列に対して、連続する2点間の平均距離
を所定の値で除することによって基準距離を算出し、連
続する2点間の距離が基準距離以上の場合に基準距離以
下となるように、前記2点の間に新たに1又は複数の点
を補間するデータ補間手段を備えることを特徴とする請
求項5記載の3次元文字データ生成装置。
13. The three-dimensional character data generation device further divides an average distance between two consecutive points by a predetermined value from a point sequence included in the first outline data or the second outline data. Data interpolation means for calculating a reference distance and interpolating one or more new points between the two points so that the distance between the two points is equal to or less than the reference distance when the distance between the two points is equal to or greater than the reference distance. The three-dimensional character data generation device according to claim 5, further comprising:
【請求項14】 前記3次元文字データ生成装置は、さ
らに、 前記分割手段により分割された凸ポリゴンを再分割する
再分割手段を備えることを特徴とする請求項3記載の3
次元文字データ生成装置。
14. The apparatus according to claim 3, wherein said three-dimensional character data generating apparatus further comprises a subdivision unit for subdividing the convex polygon divided by said division unit.
Dimensional character data generator.
【請求項15】 文字コードと台座コードを入力するた
めの文字台座コード入力手段と、 前記文字コードに対応する文字のアウトラインデータと
前記台座コードに対応する台座の3次元形状データを記
憶する文字外周台座形状記憶手段と、 前記文字台座コード入力手段によって入力された文字コ
ードと台座コードに基づいて、前記文字外周台座形状記
憶手段から文字のアウトラインデータと台座の3次元形
状データを取得する文字外周台座形状取得手段と、 前記文字外周台座形状取得手段によって取得された文字
のアウトラインデータに基づいて、前記文字の外周と当
該文字に形成されている穴の外周の包含関係を解析して
文字を構成する構成要素を特定し、前記文字外周台座形
状取得手段によって取得された3次元形状データに係る
台座の上面に前記文字が存置し得る条件を算出する文字
形状構造解析手段と、 前記文字形状構造解析手段によって算出された前記条件
に基づいて、前記台座の3次元形状データを変換する台
座形状生成手段と、 前記文字形状構造解析手段において特定された文字の構
成要素ごとに、凸ポリゴンに分割する文字形状上下面凸
ポリゴン分割手段と、 前記文字形状上下面凸ポリゴン分割手段によってポリゴ
ン分割された各構成要素を空間的に移動して上面、下面
及び側面を生成する文字形状側面生成手段とを備えるこ
とを特徴とする3次元文字データ生成装置。
15. A character base code input means for inputting a character code and a base code, and a character periphery storing outline data of a character corresponding to the character code and three-dimensional shape data of the base corresponding to the base code. A character shape pedestal for acquiring character outline data and three-dimensional shape data of the character pedestal from the character shape pedestal shape storage means based on the character code and the pedestal code input by the character pedestal code input means; Based on the outline data of the character obtained by the shape obtaining means and the character outer pedestal shape obtaining means, the character is configured by analyzing the inclusion relationship between the outer circumference of the character and the outer circumference of the hole formed in the character. The component is specified, and the pedestal related to the three-dimensional shape data acquired by the character peripheral pedestal shape acquiring means is specified. Character shape structure analysis means for calculating a condition under which the character can exist on the upper surface; and pedestal shape generation means for converting the three-dimensional shape data of the pedestal based on the condition calculated by the character shape structure analysis means. A character shape upper / lower surface convex polygon dividing unit that divides each of the character components specified by the character shape structure analyzing unit into convex polygons; and a polygon divided by the character shape upper / lower surface convex polygon dividing unit. A character shape side surface generating means for generating an upper surface, a lower surface and a side surface by spatially moving the character data.
【請求項16】 文字コードと台座コードを入力するた
めの文字台座コード入力手段と、 前記文字コードに対応する文字のアウトラインデータと
前記台座コードに対応する台座のアウトラインデータを
記憶する外周データ記憶手段と、 前記文字台座コード入力手段によって入力された文字コ
ードと台座コードに基づいて、前記外周データ記憶手段
から文字及び台座のアウトラインデータを取得する文字
外周台座形状取得手段と、 前記文字外周台座形状取得手段で取得された文字のアウ
トラインデータに基づいて、前記文字の外周と当該文字
に形成されている穴の外周の包含関係を解析して文字を
構成する構成要素を特定し、前記文字外周台座形状取得
手段によって取得された台座のアウトラインデータに基
づいて、台座の外周と台座に形成されている穴の外周の
包含関係を解析して台座を構成する構成要素を特定し、
前記台座の中に前記文字が存置し得る条件を算出する文
字台座形状構造解析手段と、 前記文字台座形状構造解析手段において特定された文字
の構成要素ごとに、凸ポリゴンに分割し、前記文字台座
形状構造解析手段によって算出された台座の中に前記文
字が存置し得る条件に基づいて台座の各構成要素を表す
データを変換した後に、凸ポリゴンに分割する文字台座
形状面凸ポリゴン分割手段と、 前記文字台座形状面凸ポリゴン分割手段においてポリゴ
ン分割された各構成要素を空間的に移動して、上面、下
面及び側面を生成する文字台座形状側面生成手段とを備
えることを特徴とする3次元文字データ生成装置。
16. A character base code input means for inputting a character code and a base code, and outer circumference data storage means for storing outline data of a character corresponding to the character code and outline data of the base corresponding to the base code. Based on the character code and the pedestal code input by the character pedestal code input means, a character outer pedestal shape obtaining means for obtaining outline data of characters and pedestals from the outer circumference data storage means; Based on the outline data of the character obtained by the means, analyzing the inclusion relation between the outer periphery of the character and the outer periphery of the hole formed in the character, specifying the constituent elements constituting the character, Based on the pedestal outline data acquired by the acquisition means, Analyzing the inclusion relationship of the perimeter of the hole that has been identified to identify the components that constitute the pedestal,
A character pedestal shape structure analyzing means for calculating a condition under which the character can be placed in the pedestal; and, for each of the components of the character specified by the character pedestal shape structure analyzing means, the character pedestal is divided into convex polygons. Character pedestal shape surface convex polygon dividing means for converting data representing each component of the pedestal based on the condition in which the character can exist in the pedestal calculated by the shape structure analyzing means, and then dividing the data into convex polygons, A character pedestal-shaped side surface generating means for spatially moving each component divided by the character pedestal-shaped surface-convex polygon dividing means to generate an upper surface, a lower surface, and a side surface; Data generator.
【請求項17】 前記文字台座形状側面生成手段は、 側面の形状としてべベル形状を生成することを特徴とす
る請求項16記載の3次元文字データ生成装置。
17. The three-dimensional character data generating apparatus according to claim 16, wherein said character pedestal shape side surface generating means generates a bevel shape as a side surface shape.
【請求項18】 文字コードと刻印板コードを入力する
ための文字刻印板コード入力手段と、 前記文字コードに対応する文字のアウトラインデータと
前記刻印板コードに対応する刻印板のアウトラインデー
タを記憶する外周データ記憶手段と、 前記文字刻印板コード入力手段によって入力された文字
コードと刻印板コードに基づいて、前記外周データ記憶
手段から文字及び刻印板のアウトラインデータを取得す
る文字外周刻印板形状取得手段と、 前記文字外周刻印板形状取得手段において取得された文
字のアウトラインデータに基づいて、前記文字の外周と
当該文字に形成されている穴の外周の包含関係を解析し
て文字を構成する構成要素を特定し、前記刻印板の中に
前記文字が存置し得る条件を算出し、その条件に基づい
て刻印板のアウトラインデータを変換し、変換後の刻印
板のアウトラインデータに基づいて、前記刻印板の外周
と当該刻印板に形成されている穴の外周の包含関係を解
析して刻印板下面を構成する構成要素を特定し、文字の
外形を表す外周の点列を文字の穴を表す点列に変換し、
文字の穴を表す外周の点列を文字の外形を表す点列に変
換し、これら変換された点列に基づく新たな文字のアウ
トラインデータと前記変換後の刻印板のアウトラインデ
ータとを合併したアウトラインデータを生成し、当該合
併されたアウトラインデータに基づいて、前記変換後の
アウトラインデータに係る刻印板の外周と前記新たなア
ウトラインデータに係る文字の外周の包含関係を解析し
て刻印板上面を構成する構成要素を特定する文字刻印板
形状構造解析手段と、 前記文字刻印板形状構造解析手段において特定された文
字と刻印板上面及び下面の構成要素ごとに、凸ポリゴン
に分割する文字刻印板形状面凸ポリゴン分割手段と、 前記文字刻印板形状面凸ポリゴン分割手段においてポリ
ゴン分割された刻印板の各構成要素を空間的に移動して
刻印板の上面、下面及び側面を生成し、文字の上面の構
成要素を所定の深さ分だけ空間的に移動して刻印板の堀
込み部の下面と側面を生成する文字刻印板形状側面生成
手段とを備えることを特徴とする3次元文字データ生成
装置。
18. A character marking plate code input means for inputting a character code and a marking plate code, and storing outline data of a character corresponding to the character code and outline data of a marking plate corresponding to the marking plate code. Outer circumference data storage means; and a character outer engraving board shape obtaining means for obtaining outline data of a character and an engraving board from the outer circumference data storage means based on the character code and the engraving board code input by the character engraving board code input means. Based on the outline data of the character acquired by the character outer engraving plate shape acquiring means, a component that constitutes a character by analyzing the inclusion relationship between the outer periphery of the character and the outer periphery of a hole formed in the character Is calculated, a condition under which the character can be placed in the stamping plate is calculated, and the stamping plate is Converts the line data, analyzes the inclusion relationship between the outer periphery of the stamping plate and the outer periphery of the hole formed in the stamping plate based on the converted outline data of the stamping plate, and configures the stamping plate lower surface. , And convert the outer point sequence representing the character outline into a point sequence representing the character hole,
An outline obtained by converting a dot sequence on the outer periphery representing a hole of a character into a dot sequence representing an outline of the character, and combining outline data of a new character based on the converted dot sequence and outline data of the stamp plate after the conversion. Data is generated, and based on the merged outline data, the enclosing relationship between the perimeter of the engraving plate pertaining to the converted outline data and the perimeter of the character pertaining to the new outline data is analyzed to form the upper surface of the engraving plate. Character engraving plate shape structure analyzing means for specifying a component to be performed; and a character engraving plate shape surface to be divided into convex polygons for each of the characters specified by the character engraving plate shape structure analyzing means and the constituent elements of the engraving plate upper and lower surfaces. The convex polygon dividing means, and the respective components of the marking plate divided into polygons by the character marking plate shape surface convex polygon dividing means are spatially moved. The upper surface, the lower surface, and the side surface of the engraving plate are formed, and the components on the upper surface of the character are spatially moved by a predetermined depth to generate the lower surface and the side surface of the engraved portion of the engraving plate. A three-dimensional character data generation device, comprising: a generation unit.
【請求項19】 前記文字刻印板形状側面生成手段は、 側面の形状としてべベル形状を生成することを特徴とす
る請求項18記載の3次元文字データ生成装置。
19. The three-dimensional character data generating apparatus according to claim 18, wherein said character engraving plate-shaped side surface generating means generates a bevel shape as a side surface shape.
【請求項20】 2次元図形データから3次元図形デー
タを生成する装置であって、 2次元図形データを用いて、図形を構成する図形部品の
外周及び当該図形に形成されている穴の外周を決定する
外周決定手段と、 前記外周決定手段により決定された穴の外周と包含関係
を有し、且つ、当該穴の外周から直近の位置にある図形
部品の外周を特定する包含関係特定手段と、 前記包含関係特定手段により特定された図形部品の外周
の内部領域から、その図形部品と包含関係にある穴の外
周の内部領域を除いた領域をポリゴン分割し、特定され
ない図形部品の外周については、その内部領域をポリゴ
ン分割する分割手段と、 前記分割手段によりポリゴン分割された領域に係る図形
部品の複製を移動し、前記図形部品と前記複製された図
形部品との頂点から側面を生成する側面生成手段とを備
えることを特徴とする3次元図形データ生成装置。
20. An apparatus for generating three-dimensional graphic data from two-dimensional graphic data, wherein the two-dimensional graphic data is used to determine the outer circumference of a graphic part constituting a graphic and the outer circumference of a hole formed in the graphic. Outer circumference determining means for determining, having an inclusion relationship with the outer circumference of the hole determined by the outer circumference determining means, and including relation specifying means for specifying the outer circumference of the graphic component at a position closest to the outer circumference of the hole, From the internal region of the outer periphery of the graphic component specified by the inclusion relation specifying means, the region excluding the internal region of the outer periphery of the hole having the inclusion relationship with the graphic component is divided into polygons. Dividing means for dividing the internal region into polygons; moving a copy of the graphic part relating to the area divided by the polygon by the dividing means; 3-dimensional graphic data generating device, characterized in that it comprises a side surface generating means for generating a side from the point.
【請求項21】 前記2次元図形データは、前記図形の
輪郭や穴の輪郭を表す2次元平面で定義されたアウトラ
インデータであり、 前記外周決定手段は、 前記アウトラインデータを取得し、当該アウトラインデ
ータを前記図形の輪郭を表す第1アウトラインデータと
前記穴の輪郭を表す第2アウトラインデータとに分類
し、分類された第1アウトラインデータに基づいて前記
図形部品の外周を決定し、分類された第2アウトライン
データに基づいて前記穴の外周を決定することを特徴と
する請求項20記載の3次元図形データ生成装置。
21. The two-dimensional graphic data is outline data defined by a two-dimensional plane representing the outline of the graphic or the outline of a hole, and the outer circumference determining means acquires the outline data and obtains the outline data. Are classified into first outline data representing the outline of the figure and second outline data representing the outline of the hole, and the outer periphery of the figure part is determined based on the classified first outline data. 21. The three-dimensional graphic data generating apparatus according to claim 20, wherein an outer periphery of the hole is determined based on two outline data.
【請求項22】 前記分割手段は、 前記包含関係特定手段において特定された図形部品の外
周の内部領域から、その図形部品の外周と包含関係にあ
る穴の外周の内部領域を除いた領域を構成要素とし、当
該構成要素を凸ポリゴンに分割し、特定されない図形部
品の外周については、その内部領域を構成要素とし、当
該構成要素を凸ポリゴンに分割し、分割された構成要素
を表すデータを生成することを特徴とする請求項21記
載の3次元図形データ生成装置。
22. The dividing means forms an area obtained by removing an internal area of an outer periphery of a hole which is inclusive of the outer periphery of the graphic component from an inner peripheral area of the graphic part specified by the inclusion relation specifying means. Element, the component is divided into convex polygons, and with respect to the outer periphery of the unspecified graphic part, its internal region is used as a component, the component is divided into convex polygons, and data representing the divided components is generated. 22. The three-dimensional graphic data generating apparatus according to claim 21, wherein the processing is performed.
【請求項23】 前記側面生成手段は、 前記分割手段によって分割された構成要素の複製を前記
2次元平面と直交する座標成分を有する方向に移動する
ことを特徴とする請求項22記載の3次元図形データ生
成装置。
23. The three-dimensional apparatus according to claim 22, wherein the side surface generating unit moves the copy of the component divided by the dividing unit in a direction having a coordinate component orthogonal to the two-dimensional plane. Graphic data generator.
【請求項24】 前記アウトラインデータには、 前記図形部品毎に、時計回り又は反時計回りのいずれか
一の方向に進む順に並べられた当該図形部品の外周を表
す点列を含むアウトラインデータと、 前記穴毎に、前記一の方向とは逆の方向に進む順に並べ
られた当該穴の外周を表す点列を含むアウトラインデー
タとが含まれ、 前記外周決定手段は、前記点列の点が並べられた方向に
基づいて、前記分類を行うことを特徴とする請求項23
記載の3次元図形データ生成装置。
24. The outline data includes, for each of the graphic components, outline data including a sequence of points representing the outer periphery of the graphic component arranged in the order of proceeding in one of clockwise and counterclockwise directions; For each of the holes, outline data including a point sequence representing an outer periphery of the hole arranged in an order proceeding in a direction opposite to the one direction is included, and the outer periphery determining unit arranges the points of the point sequence. 24. The method according to claim 23, wherein the classification is performed on the basis of the determined direction.
3. The three-dimensional graphic data generating apparatus according to claim 1.
【請求項25】 前記包含関係特定手段は、 前記図形部品の外周を囲う矩形を決定する第1決定部
と、 前記穴の外周を囲う矩形を決定する第2決定部と、 前記第1決定部によって決定された矩形と前記第2決定
部によって決定された矩形とを比較することにより、当
該穴の外周を囲う矩形を包含する1又は複数の図形部品
の外周を囲う矩形を特定する第1特定部と、 前記第1特定部により特定された矩形のうち、最も内側
の矩形に係る図形部品の外周を特定する第2特定部と、 前記第2特定部により特定された図形部品の外周を、前
記穴の外周を包含する唯一の図形部品の外周であると特
定し、当該包含関係を表す情報を作成する包含情報作成
部とを備えることを特徴とする請求項24記載の3次元
図形データ生成装置。
25. The inclusion relation specifying means, wherein: a first determination unit that determines a rectangle that surrounds the outer periphery of the graphic component; a second determination unit that determines a rectangle that surrounds the outer periphery of the hole; A first specification that specifies a rectangle that surrounds the outer periphery of one or more graphic components including the rectangle that surrounds the outer periphery of the hole by comparing the rectangle that is determined by the second determination unit with the rectangle that is determined by the second determination unit. Part, of the rectangles specified by the first specifying unit, a second specifying unit that specifies the outer periphery of the graphic component related to the innermost rectangle, and the outer periphery of the graphic component specified by the second specifying unit, 25. The three-dimensional graphic data generation apparatus according to claim 24, further comprising: an inclusion information creating unit that identifies the outer circumference of the only graphic part that includes the outer circumference of the hole and creates information representing the inclusion relationship. apparatus.
【請求項26】 前記包含関係特定手段は、 前記図形部品の外周を囲う矩形を決定する第1決定部
と、 前記穴の外周を囲う矩形を決定する第2決定部と、 前記第2決定部によって決定された穴の外周に係る矩形
の重心と前記第1決定部によって決定された図形部品の
外周に係る矩形の各辺との距離、又は前記重心と当該図
形部品に係る前記点列のうちの一の点との距離のうち、
短い方を当該図形部品についての最短距離と決定する最
短距離決定部と、 前記最短距離決定部により決定された最短距離を、全て
の図形部品について比較し、最も短い最短距離に係る図
形部品を前記穴の外周を包含する唯一の図形部品の外周
であると判定し、当該包含関係を表す情報を作成する包
含情報作成部とを備えることを特徴とする請求項24記
載の3次元図形データ生成装置。
26. The inclusion relation specifying means, wherein: a first determination unit that determines a rectangle surrounding the outer periphery of the graphic component; a second determination unit that determines a rectangle surrounding the outer periphery of the hole; and the second determination unit The distance between the center of gravity of the rectangle pertaining to the periphery of the hole determined by the above and each side of the rectangle pertaining to the periphery of the graphic component determined by the first determination unit, or the point sequence of the point of gravity relating to the graphic component Of the distance to one point
The shortest distance determining unit that determines the shorter one as the shortest distance for the graphic component, and the shortest distance determined by the shortest distance determining unit is compared for all the graphic components. 25. The three-dimensional graphic data generation apparatus according to claim 24, further comprising: an inclusion information creating unit that determines that the outer periphery of the only graphic part encompasses the outer circumference of the hole, and creates information representing the inclusion relationship. .
【請求項27】 2次元文字データから3次元文字デー
タを生成する方法であって、 2次元文字データを用いて、文字を構成する文字部品の
外周及び当該文字に形成されている穴の外周を決定する
外周決定ステップと、 前記外周決定ステップにより決定された穴の外周と包含
関係を有し、且つ、当該穴の外周から直近の位置にある
文字部品の外周を特定する包含関係特定ステップと、 前記包含関係特定ステップにより特定された文字部品の
外周の内部領域から、その文字部品と包含関係にある穴
の外周の内部領域を除いた領域をポリゴン分割し、特定
されない文字部品の外周については、その内部領域をポ
リゴン分割する分割ステップと、 前記分割ステップによりポリゴン分割された領域に係る
文字部品の複製を移動し、前記文字部品と前記複製され
た文字部品との頂点から側面を生成する側面生成ステッ
プとを含むことを特徴とする3次元文字データ生成方
法。
27. A method for generating three-dimensional character data from two-dimensional character data, comprising using two-dimensional character data to determine the outer periphery of a character part constituting a character and the outer periphery of a hole formed in the character. An outer circumference determining step to determine, having an inclusion relation with the outer circumference of the hole determined by the outer circumference determination step, and an inclusion relation specifying step of specifying the outer circumference of the character component at a position closest to the outer circumference of the hole; From the inner region of the outer periphery of the character component specified by the inclusion relation specifying step, the region excluding the inner region of the outer periphery of the hole having the inclusion relationship with the character component is divided into polygons. A dividing step of dividing the internal region into polygons; and moving a copy of the character part relating to the area divided by the polygon in the dividing step. 3-D character data generating method characterized by comprising a side generation step of generating a side from the apex of the cloning character parts.
【請求項28】 2次元文字データから3次元文字デー
タを生成するためのプログラムであって、 請求項27に記載の3次元文字データ生成方法における
ステップをコンピュータに実行させることを特徴とする
プログラム。
28. A program for generating three-dimensional character data from two-dimensional character data, the program causing a computer to execute the steps in the three-dimensional character data generation method according to claim 27.
【請求項29】 2次元文字データから3次元文字デー
タを生成するためのプログラムが記録されたコンピュー
タ読み取り可能な記録媒体であって、 請求項28に記載のプログラムを記録した記録媒体。
29. A computer-readable recording medium on which a program for generating three-dimensional character data from two-dimensional character data is recorded, wherein the program according to claim 28 is recorded.
【請求項30】 2次元図形データから3次元図形デー
タを生成する方法であって、 2次元図形データを用いて、図形を構成する図形部品の
外周及び当該図形に形成されている穴の外周を決定する
外周決定ステップと、 前記外周決定ステップにより決定された穴の外周と包含
関係を有し、且つ、当該穴の外周から直近の位置にある
図形部品の外周を特定する包含関係特定ステップと、 前記包含関係特定ステップにより特定された図形部品の
外周の内部領域から、その図形部品と包含関係にある穴
の外周の内部領域を除いた領域をポリゴン分割し、特定
されない図形部品の外周については、その内部領域をポ
リゴン分割する分割ステップと、 前記分割ステップによりポリゴン分割された領域に係る
図形部品の複製を移動し、前記図形部品と前記複製され
た図形部品との頂点から側面を生成する側面生成ステッ
プとを含むことを特徴とする3次元図形データ生成方
法。
30. A method for generating three-dimensional graphic data from two-dimensional graphic data, comprising using the two-dimensional graphic data to determine the outer circumference of a graphic part constituting a graphic and the outer circumference of a hole formed in the graphic. An outer circumference determining step to determine, an inclusive relation with the outer circumference of the hole determined by the outer circumference determining step, and an inclusive relation specifying step of specifying the outer circumference of the graphic component at a position closest to the outer circumference of the hole; From the internal region of the outer periphery of the graphic component specified by the inclusion relation specifying step, the region excluding the internal region of the outer periphery of the hole having the inclusion relationship with the graphic component is divided into polygons. A dividing step of dividing the internal region into polygons; and moving a copy of the graphic part relating to the area divided by the polygon in the dividing step. 3-dimensional graphic data generation method characterized by including the side generating step of generating a side from the apex of the replicated figure component.
【請求項31】 2次元図形データから3次元図形デー
タを生成するためのプログラムであって、 請求項30に記載の3次元図形データ生成方法における
ステップをコンピュータに実行させることを特徴とする
プログラム。
31. A program for generating three-dimensional graphic data from two-dimensional graphic data, wherein the program causes a computer to execute the steps in the three-dimensional graphic data generating method according to claim 30.
【請求項32】 2次元図形データから3次元図形デー
タを生成するためのプログラムが記録されたコンピュー
タ読み取り可能な記録媒体であって、 請求項31に記載のプログラムを記録した記録媒体。
32. A computer-readable recording medium on which a program for generating three-dimensional graphic data from two-dimensional graphic data is recorded, wherein the program according to claim 31 is recorded.
JP2001371077A 2000-12-05 2001-12-05 3D graphic data generator Expired - Fee Related JP4028979B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001371077A JP4028979B2 (en) 2000-12-05 2001-12-05 3D graphic data generator

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000-369563 2000-12-05
JP2000369563 2000-12-05
JP2001371077A JP4028979B2 (en) 2000-12-05 2001-12-05 3D graphic data generator

Publications (3)

Publication Number Publication Date
JP2002260008A true JP2002260008A (en) 2002-09-13
JP2002260008A5 JP2002260008A5 (en) 2005-07-21
JP4028979B2 JP4028979B2 (en) 2008-01-09

Family

ID=26605239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001371077A Expired - Fee Related JP4028979B2 (en) 2000-12-05 2001-12-05 3D graphic data generator

Country Status (1)

Country Link
JP (1) JP4028979B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007241878A (en) * 2006-03-10 2007-09-20 Toshiba Corp Unit, method and program for image rendering
JP2009536404A (en) * 2006-05-05 2009-10-08 マイクロソフト コーポレーション Text editing in 3D graphics
JP2011515765A (en) * 2008-03-20 2011-05-19 クゥアルコム・インコーポレイテッド Multistage tessellation for graphics rendering
JP2014527207A (en) * 2011-06-06 2014-10-09 モノタイプ.イメージング.インコーポレイテッド How to create 3D graphics
CN110136247A (en) * 2019-05-17 2019-08-16 杭州电子科技大学 A kind of fast Speed Pinyin blanking method of the threedimensional model of digital city
CN110414645A (en) * 2018-04-28 2019-11-05 深圳果力智能科技有限公司 A kind of pattern recognition method based on Match of elemental composition
CN117893637A (en) * 2024-03-15 2024-04-16 杭州广立微电子股份有限公司 Data processing method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007241878A (en) * 2006-03-10 2007-09-20 Toshiba Corp Unit, method and program for image rendering
US7817152B2 (en) 2006-03-10 2010-10-19 Kabushiki Kaisha Toshiba Image processing apparatus, image processing method, and image processing program
JP4693660B2 (en) * 2006-03-10 2011-06-01 株式会社東芝 Drawing apparatus, drawing method, and drawing program
JP2009536404A (en) * 2006-05-05 2009-10-08 マイクロソフト コーポレーション Text editing in 3D graphics
JP2011515765A (en) * 2008-03-20 2011-05-19 クゥアルコム・インコーポレイテッド Multistage tessellation for graphics rendering
US8643644B2 (en) 2008-03-20 2014-02-04 Qualcomm Incorporated Multi-stage tessellation for graphics rendering
JP2014527207A (en) * 2011-06-06 2014-10-09 モノタイプ.イメージング.インコーポレイテッド How to create 3D graphics
CN110414645A (en) * 2018-04-28 2019-11-05 深圳果力智能科技有限公司 A kind of pattern recognition method based on Match of elemental composition
CN110414645B (en) * 2018-04-28 2023-05-30 深圳果力智能科技有限公司 Pattern recognition method based on element matching
CN110136247A (en) * 2019-05-17 2019-08-16 杭州电子科技大学 A kind of fast Speed Pinyin blanking method of the threedimensional model of digital city
CN117893637A (en) * 2024-03-15 2024-04-16 杭州广立微电子股份有限公司 Data processing method and device
CN117893637B (en) * 2024-03-15 2024-06-11 杭州广立微电子股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
JP4028979B2 (en) 2008-01-09

Similar Documents

Publication Publication Date Title
US6850239B2 (en) 3-D character data generating device and a 3-D graphics data generating device
KR100219072B1 (en) Font transformation and rasterizing method using medial axis transform
EP0167838B1 (en) Method for producing a scaleable typeface data
US7412360B2 (en) Method and apparatus for shape deformation and placement
US5774130A (en) Computer animation generator creating hierarchies of models for rapid display
CN106875495B (en) Relief grid representation and 3D printing slicing method and system based on concave-convex mapping
WO2011111680A1 (en) Method and apparatus for creating surface processing data
JPH04500130A (en) Method and apparatus for converting outline characters to bitmap characters
KR20080107963A (en) System and method for calculating loft surfaces using 3d scan data
JP4679757B2 (en) 3D graphic generation apparatus and 3D graphic generation method
JPS6337478A (en) Designing apparatus utilizing computer
JP4028979B2 (en) 3D graphic data generator
JPH05346957A (en) Device and method for presenting shape feature quantity
US5649081A (en) Method and apparatus for pattern data processing
WO2020095292A1 (en) A method for transforming 3-dimensional image data into a 2-dimensional image
Sussner et al. Interactive examination of surface quality on car bodies
US6941251B1 (en) Method for transforming CAD model using general function composition mechanism
JP3448606B2 (en) Method and apparatus for generating stroke-based characters in full resolution space
CN114154259B (en) Three-dimensional pole tower modeling method based on contour input
van Wijk et al. Visualization of the genus of knots
JP6388489B2 (en) Method and apparatus for creating data for surface processing
CN102754145B (en) Character creation method, character creation device and typeface data
JP2000242260A (en) Formation of font
JP4027646B2 (en) 3D shape processing apparatus, polyline generation program, and polygon generation program
CN112686918A (en) Method and system for generating single-connected nested graph structure

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041201

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070626

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070827

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: 20070918

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071015

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

Free format text: PAYMENT UNTIL: 20101019

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4028979

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20111019

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121019

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131019

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees