JPH10232942A - Plotting device and plotting method - Google Patents

Plotting device and plotting method

Info

Publication number
JPH10232942A
JPH10232942A JP3528197A JP3528197A JPH10232942A JP H10232942 A JPH10232942 A JP H10232942A JP 3528197 A JP3528197 A JP 3528197A JP 3528197 A JP3528197 A JP 3528197A JP H10232942 A JPH10232942 A JP H10232942A
Authority
JP
Japan
Prior art keywords
pattern
basic
basic shape
box
reference line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3528197A
Other languages
Japanese (ja)
Inventor
Nobuharu Kato
藤 宣 春 加
Norishige Yoshikawa
川 典 成 吉
Hideto Iwami
見 秀 人 岩
Takeshi Yamada
田 剛 山
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.)
Aisin Corp
Original Assignee
Aisin Seiki 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 Aisin Seiki Co Ltd filed Critical Aisin Seiki Co Ltd
Priority to JP3528197A priority Critical patent/JPH10232942A/en
Publication of JPH10232942A publication Critical patent/JPH10232942A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To efficiently plot a pattern for which basic shapes are arrayed with equal intervals by moving one of the two basic shapes, deciding a pitch between the basic shapes from the moving distance, arraying the basic shapes and preparing the pattern. SOLUTION: When a system is activated, the reference axis of the basic shape to be prepared is prepared and the basic shape is prepared for it. For the basic shapes, point sequence coordinate data are transformed to a coordinate system to the reference axis and they are displayed along with the reference axis respectively in two boxes inside a display (step 101). Then, the pitch of the basic shapes to be prepared is set to a default value (step 102) and a user drags one box by a mouse or the like and moves it along with the basic shape. Thereafter, the pitch between the basic shapes inside the display is decided (step 103). Then, the pattern for which the plural basic shapes are regularly arrayed on a determined line based on the decided pitch is prepared (step 104) and it is displayed on the display (step 105).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータで描画を
行う際の描画方法及び描画装置に関するもので、特に、
同一基本形状を複数個規則的に配列させて模様を描画す
る技術に係るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing method and a drawing apparatus for performing drawing by a computer.
The present invention relates to a technique of drawing a pattern by arranging a plurality of the same basic shapes regularly.

【0002】[0002]

【従来の技術】コンピュータによりディスプレイ上で作
図又は描画を行うコンピュータグラフィックス用アプリ
ケーションソフトウエアは、現在多種多様なものが発売
されている。これらのアプリケーションソフトには、1
つの形状を複写する複写機能が当然備えられている。
2. Description of the Related Art A wide variety of computer graphics application software for drawing or drawing on a display by a computer is currently on the market. These application softwares include 1
A copying function for copying two shapes is naturally provided.

【0003】同一の基本形状を複数個配列させて1つの
模様を描画する場合、模様全体をそのまま描画するか、
若しくは上述の複写機能を使用する。複写機能を使用す
る場合は、具体的には、図1に示す複数の基本形状で構
成された模様1を描画する場合、基本形状2をまず描画
し、この基本形状を次々と複写して所定位置に書き込む
ことにより同一の基本形状が複数個配列された模様1が
描画されるものである。
When one pattern is drawn by arranging a plurality of the same basic shapes, the entire pattern is drawn as it is,
Alternatively, the above-described copying function is used. When using the copying function, specifically, when drawing the pattern 1 composed of a plurality of basic shapes shown in FIG. 1, the basic shape 2 is drawn first, and the basic shapes are copied one after another and By writing in the position, a pattern 1 in which a plurality of the same basic shapes are arranged is drawn.

【0004】[0004]

【発明が解決しようとする課題】同一の基本形状を複数
個配列させて1つの模様を描画するに際し、模様全体を
そのまま描画した場合には、非常に時間がかかり、描画
効率が低下するという問題がある。これに対し、複写機
能を使用した場合には、模様全体を描画する場合に比べ
て描画時間が短縮され、効率は向上する。
When one pattern is drawn by arranging a plurality of the same basic shapes, if the entire pattern is drawn as it is, it takes a very long time and the drawing efficiency is reduced. There is. On the other hand, when the copying function is used, the drawing time is reduced and the efficiency is improved as compared with the case where the entire pattern is drawn.

【0005】しかしながら、同一の基本形状が等間隔で
配列されて1つの模様を構成している場合、複写機能を
使用しても、それらを等間隔に配置することは困難であ
る。同様に、同一の基本形状が規則的に配列されて1つ
の模様を構成している場合、複写機能を使用しても、そ
れらを規則的に配置することは困難である。また、一旦
必要な数の基本形状を複写しておいて、それらを移動す
ることにより、同一の基本形状が等間隔に、または規則
的に配列された模様を描画することも考えられるが、こ
の方法でもかなりの時間を必要とするし、描画精度も良
好でない。
However, when the same basic shape is arranged at equal intervals to form one pattern, it is difficult to arrange them at equal intervals even if the copying function is used. Similarly, when the same basic shapes are regularly arranged to form one pattern, it is difficult to arrange them regularly even if the copying function is used. It is also conceivable to copy a required number of basic shapes and move them to draw a pattern in which the same basic shapes are arranged at regular intervals or regularly. The method also requires a considerable amount of time, and the drawing accuracy is not good.

【0006】故に、本発明は、上記実情に鑑みてなされ
たものであり、同一の基本形状が等間隔若しくは規則的
に配列された模様を効率的に描画することを技術的課題
とするものである。
Therefore, the present invention has been made in view of the above situation, and has as its technical object to efficiently draw a pattern in which the same basic shapes are arranged at regular intervals or regularly. is there.

【0007】[0007]

【課題を解決するための手段】上記した技術的課題を解
決するために成された請求項1の発明は、1本以上の線
からなる基本形状を少なくとも2つ表示する基本形状表
示手段と、前記基本形状表示手段に表示された少なくと
も2つの基本形状のうちの一方を他方に対して相対的に
移動させる基本形状移動手段と、前記基本形状移動手段
による基本形状の相対的移動に基づく移動距離から前記
少なくとも2つの基本形状間のピッチを決定するピッチ
決定手段と、上記決定されたピッチに基づいて複数の基
本形状を定められた線上に規則的に配列して模様を作成
する模様作成手段と、前記模様作成手段により作成され
た複数の基本形状からなる模様を表示する模様表示手段
とを備えた描画装置としたことである。
According to the first aspect of the present invention, there is provided a basic shape display means for displaying at least two basic shapes consisting of one or more lines, Basic shape moving means for relatively moving one of the at least two basic shapes displayed on the basic shape display means with respect to the other, and a moving distance based on the relative movement of the basic shape by the basic shape moving means Pitch determining means for determining a pitch between the at least two basic shapes, and pattern generating means for regularly arranging a plurality of basic shapes on a determined line based on the determined pitch to form a pattern. And a pattern display means for displaying a pattern consisting of a plurality of basic shapes created by the pattern creation means.

【0008】上記発明によれば、基本形状表示手段によ
り表示された少なくとも2つの基本形状は、基本形状移
動手段によりそのどちらか一方が他方に対して相対的に
移動される。そして、この相対的移動に基づく移動距離
から、ピッチ決定手段により基本形状間のピッチが決定
される。この決定されたピッチに基づいて複数の基本形
状を定められた線上に規則的に配列した模様を作成し、
これを表示するものである。このため、同一の基本形状
が等間隔で規則的に配列された模様を描画するに際し、
基本形状及びピッチを設定して効率的に描画することが
できるものである。また、基本形状表示手段には少なく
とも2つの基本形状が表示されているため、これらのピ
ッチを設定する際に実際に使用者がそのピッチ間隔をビ
ジュアル的に確認できるので、作業性も向上し、より効
率的に好ましい形状を描画できるものである。
According to the invention, at least two of the basic shapes displayed by the basic shape display means are moved relative to the other by the basic shape moving means. Then, the pitch between the basic shapes is determined by the pitch determining means from the movement distance based on the relative movement. Based on the determined pitch, create a pattern in which a plurality of basic shapes are regularly arranged on a determined line,
This is displayed. Therefore, when drawing a pattern in which the same basic shape is regularly arranged at equal intervals,
By setting the basic shape and pitch, it is possible to draw efficiently. Further, since at least two basic shapes are displayed on the basic shape display means, the user can actually visually confirm the pitch interval when setting these pitches, so that workability is improved, It is possible to draw a preferable shape more efficiently.

