JPH07122906B2 - Graphic display - Google Patents

Graphic display

Info

Publication number
JPH07122906B2
JPH07122906B2 JP30993587A JP30993587A JPH07122906B2 JP H07122906 B2 JPH07122906 B2 JP H07122906B2 JP 30993587 A JP30993587 A JP 30993587A JP 30993587 A JP30993587 A JP 30993587A JP H07122906 B2 JPH07122906 B2 JP H07122906B2
Authority
JP
Japan
Prior art keywords
coordinate
data
points
storage unit
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP30993587A
Other languages
Japanese (ja)
Other versions
JPH01150989A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP30993587A priority Critical patent/JPH07122906B2/en
Publication of JPH01150989A publication Critical patent/JPH01150989A/en
Publication of JPH07122906B2 publication Critical patent/JPH07122906B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、グラフィックディスプレイ装置やレーザービ
ームプリンター等の画像表示装置において、任意多角形
のぬりつぶしを行う図形表示装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image display device such as a graphic display device or a laser beam printer, which is a graphic display device for filling an arbitrary polygon.

従来の技術 従来、任意多角形内部をぬりつぶす方式として、以下の
方式があった。
2. Description of the Related Art Conventionally, the following methods have been used as methods for filling the inside of an arbitrary polygon.

(1)任意多角形を凸角形に分割し、各凸角形をぬりつ
ぶす方式。
(1) A method of dividing an arbitrary polygon into convex polygons and filling each convex polygon.

(2)多角形各辺上の点(輪郭点)の座標を算出し、水
平あるいは垂直方向の同一走査線上にある輪郭点を座標
の順にソーティングし、隣接する輪郭点の間の点を描画
することにより多角形内部をぬりつぶす方式。
(2) Coordinates of points (contour points) on each side of the polygon are calculated, contour points on the same horizontal or vertical scanning line are sorted in the order of coordinates, and points between adjacent contour points are drawn. By this method, the inside of the polygon is filled.

(3)多角形各辺上の点(輪郭点)の座標を時計周り、
あるいは反時計周りに順次算出し、水平あるいは垂直方
向の同一走査線上にある輪郭点が2点現われれば、2点
の間の点を反転させることにより多角形内部をぬりつぶ
す方式(例としては、「特開昭57−101886」がある)。
(3) Turn the coordinates of the points (contour points) on each side of the polygon clockwise,
Alternatively, a method of sequentially calculating in a counterclockwise direction, and when two contour points on the same scanning line in the horizontal or vertical direction appear, the inside of the polygon is filled by inverting the points between the two points (for example, There is "JP-A-57-101886").

発明が解決しようとする問題点 しかしながら、前記の各方式には、以下に述べる問題点
があった。
Problems to be Solved by the Invention However, each of the above methods has the following problems.

(1)の方式では、任意多角形を凸角形に分割する処理
が必要であり、速度的に遅くなる。また、分割された凸
角形を管理するための機構が複雑になる。
The method (1) requires a process of dividing an arbitrary polygon into convex polygons, which is slow in speed. In addition, the mechanism for managing the divided convex polygons becomes complicated.

(2)の方式では、輪郭点を記憶しておくための大規模
な記憶手段が必要であり、また、輪郭点座標のソーティ
ングは、繁雑なものであり時間がかかる。
The method (2) requires a large-scale storage means for storing the contour points, and sorting the contour point coordinates is complicated and time-consuming.

(3)の方式は、(2)の方式に較べれば大幅に少なく
なっているとはいえ、y座標値をインデックスとするテ
ーブル形式で座標の記憶を行っているため、座標記憶部
が大きく、かつ、1回の座標値の格納あるいは取り出し
操作の度に、座標値の有無判断、書き込み、読み出し、
消去等の操作のために、座標記憶部に対し複数回のメモ
リアクセスを必要とする。
Although the method of (3) is much smaller than the method of (2), since the coordinates are stored in a table format using the y coordinate value as an index, the coordinate storage unit is large, In addition, each time a coordinate value is stored or retrieved, the presence / absence of a coordinate value is determined, writing, reading,
It is necessary to access the coordinate storage unit a plurality of times to perform an operation such as erasing.

