JPH0827844B2 - Figure processing device with regular polygon creation function - Google Patents

Figure processing device with regular polygon creation function

Info

Publication number
JPH0827844B2
JPH0827844B2 JP16674186A JP16674186A JPH0827844B2 JP H0827844 B2 JPH0827844 B2 JP H0827844B2 JP 16674186 A JP16674186 A JP 16674186A JP 16674186 A JP16674186 A JP 16674186A JP H0827844 B2 JPH0827844 B2 JP H0827844B2
Authority
JP
Japan
Prior art keywords
vertex
regular polygon
polygon
vertices
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP16674186A
Other languages
Japanese (ja)
Other versions
JPS6324460A (en
Inventor
知之 石丸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP16674186A priority Critical patent/JPH0827844B2/en
Publication of JPS6324460A publication Critical patent/JPS6324460A/en
Publication of JPH0827844B2 publication Critical patent/JPH0827844B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、マウス等のポインティングデバイスを用
いて作成された多角形を正多角形に正規化する正多角形
作成機能を持つ図形処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial field of application) The present invention has a regular polygon creating function for normalizing a polygon created using a pointing device such as a mouse into a regular polygon. The present invention relates to a graphic processing device.

(従来の技術) 一般に、この種の図形処理装置を用いて多角形を作成
する方式として、マウス等の座標位置指定手段(ポイン
ティングデバイス)により所望の多角形の頂点を順次位
置指定する方式が知られている。図形処理装置は、位置
指定された点の座標位置を入力し、これらの点を頂点と
する多角形を作成する。しかし、この方式では、正多角
形を作成することは極めて困難であった。
(Prior Art) Generally, as a method of creating a polygon using this type of graphic processing device, there is known a method of sequentially specifying the vertices of a desired polygon by a coordinate position specifying means (pointing device) such as a mouse. Has been. The graphic processing device inputs the coordinate position of the position-designated point and creates a polygon having these points as vertices. However, with this method, it was extremely difficult to create a regular polygon.

(発明が解決しようとする問題点) 上記したように従来の図形処理装置では、マウス等の
座標位置指定手段を用いて正多角形を作成することは極
めて困難であるという問題があった。
(Problems to be Solved by the Invention) As described above, the conventional graphic processing device has a problem that it is extremely difficult to create a regular polygon by using coordinate position designating means such as a mouse.

この発明は上記事情に鑑みてなされたものでその目的
は、マウス等の座標位置指定手段を用いて作成された多
角形をもとに正多角形が極めて簡単に作成できる正多角
形作成機能を持つ図形処理装置を提供することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to provide a regular polygon creating function capable of extremely easily creating a regular polygon based on a polygon created using coordinate position designating means such as a mouse. It is to provide a graphic processing device having the same.

[発明の構成] (問題点を解決するための手段と作用) この発明は、座標位置指定手段により順次位置指定さ
れたn点(n≧3)の座標位置を頂点とする多角形の任
意の隣接する2頂点を、目的正多角形のn個の頂点P
[1],P[2],…P[n]のうちの1番目の頂点P
[1],2番目の頂点P[2]として選択し、両頂点P
[1],P[2]を結ぶ線分の長さを正多角形辺として算
出すると共に、頂点P[1],P[2]を結ぶ線分の所定
座標軸に対する傾き角θを算出した後、目的正多角形の
i−1番目(但しiは3≦i≦nを満足する整数)の頂
点P[i−1]を上記所定軸に平行に上記正多角形辺の
長さだけ所定方向に移動して得られる点を頂点P[i−
1]を中心に [{360°×(i−2)}/n]+θ で示される角度だけ回転し目的正多角形のi番目の頂点
P[i]を求める操作をi=3からi=nまでiを1ず
つ増加しながらn−2回実行することによりP[1],P
[2]に後続する目的正多角形の頂点P[3],…P
[n]を求めるようにしたもので、これらP[1],P
[2],…P[n]を結ぶことにより目的正多角形が作
成できる。
[Structure of the Invention] (Means and Actions for Solving Problems) The present invention relates to an arbitrary polygonal shape having apexes at coordinate positions of n points (n ≧ 3) sequentially designated by the coordinate position designating means. Two adjacent vertices are defined as n vertices P of the target regular polygon.
The first vertex P of [1], P [2], ... P [n]
[1], select as the second vertex P [2], and select both vertices P
After the length of the line segment connecting [1] and P [2] is calculated as a regular polygonal side, and the tilt angle θ with respect to the predetermined coordinate axis of the line segment connecting the vertices P [1] and P [2] is calculated. , The i−1 th (where i is an integer satisfying 3 ≦ i ≦ n) vertex P [i−1] of the regular polygon is parallel to the predetermined axis and is in a predetermined direction by the length of the regular polygon side. To the vertex P [i-
1] as a center and rotate by an angle represented by [{360 ° × (i−2)} / n] + θ to obtain the i-th vertex P [i] of the target regular polygon from i = 3 to i = P [1], P by executing n-2 times while increasing i by 1 up to n
The vertex P [3], ... P of the target regular polygon following [2]
[N] is obtained, and these P [1], P
A target regular polygon can be created by connecting [2], ... P [n].

