×

Polygon edge clipping

  • US 4,958,305 A
  • Filed: 11/04/1987
  • Issued: 09/18/1990
  • Est. Priority Date: 11/04/1987
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for clipping a convex source polygon to a view-window defined by boundary edges for forming a clipped figure, wherein a respective boundary edge plane coinciding with each boundary edge of the view window is predeterminedly defined, comprising:

  • determining intersection points between edges of the source polygon and boundary edges of the view window while proceeding from a randomly selected vertex of the source polygon in a predetermined direction around the perimeter of the source polygon;

    assigning each intersection point determined as either an entry point to, or an exit point from, the view window in response to the predetermined direction along the edge of the source polygon forming the respective intersection point;

    sequentially supplying as encountered in the predetermined direction around the perimeter of the source polygon;

    source polygon edges that lie entirely within the view window, valid portions of source polygon edges that include an exit point and/or an entry point, and a valid portion of the boundary edges of the view window from an exit point to the next determined entry point before supplying the valid portion of the source polygon edge that includes the next determined entry point; and

    substituting the value of the first entry point determined for the value of the next determined entry point when a last exit point assigned does not include a corresponding next determined entry point after the step of determining has returned to the randomly selected vertex,wherein the step of sequentially supplying is performed while the edges of the clipped figure are being determined without having to recall the valid portion of the edge of the source polygon and the portion of the boundary edges of the view window from the first determined exit point to the entry point next determined.

View all claims
  • 5 Assignments
Timeline View
Assignment View
    ×
    ×