本発明は、かかる点を鑑み、単純な操作と少容量の記憶
手段とにより、任意多角形を高速にぬりつぶす図形表示
装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object thereof is to provide a graphic display device which fills an arbitrary polygon at high speed with a simple operation and a small capacity storage means.

問題点を解決するための手段 本発明は、前記問題点を解決するために、多角形の頂点
の座標データから多角形の辺上の点の座標データを逐次
計算する座標算出部と、前記座標算出部により算出され
た座標データを記憶する先入れ後出し型の座標記憶部
と、前記座標算出部における座標算出方向の変化を検出
し、前記座標算出部で算出された座標データを前記座標
記憶部に格納するか、あるいは、前記座標記憶部から座
標データを取り出し、前記座標算出部で算出されたデー
タと組にして、その2点間を結ぶ直線を描画するかを切
り換える制御部と、2点の座標データから、画像メモリ
上で2点の間の点の表示データを反転させる直線描画部
とを備えた図形表示装置である。
Means for Solving Problems The present invention, in order to solve the above problems, a coordinate calculation unit that sequentially calculates coordinate data of points on the sides of a polygon from the coordinate data of the vertices of the polygon, and the coordinates. A first-in-first-out type coordinate storage unit that stores the coordinate data calculated by the calculation unit, and a change in the coordinate calculation direction in the coordinate calculation unit is detected, and the coordinate data calculated by the coordinate calculation unit is stored in the coordinate storage unit. A control unit that switches between storing the data in a copy section or extracting coordinate data from the coordinate storage unit and forming a pair with the data calculated by the coordinate calculation unit and drawing a straight line connecting the two points. The graphic display device includes a straight line drawing unit that reverses display data of a point between two points on the image memory from coordinate data of the point.

作用 本発明では、任意の多角形において、水平あるいは垂直
方向走査線が頂点(特異点)を除き、多角形の輪郭と偶
数回交差すること、また、それらの交差点を2点ずつ組
にし、その2点間の表示データを反転することにより凹
部を持つ多角形においてぬりつぶしが実現できることに
着目し、前記の構成により、次の作用を実現する。
Function In the present invention, in any polygon, the horizontal or vertical scanning line except the apex (singular point) intersects the contour of the polygon at an even number of times, and these intersections are grouped every two points. Paying attention to the fact that inversion of display data between two points can realize filling in a polygon having a concave portion, and the following operation is realized by the above configuration.

座標算出部において、多角形各辺の辺上の点の座標、す
なわち、多角形各辺と各走査線との交点の座標を、輪郭
を時計周りあるいは反時計周りにたどって順次算出しす
る。最初は、組となる同一走査線上の他の輪郭点の座標
がまだ算出されていないので、制御部は、算出された座
標データを座標記憶部に格納する。その後、座標算出部
において座標算出方向が逆転すると、先に座標算出され
座標記憶部に格納された点と同一走査線上の別の輪郭点
の座標が順次算出される。なお、ここで言う座標算出方
向とは、座標算出時に基準となる座標の変化の方向をい
う。たとえば、走査線がx軸に平行であれば、座標算出
部は、y座標値を1ずつ増加あるいは減少させながら座
標算出を行う。このときのy座標値の変化方向、すなわ
ち、y座標増分の正負を座標算出方向と呼ぶ。
The coordinate calculation unit sequentially calculates coordinates of points on each side of the polygon, that is, coordinates of intersections of each side of the polygon and each scanning line by tracing the contour clockwise or counterclockwise. Initially, the coordinates of the other contour points on the same scanning line forming a set have not been calculated yet, so the control unit stores the calculated coordinate data in the coordinate storage unit. After that, when the coordinate calculation direction is reversed in the coordinate calculation section, the coordinates of another contour point on the same scanning line as the point previously calculated and stored in the coordinate storage section are sequentially calculated. The coordinate calculation direction referred to here is the direction of change in the coordinates that serve as a reference during coordinate calculation. For example, if the scanning line is parallel to the x-axis, the coordinate calculation unit calculates the coordinate while increasing or decreasing the y coordinate value by one. The changing direction of the y coordinate value at this time, that is, the positive or negative of the y coordinate increment is called the coordinate calculating direction.