【0009】上記技術的課題を解決するに当たり、請求
項2において講じた発明のように、前記描画装置は、前
記基本形状表示手段により表示された基本形状を変形す
る基本形状変形手段を備えることが好ましい。
In order to solve the above technical problem, as in the invention taken in claim 2, the drawing apparatus may include a basic shape deforming means for deforming a basic shape displayed by the basic shape displaying means. preferable.

【0010】これによれば、基本形状表示手段により表
示された基本形状は、基本形状変形手段によりその形状
の変形化が可能である。従って、基本形状を修正したい
とき、または基本形状を拡縮したいときには、基本形状
変形手段により容易に基本形状の変形が可能であり、よ
り効率的に好ましい形状を描画することができるもので
ある。
According to this, the basic shape displayed by the basic shape display means can be deformed by the basic shape deforming means. Therefore, when it is desired to modify the basic shape or to enlarge or reduce the basic shape, the basic shape can be easily deformed by the basic shape deforming means, and a preferable shape can be drawn more efficiently.

【0011】より好ましくは、請求項3の発明のよう
に、前記基本形状表示手段は基本形状と連動して表示さ
れるボックスを備えることである。
More preferably, the basic shape display means includes a box displayed in conjunction with the basic shape.

【0012】これによれば、基本形状はボックスと連動
して表示されているため、基本形状移動手段により基本
形状を移動して2つの基本形状間の相対的位置関係を設
定する際に、ボックス全体を移動させるだけの簡単な操
作で相対的位置関係を設定することができ、描画する上
での作業性がより向上するものである。
According to this, since the basic shape is displayed in conjunction with the box, the basic shape moving means moves the basic shape and sets the relative positional relationship between the two basic shapes. The relative positional relationship can be set by a simple operation of merely moving the whole, and the workability in drawing is further improved.

【0013】さらにより好ましくは、請求項4の発明の
ように、前記描画装置は、前記ボックスの大きさを変更
するボックス拡縮手段と、前記ボックス拡縮手段により
変更された前記ボックスの大きさに基づいて前記ボック
スに格納された基本形状の大きさを変更するボックス−
基本形状連動手段とを備えることである。
Still more preferably, as in the invention according to claim 4, the drawing apparatus includes a box enlarging / reducing means for changing the size of the box, and a box enlarging / reducing means for changing the size of the box changed by the box enlarging / reducing means. Box to change the size of the basic shape stored in the box
And a basic shape interlocking means.

【0014】これによれば、描画装置は、ボックス拡縮
手段によりボックスの大きさが変更可能であり、さらに
変更されたボックスの大きさに基づいて、そのボックス
に格納された基本形状の大きさも連動して変更されるた
め、基本形状を拡縮する際に、ボックスのみを拡縮して
やればよい。このため、描画する際により作業性が向上
するものである。
According to this, in the drawing apparatus, the size of the box can be changed by the box enlarging / reducing means, and based on the changed size of the box, the size of the basic shape stored in the box is also linked. Therefore, when the basic shape is scaled, only the box needs to be scaled. Therefore, workability is improved when drawing.

【0015】また、さらにより好ましくは、請求項5の
発明のように、前記描画装置は、描画すべき模様の基準
線を作成する模様基準線作成手段を備え、前記模様作成
手段は上記決定されたピッチに基づいて複数の基本形状
を前記模様基準線作成手段により作成された模様の基準
線に沿って規則的に配列して模様を作成することであ
る。
Still more preferably, as in the fifth aspect of the present invention, the drawing apparatus includes a pattern reference line creating unit for creating a reference line of a pattern to be drawn, and the pattern creating unit determines the reference line. The pattern is created by regularly arranging a plurality of basic shapes along the reference line of the pattern created by the pattern reference line creating means based on the pitch.

【0016】これによれば、描画装置は、模様基準線作
成手段により作成された模様基準線にそって基本形状を
配列して模様を作成する。このため、同一形状の模様を
等間隔かつ規則的に配列することができるとともに、模
様基準線を任意に設定することにより、様々な配列模様
が描画できるものである。
According to this, the drawing apparatus creates a pattern by arranging the basic shapes along the pattern reference line created by the pattern reference line creating means. For this reason, patterns of the same shape can be regularly arranged at regular intervals, and various arrangement patterns can be drawn by arbitrarily setting the pattern reference line.

【0017】また、さらにより好ましくは、請求項6の
発明のように、前記模様の基準線は、3次元の自由曲線
で近似されることである。これによれば、模様の基準線
は3次元の自由曲線で近似される。これは、出土文化財
等に代表されるように、3次元的な立体形状に模様等が
描かれているものを描画するときに有用である。即ち、
立体形状に模様が描かれている場合、それを2次元的に
捉えると、模様形状が両端に近づく程変形していく。こ
の場合に模様の基準線も、その立体形状に沿ったように
3次元の自由曲線としておけば、その基準線に沿って作
成される基本形状も立体形状に沿って作成される。この
ため、立体形状に描かれた模様をも正確に描画すること
ができるものである。
Still more preferably, as in the invention of claim 6, the reference line of the pattern is approximated by a three-dimensional free curve. According to this, the reference line of the pattern is approximated by a three-dimensional free curve. This is useful when drawing a pattern or the like in a three-dimensional three-dimensional shape as represented by an excavated cultural property or the like. That is,
When a pattern is drawn in a three-dimensional shape, if the pattern is captured two-dimensionally, the pattern shape is deformed as approaching both ends. In this case, if the reference line of the pattern is also formed as a three-dimensional free curve so as to follow the three-dimensional shape, the basic shape created along the reference line is also created along the three-dimensional shape. Therefore, a pattern drawn in a three-dimensional shape can be accurately drawn.

【0018】[0018]

【発明の実施の形態】以下、本発明に係る実施の形態を
図面に基づいて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0019】まず、本例における描画装置の基本構成に
ついて図2に基づいて説明する。
First, the basic configuration of the drawing apparatus according to the present embodiment will be described with reference to FIG.

【0020】図2において、描画装置は、描画画像を表
示するための表示装置3、所定の情報を入力するための
入力装置4、入力情報を演算し、所定のプログラムを実
行し、所定の指示を出力するCPU5、所定のデータ等
を記憶するデータ記憶装置6、描画を作製するためのプ
ログラム、所定のデータ等が格納されたRAM7を主な
基本構成とするものである。ここで、表示装置3は、実
際にはCRT、液晶等のディスプレイであり、入力装置
4はキーボード、マウス等である。また、データ記憶装
置6、RAM7は、コンピュータ内部に組み込まれたも
のであってもよいし、フロッピーディスク、ハードディ
スク等の外部媒体でもよい。尚、CRT、液晶等の表示
装置3は、本発明における基本形状表示手段、模様表示
手段に相当するものである。また、キーボード、マウス
等の入力装置4は、本発明における基本形状移動手段に
相当するものである。
In FIG. 2, a drawing device includes a display device 3 for displaying a drawn image, an input device 4 for inputting predetermined information, calculating input information, executing a predetermined program, and executing a predetermined instruction. , A data storage device 6 for storing predetermined data and the like, a RAM 7 for storing a program for producing a drawing, and predetermined data and the like. Here, the display device 3 is actually a display such as a CRT or a liquid crystal, and the input device 4 is a keyboard, a mouse, or the like. Further, the data storage device 6 and the RAM 7 may be built in the computer, or may be external media such as a floppy disk and a hard disk. The display device 3 such as a CRT and a liquid crystal corresponds to the basic shape display means and the pattern display means in the present invention. The input device 4 such as a keyboard and a mouse corresponds to the basic shape moving means in the present invention.

【0021】RAM7には、描画を行うための所定の制
御プログラム、後述する基本形状点列座標データ、基本
形状位置点列座標データ、ボックス点列座標データ、ピ
ッチ座標データ等が格納されている。尚、RAM7に格
納されている制御プログラムは、本発明のピッチ決定手
段、模様作成手段、基本形状変形手段、ボックス−基本
形状連動手段、模様基準線作成手段に相当するプログラ
ムを含むものである。
The RAM 7 stores a predetermined control program for drawing, basic shape point sequence coordinate data, basic shape position point sequence coordinate data, box point sequence coordinate data, pitch coordinate data, etc., which will be described later. The control programs stored in the RAM 7 include programs corresponding to pitch determining means, pattern creating means, basic shape deforming means, box-basic shape interlocking means, and pattern reference line creating means of the present invention.