(実施例) 第1図はこの発明の一実施例に係る図形作成機能付き
文書処理装置のブロック構成を示す。同図において、10
は装置全体を制御する制御プロセッサ、12はメモリであ
る。メモリ12には、制御プロセッサ10の制御処理に供さ
れるプログラムを格納するプログラム部14、図形データ
等を含む文書データを格納する文書バッファ16、および
各種のデータ操作等に供される作業領域18などが確保さ
れる。
(Embodiment) FIG. 1 shows a block configuration of a document processing apparatus with a graphic creating function according to an embodiment of the present invention. In the figure, 10
Is a control processor for controlling the entire apparatus, and 12 is a memory. The memory 12 includes a program section 14 for storing a program used for control processing of the control processor 10, a document buffer 16 for storing document data including graphic data, and a work area 18 for various data operations. Etc. are secured.

22はキーボード、24は座標位置指定手段(ポインティ
ングデバイス)、例えば左ボタン26および右ボタン28を
有するマウス、30はキーボード22およびマウス24からの
入力を制御する入力インタフェースである。32はCRTモ
ニタなどの表示モニタ、34は表示モニタ32に表示される
画面データをビットイメージで格納するビットマップメ
モリ、36はビットマップメモリ34の内容の更新を行なっ
て表示モニタ32上への画面表示を行なう表示プロセッサ
である。メモリ12、入力インタフェース30および表示プ
ロセッサ36は、制御プロセッサ10が持つ内部バス38に接
続されている。
22 is a keyboard, 24 is a coordinate position designating means (pointing device), for example, a mouse having a left button 26 and a right button 28, and 30 is an input interface for controlling inputs from the keyboard 22 and the mouse 24. 32 is a display monitor such as a CRT monitor, 34 is a bit map memory that stores the screen data displayed on the display monitor 32 as a bit image, and 36 is a screen displayed on the display monitor 32 by updating the contents of the bit map memory 34. A display processor for displaying. The memory 12, the input interface 30, and the display processor 36 are connected to the internal bus 38 of the control processor 10.

第2図は文書バッファ16に格納される各種図形データ
のうちの多角形の図形データの構造を示す。この実施例
において、多角形の図形データは、多角形を示す図形種
類データと、多角形の頂点数nを示す頂点数データと、
各頂点P[1],P[2],…P[n]のx,y座標データ
から成る。
FIG. 2 shows the structure of polygonal figure data among various figure data stored in the document buffer 16. In this embodiment, the polygon graphic data is graphic type data indicating a polygon, and vertex number data indicating the polygon vertex number n.
It consists of x, y coordinate data of each vertex P [1], P [2], ... P [n].

次に、この発明の一実施例の動作を、第3図並びに第
4図のフローチャートおよび第5図の動作説明図を参照
して説明する。
Next, the operation of the embodiment of the present invention will be described with reference to the flowcharts of FIGS. 3 and 4 and the operation explanatory diagram of FIG.

