JPS63184881A - Face painting processing system for parallelogram - Google Patents
Face painting processing system for parallelogramInfo
- Publication number
- JPS63184881A JPS63184881A JP62017118A JP1711887A JPS63184881A JP S63184881 A JPS63184881 A JP S63184881A JP 62017118 A JP62017118 A JP 62017118A JP 1711887 A JP1711887 A JP 1711887A JP S63184881 A JPS63184881 A JP S63184881A
- Authority
- JP
- Japan
- Prior art keywords
- vector generator
- line segment
- vector
- parallelogram
- segment
- 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
Links
- 238000010422 painting Methods 0.000 title abstract description 12
- 239000013598 vector Substances 0.000 claims abstract description 48
- 239000000284 extract Substances 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 8
- 239000011248 coating agent Substances 0.000 description 4
- 238000000576 coating method Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 4
- 238000003672 processing method Methods 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 229920000742 Cotton Polymers 0.000 description 1
- 239000008280 blood Substances 0.000 description 1
- 210000004369 blood Anatomy 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
Landscapes
- Image Generation (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要〕
平行四辺形の面塗り処理方式において、平行四辺形の各
平行な2&Ilの線分のうち、長い方を正線分、短い方
を副線分とし、副線分を構成する点列の座標を計算し、
副線分を構成する点列の各座標をベクトル発生装置へ人
力して順次正線分に平行な線分を描画して平行四辺形の
面塗り処理を行うことにより9面塗りに要する処理時間
を短縮する。[Detailed Description of the Invention] [Summary] In the parallelogram surface painting processing method, among the parallel 2&Il line segments of the parallelogram, the longer one is the normal line segment, the shorter one is the subline segment, and the subline segment is the subline segment. Calculate the coordinates of the points that make up the line segment,
The processing time required to fill 9 sides of a parallelogram is reduced by manually inputting the coordinates of the point sequence that makes up the sub-line segments into a vector generator, sequentially drawing line segments parallel to the normal line segment, and performing side-painting processing on the parallelogram. shorten.
本発明は、平行四辺形の面塗り処理方式、特に面塗りに
要する処理時間を短縮した平行四辺形の面塗り処理方式
に関する。The present invention relates to a parallelogram surface coating processing method, and more particularly to a parallelogram surface coating processing method that reduces the processing time required for surface coating.
(従来の技術〕
最近の図形表示装置では、単に線分や曲線を描画するだ
けでなく、太線や面塗りされた図形を大量かつ高速に表
示することが必要とされている。(Prior Art) In recent graphic display devices, it is necessary not only to simply draw line segments and curves, but also to display thick lines and filled-in figures in large quantities and at high speed.
特に、 CAD (Computer Aided D
esign )の分野で使用される図形表示装置におい
て、この傾向が顕著である。In particular, CAD (Computer Aided D
This tendency is noticeable in graphic display devices used in the field of esign.
第5図は、従来の平行四辺形の面塗り処理方式%式%
2次元の表示メモリ上に平行四辺形PQR3を次の手順
で面塗りする。FIG. 5 shows a conventional parallelogram surface-painting processing method. Parallelogram PQR3 is surface-painted on a two-dimensional display memory using the following procedure.
■ X軸に平行な線分により、三角形PAS、四角形A
QBS及び三角形QRBの3個の部分に分ける。■ Line segments parallel to the X axis form triangle PAS and quadrilateral A.
It is divided into three parts: QBS and triangular QRB.
■ X軸に平行なスキャンラインのy切片1yをpyか
らsyまで1画素ずつ変化させながら、スキャンライン
と三角形PASとの交点C,DのX座標を計算し、線分
CDをベクトル描画装置により描画する。この結果、三
角形PASが面塗りされる。■ While changing the y-intercept 1y of the scan line parallel to the X-axis from py to sy pixel by pixel, calculate the X coordinates of the intersections C and D between the scan line and triangle PAS, and draw the line segment CD using a vector drawing device. draw. As a result, the triangle PAS is filled.
■ 同様に、X軸に平行なスキャンラインのy切片1y
をsyからqyまで変化させて四角形AQBSが面塗り
される。■ Similarly, the y-intercept of the scan line parallel to the X-axis is 1y
The square AQBS is filled by changing from sy to qy.
■ 同様に、X軸に平行なスキャンラインのy切片ly
をqyからryまで変化させて三角形QRBが面塗りさ
れる。■ Similarly, the y-intercept ly of the scan line parallel to the X-axis
Triangle QRB is filled by changing from qy to ry.
従来の方式では1表示メモリの主走査方向に平行な線分
を描画するため、平行四辺形の面積が小さくても多数の
線分を描画しなければならないという問題があった。In the conventional method, line segments parallel to the main scanning direction of one display memory are drawn, so there was a problem in that a large number of line segments had to be drawn even if the area of the parallelogram was small.
第5図の例でいえば、ry−py+1個のスキャンライ
ンに対して。In the example of FIG. 5, for ry-py+1 scan lines.
■ 2交点のX座標を計算する処理時間と。■ Processing time to calculate the X coordinate of two intersection points.
■ 交点間の線分描画に要する処理時間が必要であり1
合計すれば大きな処理時間を要する。■ Processing time required to draw line segments between intersection points is required;
In total, a large amount of processing time is required.
本発明は、平行四辺形の各平行な2組の線分のうち、長
い方を正線分、短い方を副線分とし、副線分を構成する
点列の座標を計算し、副線分を構成する点列の各座標を
ベクトル発生装置へ入力して順次正線分に平行な線分を
描画することにより。The present invention calculates the coordinates of a sequence of points constituting the sub-line segment by defining the longer one as a normal line segment and the shorter one as a sub-line segment among two sets of parallel line segments of a parallelogram, and By inputting each coordinate of a sequence of points that make up a segment into a vector generator and sequentially drawing line segments parallel to the positive line segment.
面塗りに要する処理時間を短縮するものである。This shortens the processing time required for surface coating.
第1図は1本発明の基本構成を示す図である。FIG. 1 is a diagram showing the basic configuration of the present invention.
第1図において、lは図形処理装置、2は入力部、3は
面塗り処理部、4は平行四辺形抽出部。In FIG. 1, l is a graphic processing device, 2 is an input section, 3 is a filling processing section, and 4 is a parallelogram extraction section.
5は正線分/副線分識別部、6は副線分点列座標計算部
、7は正線分に平行なベクトル発生部、8は表示部、9
は図形データファイル、10はディスプレイ、11はキ
ーボードである。5 is a normal line segment/sub line segment identification section, 6 is a sub line segment point sequence coordinate calculation section, 7 is a vector generation section parallel to the normal line segment, 8 is a display section, 9
10 is a graphic data file, 10 is a display, and 11 is a keyboard.
図形処理装置1は、入力部20面塗り処理部3及び図形
描画部(図示せず)等からなり、各種の図形の描画及び
描画された図形の面塗りを行う。The graphic processing device 1 includes an input section 20, a surface painting processing section 3, a graphic drawing section (not shown), and the like, and performs drawing of various figures and surface painting of the drawn figures.
面塗り処理部3は、平行四辺形抽出部4.正綿分/副線
分識別部5.副線分点列座標計算部6゜正線分に平行な
ベクトル発生部7及び表示部8からなり、描画された図
形のうち平行四辺形の血塗り処理を行う。The surface painting processing unit 3 includes a parallelogram extraction unit 4. Regular cotton/minor line segment identification section 5. A sub-line segment point sequence coordinate calculation unit 6, consisting of a vector generation unit 7 parallel to the positive line segment and a display unit 8, performs blood painting processing on a parallelogram among the drawn figures.
平行四辺形抽出部4は、描画された図形のなかから平行
四辺形を抽出する。The parallelogram extraction unit 4 extracts a parallelogram from the drawn figure.
正線分/副線分識別部5は、抽出した平行四辺形の2組
みの線分のうち、長い方を正線分、短い方を副線分とし
て識別する。The normal line segment/sub line segment identifying unit 5 identifies the longer one of the two sets of line segments of the extracted parallelogram as a normal line segment and the shorter one as a sub line segment.
副線分点列座標計算部6は、副線分を構成する点列の座
標を計算する。The sub-line segment point sequence coordinate calculation unit 6 calculates the coordinates of the point sequence forming the sub-line segment.
正線分に平行なベクトル発生部7は、副線分を構成する
点列の各座標をベクトル発生装置へ入力して順次正線分
に平行な線分の座標を生成させる。The vector generating unit 7 parallel to the normal line segment inputs each coordinate of a sequence of points constituting the subline segment to a vector generator, and sequentially generates the coordinates of the line segment parallel to the normal line segment.
表示部8は、生成された正線分に平行な線分の座標を面
塗り情報として出力表示する。The display unit 8 outputs and displays the coordinates of a line segment parallel to the generated normal line segment as fill information.
図形データファイル9には1図形データが格納されてい
る。The graphic data file 9 stores one graphic data.
(作用〕 第2図は1本発明の原理を示す図である。(effect) FIG. 2 is a diagram showing the principle of the present invention.
平行四辺形PQR3の2辺PQ及びPSを挟む2つのベ
クトルのうち、長い方を正ベクトルPQ。Of the two vectors that sandwich the two sides PQ and PS of the parallelogram PQR3, the longer one is the positive vector PQ.
短い方を副ベクトルPSとする。Let the shorter one be the sub-vector PS.
一−→
副ベクトルPSを構成する点列(×で示す)を開始点と
して、正ベクトルPQと同じ変位を有する複数のベクト
ルを描画する。これらのベクトルの終点(Δで示す)は
、ベクトルiマ上に並ぶ。1-→ A plurality of vectors having the same displacement as the positive vector PQ are drawn using the point sequence (indicated by x) constituting the sub-vector PS as a starting point. The end points (indicated by Δ) of these vectors are aligned on the vector i.
この場合、正ベクトルを構成する点列又は副ベクトルを
構成する点列のいずれかは、4方向連結でなければなら
ない0両方共8方向連結であると。In this case, either the point sequence composing the positive vector or the point sequence composing the subvector must be 4-way connected.0 Both must be 8-way connected.
面塗りが不完全となる。第2図は、ベクトルPSが4方
向連結、ベクトルPQが8方向連結の場合である。The surface painting becomes incomplete. FIG. 2 shows a case where the vector PS is 4-way connected and the vector PQ is 8-way connected.
なお、4方向連結及び8方向連結の例を第3図(a)、
(b)に示す。Examples of 4-way connection and 8-way connection are shown in Figure 3(a).
Shown in (b).
4方向連結では1表示ドツトが上下左右のいずれかにつ
ながっていなければならないが、8方向連結では、斜め
につながっていてもよい。In 4-way connection, one display dot must be connected either up, down, left or right, but in 8-way connection, it may be connected diagonally.
第4図は1本発明の1実施例構成を示す図である。 FIG. 4 is a diagram showing the configuration of one embodiment of the present invention.
第4図において、41は主制御装置、42は入力部、4
3は面塗り処理部、44はベクトル発生装置(DDA#
1)、45はベクトル発生装置(DDA#2)、46は
表示メモリ、47は図形データファイルである。In FIG. 4, 41 is a main control device, 42 is an input section, 4
3 is a surface painting processing unit, 44 is a vector generator (DDA#
1), 45 is a vector generator (DDA#2), 46 is a display memory, and 47 is a graphic data file.
ベクトル発生装置(DDA#1)44及びベクトル発生
装置(DDA#2)45は、開始点と変位とを入力とし
、これによって決まる線分を構成する点列の座標を1点
ずつ繰り返し発生するベクトル発生装置である。The vector generator (DDA#1) 44 and the vector generator (DDA#2) 45 receive a starting point and a displacement as inputs, and generate vectors that repeatedly generate the coordinates of a sequence of points that constitute a line segment determined by these input points, point by point. It is a generator.
主制御装置41は、入力部42及び面塗り処理部43か
らなり1図形データを図形データファイル47から入力
し、ベクトル発生装置(DDA#1)44及びベクトル
発生装置(DDA#2)45を次のように制御する。The main control device 41 includes an input section 42 and a surface painting processing section 43, inputs one figure data from a figure data file 47, and inputs one figure data from a figure data file 47 and a vector generator (DDA#1) 44 and a vector generator (DDA#2) 45. Control like this.
■ 平行四辺形PQR3から人力情報として、ヘクトル
PQ、ベクトルPS1点Pを決定し、与える。■ Determine and give a hector PQ and a vector PS1 point P as manual information from the parallelogram PQR3.
■ ベクトル発生装置(DDA#1)44からの1個の
出力をベクトル発生装置(DDA#2)45に入力し、
ベクトル発生装置(DDA#2)45から線分1個分の
出力を得て表示メモリ46に書き込む。■ Input one output from the vector generator (DDA#1) 44 to the vector generator (DDA#2) 45,
An output for one line segment is obtained from the vector generator (DDA#2) 45 and written into the display memory 46.
■ ベクトル発生装置(DDA#1)44から次の1個
の出力を得てベクトル発生装置(DDA#2)45に入
力し、ベクトル発生装置(DDA#2)45から線分1
個分の出力を得て表示メモリ46に書き込む。■ Obtain the following one output from the vector generator (DDA#1) 44, input it to the vector generator (DDA#2) 45, and generate line segment 1 from the vector generator (DDA#2) 45.
The output for each is obtained and written into the display memory 46.
■ 同様に、ベクトル発生装! (DD’A#1)44
からのすべての出力に対して処理■を繰り返す。■ Similarly, vector generator! (DD'A#1) 44
Repeat process ■ for all output from .
本発明では、ベクトル発生装置が描画する線分の本数が
少なくて済むから、平行四辺形の面塗りに要する処理時
間を短縮することができる。In the present invention, the number of line segments drawn by the vector generator can be reduced, so that the processing time required to fill the sides of a parallelogram can be shortened.
第1図は本発明の基本構成を示す図、第2図は本発明の
詳細な説明するための図、第3図は4方向連結及び8方
向連結の例を示す図、第4図は本発明の1実施例構成を
示す図、第5図は従来例を示す図である。
第1図において。
l:図形処理装置
2:入力部
3:面塗り処理部
4:平行四辺形抽出部
5:正線分/副線分識別部
6:副線分点列座標計算部
7:正線分に平行なベクトル発生部
8;表示部
9:図形データファイル
lO:ディスプレイ
11:キーボードFig. 1 is a diagram showing the basic configuration of the present invention, Fig. 2 is a diagram for explaining the invention in detail, Fig. 3 is a diagram showing examples of 4-way connection and 8-way connection, and Fig. FIG. 5 is a diagram showing the configuration of one embodiment of the invention, and FIG. 5 is a diagram showing a conventional example. In FIG. l: Graphic processing device 2: Input section 3: Filling processing section 4: Parallelogram extraction section 5: Normal line segment/sub line segment identification section 6: Sub line segment point sequence coordinate calculation section 7: Parallel to normal line segment Vector generation unit 8; Display unit 9: Graphic data file lO: Display 11: Keyboard
Claims (1)
と、 抽出した平行四辺形について、各平行な2組の線分のう
ち、長い方を正線分、短い方を副線分として識別する部
(5)と、 副線分を構成する点列の座標を計算する部(6)と、 副線分を構成する点列の各座標をベクトル発生装置へ入
力して順次正線分に平行な線分の座標を生成させる部(
7)と、 生成された正線分に平行な線分の座標を面塗り情報とし
て出力表示する部(8)からなることを特徴とする平行
四辺形の面塗り処理方式[Claims] In a graphic processing device equipped with a vector generator, a unit (4) that extracts a parallelogram from input graphic information.
For the extracted parallelogram, a part (5) that identifies the longer one of the two sets of parallel line segments as the normal line segment and the shorter one as the subline segment, and the point sequence that makes up the subline segment. a part (6) that calculates the coordinates of a line segment parallel to the normal line segment by inputting each coordinate of a sequence of points constituting a subline segment into a vector generator (
7); and a section (8) that outputs and displays the coordinates of a line segment parallel to the generated normal line segment as fill information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62017118A JPS63184881A (en) | 1987-01-27 | 1987-01-27 | Face painting processing system for parallelogram |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62017118A JPS63184881A (en) | 1987-01-27 | 1987-01-27 | Face painting processing system for parallelogram |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63184881A true JPS63184881A (en) | 1988-07-30 |
Family
ID=11935123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62017118A Pending JPS63184881A (en) | 1987-01-27 | 1987-01-27 | Face painting processing system for parallelogram |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63184881A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03174676A (en) * | 1989-09-08 | 1991-07-29 | Matsushita Electric Ind Co Ltd | Clipping processor |
-
1987
- 1987-01-27 JP JP62017118A patent/JPS63184881A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03174676A (en) * | 1989-09-08 | 1991-07-29 | Matsushita Electric Ind Co Ltd | Clipping processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0458378A (en) | Method for dividing and developing bezier curve | |
JPS63184881A (en) | Face painting processing system for parallelogram | |
JPS6386079A (en) | Three-dimensional shadow image forming processing device | |
JP2684609B2 (en) | Graphic display method in graphic data processing device | |
JP2000293690A (en) | Wafer inspecting device | |
JPS60163162A (en) | Definition method of shape of three-dimensional connecting body | |
JP2001109912A (en) | Picture processor, picture processing method, and storage medium | |
JPS63276184A (en) | System for plane painting plotting of trapezoid | |
JPH0357087A (en) | Polygon painting-out device | |
JPH05290178A (en) | Handwritten curve display system | |
EP0155183A2 (en) | Geometric processing apparatus | |
JP2537949B2 (en) | Network display processing method | |
JPH05274024A (en) | Numerical controller | |
JP3139008B2 (en) | Line segment pixel generator | |
JP3254328B2 (en) | Ellipse data processing device | |
JPS61256483A (en) | Painting out circuit of sector graphic | |
JP2616443B2 (en) | Graphic drawing device | |
JPS61128378A (en) | Picture signal forming device | |
JPH04151714A (en) | Interactive graphic processor and three-dimensional coordinate inputting method | |
JPS63136279A (en) | Smooth shading system | |
JPS61286975A (en) | System for controlling curved surface | |
JPH0671835A (en) | Electronic composing apparatus arbitrarily changing size of characters in row one by one | |
JPH06215094A (en) | Graphic preparing device | |
JPH0283589A (en) | Character size representation system for display device | |
JPS6091487A (en) | Graphic input device |