【0022】次に、本例における描画作成方法について
説明する。
Next, a drawing creation method in this embodiment will be described.

【0023】図3は、本例における描画装置内で処理さ
れるプログラムのメインフローチャートである。まず、
このメインフローチャートについて簡単に説明する。図
3において、まず、システムが起動すると、ステップ1
01にて、基本形状作成処理ルーチンに入る。基本形状
作成処理ルーチンが終了すると、ステップ102におい
て、後述する基本形状のピッチをデフォルト値に設定す
る。その後、ステップ103において、基本形状変更処
理ルーチンを実行する。基本形状変更処理ルーチンが終
了すると、ステップ104において、模様基準線作成処
理ルーチンを、模様基準線作成処理ルーチンが終了する
と、ステップ105において模様作成処理が行われるも
のである。
FIG. 3 is a main flowchart of a program processed in the drawing apparatus in this embodiment. First,
This main flowchart will be described briefly. In FIG. 3, first, when the system is started, step 1 is executed.
At 01, a basic shape creation processing routine is entered. When the basic shape creation processing routine ends, in step 102, the pitch of the basic shape described later is set to a default value. Thereafter, in step 103, a basic shape change processing routine is executed. When the basic shape change processing routine ends, the pattern reference line creation processing routine is executed in step 104, and when the pattern reference line creation processing routine is ended, the pattern creation processing is executed in step 105.

【0024】以下、各サブルーチンについて説明する。Hereinafter, each subroutine will be described.

【0025】図4に、基本形状作成処理ルーチンのフロ
ーチャートを示す。図4において、基本形状作成処理で
は、ステップ111にて、作成すべき基本形状の基準軸
を作成する。この基準軸の作成は、CRT、液晶等のデ
ィスプレイ上に表示された1つのウインドウ内で、ユー
ザーが2点(始点及び終点)をマウス等の入力手段によ
り与えることで作成されるものである。続いて、ステッ
プ112にて、この2点の座標に基づいて基準軸の始点
座標及び方向ベクトルを決定し、RAM7に格納する。
次に、ステップ113にて、作成した基準軸に対して基
本形状を作成する。この基本形状の作成は、ユーザーが
マウス等の入力手段により直線、自由曲線等を連結して
ウインドウ内に描くものである。基本形状の作成が完了
すると、ステップ114にて、作成された基本形状の点
列座標データを基準軸に対する座標系で表現したものを
(始点座標を原点とし、基準軸を直交座標系の1軸とし
て座標変換したものを)基本形状点列データとして決定
し、この基本形状点列データをRAM7に格納する。次
に、ステップ115にて、RAM5に格納された基本形
状点列データに基づいてウインドウ内に基本形状を表示
する。このときに、図8に示すように、表示装置3のデ
ィスプレイ上に表示されたウインドウ9内には、2つの
ボックス10、11が表示され、作成された基本形状1
2はこの2つのボックス10、11内にそれぞれ基準軸
とともに表示されるものである。以上の処理により、基
本形状作成処理を終了する。
FIG. 4 shows a flowchart of a basic shape creation processing routine. In FIG. 4, in the basic shape creating process, in step 111, a reference axis of the basic shape to be created is created. The reference axis is created by the user giving two points (a start point and an end point) using a mouse or other input means in one window displayed on a display such as a CRT or a liquid crystal display. Subsequently, in step 112, the starting point coordinates and the direction vector of the reference axis are determined based on the coordinates of the two points, and stored in the RAM 7.
Next, in step 113, a basic shape is created for the created reference axis. The creation of the basic shape is such that the user draws in a window by connecting a straight line, a free curve and the like with an input means such as a mouse. When the creation of the basic shape is completed, in step 114, the point sequence coordinate data of the created basic shape is expressed in the coordinate system with respect to the reference axis (the starting point coordinates are set as the origin, and the reference axis is set as one axis of the orthogonal coordinate system). Is determined as the basic shape point sequence data, and the basic shape point sequence data is stored in the RAM 7. Next, at step 115, the basic shape is displayed in the window based on the basic shape point sequence data stored in the RAM 5. At this time, as shown in FIG. 8, two boxes 10 and 11 are displayed in a window 9 displayed on the display of the display device 3, and the created basic shape 1 is displayed.
Numeral 2 is displayed in the two boxes 10 and 11 together with the reference axis. With the above processing, the basic shape creation processing ends.

【0026】上記説明した基本形状作成処理ルーチン
(ステップ101)において2つのボックス及び基本形
状がディスプレイ上に表示されると、次に図3における
ステップ102にて、作成されるべき基本形状のピッチ
をデフォルト値に設定する。そして、設定されたピッチ
の値は、ピッチ座標データとしてRAM7内に格納され
る。本例においては、ピッチのデフォルト値をボックス
10内に作成された基本形状の高さに設定した。次に、
ステップ103にて、基本形状変更処理ルーチンに進
む。基本形状変更処理は、後述するように移動処理ルー
チン、拡縮処理ルーチンの2種類があり、ユーザーから
の入力情報によりどのルーチンを行うかが決定されるも
のである。
When the two boxes and the basic shape are displayed on the display in the basic shape creation processing routine (step 101) described above, the pitch of the basic shape to be created is then determined in step 102 in FIG. Set to default value. Then, the set pitch value is stored in the RAM 7 as pitch coordinate data. In this example, the default value of the pitch is set to the height of the basic shape created in the box 10. next,
In step 103, the process proceeds to a basic shape change processing routine. As will be described later, there are two types of basic shape change processing, a movement processing routine and an enlargement / reduction processing routine, and which routine is determined based on input information from the user.

【0027】図5に、基本形状変更処理ルーチンのフロ
ーチャートを示す。図5のステップ121において、デ
ィスプレイ上に2つのボックス及び基本形状が表示され
ると、ステップ122にて入力装置による入力待ち状態
となる。そして、ステップ123にて入力装置による入
力があったか否かを判断する。これは、ユーザーがマウ
ス等の入力手段により図14に示すウインドウ9内のボ
ックス10、10の辺上または内側をクリックした場
合、及び、ユーザーが入力手段によりディスプレイに表
示された終了ボタン12をクリックした場合にのみ入力
があったと判断されるものであり、それ以外のところを
クリックしても入力があったとは判断されず、入力待ち
状態を継続する。
FIG. 5 shows a flowchart of a basic shape change processing routine. When the two boxes and the basic shape are displayed on the display in step 121 of FIG. 5, the process waits for input by the input device in step 122. Then, in step 123, it is determined whether or not an input has been made by the input device. This is when the user clicks on or inside the sides of the boxes 10 and 10 in the window 9 shown in FIG. 14 by an input means such as a mouse, and when the user clicks the end button 12 displayed on the display by the input means. Only when this is done, it is determined that an input has been made. Even if the user clicks anywhere else, it is not determined that an input has been made, and the input wait state is continued.

【0028】ステップ123において、入力があったと
判断されると、ステップ124に進む。ステップ124
では、どのような入力状態であるかが判断される。ユー
ザーが2つのボックスのどちらかの内側をクリックして
いる入力状態である場合には、ステップ125へ進む。
ステップ125では、ボックス及び基本形状の移動処理
ルーチンが実行される。また、ステップ124におい
て、2つのボックスのどちらかの辺をクリックしている
入力状態である場合には、ステップ126に進む。ステ
ップ126では、ボックス及び基本形状の大きさを変更
する拡縮処理ルーチンが実行される。移動処理ルーチ
ン、拡縮処理ルーチンが終了すると、ステップ122の
入力装置による入力待ち状態に戻る。
If it is determined in step 123 that an input has been made, the process proceeds to step 124. Step 124
Then, it is determined what the input state is. If the input state is that the user is clicking inside either of the two boxes, the process proceeds to step 125.
In step 125, a box and basic shape movement processing routine is executed. If it is determined in step 124 that the input state is that one of the two boxes is clicked, the process proceeds to step 126. In step 126, an enlargement / reduction processing routine for changing the size of the box and the basic shape is executed. When the movement processing routine and the enlargement / reduction processing routine are completed, the process returns to step 122 in which the input device waits for input.