今、メモリ12の文書バッファ16に第2図の形式の多角
形の図形データが格納されており、この図形データの示
す多角形が表示モニタ32に表示されているものとする。
また表示モニタ32の表示画面上部には、“編集補助”を
含む各種のメニューから成るメニューバー(図示せず)
が表示されているものとする。この状態において表示モ
ニタ32上の多角形を正多角形に正規化したい場合、まず
ユーザは、マウス24を移動操作して正規化対象となる多
角形(の例えば頂点または辺上)にマウスカーソルを合
わせ、マウス24の左ボタン26を押す。この状態は、入力
インタフェース30により内部バス38経由で制御プロセッ
サ10に通知される。制御プロセッサ10は、この通知をも
とに周知の手段により指定された図形を認識する。次に
ユーザは、再びマウス24を移動操作してメニューバーの
“編集補助”にマウスカーソルを合わせ、マウス24のの
ボタン26を押す。この状態は、入力インタフェース30に
より内部バス38経由で制御プロセッサ10に通知される。
It is assumed that the document buffer 16 of the memory 12 stores polygonal graphic data in the format shown in FIG. 2, and the polygon indicated by this graphic data is displayed on the display monitor 32.
A menu bar (not shown) including various menus including "editing assistance" is provided on the upper portion of the display screen of the display monitor 32.
Is displayed. In this state, when the polygon on the display monitor 32 is desired to be normalized to a regular polygon, the user first operates the mouse 24 to move the mouse cursor to the polygon to be normalized (for example, the vertex or the side thereof). Then, press the left button 26 of the mouse 24. This state is notified to the control processor 10 via the internal bus 38 by the input interface 30. Based on this notification, the control processor 10 recognizes the graphic specified by a known means. Next, the user again moves the mouse 24 to bring the mouse cursor to "editing aid" on the menu bar and presses the button 26 of the mouse 24. This state is notified to the control processor 10 via the internal bus 38 by the input interface 30.

制御プロセッサ10は、入力インタフェース30からの通
知により、メニューバーの“編集補助”を指してマウス
24の左ボタン26が押されたことを検出すると、編集補助
処理を開始し、まず“正規化”を含む編集補助に関する
プルダウンメニュー(図示せず)が表示モニタ32に表示
されるように表示プロセッサ36を制御する(ステップS
1)。この状態において、ユーザはマウス24の左ボタン2
6を押したままマウス24を操作して、マウスカーソルを
プルダウンメニュー60内の所望のメニュー項目(ここで
は“正規化”)に合わせる。
In response to the notification from the input interface 30, the control processor 10 points to “editing aid” on the menu bar and mouse
When it is detected that the left button 26 of 24 is pressed, the edit assist process is started, and a pull-down menu (not shown) relating to the edit assist including “normalization” is first displayed on the display monitor 32. Control 36 (Step S
1). In this state, the user can
While holding down 6, operate the mouse 24 to move the mouse cursor to the desired menu item (here, “normalized”) in the pull-down menu 60.

制御プロセッサ10は、マウス24の左ボタン26が押され
た状態でマウスカーソルがプルダウンメニュー内にある
場合には、マウスカーソルの指すメニュー項目(ここで
は“正規化”)を反転表示させる(ステップS2〜S4)。
ユーザは、反転表示されたメニュー項目が所望の項目で
あればマウス24の左ボタン26を離す。この状態は、入力
インタフェース30により制御プロセッサ10に通知され
る。これにより、制御プロセッサ10は、マウス24の左ボ
タン26が離されたことを検出する(ステップS2)。
When the mouse cursor is in the pull-down menu with the left button 26 of the mouse 24 being pressed, the control processor 10 highlights the menu item pointed to by the mouse cursor (here, “normalized”) (step S2 ~ S4).
If the highlighted menu item is the desired item, the user releases the left button 26 of the mouse 24. This state is notified to the control processor 10 by the input interface 30. As a result, the control processor 10 detects that the left button 26 of the mouse 24 has been released (step S2).

制御プロセッサ10は、マウス24の左ボタン26が離され
たことを検出すると、反転表示されているメニュー項目
を選択し(ステップS5)、プルダウンメニューを消去す
る(ステップS6)。次に制御プロセッサ10は、選択した
メニュー項目、即ちユーザにより指定されたメニュー項
目が“正規化”であるか否かを調べる(ステップS7)。
もし“正規化”であれば、制御プロセッサ10は先に指定
されている図形が多角形であるか否かを該当図形データ
内の図形種類データにより調べる(ステップS8)。この
実施例のように指定図形が多角形であれば、制御プロセ
ッサ10は第4図のフローチャートに示す多角形の正規化
処理を開始する。
When detecting that the left button 26 of the mouse 24 has been released, the control processor 10 selects the highlighted menu item (step S5) and erases the pull-down menu (step S6). Next, the control processor 10 checks whether or not the selected menu item, that is, the menu item designated by the user is "normalized" (step S7).
If it is "normalization", the control processor 10 checks whether or not the previously specified figure is a polygon by the figure type data in the corresponding figure data (step S8). If the designated figure is a polygon as in this embodiment, the control processor 10 starts the polygon normalization process shown in the flowchart of FIG.