この座標算出方向が、正方向から負方向に、あるいは、
負方向から正方向に変わった場合座標算出方向が逆転し
たという。なお、方向変化の途中に辺の方向が走査線の
方向と一致する走査線方向(y座標増分0)を経てもよ
い。ただし、走査線方向の辺上の点については、算出さ
れた座標データの格納も、直線描画も行わない。
This coordinate calculation direction is from the positive direction to the negative direction, or
When the direction is changed from the negative direction to the positive direction, the coordinate calculation direction is said to be reversed. It should be noted that the direction of the side may pass through the scanning line direction (y coordinate increment 0) in which the direction of the side coincides with the direction of the scanning line during the direction change. However, for the points on the side in the scanning line direction, neither the calculated coordinate data is stored nor the straight line drawing is performed.

座標算出部で座標算出方向が逆転すると、制御部は、座
標算出部で輪郭点の座標データが算出される毎に、座標
記憶部より既に格納された座標データを一つずつ取り出
す。座標記憶部は先入れ後出し型であるため、座標デー
タは、格納時とは逆の順序で取り出される。そのため、
座標記憶部から取り出される座標データは、常に、算出
された輪郭点と同一走査線上の輪郭点のものとなる。
When the coordinate calculation direction is reversed in the coordinate calculation unit, the control unit fetches the coordinate data already stored from the coordinate storage unit one by one, each time the coordinate data of the contour point is calculated by the coordinate calculation unit. Since the coordinate storage unit is a first-in, first-out type, the coordinate data is retrieved in the reverse order of storage. for that reason,
The coordinate data retrieved from the coordinate storage unit is always that of the contour point on the same scanning line as the calculated contour point.

このようにして、同一走査線上の2点の座標データ(座
標算出部において新たに算出された座標データと座標記
憶部から取り出された座標データ)が求まり、直線描画
部が、両点及び両点間の点の画像メモリ上の表示データ
を反転する。
In this way, the coordinate data of two points on the same scanning line (the coordinate data newly calculated by the coordinate calculation section and the coordinate data retrieved from the coordinate storage section) are obtained, and the straight line drawing section determines both points and both points. The display data on the image memory at the points between are inverted.

以後、制御部は、座標算出部において座標算出方向が逆
転する毎に、上記座標データの座標記憶部への格納処理
と、座標記憶部からの座標データの取り出し及び直線描
画処理とを切り換える。
Thereafter, the control unit switches between the process of storing the coordinate data in the coordinate storage unit and the process of extracting the coordinate data from the coordinate storage unit and the straight line drawing process each time the coordinate calculation direction is reversed in the coordinate calculation unit.

以上の操作を与えられた多角形の全辺について行い、座
標算出部が多角形辺上の全点の座標算出を終了すると、
ぬりつぶし多角形が生成される。
The above operation is performed for all sides of the given polygon, and when the coordinate calculation unit finishes calculating the coordinates of all points on the polygon sides,
Filled polygons are generated.

実施例 以下、本発明の実施例を図面を用いて説明する。第1図
は本発明の図形表示装置の一実施例を示すブロック図で
ある。1は多角形の辺上の点の座標を順次算出する座標
算出部、2は算出された座標データを格納する先入れ後
出し型の座標記憶部、3は座標データの座標記憶部2へ
の格納処理と、座標記憶部2からの座標データの取り出
し及び直線描画処理とを切り換える制御部、4は指定さ
れた2点の間の点の画像メモリ上の表示データを反転描
画する直線描画部、5は表示データを格納する画像メモ
リである。
Embodiments Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the graphic display device of the present invention. Reference numeral 1 denotes a coordinate calculation unit that sequentially calculates the coordinates of points on the sides of a polygon, 2 is a first-in-first-out type coordinate storage unit that stores the calculated coordinate data, and 3 is a coordinate data storage unit 2 that stores the coordinate data. A control unit for switching between the storage process, the extraction of the coordinate data from the coordinate storage unit 2 and the straight line drawing process, 4 is a straight line drawing unit for reversely drawing the display data on the image memory between the two designated points, An image memory 5 stores display data.

以上のように構成された本発明の実施例の図形表示装置
の動作を第2図の例を用いて説明する。
The operation of the graphic display device of the embodiment of the present invention configured as described above will be described using the example of FIG.

以下の説明において、水平方向をx軸方向、垂直方向を
y軸方向とし、右方向をx軸正方向、上をy軸正方向と
する。また、簡単のため、画像は白黒2値の画像とす
る。
In the following description, the horizontal direction is the x-axis direction, the vertical direction is the y-axis direction, the right direction is the x-axis positive direction, and the upper direction is the y-axis positive direction. In addition, for simplicity, the image is a monochrome binary image.

座標算出部1は、与えられる多角形頂点座標データ6か
ら、多角形各辺と走査線との交点の座標を輪郭に沿って
順次算出する。輪郭をたどる方向は、時計周りあるいは
反時計周り何れでも構わないが、以下の説明では、反時
計周りに輪郭をたどりながら座標算出を行っている場合
を例にとる。従って、座標算出は、辺AB、辺BC、辺CD、
辺DAの順に行われる。なお、算出方式には、公知のDDA
(Digital Differential Analyze)アルゴリズムを用
いる。
The coordinate calculation unit 1 sequentially calculates the coordinates of the intersection of each side of the polygon and the scanning line from the given polygon vertex coordinate data 6 along the contour. The direction of tracing the contour may be clockwise or counterclockwise, but in the following description, the case where the coordinate calculation is performed while tracing the contour counterclockwise will be taken as an example. Therefore, the coordinates are calculated on the side AB, the side BC, the side CD,
It is performed in order of side DA. The calculation method is based on the known DDA.
(Digital Differential Analyze) algorithm is used.

最初、座標算出部1は、辺AB上の点の座標をy座標を1
ずつ減少させて順次算出する。制御部3は、算出された
座標データを座標記憶部2に格納する。座標記憶部2に
格納する座標データはx座標値のみで良い。
First, the coordinate calculation unit 1 sets the coordinate of the point on the side AB to the y coordinate of 1
Decrease each and calculate sequentially. The control unit 3 stores the calculated coordinate data in the coordinate storage unit 2. The coordinate data stored in the coordinate storage unit 2 need only be the x coordinate value.

座標算出部1において、辺AB上の点の座標算出を終了
し、辺BC上の点の座標算出に移ると、辺ABでの座標算出
方向がy座標が順次減少する下向きであったのに対し、
辺BCでの座標算出方向はy座標が順次増加する上向きと
なり、座標算出方向が逆転する。制御部3は、この座標
算出方向の逆転を検出し、座標記憶部2への座標データ
格納処理を、座標記憶部2からの座標データの取り出し
および直線描画処理に切り換える。すなわち、座標算出
部1が座標データを算出する毎に、先の座標データ格納
処理で座標記憶部2に格納された座標データを一つずつ
取り出す。座標記憶部2は先入れ後出し型なので、座標
データは格納時とは逆の順序で取り出される。したがっ
て、取り出される座標データのy座標値は、格納時とは
逆に変化する。すなわち、一旦格納された辺AB上の点の
座標データの取り出し時のy座標の変化方向は、辺BCに
おける座標算出方向(y座標を1ずつ増加させる方向)
と一致する。点Bは、辺AB・辺BCで共通であるため、当
然、点Bのy座標は同一であり、同一y座標から同方向
に変化する、座標算出部1において算出される辺BC上の
点のy座標と、座標算出部1において座標が算出される
毎に座標記憶部2から取り出される辺AB上の点の座標デ
ータのy座標は常に一致している。このようにして同一
y座標を持つ、すなわち、同一走査線上の2点の座標が
求まる。直線描画部4は、求まった2点とその間の点の
画像メモリ上の表示データを反転する。初めに画像メモ
リを全点白に初期設定した場合、反転により黒になる。
In the coordinate calculation unit 1, when the coordinate calculation of the point on the side AB is completed and the coordinate calculation of the point on the side BC is started, the coordinate calculation direction on the side AB is the downward direction in which the y coordinate is gradually decreased. In contrast,
The coordinate calculation direction on the side BC is an upward direction in which the y-coordinate sequentially increases, and the coordinate calculation direction is reversed. The control unit 3 detects the reversal of the coordinate calculation direction, and switches the process of storing the coordinate data in the coordinate storage unit 2 to the process of extracting the coordinate data from the coordinate storage unit 2 and the straight line drawing process. That is, each time the coordinate calculation unit 1 calculates the coordinate data, the coordinate data stored in the coordinate storage unit 2 in the previous coordinate data storage process is taken out one by one. Since the coordinate storage unit 2 is of a first-in, first-out type, the coordinate data is retrieved in the reverse order of storage. Therefore, the y-coordinate value of the extracted coordinate data changes opposite to that at the time of storage. That is, the changing direction of the y coordinate when the coordinate data of the point on the side AB that has been stored once is taken out is the coordinate calculation direction on the side BC (direction in which the y coordinate is increased by 1).
Matches Since the point B is common to the side AB and the side BC, naturally, the y coordinate of the point B is the same, and the point on the side BC calculated by the coordinate calculation unit 1 changes from the same y coordinate in the same direction. And the y coordinate of the coordinate data of the point on the side AB taken out from the coordinate storage unit 2 every time the coordinate is calculated by the coordinate calculation unit 1. In this way, the coordinates of the same y coordinate, that is, the coordinates of two points on the same scanning line are obtained. The straight line drawing unit 4 inverts the display data on the image memory of the two points thus obtained and the points between them. When the image memory is initially set to white for all dots, it becomes black due to inversion.