【0029】図5のステップ124において、ボックス
の内側がクリックされているときに実行される移動処理
ルーチンのフローチャートを図8に示す。移動処理ルー
チンにおいては、ユーザーは、図14に示す2つのボッ
クスのうちのどちらか一方のボックスをマウス等の入力
装置によりドラッグする。すると、ドラッグされた側の
ボックスは内部に描画された基本形状とともに上下左右
に移動する。ユーザーは、所望の位置にボックス及び基
本形状を移動させ、ドラッグを解除する。すると、ドラ
ッグされた側のボックス及び基本形状はその位置で移動
を終了する。以上の操作により、一方のボックス及び基
本形状は他方のボックス及び基本形状に対して相対的に
移動したことになる。これらの操作が行われた後に、移
動処理ルーチンにおいてステップ161に示されるピッ
チ決定処理が実行され、その後に、ステップ162に示
されるオフセット決定処理が実行される。
FIG. 8 shows a flowchart of the movement processing routine executed when the inside of the box is clicked in step 124 of FIG. In the movement processing routine, the user drags one of the two boxes shown in FIG. 14 using an input device such as a mouse. Then, the box on the dragged side moves up, down, left, and right along with the basic shape drawn inside. The user moves the box and the basic shape to a desired position and releases the drag. Then, the box and the basic shape on the dragged side end moving at that position. By the above operation, one box and the basic shape have moved relatively to the other box and the basic shape. After these operations are performed, the pitch determination processing shown in step 161 is executed in the movement processing routine, and thereafter, the offset determination processing shown in step 162 is executed.

【0030】図9にピッチ決定処理ルーチンのフローチ
ャートを示す。ピッチ決定処理は、ウインドウ内に2つ
表示された基本形状間のピッチを決定するための処理で
ある。これにおいては、まず、ユーザーの操作により移
動したボックスの移動量のうち、基本形状の方向ベクト
ルの向きと同じ方向への移動量(平行方向移動量)が計
算される(ステップ171)。次に、ステップ172に
て、この平行方向移動量をデフォルト値に設定されてい
る基本形状間のピッチ量に加算して、基本形状間のピッ
チを更新する。そして、ステップ173にて、更新され
たピッチ量に基づいてウインドウ上に2つのボックス及
び基本形状を表示するものである。
FIG. 9 shows a flowchart of the pitch determination processing routine. The pitch determination process is a process for determining a pitch between two basic shapes displayed in the window. In this case, first, of the movement amounts of the box moved by the user's operation, the movement amount (parallel movement amount) in the same direction as the direction of the direction vector of the basic shape is calculated (step 171). Next, in step 172, the pitch between the basic shapes is updated by adding this parallel movement amount to the pitch amount between the basic shapes set to the default value. Then, in step 173, two boxes and a basic shape are displayed on the window based on the updated pitch amount.

【0031】次に、図10に基づいてオフセット決定処
理ルーチンを説明する。このオフセット決定処理は、基
準軸からの基本形状のオフセット(ズレ)量を決定する
ための処理である。オフセット決定処理ルーチンにおい
ては、ユーザーの操作により移動したボックスの移動量
のうち、基本形状の方向ベクトルの向きに垂直な方向へ
の移動量(垂直方向移動量)が計算される(ステップ1
81)。この垂直方向移動量は、ボックス及び基本形状
の基準軸からのオフセット(ズレ)量を示すものであ
る。次に、ステップ181において計算された垂直方向
移動量を、RAM5に格納されている基本形状点列座標
データ及びボックス点列座標データに加算し、ステップ
182にてその結果を基本形状点列座標データ及びボッ
クス点列座標データとして更新する。そして、ステップ
183にて、更新された基本形状点列座標データ及びボ
ックス点列座標データに基づいて、ウインドウ上に2つ
のボックス及び基本形状を表示するものである。このオ
フセット決定処理は、本発明の基本形状変形手段に相当
するものである。
Next, an offset determination processing routine will be described with reference to FIG. This offset determination process is a process for determining the amount of offset (deviation) of the basic shape from the reference axis. In the offset determination processing routine, the movement amount (vertical movement amount) in the direction perpendicular to the direction of the direction vector of the basic shape is calculated from the movement amount of the box moved by the user's operation (step 1).
81). The vertical movement amount indicates the amount of offset (deviation) from the reference axis of the box and the basic shape. Next, the vertical movement amount calculated in step 181 is added to the basic shape point sequence coordinate data and the box point sequence coordinate data stored in the RAM 5, and the result is added to the basic shape point sequence coordinate data in step 182. And is updated as box point sequence coordinate data. In step 183, two boxes and a basic shape are displayed on the window based on the updated basic shape point sequence coordinate data and box point sequence coordinate data. This offset determination processing corresponds to the basic shape deformation means of the present invention.

【0032】図5のステップ124において、ボックス
の辺がクリックされているときに実行される拡縮処理ル
ーチンのフローチャートを図11に示す。拡縮処理ルー
チンにおいては、ユーザーは、2つのボックスのうちの
どちらか一方のボックスの一辺をマウス等の入力手段に
よりドラッグする。すると、ドラッグされたボックスの
辺が移動する。ユーザーは、所望の位置にボックスの辺
を移動させ、ドラッグを解除する。すると、ドラッグさ
れたボックスの辺はその位置で移動を終了する。これら
の操作が行われた後に、拡縮処理ルーチンではまずステ
ップ191に示すボックス拡縮処理が行われ、次いで、
ステップ192に示す連動処理が行われる。
FIG. 11 shows a flowchart of a scaling processing routine executed when the side of the box is clicked in step 124 of FIG. In the enlargement / reduction processing routine, the user drags one side of one of the two boxes using an input unit such as a mouse. Then, the side of the dragged box moves. The user moves the side of the box to a desired position and releases the drag. Then, the side of the dragged box ends moving at that position. After these operations are performed, in the enlargement / reduction processing routine, first, box enlargement / reduction processing shown in step 191 is performed.
An interlocking process shown in step 192 is performed.

【0033】図12に、ボックス拡縮処理ルーチンのフ
ローチャートを示す。このボックス拡縮処理は、ボック
ス自体の大きさを拡大又は縮小するための処理である。
ボックス拡縮処理ルーチンにおいては、まずステップ2
01で、ユーザーからの入力操作により移動されたボッ
クスの辺の移動距離を計算する。次に、ステップ202
で、計算された移動距離をRAM5に格納されているボ
ックス点列座標データのうちの移動した辺に対応する点
列座標データに加算し、ボックス点列座標データを更新
する。そして、ステップ203において、更新されたボ
ックス点列座標データに基づいてボックスを表示するも
のである。以上の処理により、ボックスが拡大又は縮小
されるものである。
FIG. 12 shows a flowchart of a box enlargement / reduction processing routine. This box enlargement / reduction processing is processing for enlarging or reducing the size of the box itself.
In the box enlargement / reduction processing routine, first, step 2
At 01, the movement distance of the side of the box moved by the input operation from the user is calculated. Next, step 202
Then, the calculated moving distance is added to the point sequence coordinate data corresponding to the moved side of the box point sequence coordinate data stored in the RAM 5 to update the box point sequence coordinate data. Then, in step 203, a box is displayed based on the updated box point sequence coordinate data. By the above processing, the box is enlarged or reduced.

【0034】次に、図13に基づいて、連動処理ルーチ
ンについて説明する。この連動処理は、ボックスの拡縮
に連動してボックス内の基本形状を拡縮するための処理
である。連動処理ルーチンにおいては、まずステップ2
11で、更新されたボックス点列座標データと更新前の
ボックス点列座標データとから辺の移動距離に基づくボ
ックスの拡縮比を計算する。この拡縮比に基づいてボッ
クス内の基本形状の点列座標データを変換し、変換され
た基本形状の点列座標データを新たな基本形状の点列座
標データとして更新する(ステップ212)。そして、
ステップ213にて、更新された基本形状の点列座標デ
ータに基づいて、ウインドウ上の各ボックス内に基本形
状を表示するものである。
Next, an interlocking processing routine will be described with reference to FIG. This interlocking process is a process for enlarging or reducing the basic shape in the box in conjunction with the scaling of the box. In the linked processing routine, first, step 2
In step 11, a box scaling ratio based on the moving distance of the side is calculated from the updated box point sequence coordinate data and the box point sequence coordinate data before update. The point sequence coordinate data of the basic shape in the box is converted based on the enlargement / reduction ratio, and the converted point sequence coordinate data of the basic shape is updated as a new basic shape point sequence coordinate data (step 212). And
In step 213, the basic shape is displayed in each box on the window based on the updated coordinate data of the point sequence of the basic shape.