さて、第4図のフローチャートに示す多角形の正規化
処理では、正規化対象多角形のn個の頂点P[1],P
[2],…P[n]のうち先頭(1番目)の頂点P
[1]と次(2番目)の頂点P[2]が、目的とする正
多角形の頂点P[1],P[2]としてそのまま採用され
る。以下、多角形の正規化処理について、正規化対象多
角形の頂点数nが3の場合、即ちP[1],P[2],P
[3]の3つの頂点を持つ多角形(三角形)を正規化す
る場合を例に詳述する。
Now, in the polygon normalization processing shown in the flowchart of FIG. 4, the n vertices P [1], P of the normalization target polygon are
[2], ... The first (first) vertex P of P [n]
[1] and the next (second) vertex P [2] are directly adopted as the vertices P [1] and P [2] of the target regular polygon. Hereinafter, regarding the polygon normalization processing, when the number of vertices n of the normalization target polygon is 3, that is, P [1], P [2], P
The case of normalizing a polygon (triangle) having three vertices of [3] will be described in detail as an example.

まず制御プロセッサ10は、指定された多角形のデータ
(図形データ)をメモリ12の文書バッファ16より取出
し、作業領域18(の所定位置)に格納する(ステップS1
1)。次に制御プロセッサ10は、文書バッファ16に格納
した指定図形の図形データの先頭の頂点P[1]と次の
頂点P[2]の両座標データを取出し、P[1]とP
[2]とを結ぶ線分の長さを目的正多角形の一辺(正多
角形辺)の長さedgeとして算出すると共に、第5図に示
すように頂点P[1]とP[2]とを結ぶ線分(即ち目
的正多角形の1番目の正多角形辺)の所定座標軸例えば
x軸に対する角度base(傾き角θ)を算出し(ステップ
S12)、しかる後に新たに算出しようとする目的正多角
形の頂点P[i]の頂点番号iを3に初期設定する(ス
テップS13)。
First, the control processor 10 takes out the designated polygonal data (graphic data) from the document buffer 16 of the memory 12 and stores it in the work area 18 (at a predetermined position thereof) (step S1).
1). Next, the control processor 10 takes out the coordinate data of both the top vertex P [1] and the next vertex P [2] of the figure data of the specified figure stored in the document buffer 16, and outputs P [1] and P [1].
The length of the line segment connecting [2] is calculated as the length edge of one side (regular polygon side) of the target regular polygon, and the vertices P [1] and P [2] are calculated as shown in FIG. An angle base (inclination angle θ) of a line segment connecting (and the first regular polygon side of the target regular polygon) with respect to a predetermined coordinate axis, for example, the x axis is calculated (step
S12), and then the vertex number i of the vertex P [i] of the target regular polygon to be newly calculated is initialized to 3 (step S13).

制御プロセッサ10は、ステップS13を実行すると、頂
点番号iの示す値が正規化対象多角形の頂点数n(ここ
ではn=3)以下であるか否かを調べ、この例のように
n以下であれば、目的正多角形のi−1番目(ここでは
2番目)の頂点P[i−1](ここではP[2])と目
的正多角形のこれから求めようとするi番目の頂点P
[i]とを結ぶ線分即ち目的正多角形のi−1番目(こ
こでは2番目)の正多角形辺のx軸に対する角度step
を、次式 step =[{360°×(i−2)}/n]+baseにより算出する
(ステップS15)。
When executing step S13, the control processor 10 checks whether or not the value indicated by the vertex number i is less than or equal to the number of vertices n (n = 3 in this case) of the normalization target polygon, and is n or less as in this example. Then, the i-1th (here, second) vertex P [i-1] (here, P [2]) of the target regular polygon and the i-th vertex of the target regular polygon to be obtained from this P
The line segment connecting [i], that is, the angle step of the i−1th (here, second) regular polygon side of the target regular polygon with respect to the x-axis
Is calculated by the following equation step = [{360 ° × (i−2)} / n] + base (step S15).

