Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Vatti clipping algorithm

Computational Geometry Algorithm

The Vatti clipping algorithm is a method from computer graphics for clipping polygons, which means finding where one set of polygons overlaps, or is otherwise combined with, another set. It was proposed by Bala R. Vatti, who worked at Calcomp and Hewlett-Packard, in a 1992 paper in the Communications of the ACM. Its main distinction is generality: it accepts any number of arbitrarily shaped subject polygons and any number of arbitrarily shaped clip polygons, including self-intersecting polygons and polygons with holes, which the older Sutherland-Hodgman and Weiler-Atherton algorithms do not allow. Besides intersection it supports the boolean operations of difference, union and xor. It works by sweeping upward from the lowest edges, with imaginary horizontal scanlines through every vertex dividing the plane into scanbeams that are processed in turn, an approach conceptually similar to the Bentley-Ottmann algorithm. The algorithm applies generally only in two dimensions.

Connections

In Field

Source Vatti clipping algorithm (Wikipedia)
Sources
Vatti clipping algorithm (Wikipedia)
  • In Field: Computer Graphics, Lead
    The Vatti clipping algorithm is used in computer graphics.
  • In Group: Line Drawing and Clipping Algorithms, Lead
    The algorithm allows clipping of any number of arbitrarily shaped subject polygons by any number of arbitrarily shaped clip polygons.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.