【0035】以上のボックス拡縮処理、連動処理によ
り、ボックス及び基本形状の大きさを変更することがで
きるものである。
The size of the box and the basic shape can be changed by the above-described box enlargement / reduction processing and interlocking processing.

【0036】図15に、拡大されたボックスを示す。図
15において、ボックス13a、13bが拡大される前
のボックス、14a、14bが拡大された後のボックス
を示す。
FIG. 15 shows an enlarged box. FIG. 15 shows a box before the boxes 13a and 13b are enlarged, and a box after the boxes 14a and 14b are enlarged.

【0037】尚、上記説明した各サブルーチンにおい
て、拡縮処理が本発明における基本形状変形処理に、連
動処理が本発明におけるボックス−基本形状連動手段に
相当するものである。
In each of the subroutines described above, the enlargement / reduction processing corresponds to the basic shape deformation processing in the present invention, and the interlocking processing corresponds to box-basic shape interlocking means in the present invention.

【0038】図5に示すステップ124において、入力
手段によりディスプレイ上に表示された終了ボタンがク
リックされた場合には、この基本形状変更処理ルーチン
を終了する。尚、上記説明した基本形状変更処理におい
て、マウス等の入力手段によりクリックされていない側
のボックス及び基本形状も、クリックされているボック
ス及び基本形状に施される処理と同様の処理が連動して
自動的に施されるものである。
In step 124 shown in FIG. 5, if the end button displayed on the display is clicked by the input means, the basic shape change processing routine is ended. In the above-described basic shape changing process, the same process as the process performed on the box and the basic shape that is not clicked by the input means such as a mouse is performed in conjunction with the box and the basic shape that are being clicked. It is performed automatically.

【0039】図3のメインフローチャートに戻る。図3
において、基本形状変更処理ルーチン(ステップ10
3)が終了すると、ステップ104に進む。ここでは模
様基準線作成処理ルーチン(模様基準線作成手段)が実
行される。
Returning to the main flowchart of FIG. FIG.
In the basic shape change processing routine (step 10)
When 3) is completed, the process proceeds to step 104. Here, a pattern reference line creation processing routine (pattern reference line creation means) is executed.

【0040】図6に模様基準線作成処理ルーチンのフロ
ーチャートを示す。模様基準線作成処理においては、ま
ずステップ141において、ユーザーの入力手段による
入力待ち状態となる。この場合において、ユーザーがマ
ウス等の入力手段により図8のウインドウ15上に、基
本形状が繰り返されるべき模様基準線16を自由に描
く。そして、ステップ142において、ユーザーによる
入力が終了されたか否かを判断する。終了されていな
い、つまり、ユーザーによる模様基準線の作成中である
場合には、この入力待ち状態を繰り返す。終了した場合
には、次のステップ143に進む。ステップ143で
は、描かれた模様基準線の点列座標を計算し、これをR
AM7に格納する。そして、ステップ144において、
RAM7に格納された模様基準線点列座標データに基づ
き、ディスプレイのウインドウ上に模様基準線を表示す
る。以上の操作により模様基準線作成処理が終了し、こ
のルーチンを終える。
FIG. 6 shows a flowchart of the pattern reference line creation processing routine. In the pattern reference line creation processing, first, in step 141, the apparatus is in a state of waiting for input by the user's input means. In this case, the user freely draws a pattern reference line 16 whose basic shape is to be repeated on the window 15 of FIG. 8 using input means such as a mouse. Then, in step 142, it is determined whether or not the input by the user has been completed. If the processing has not been completed, that is, if the user is creating a pattern reference line, the input wait state is repeated. When the processing has been completed, the process proceeds to the next step 143. In step 143, the point sequence coordinates of the drawn pattern reference line are calculated, and
Store it in AM7. Then, in step 144,
The pattern reference line is displayed on the window of the display based on the pattern reference line point sequence coordinate data stored in the RAM 7. With the above operation, the pattern reference line creation processing ends, and this routine ends.

【0041】図3において、模様基準線作成処理ルーチ
ンが終了すると、ステップ105に行き、模様作成処理
ルーチン(模様作成手段)を実行する。
In FIG. 3, when the pattern reference line creation processing routine is completed, the routine proceeds to step 105, where the pattern creation processing routine (pattern creation means) is executed.

【0042】図7に、模様作成処理ルーチンのフローチ
ャートを示す。図7において、ステップ151にて、前
述の模様基準線作成処理ルーチンにて作成された模様基
準線の点列座標から、模様基準線の長さを計算する。本
例においては、RAM7に格納された模様基準線点列座
標データから、この模様基準線を多次元多項式に近似
し、近似した多次元多項式に所定の変換を施して積分す
ることにより長さを求めた。ただし、この多次元多項式
近似は行わなくてもよい。例えば、模様基準線点列座標
データの個数を模様基準線の長さとして代用してもよい
し、隣接する点列座標を直線で結んで複数の直線により
近似してもよい。次に、ステップ152にて、模様基準
線上に並ぶ基本形状の個数、位置が計算される。基本形
状の個数は、計算された模様基準線の長さを基本形状間
のピッチで除し、少数点以下を四捨五入して整数値化し
た値として求めるものである。基本形状の位置は、模様
基準線を基本形状の個数分で等分し、その等分された位
置における座標値で表されるものである。これらは、R
AM7に格納される。次に、ステップ153にて、基本
形状の位置における模様基準線の方向ベクトルを計算す
る。この方向ベクトルは、曲線近似して模様基準線を作
成した場合には、その位置における近似曲線の微分係数
により求められ、また点列座標を直線で連結して模様基
準線を作成した場合には、隣接する点列座標間の傾きよ
り求められるものである。次に、ステップ154にて、
基本形状を模様基準線に沿って配列し、ステップ155
において、図14におけるディスプレイ上のウインドウ
15内に複数の基本形状を表示する。このときに、基本
形状の方向ベクトルと模様基準線の各位置における方向
ベクトルが一致するように基本形状を配列する。以上の
操作により、模様作成処理を終了する。
FIG. 7 shows a flowchart of a pattern creation processing routine. In FIG. 7, in step 151, the length of the pattern reference line is calculated from the point sequence coordinates of the pattern reference line created by the above-described pattern reference line creation processing routine. In this example, the pattern reference line is approximated to a multidimensional polynomial from the pattern reference line point sequence coordinate data stored in the RAM 7, the approximated multidimensional polynomial is subjected to a predetermined conversion, and the length is obtained by integration. I asked. However, the multidimensional polynomial approximation need not be performed. For example, the number of pattern reference line point sequence coordinate data may be used as the length of the pattern reference line, or adjacent point sequence coordinates may be connected by straight lines to approximate a plurality of straight lines. Next, in step 152, the number and positions of the basic shapes arranged on the pattern reference line are calculated. The number of the basic shapes is obtained as a value obtained by dividing the calculated length of the pattern reference line by the pitch between the basic shapes, rounding the decimal point or less, and converting it to an integer. The position of the basic shape is obtained by equally dividing the pattern reference line by the number of the basic shapes and expressing the coordinate value at the equally divided position. These are R
Stored in AM7. Next, in step 153, the direction vector of the pattern reference line at the position of the basic shape is calculated. This direction vector is obtained from the derivative of the approximate curve at that position when the pattern reference line is created by curve approximation, and when the pattern reference line is created by connecting the point sequence coordinates with a straight line. , Obtained from the inclination between adjacent point sequence coordinates. Next, in step 154,
At step 155, the basic shapes are arranged along the pattern reference line.
In FIG. 14, a plurality of basic shapes are displayed in a window 15 on the display in FIG. At this time, the basic shapes are arranged such that the direction vector of the basic shape matches the direction vector at each position of the pattern reference line. With the above operation, the pattern creation processing ends.