次に制御プロセッサ10は、第5図に示すように、頂点
P[i−1](ここではP[2])をx軸の正の方向に
ステップS12で求めた正多角形辺長edgeの示す距離だけ
移動させ、仮の頂点(中間頂点)P[i](ここではP
[3])を求める(ステップS16,S17)。この仮の頂点
P[i]のx座標は、P[i−1]のx座標にステップ
S12で求めた正多角形辺長edgeを加算することにより求
められる(ステップS16)。また仮の頂点P[i]のy
座標には、P[i−1]のy座標がそのまま用いられる
(ステップS17)。
Next, as shown in FIG. 5, the control processor 10 sets the vertex P [i-1] (here, P [2]) of the regular polygon edge length edge obtained in step S12 in the positive direction of the x-axis. The tentative vertex (intermediate vertex) P [i] (here, P
[3]) is obtained (steps S16, S17). The x coordinate of this temporary vertex P [i] is stepped to the x coordinate of P [i-1].
It is obtained by adding the regular polygon side length edge obtained in S12 (step S16). In addition, y of the temporary vertex P [i]
The y coordinate of P [i-1] is used as it is as the coordinate (step S17).

制御プロセッサ10は、仮の頂点(中間頂点)P[i]
(ここではP[3])を求めると、この頂点P[i]を
第5図に示すようにP[i−1](ここではP[2])
を中心に(ステップS15で求めた)角度stepで回転さ
せ、回転後の位置を目的正多角形の真の頂点(最終頂
点)P[i](ここではP[3])の位置とし(ステッ
プS18)、作業領域18に格納されている正規化対象多角
形の図形データの頂点P[i](ここではP[3])の
座標データを、ステップS18で求めた真の頂点P[i]
の座標データに書換える。次に制御プロセッサ10は頂点
番号i(ここでは3)を+1し(ステップS19)、しか
る後にステップS14の判定処理に戻る。この例では、ス
テップS19の処理によりiが4となり、またn=3であ
ることから、i≦nは成立しない。この場合、制御プロ
セッサ10は多角形の正規化処理の終了を判断し、目的正
多角形の図形データに書換えられた作業領域18内の正規
化対象多角形の図形データをもとに、頂点P[1],P
[2]が正規化対象多角形のそれと同一の正多角形、即
ちユーザからの位置指定に応じて作成された多角形イメ
ージに位置,大きさ,傾き等の点で極めて近い正多角形
を表示モニタ32に表示させる。なお、正多角形の頂点を
求める毎に先行する頂点と線で結ぶようにしてもよい。
ユーザは、画面表示された正多角形を見て、その多角形
を採用するか否かを判断し、採用の可否をマウス24操作
等により制御プロセッサ10に指示する。これにより制御
プロセッサ10は、採用可であれば文書バッファ16内の正
規可対象多角形の図形データを作業領域18内の図形デー
タにより書換え、採用不可であればこの書換えを行なわ
ずに元の多角形を再表示する。
The control processor 10 uses the temporary vertex (intermediate vertex) P [i]
(Here, P [3]) is obtained, this vertex P [i] is P [i-1] (here, P [2]) as shown in FIG.
Is rotated at an angle step (obtained in step S15), and the position after rotation is set as the position of the true vertex (final vertex) P [i] (here, P [3]) of the target regular polygon (step S18), the coordinate data of the vertex P [i] (here P [3]) of the figure data of the normalization target polygon stored in the work area 18 is the true vertex P [i] obtained in step S18.
Rewrite to the coordinate data of. Next, the control processor 10 increments the vertex number i (here, 3) by 1 (step S19), and thereafter returns to the determination processing of step S14. In this example, i becomes 4 by the process of step S19 and n = 3, so that i ≦ n does not hold. In this case, the control processor 10 determines the end of the polygon normalization processing, and based on the normalization target polygon graphic data in the work area 18 rewritten with the target regular polygon graphic data, the vertex P [1], P
[2] shows a regular polygon that is the same as that of the normalization target polygon, that is, a regular polygon that is extremely close in terms of position, size, inclination, etc. to the polygon image created according to the position designation from the user. Display on monitor 32. Each time the vertex of the regular polygon is obtained, it may be connected to the preceding vertex by a line.
The user looks at the regular polygon displayed on the screen, determines whether or not to adopt the polygon, and instructs the control processor 10 whether or not to adopt the polygon by operating the mouse 24 or the like. Thus, the control processor 10 rewrites the figure data of the normal-applicable target polygon in the document buffer 16 with the figure data in the work area 18 if adoption is possible, and if it is not possible, the original multiplicity is rewritten without performing this rewriting. Redisplay the polygon.

