Vatti clipping algorithm
The Vatti clipping algorithm is used in computer graphics.[src] It was proposed by Bala R Vatti, who worked at Calcomp and Hewlett-Packard in the 1990s and proposed the algorithm in the Communications of the ACM Journal in 1992.[src] The algorithm allows clipping of any number of arbitrarily shaped subject polygons by any number of arbitrarily shaped clip polygons.[src] Unlike the Sutherland–Hodgman and Weiler–Atherton polygon clipping algorithms, the Vatti algorithm does not restrict the types of polygons that can be used as subjects or clips.[src] Even complex (self-intersecting) polygons, and polygons with holes can be processed.[src] The algorithm is generally applicable only in 2D space.[src]
The Vatti clipping algorithm is used in computer graphics.[src] It was proposed by Bala R Vatti, who worked at Calcomp and Hewlett-Packard in the 1990s and proposed the algorithm in the Communications of the ACM Journal in 1992.[src] The algorithm allows clipping of any number of arbitrarily shaped subject polygons by any number of arbitrarily shaped clip polygons.[src] Unlike the Sutherland–Hodgman and Weiler–Atherton polygon clipping algorithms, the Vatti algorithm does not restrict the types of polygons that can be used as subjects or clips.[src] Even complex (self-intersecting) polygons, and polygons with holes can be processed.[src] The algorithm is generally applicable only in 2D space.[src] ==Description== Clipping is defined as the interaction of subject and clip polygons.[src] While clipping usually involves finding the intersections (regions of overlap) of subject and clip polygons, clipping algorithms can also be applied with other boolean clipping operations: difference, where the clipping polygons remove overlapping regions from the subject; union, where clipping returns the regions covered by either subject or clip polygons, and; xor, where clipping returns the regions covered by either subject or clip polygons except where they are covered by both subject and clip polygons.[src] The Vatti algorithm involves processing both subject and clipping polygon edges in an orderly fashion, starting with the lowermost edges and working towards the top; this is conceptually similar to the Bentley–Ottmann algorithm.[src] This sweep line approach divides the problem space by scanlines, imaginary horizontal lines that pass through every vertex of the participating polygons.[src] These scanlines outline scanbeams – the spaces between adjacent scanlines.[src] These scanbeams are processed in turn, starting with the lowest scanbeam, with the algorithm adding points of intersection within these scanbeams into the solution polygons.[src] ==See also== Martinez-Rueda_clipping_algorithm Greiner–Hormann clipping algorithm Sutherland–Hodgman clipping algorithm Weiler–Atherton clipping algorithm Boolean operations on polygons ==References== ==External links== Clipper2, an open-source freeware implementation of the Vatti algorithm[src]
19 sentences · 19 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Vatti clipping algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/vatti-clipping-algorithm. Accessed 28 November 2026.
Chicago
"Vatti clipping algorithm." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/vatti-clipping-algorithm.
APA
encyclopegia.org. (2026). Vatti clipping algorithm. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/vatti-clipping-algorithm
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON