首页> 外国专利> Scan line generator for area fill of extensible polygons

Scan line generator for area fill of extensible polygons

机译:扫描线生成器,用于可扩展多边形的区域填充

摘要

A scan line generator for area fill of a polygon defined by a left edge and a right edge includes a Bresenham-like mechanism in a left edge machine for selecting pixels to represent a left edge by determining, for each scan line, which pixel is either on the edge or immediately to the right thereof. A right edge machine contains an identical mechanism, which also does "to-the-right-of". Both edge machines operate in the first through fourth octants, and a coordination mechanism steps the two edge machines a scan line at a time, independent of the major and minor axis of each edge. When the pixel addresses for each edge's intersection with the next scan line are found their difference along the X axis is obtained to produce the length of a fill vector on that scan line. The intersection produced for the left edge is taken as the starting point of the fill vector. Left and right edges must initially start on the same scan line, but need not be of the same length in the Y axis. Polygons are extensible by appending additional left and right edges to form lists thereof as the fill operation proceeds. Scan line generation is suspended whenever the furthest extent in the Y axis is reached for either edge. The fill operation may be concluded gracefully when such a suspension occurs for both edges, regardless of whether or not it is for the same polygon vertex. The edge machines are equipped with programmable edge rule mechanisms that define whether to retain or discard a pixel that lies exactly on an edge of the polygon.
机译:用于由左边缘和右边缘定义的多边形的区域填充的扫描线生成器在左边缘机器中包括类似于布雷森汉姆的机制,用于通过为每条扫描线确定哪个像素是其中的一个来选择代表左边缘的像素。在其边缘或紧靠右侧。右边缘机器包含相同的机制,该机制也可以“向右移动”。两台边缘机均在第一至第四八分圆中运行,并且协调机制一次使两台边缘机步进一条扫描线,而与每个边缘的长轴和短轴无关。当找到每个边缘与下一条扫描线的交点的像素地址时,将获得其沿X轴的差值,以在该扫描线上产生填充矢量的长度。为左边缘生成的相交被视为填充矢量的起点。左右边缘最初必须在同一条扫描线上开始,但在Y轴上的长度不必相同。随着填充操作的进行,可以通过附加其他左右边缘以形成多边形列表来扩展多边形。只要在任一边的Y轴上到达最远的范围,扫描线的生成都将暂停。当在两个边缘上都发生这种悬浮时,无论是否针对相同的多边形顶点,都可以优雅地完成填充操作。边缘机器配备有可编程的边缘规则机制,该机制定义是保留还是丢弃恰好位于多边形边缘上的像素。

著录项

  • 公开/公告号US5673379A

    专利类型

  • 公开/公告日1997-09-30

    原文格式PDF

  • 申请/专利权人 HEWLETT-PACKARD COMPANY;

    申请/专利号US19950407467

  • 发明设计人 MICHAEL R. DIEHL;

    申请日1995-03-20

  • 分类号G06T11/00;

  • 国家 US

  • 入库时间 2022-08-22 03:09:15

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号