なお、前記実施例では、図形処理機能を持った文書処
理装置に実施した場合について説明したが、この発明は
マウス等の座標位置指定手段を用いて多角形が作成でき
る図形処理機能を持つ装置全般に応用できる。
In the above embodiment, the case where the invention is applied to the document processing apparatus having the graphic processing function has been described. However, the present invention is applicable to any apparatus having a graphic processing function capable of creating a polygon by using coordinate position designating means such as a mouse. Can be applied to.

[発明の効果] 以上詳述したようにこの発明によれば、正多角形が、
マウス等の座標位置指定手段を用いて作成された多角形
をもとに極めて簡単に且つ元の多角形の図形イメージを
さほど損わずに作成できる。
[Effects of the Invention] As described in detail above, according to the present invention, a regular polygon is
Based on the polygon created by using the coordinate position designating means such as a mouse, the original polygonal graphic image can be created very easily.

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

第1図はこの発明の一実施例に係る図形作成機能付き文
書処理装置のブロック構成図、第2図は多角形の図形デ
ータの構造を示す図、第3図および第4図は動作を説明
するためのフローチャート、第5図は多角形の正規化処
理を三角形を例に説明する図である。 10…制御プロセッサ、12…メモリ、16…文書バッファ、
18…作業領域、24…マウス、32…表示モニタ。
FIG. 1 is a block configuration diagram of a document processing apparatus with a graphic creation function according to an embodiment of the present invention, FIG. 2 is a diagram showing a structure of polygon graphic data, and FIGS. 3 and 4 are for explaining the operation. FIG. 5 is a flowchart for explaining the polygon normalization process using a triangle as an example. 10 ... Control processor, 12 ... Memory, 16 ... Document buffer,
18 ... Work area, 24 ... Mouse, 32 ... Display monitor.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】図形の移動および回転機能を有すると共
に、座標位置指定手段により順次位置指定されたn点
(n≧3)の座標位置を入力して、これらn点を頂点と
する多角形を画面表示する図形処理装置において、 上記画面表示された多角形を正多角形に正規化すること
を指定する正規化指定手段と、 この正規化指定手段からの正規化指定を受け、上記画面
表示された多角形の任意の隣接する2頂点を目的正多角
形のn個の頂点P[1],P[2],…P[n]のうちの
1番目の頂点P[1],2番目の頂点P[2]として固定
し、両頂点P[1],P[2]を結ぶ線分の長さを上記目
的正多角形の一辺である正多角形辺として算出する正多
角形辺算出手段と、 上記頂点P[1],P[2]を結ぶ線分の所定座標軸に対
する傾き角θを算出する角度算出手段と、 上記目的正多角形のi−1番目(但しiは3≦i≦nを
満足する整数)の頂点P[i−1]を上記所定軸に平行
に上記正多角形辺算出手段によって算出された正多角形
辺の長さだけ所定方向に移動して仮の頂点P[i]を得
る図形移動手段と、 この移動手段の点移動により得られた上記仮の頂点P
[i]を上記頂点P[i−1]を中心に [{360°×(i−2)}/n]+θ で示される角度だけ回転して上記目的正多角形のi番目
の真の頂点P[i]を得る図形回転手段と、 上記図形移動手段および上記図形回転手段の操作を、i
=3からi=nまでiを1ずつ増加しながらn−2回繰
り返し実行させることにより、上記目的正多角形の3番
目の頂点P[3]乃至n番目の頂点P[n]を得させる
制御手段と、 上記固定された2頂点P[1],P[2]、および上記得
られたn−2個の頂点P[3]乃至P[n]を持つ目的
正多角形を画面表示する表示手段と を具備することを特徴とする正多角形作成機能を持つ図
形処理装置。
1. A polygon having vertices at these n points by inputting coordinate positions of n points (n ≧ 3) which are sequentially designated by a coordinate position designating means while having a function of moving and rotating a figure. In a graphic processing device for displaying on a screen, a normalization designating means for designating normalization of the polygon displayed on the screen and a normalization designation from the normalization designating means are displayed on the screen. The two adjacent vertices of the polygon are the first vertex P [1], the second vertex of the n vertices P [1], P [2], ... P [n] of the target regular polygon. A regular polygon side calculating means for fixing the vertex P [2] and calculating the length of a line segment connecting both vertices P [1] and P [2] as a regular polygon side which is one side of the target regular polygon. And an angle calculation for calculating a tilt angle θ with respect to a predetermined coordinate axis of a line segment connecting the vertices P [1] and P [2] By means of the regular polygonal side calculating means parallel to the predetermined axis with respect to the i−1th (i is an integer satisfying 3 ≦ i ≦ n) vertex P [i−1] of the target regular polygon. A figure moving means for obtaining a temporary vertex P [i] by moving in the predetermined direction by the calculated length of the regular polygon side, and the temporary vertex P obtained by the point movement of this moving means.
[I] is rotated by an angle represented by [{360 ° × (i−2)} / n] + θ about the vertex P [i−1] as the center, and the i-th true vertex of the target regular polygon is rotated. The figure rotating means for obtaining P [i], and the operation of the figure moving means and the figure rotating means are
From n = 3 to i = n by incrementing i by 1 n-2 times to obtain the third vertex P [3] to the nth vertex P [n] of the target regular polygon. The control means and the target regular polygon having the fixed two vertices P [1] and P [2] and the obtained n-2 vertices P [3] to P [n] are displayed on the screen. A graphic processing device having a regular polygon creating function, characterized by comprising display means.
JP16674186A 1986-07-17 1986-07-17 Figure processing device with regular polygon creation function Expired - Lifetime JPH0827844B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16674186A JPH0827844B2 (en) 1986-07-17 1986-07-17 Figure processing device with regular polygon creation function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16674186A JPH0827844B2 (en) 1986-07-17 1986-07-17 Figure processing device with regular polygon creation function