前記の座標記憶部2からの座標データの取り出す及び直
線描画処理を辺BC上の点Eまで行うと、座標記憶部2内
の座標データが全て消費され、座標記憶部2は空にな
る。その時点で、制御部3は、再び、座標算出部1にお
いて算出された座標データを座標記憶部2に格納する処
理に戻る。
When the coordinate data is extracted from the coordinate storage unit 2 and the straight line drawing process is performed up to the point E on the side BC, all the coordinate data in the coordinate storage unit 2 is consumed and the coordinate storage unit 2 becomes empty. At that time, the control unit 3 returns to the process of storing the coordinate data calculated by the coordinate calculation unit 1 in the coordinate storage unit 2 again.

以後、制御部3は、座標算出部1において座標算出方向
が逆転するか、あるいは、座標データ取り出し及び直線
描画処理中に、座標記憶部2が空になる毎に、座標デー
タの格納処理と座標データの取り出し及び直線描画処理
を切り換える。従って、点E以降、座標算出部1が辺BC
上の点の算出を行っている間は、座標データの格納処理
を行い、座標算出部1が、辺CD上の点の座標算出に移
り、座標算出方向が逆転(上向き→下向き)すると、座
標データの取り出しおよび直線描画処理に移行する。辺
CDの座標データの取り出しおよび直線描画処理中、点F
において座標記憶部2が再び空になるため、点F以降
は、次に座標算出方向の逆転する点Dまで、座標データ
の格納処理を行う。座標算出部1が、辺DA上の点の座標
算出に移ると、再度の座標算出方向の逆転(下向き→上
向き)に伴い、座標データの取り出しおよび直線描画処
理に移行する。この時、三角形DAF内部がぬりつぶされ
るが、三角形DAFは、既に黒にぬりつぶされているた
め、反転により白に戻る。
After that, the control unit 3 reverses the coordinate calculation direction in the coordinate calculation unit 1, or every time the coordinate storage unit 2 becomes empty during the coordinate data extraction and straight line drawing process, the coordinate data storage process and the coordinate data are processed. Switching between data extraction and straight line drawing processing. Therefore, after the point E, the coordinate calculation unit 1 sets the side BC
While calculating the upper point, the coordinate data is stored, and the coordinate calculation unit 1 shifts to the coordinate calculation of the point on the side CD, and when the coordinate calculation direction is reversed (upward → downward), the coordinate The process proceeds to data extraction and straight line drawing processing. Side
Point F during CD coordinate data extraction and straight line drawing processing
Since the coordinate storage unit 2 is emptied again at, the storage process of the coordinate data is performed after the point F up to the point D where the coordinate calculation direction is reversed. When the coordinate calculation unit 1 shifts to the coordinate calculation of the point on the side DA, the coordinate data fetching and the straight line drawing process are performed with the reversal of the coordinate calculation direction (downward → upward). At this time, the inside of the triangle DAF is filled, but since the triangle DAF has already been filled with black, it is returned to white by inversion.