【0043】以上の処理により、ディスプレイのウイン
ドウ上に、決定されたピッチに基づいて、複数個の基本
形状を模様基準線に沿って配列したものを表示すること
ができるものである。
By the above processing, a plurality of basic shapes arranged along a pattern reference line can be displayed on the window of the display based on the determined pitch.

【0044】(実施例)上記説明した描画装置及び描画
方法を、土器等の出土文化財の模様形状を描画する際に
適用する例について次に説明する。
(Embodiment) An example in which the above-described drawing apparatus and drawing method are applied to drawing a pattern shape of an excavated cultural property such as earthenware will be described below.

【0045】まず、土器等の基本形状を、三次元的にモ
デル化する。これは、土器の輪郭をCCDカメラ等で取
り込み、取り込んだ画像の輪郭に関する点列座標データ
を三角測量の原理に基づいて作成し、さらに土器を回転
させて全体の輪郭の点列座標データを作成し、各輪郭の
点列座標データをB−スプライン近似することにより、
三次元的にモデル化するものである次に、取り込んだ土
器の三次元モデルのうちの所定の角度からみた輪郭形状
データを取り出し、その所定の角度からみた場合の土器
の模様をデジタルスチルカメラ等に取り込む。そして土
器の輪郭形状に、取り込んだ模様を貼り合わせる。
First, a basic shape of an earthenware or the like is modeled three-dimensionally. This involves capturing the outline of an earthenware with a CCD camera or the like, creating point sequence coordinate data on the outline of the captured image based on the principle of triangulation, and then rotating the earthenware to create point sequence coordinate data for the entire outline Then, by performing B-spline approximation on the point sequence coordinate data of each contour,
Next, the contour shape data viewed from a predetermined angle in the captured three-dimensional model of the earthenware is extracted, and the pattern of the earthenware when viewed from the predetermined angle is taken as a digital still camera or the like. Take in. Then, the captured pattern is attached to the contour shape of the earthenware.

【0046】以上のようにして取り込んだ画像を、ディ
スプレイ上の1つのウインドウ、例えば図14のウイン
ドウ15に表示する。
The image captured as described above is displayed in one window on the display, for example, window 15 in FIG.

【0047】このようにしてウインドウ内に表示された
画像に対して、これを描画するプロセスを以下に示す。
The process of drawing the image displayed in the window in this manner will be described below.

【0048】まず、前述した図4に示すフローチャート
に従って、基本形状の点列データを作成する。この場合
において、前述したように、土器の模様の基本形状をマ
ウス等の入力手段によりボックス内に書き込んでもよい
が、このような基本形状が予めRAM、フロッピーディ
スク、ハードディスク内に登録してあるものがあれば、
それを呼び出して、ボックス内に自動的に描画させても
よい。これにより、ボックス内に基本形状が描画された
ものが2つディスプレイ上のウインドウ内に表示され
る。
First, according to the flow chart shown in FIG. 4, point sequence data of a basic shape is created. In this case, as described above, the basic shape of the earthenware pattern may be written in the box by input means such as a mouse, but such a basic shape is registered in the RAM, floppy disk, or hard disk in advance. if there are,
You may call it and have it automatically drawn in the box. As a result, the two basic shapes drawn in the box are displayed in the window on the display.

【0049】尚、土器等の出土文化財に彫り込まれた模
様は、その両端のみの形状がそれ以外の部分の形状とは
異なった形状であることが多い。このため、本例ではこ
の両端の基本形状(以下、隣接形状と称する。)をも作
成する。隣接形状の作成方法は、上記した基本形状の作
成プロセスに従って作成される。これにより、ボックス
内に隣接形状が描画されたものが2つディスプレイのウ
インドウ内に表示される。
Incidentally, the pattern engraved on an excavated cultural property such as an earthenware often has a shape in which only the both ends are different from the shapes of the other portions. For this reason, in this example, a basic shape at both ends (hereinafter, referred to as an adjacent shape) is also created. The method of creating the adjacent shape is created according to the above-described process of creating the basic shape. As a result, two adjacent shapes drawn in the box are displayed in the window of the display.

【0050】以上のようにして、基本形状が表示された
2つのボックス及び隣接形状が表示された2つのボック
スの計4つのボックスが、図16に示すようにディスプ
レイ上のウインドウ内に表示される。図16において、
17a、17bが基本形状のボックス、18a、18b
が隣接形状のボックスである。
As described above, a total of four boxes, two boxes displaying the basic shape and two boxes displaying the adjacent shapes, are displayed in the window on the display as shown in FIG. . In FIG.
17a, 17b are boxes of basic shapes, 18a, 18b
Is a box of an adjacent shape.

【0051】次に、前述した図5に示すフローチャート
に従って、ボックス内に描画された基本形状、隣接形状
間のピッチやボックスの大きさ、オフセットを設定す
る。このように、各ボックス内に表示された基本形状、
隣接形状のピッチ、大きさ、オフセットを設定すること
により、図17、図18に示すように、様々な形状の基
本形状、隣接形状がボックス内に表示される。
Next, according to the flowchart shown in FIG. 5 described above, the basic shape drawn in the box, the pitch between adjacent shapes, the size of the box, and the offset are set. Thus, the basic shape displayed in each box,
By setting the pitch, size, and offset of adjacent shapes, various basic shapes and adjacent shapes are displayed in a box as shown in FIGS.

【0052】次に、前述した図6に示すフローチャート
に従って、基本形状を配列すべき模様の模様基準線を作
成する。これは、ディスプレイ上の1つのウインドウ内
に映し出された土器等の実写模様をマウス等の入力手段
でなぞることにより作成される。この場合において、土
器等の表面につけられた模様は、その模様の位置が土器
の両端に近づく程奥行きが長くなるため、小さくなるよ
うに見えるとともに、形状自体も微妙に変化していく。
また、曲面に描かれた曲線を2次元的に見た場合、その
曲線は非常に複雑な形状となり、簡単に近似曲線で表す
ことができない。本例では、このような3次元画像をも
立体的に表現するために、以下のような手法を行ってい
る。
Next, a pattern reference line of a pattern in which a basic shape is to be arranged is created according to the flowchart shown in FIG. This is created by tracing a real image of an earthenware or the like projected in one window on the display with an input means such as a mouse. In this case, the depth of the pattern provided on the surface of the pottery or the like increases as the position of the pattern approaches the both ends of the pottery, so that the pattern appears to be smaller and the shape itself changes slightly.
Also, when a curve drawn on a curved surface is viewed two-dimensionally, the curve has a very complicated shape and cannot be easily represented by an approximate curve. In this example, the following method is used to three-dimensionally express such a three-dimensional image.