Publications (2)

Publication Number Publication Date
JPS6324460A JPS6324460A (en) 1988-02-01
JPH0827844B2 true JPH0827844B2 (en) 1996-03-21

Family

ID=15836889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16674186A Expired - Lifetime JPH0827844B2 (en) 1986-07-17 1986-07-17 Figure processing device with regular polygon creation function

Country Status (1)

Country Link
JP (1) JPH0827844B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01306971A (en) * 1988-06-04 1989-12-11 Sony Corp Shape model designing device
JP2718401B2 (en) * 1995-08-25 1998-02-25 日本電気株式会社 Line-symmetric figure shaping apparatus and method for generating a line-symmetric figure with respect to all arbitrary numbers of symmetry axes

Also Published As

Publication number Publication date
JPS6324460A (en) 1988-02-01

Similar Documents

Publication Publication Date Title
JP3186241B2 (en) Figure editing device
JP2618145B2 (en) Figure creation method and creation apparatus using figure icons
JP3507611B2 (en) CAD system
JP3599198B2 (en) Figure editing device
JPH0827844B2 (en) Figure processing device with regular polygon creation function
JPH04163592A (en) Method of window display
JP3157474B2 (en) Cam design processing apparatus and method
JPH09244858A (en) Control method for window system and information processor
JP3113023B2 (en) Arc length dimension creation method and device
JPH03129513A (en) Function selecting system
JP2575636B2 (en) Graphic display device
JPH01261722A (en) Multiwindow display control system
JP3381994B2 (en) Display screen switching device
JPS63289630A (en) Storage system
JP3036813B2 (en) Plotting device
JPH05108792A (en) Picture processing method and device
JPS6385924A (en) Display control system
JP3187137B2 (en) Image processing method and apparatus
JPH01191269A (en) Image controller
JP3483977B2 (en) Cursor navigation device for graphic processing device
JP2723058B2 (en) Line-symmetric figure input device
JP2001046768A (en) Embroidery data preparation device
JPS6324459A (en) Composite document processor
JPS63104127A (en) Computer system
JPH04169926A (en) Graphic processor