なお、座標算出部1が多角形輪郭上の全点の座標算出を
終了した時点でぬりつぶし多角形の生成を完了する。
When the coordinate calculation unit 1 finishes calculating the coordinates of all points on the polygonal contour, the generation of the filled polygon is completed.

以上の動作により、凹部を横切る走査線L(y=Y)上
の各点は次のようにぬりつぶされる。
By the above operation, each point on the scanning line L (y = Y) that crosses the recess is smeared as follows.

(1)座標算出部1で辺AB上の点αの座標(Xα、Y)
が算出され、x座標値が座標記憶部2に格納される。
(1) Coordinate calculation unit 1 coordinates of point α on side AB (Xα, Y)
Is calculated and the x coordinate value is stored in the coordinate storage unit 2.

(2)座標算出部1で辺BC上の点βの座標(Xβ、Y)
が算出されるとともに、座標記憶部2から点αのx座標
Xαが取り出され、2点(Xα、Y)、(Xβ、Y)と
その間の点の表示データが反転される。画像メモリの初
期状態を全点白に初期設定した場合、線分αβが黒でぬ
りつぶされる。
(2) Coordinate calculation unit 1 coordinates of point β on side BC (Xβ, Y)
Is calculated, the x-coordinate Xα of the point α is retrieved from the coordinate storage unit 2, and the display data of the two points (Xα, Y), (Xβ, Y) and the point between them are inverted. When the initial state of the image memory is initially set to all white, the line segment αβ is filled with black.

(3)座標算出部1で辺CD上の点γの座標(Xγ、Y)
が算出され、x座標値が座標記憶部2に格納される。
(3) Coordinate calculation unit 1 coordinates of point γ on side CD (Xγ, Y)
Is calculated and the x coordinate value is stored in the coordinate storage unit 2.

(4)座標算出部1で辺BC上の点δの座標(Xδ、Y)
が算出されるとともに、座標記憶部2から点γのx座標
Xγが取り出され、2点(Xγ、Y)、(Xδ、Y)と
その間の点の表示データが反転される。すなわち、
(2)において、線分γδを含む線分αβが黒くぬりつ
ぶされているので、このとき線分γδは反転により、白
に戻る。
(4) Coordinate calculation unit 1 coordinates of point δ on side BC (Xδ, Y)
Is calculated, the x-coordinate Xγ of the point γ is retrieved from the coordinate storage unit 2, and the display data of the two points (Xγ, Y), (Xδ, Y) and the points between them are inverted. That is,
In (2), since the line segment αβ including the line segment γδ is blackened out, the line segment γδ is inverted to return to white at this time.

なお、第2図の例においては、任意の多角形を水平方向
の線分でぬりつぶす場合の説明を行ったが、垂直方向に
ぬりつぶす場合も同様に実現可能である。
In the example of FIG. 2, the description has been made of the case where an arbitrary polygon is filled with horizontal line segments, but the case of filling it in the vertical direction can be similarly realized.

発明の効果 以上のように、本発明によれば、非常に単純な処理のみ
で、任意の多角形の高速ぬりつぶしを実現できる。さら
に、座標記憶部を先入れ後出し型のメモリで実現するこ
とにより、高々表示する多角形の高さ(y軸方向の長
さ)分の少規模なメモリで実現でき、かつ、座標記憶部
に対するデータの有無判断、データ読み出し、書き込み
等の操作を高速に実現できるという効果がある。
EFFECTS OF THE INVENTION As described above, according to the present invention, it is possible to realize high-speed filling of an arbitrary polygon with only very simple processing. Furthermore, by realizing the coordinate storage unit with a first-in / first-out type memory, it is possible to realize with a small-scale memory corresponding to the height of the polygon to be displayed at most (length in the y-axis direction), and the coordinate storage unit. There is an effect that operations such as data presence / absence determination, data reading, and writing can be realized at high speed.

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