【0053】まず、実写画像に沿ってなぞられた自由曲
線を、NURBS曲線近似する。NURBS曲線近似す
る際に、土器をモデル化したときに決定された輪郭形状
の3次元点列座標データを使用する。これにより、2次
元平面上(ディスプレイのウインドウ上)で実写画像に
沿ってなぞられた自由曲線が、3次元曲線に近似された
ことになる。そして、図7に示すフローチャートに従っ
て、NURBS曲線近似された模様基準線の長さを計算
し、この長さと基本形状間のピッチ、隣接形状と基本形
状間のピッチから、模様基準線上に並ぶ基本形状の個
数、基本形状及び隣接形状の位置が計算される。さらに
模様基準線の方向ベクトルが計算され、基本形状及び隣
接形状が模様基準線に沿って配列されるが、このとき
に、基本形状、隣接形状は2次元座標系で定義されてい
るのに対し、模様中心線は3次元座標系で定義されてい
るため、これらを合わす必要がある。これは、以下の操
作により行われる。まず、模様基準線上の各基本形状、
隣接形状の位置を原点とし、さらにその点におけるNU
RBS曲線の接線ベクトル、実際の土器の3次元モデル
表面の法線ベクトルより新たにローカル3次元座標系を
定義する。そして、すでに平面上で定義されている基本
形状を座標変換して模様基準線周りに表示する。これに
より、2次元座標系で定義されていた基本形状及び隣接
形状が3次元座標系に変換されたことになる。そして、
3次元座標で表された基本形状及び隣接形状を透視投影
変換により2次元化する。そして、2次元化された基本
形状及び隣接形状をディスプレイ上のウインドウ内に表
示させるものである。以上の操作、つまり、2次元で定
義されている基本形状及び隣接形状を一旦3次元化し、
3次元で定義された模様基準線の周りに定義した座標系
に表示することにより傾かせ、傾いた状態の基本形状及
び隣接形状を透視投影変換により2次元化して表示する
操作により、立体的な模様を描くことができるものであ
る。
First, a NURBS curve is approximated to a free curve traced along a real image. When approximating the NURBS curve, three-dimensional point sequence coordinate data of the contour shape determined when the earthenware was modeled is used. As a result, the free curve traced along the real image on the two-dimensional plane (on the window of the display) is approximated to the three-dimensional curve. Then, according to the flowchart shown in FIG. 7, the length of the pattern reference line approximated by the NURBS curve is calculated, and from this length and the pitch between the basic shapes and the pitch between the adjacent shape and the basic shape, the basic shapes arranged on the pattern reference line are calculated. , The basic shape and the position of the adjacent shape are calculated. Further, the direction vector of the pattern reference line is calculated, and the basic shape and the adjacent shape are arranged along the pattern reference line. At this time, the basic shape and the adjacent shape are defined by the two-dimensional coordinate system. Since the pattern center line is defined in the three-dimensional coordinate system, it is necessary to match these. This is performed by the following operation. First, each basic shape on the pattern reference line,
The position of the adjacent shape is defined as the origin, and the NU at that point is further determined.
A local three-dimensional coordinate system is newly defined from a tangent vector of the RBS curve and a normal vector of the surface of the three-dimensional model of the actual pottery. Then, the basic shape already defined on the plane is subjected to coordinate conversion and displayed around the pattern reference line. As a result, the basic shape and the adjacent shape defined in the two-dimensional coordinate system are converted to the three-dimensional coordinate system. And
The basic shape and the adjacent shape represented by the three-dimensional coordinates are made two-dimensional by perspective projection transformation. Then, the two-dimensional basic shape and the adjacent shape are displayed in a window on the display. The above operation, that is, the basic shape and the adjacent shape defined in two dimensions are once made three-dimensional,
By displaying the coordinate in a coordinate system defined around the pattern reference line defined in three dimensions, the basic shape and the adjacent shape in a tilted state are two-dimensionally displayed by perspective projection transformation, and the three-dimensional display is performed. You can draw patterns.

【0054】以上、本発明の好適な実施例について説明
したが、本発明は、上記実施形態例及び実施例に何ら限
定されるべきものではない。例えば、上記実施形態例及
び実施例においては、基本形状はボックス内に表示され
るものの例を示したが、基本形状がボックス内に表示さ
れていなくても、基本形状とボックスが連動さえしてい
れば、本発明は充分に成り立つものである。このよう
に、本発明は、本発明の趣旨を逸脱しない限りにおいて
適用可能である。
Although the preferred embodiments of the present invention have been described above, the present invention should not be limited to the above embodiments and examples. For example, in the above-described embodiments and examples, the example in which the basic shape is displayed in the box is shown. However, even if the basic shape is not displayed in the box, the basic shape and the box are even linked. If so, the present invention is fully realized. Thus, the present invention is applicable without departing from the spirit of the present invention.

【0055】[0055]

【発明の効果】以上のように、本発明は、模様を構成す
る基本形状が移動手段により相対的に移動され、この相
対的移動に基づく移動距離から、基本形状間のピッチが
決定され、この決定されたピッチに基づいて複数の基本
形状を規則的に配列した模様を作成し、これを表示する
ものであるため、同一の基本形状が等間隔に配列された
模様を描画するに際し、基本形状及びピッチを設定して
効率的に描画することができるものである。
As described above, according to the present invention, the basic shapes forming the pattern are relatively moved by the moving means, and the pitch between the basic shapes is determined from the moving distance based on the relative movement. Based on the determined pitch, a pattern in which a plurality of basic shapes are regularly arranged is created and displayed, so when drawing a pattern in which the same basic shapes are arranged at equal intervals, the basic shape is drawn. And the pitch can be set for efficient drawing.

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

【図1】基本形状が複数個配列した模様を示す図であ
る。
FIG. 1 is a diagram showing a pattern in which a plurality of basic shapes are arranged.

【図2】本発明の実施形態例における描画装置のシステ
ム構成を示す図である。
FIG. 2 is a diagram illustrating a system configuration of a drawing apparatus according to an embodiment of the present invention.

【図3】本発明の実施形態例における描画処理のメイン
ルーチンを示すフローチャートである。
FIG. 3 is a flowchart illustrating a main routine of a drawing process according to the embodiment of the present invention.

【図4】図3におけるメインルーチン内の基本形状作成
処理ルーチンのフローチャートを示す図である。
FIG. 4 is a flowchart showing a basic shape creation processing routine in a main routine in FIG. 3;

【図5】図3におけるメインルーチン内の基本形状変更
処理ルーチンのフローチャートを示す図である。
FIG. 5 is a flowchart showing a basic shape change processing routine in a main routine in FIG. 3;

【図6】図3におけるメインルーチン内の模様基準線作
成処理ルーチンのフローチャートを示す図である。
FIG. 6 is a flowchart showing a pattern reference line creation processing routine in a main routine in FIG. 3;

【図7】図3におけるメインルーチン内の模様作成処理
ルーチンのフローチャートを示す図である。
FIG. 7 is a view showing a flowchart of a pattern creation processing routine in a main routine in FIG. 3;

【図8】図5における移動処理ルーチンのフローチャー
トを示す図である。
FIG. 8 is a view showing a flowchart of a movement processing routine in FIG. 5;

【図9】図8におけるピッチ決定処理ルーチンのフロー
チャートを示す図である。
9 is a diagram showing a flowchart of a pitch determination processing routine in FIG.

【図10】図8におけるオフセット決定処理ルーチンの
フローチャートを示す図である。
FIG. 10 is a diagram showing a flowchart of an offset determination processing routine in FIG. 8;

【図11】図5における拡縮処理ルーチンのフローチャ
ートを示す図である。
FIG. 11 is a diagram showing a flowchart of a scaling processing routine in FIG. 5;

【図12】図11におけるボックス拡縮処理ルーチンの
フローチャートを示す図である。
FIG. 12 is a diagram showing a flowchart of a box enlargement / reduction processing routine in FIG. 11;

【図13】図11における連動処理ルーチンのフローチ
ャートを示す図である。
FIG. 13 is a view showing a flowchart of an interlocking processing routine in FIG. 11;

【図14】本発明の実施形態例における表示装置を示す
図である。
FIG. 14 is a diagram illustrating a display device according to an embodiment of the present invention.

【図15】本発明の実施形態例におけるボックスの拡縮
状態を示す図である。
FIG. 15 is a diagram showing an enlarged / reduced state of a box according to the embodiment of the present invention.

【図16】本発明の実施例における基本形状と隣接形状
及びそれらを囲むボックスを示す図である。
FIG. 16 is a diagram showing a basic shape, an adjacent shape, and a box surrounding them in the embodiment of the present invention.

【図17】本発明の実施例における基本形状と隣接形状
及びそれらを囲むボックスを変形した図である。
FIG. 17 is a diagram in which a basic shape, an adjacent shape, and a box surrounding the basic shape and the adjacent shape in the embodiment of the present invention are modified.

【図18】本発明の実施例における基本形状と隣接形状
及びそれらを囲むボックスを変形した図である。
FIG. 18 is a diagram in which a basic shape, an adjacent shape, and a box surrounding them are modified according to the embodiment of the present invention.

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

1・・・模様 2・・・基本形状 3・・・表示装置 4・・・入力装置 5・・・データ記憶装置 6・・・CPU 7・・・RAM 9・・・ウインドウ 10・・・ボックス 11・・・基本形状 12・・・終了ボタン 15・・・ウインドウ 16・・・模様基準線 DESCRIPTION OF SYMBOLS 1 ... Pattern 2 ... Basic shape 3 ... Display device 4 ... Input device 5 ... Data storage device 6 ... CPU 7 ... RAM 9 ... Window 10 ... Box 11 ... basic shape 12 ... end button 15 ... window 16 ... pattern reference line

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山 田 剛 愛知県刈谷市朝日町2丁目1番地 アイシ ン精機株式会社内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Takeshi Yamada 2-1-1 Asahi-cho, Kariya-shi, Aichi Pref. Aisin Seiki Co., Ltd.

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 1本以上の線からなる基本形状を少なく
とも2つ表示する基本形状表示手段と、前記基本形状表
示手段に表示された少なくとも2つの基本形状のうちの
一方を他方に対して相対的に移動させる基本形状移動手
段と、前記基本形状移動手段による基本形状の相対的移
動に基づく移動距離から前記少なくとも2つの基本形状
間のピッチを決定するピッチ決定手段と、上記決定され
たピッチに基づいて複数の基本形状を定められた線上に
沿って規則的に配列して模様を作成する模様作成手段
と、前記模様作成手段により作成された複数の基本形状
からなる模様を表示する模様表示手段とを備えた描画装
置。
1. A basic shape display means for displaying at least two basic shapes composed of one or more lines, and one of the at least two basic shapes displayed on the basic shape display means is positioned relative to the other. Basic shape moving means for moving the basic shape, pitch determining means for determining a pitch between the at least two basic shapes from a moving distance based on relative movement of the basic shape by the basic shape moving means, Pattern creating means for creating a pattern by regularly arranging a plurality of basic shapes along a predetermined line based on the pattern, and pattern displaying means for displaying a pattern composed of the plurality of basic shapes created by the pattern creating means And a drawing device comprising:
【請求項2】 請求項1において、 前記描画装置は、前記基本形状表示手段により表示され
た基本形状を変形する基本形状変形手段を備えることを
特徴とする描画装置。
2. The drawing apparatus according to claim 1, wherein the drawing apparatus includes a basic shape deformation unit configured to change a basic shape displayed by the basic shape display unit.
【請求項3】 請求項1または2において、 前記基本形状表示手段は基本形状と連動して表示される
ボックスを備えることを特徴とする描画装置。
3. The drawing apparatus according to claim 1, wherein the basic shape display means includes a box displayed in conjunction with the basic shape.
【請求項4】 請求項3において、 前記描画装置は、前記ボックスの大きさを変更するボッ
クス拡縮手段と、前記ボックス拡縮手段により変更され
た前記ボックスの大きさに基づいて前記ボックスに格納
された基本形状の大きさを変更するボックス−基本形状
連動手段とを備えることを特徴とする描画装置。
4. The box according to claim 3, wherein the drawing device stores the size of the box based on a size of the box changed by the box scaling device. A drawing apparatus comprising: a box for changing the size of a basic shape;
【請求項5】 請求項1〜4のいずれか1において、 前記描画装置は、描画すべき模様の基準線を作成する模
様基準線作成手段を備え、前記模様作成手段は上記決定
されたピッチに基づいて複数の基本形状を前記模様基準
線作成手段により作成された模様の基準線に沿って規則
的に配列して模様を作成することを特徴とする描画装
置。
5. The drawing device according to claim 1, wherein the drawing device includes a pattern reference line creation unit that creates a reference line of a pattern to be drawn, wherein the pattern creation unit sets the reference pitch to the determined pitch. A drawing apparatus, wherein a pattern is created by regularly arranging a plurality of basic shapes along a reference line of the pattern created by the pattern reference line creating means based on the pattern.
【請求項6】 請求項5において、 前記模様の基準線は、3次元の自由曲線で近似されるこ
とを特徴とする描画装置。
6. The drawing apparatus according to claim 5, wherein the reference line of the pattern is approximated by a three-dimensional free curve.
【請求項7】 1本以上の線からなる基本形状を少なく
とも2つ表示し、表示された少なくとも2つの基本形状
の相対的位置関係を設定し、設定された相対的位置関係
より前記少なくとも2つの基本形状間のピッチを決定
し、決定されたピッチに基づいて複数の基本形状を定め
られた線上に規則的に配列して模様を作成し、作成され
た複数の基本形状からなる模様を表示する描画方法。
7. Displaying at least two basic shapes composed of one or more lines, setting a relative positional relationship between the displayed at least two basic shapes, and setting the at least two basic shapes based on the set relative positional relationship. A pitch between the basic shapes is determined, a pattern is created by regularly arranging a plurality of basic shapes on a determined line based on the determined pitch, and a pattern including the created plurality of basic shapes is displayed. Drawing method.
【請求項8】 請求項7において、 前記描画方法は、基本形状変形手段により表示された基
本形状を変形することを特徴とする描画方法。
8. The drawing method according to claim 7, wherein the drawing method deforms a basic shape displayed by a basic shape deforming unit.
【請求項9】 請求項7または8において、 前記描画方法は、少なくとも2つの基本形状をボックス
内にそれぞれ表示することを特徴とする描画方法。
9. The drawing method according to claim 7, wherein at least two basic shapes are displayed in a box.
【請求項10】 請求項9において、 前記描画方法は、ボックス拡縮手段により前記ボックス
の大きさが変更され、変更された前記ボックスの大きさ
に基づいて前記ボックスに格納された基本形状の大きさ
が変更されることを特徴とする描画方法。
10. The drawing method according to claim 9, wherein the size of the box is changed by box scaling means, and the size of the basic shape stored in the box based on the changed size of the box. Is changed.
【請求項11】 請求項7〜10のいずれか1におい
て、 前記描画方法は、模様基準線作成手段により描画すべき
模様の基準線が作成され、複数の基本形状は前記模様基
準線作成手段により作成された模様の基準線に沿って規
則的に配列されて模様が作成されることを特徴とする描
画方法。
11. The drawing method according to claim 7, wherein a reference line of a pattern to be drawn is created by a pattern reference line creation unit, and a plurality of basic shapes are created by the pattern reference line creation unit. A drawing method, wherein a pattern is created by being regularly arranged along a reference line of the created pattern.
【請求項12】 請求項11において、 前記模様の基準線は、3次元の自由曲線で近似されるこ
とを特徴とする描画方法。
12. The drawing method according to claim 11, wherein the reference line of the pattern is approximated by a three-dimensional free curve.
JP3528197A 1997-02-19 1997-02-19 Plotting device and plotting method Pending JPH10232942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3528197A JPH10232942A (en) 1997-02-19 1997-02-19 Plotting device and plotting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3528197A JPH10232942A (en) 1997-02-19 1997-02-19 Plotting device and plotting method

Publications (1)

Publication Number Publication Date
JPH10232942A true JPH10232942A (en) 1998-09-02

Family

ID=12437409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3528197A Pending JPH10232942A (en) 1997-02-19 1997-02-19 Plotting device and plotting method

Country Status (1)

Country Link
JP (1) JPH10232942A (en)

Similar Documents

Publication Publication Date Title
JPH10283158A (en) Stereoscopic display device for window and method therefor
JPH05342310A (en) Method and device for three-dimensional conversion of linear element data
JP3744039B2 (en) Perspective drawing creation support method
JP2005322235A (en) Deformation of computer using design model (cad)
US20230410452A1 (en) Method for inferring a 3d geometry onto a 2d sketch
JP3557839B2 (en) How to create mesh data on a curved surface
TW440756B (en) Automatic programming apparatus and storage medium for storing graphic data generating program
JPH07111742B2 (en) Method and apparatus for transforming figure
JP2003022285A (en) Computer-aided product designing device
JPH06309395A (en) Picture preparing device
JP3019398B2 (en) Free-form surface machining data creation method
JP2837584B2 (en) How to create terrain data
JP4165060B2 (en) Graphic reduction and compilation method and apparatus, and graphic deformation apparatus and method
JPH10232942A (en) Plotting device and plotting method
JPH08123835A (en) Shape design support device
JP3983707B2 (en) 3D space graphic processing apparatus and 3D space graphic processing method
US6941251B1 (en) Method for transforming CAD model using general function composition mechanism
JP2002373187A (en) Product designing device by computer support
JP3147391B2 (en) Method and apparatus for setting curved surface in three-dimensional boundary fitting mesh division
JPH07111740B2 (en) Method and apparatus for generating evenly divided plane pattern
JP3451293B2 (en) Figure transformation device
JPH07134779A (en) Sweep body graphic generating device
JP4618746B2 (en) Graphic object allocation device
JP4067083B2 (en) Three-dimensional shape processing apparatus, draft generation method, program, and storage medium
JPH0749965A (en) Shape production supporting method and device therefor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060731

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060829

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061226