第1図は本発明の一実施例の図形表示装置のブロック
図、第2図は同装置の動作説明図である。 1……座標算出部、2……座標記憶部、3……制御部、
4……直線描画部、5……画像メモリ、6……多角形頂
点座標データ。
FIG. 1 is a block diagram of a graphic display device according to an embodiment of the present invention, and FIG. 2 is an operation explanatory diagram of the device. 1 ... coordinate calculation unit, 2 ... coordinate storage unit, 3 ... control unit,
4 ... Straight line drawing section, 5 ... Image memory, 6 ... Polygon vertex coordinate data.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】多角形の頂点の座標データから多角形の辺
上の点の座標データを逐次計算する座標算出部と、前記
座標算出部により算出された座標データを記憶する先入
れ後出し型の座標記憶部と、前記座標算出部における座
標算出方向の変化を検出し、前記座標算出部で算出され
た座標データを前記座標記憶部に格納するか、あるい
は、前記座標記憶部から座標データを取り出し、前記座
標算出部で算出されたデータと組にして、その2点間を
結ぶ直線を描画するかを切り換える制御部と、2点の座
標データから、画像メモリ上で2点の間の点の表示デー
タを反転させる直線描画部とを備えることを特徴とする
図形表示装置。
1. A coordinate calculation unit for sequentially calculating coordinate data of points on a side of a polygon from coordinate data of vertexes of the polygon, and a first-in first-out type that stores the coordinate data calculated by the coordinate calculation unit. Of the coordinate storage unit and the change in the coordinate calculation direction in the coordinate calculation unit and store the coordinate data calculated by the coordinate calculation unit in the coordinate storage unit, or store the coordinate data from the coordinate storage unit. A control unit that takes out the data, calculates a pair with the data calculated by the coordinate calculation unit, and switches whether to draw a straight line connecting the two points, and a point between the two points on the image memory based on the coordinate data of the two points. And a straight line drawing unit for inverting the display data of the figure.
JP30993587A 1987-12-08 1987-12-08 Graphic display Expired - Fee Related JPH07122906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30993587A JPH07122906B2 (en) 1987-12-08 1987-12-08 Graphic display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30993587A JPH07122906B2 (en) 1987-12-08 1987-12-08 Graphic display

Publications (2)

Publication Number Publication Date
JPH01150989A JPH01150989A (en) 1989-06-13
JPH07122906B2 true JPH07122906B2 (en) 1995-12-25

Family

ID=17999118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30993587A Expired - Fee Related JPH07122906B2 (en) 1987-12-08 1987-12-08 Graphic display

Country Status (1)

Country Link
JP (1) JPH07122906B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2698170B2 (en) * 1988-06-23 1998-01-19 富士電機株式会社 Closed area fill display method

Also Published As

Publication number Publication date
JPH01150989A (en) 1989-06-13

Similar Documents

Publication Publication Date Title
US5448690A (en) Image processing system enabling real-time output of image signal based on polygon image information
EP0344686B1 (en) Clipping process and processor
JP2681367B2 (en) Graphic processing method and apparatus thereof
CN116310135B (en) Curved surface display method and system based on multi-resolution LOD model
JPH07122906B2 (en) Graphic display
JPH0554149A (en) Edge list preparing device
JPH01276380A (en) Picture processor
JP2770582B2 (en) Figure filling device
JP2782904B2 (en) Polygon fill method
KR100719480B1 (en) Fast anti-aliasing method
EP0288629A1 (en) Gouraud shading on graphics display apparatus
JP3139805B2 (en) Image processing method and apparatus
KR950012266A (en) Triangular interpolator and search method for fast pong cat drawing
JP2954434B2 (en) Image processing method and apparatus
JP2565051B2 (en) Computer graphics data processing method and apparatus
CN117555465A (en) Graphic display method and graphic display device for display equipment
JP2682191B2 (en) Aliasing removal method and device
JP2787497B2 (en) Graphic drawing method and apparatus
JPH0343878A (en) System for quickly painting out polygon
JP2000242802A (en) Graphic processor
JPH06168337A (en) Paint-out processing method
JPH06101028B2 (en) Character dot / font line segmentation method
JP2000194353A (en) Thick line plotting method and device and storage device
JPH02308381A (en) Polygon painting-out system
JPH01155481A (en) Three-dimensional shape display device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees