The Vatti clipping algorithm[1] is used in computer graphics. It was proposed by Bala R Vatti, who worked at Calcomp and Hewlett-Packard[2] in the 1990s and proposed the algorithm in the Communications of the ACM Journal in 1992.[1]

The algorithm allows clipping of any number of arbitrarily shaped subject polygons by any number of arbitrarily shaped clip polygons. 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. Even complex (self-intersecting) polygons, and polygons with holes can be processed. The algorithm is generally applicable only in 2D space.

Description

edit

Clipping is defined as the interaction of subject and clip polygons. 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.

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. This sweep line approach divides the problem space by scanlines, imaginary horizontal lines that pass through every vertex of the participating polygons. These scanlines outline scanbeams – the spaces between adjacent scanlines. 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.

See also

edit

References

edit
  1. ^ a b Bala R. Vatti. "A generic solution to polygon clipping", Communications of the ACM, Vol 35, Issue 7 (July 1992) pp. 56–63.
  2. ^ Vatti, Bala R. "Bala R Vatti Work Experience". LinkedIn. Retrieved 2025-08-16.
edit


📚 Artikel Terkait di Wikipedia

Sutherland–Hodgman algorithm

polygon clipping algorithms: Weiler–Atherton clipping algorithm Vatti clipping algorithm On the subject of clipping: Clipping (computer graphics) Clipping (in

Weiler–Atherton clipping algorithm

polygons share an edge. Sutherland–Hodgman clipping algorithm Vatti clipping algorithm Greiner–Hormann clipping algorithm Foley, James, Andries van Dam, Steven

Vatti (disambiguation)

Vatti may refer to: Vatti, Chinese kitchen appliances manufacturer Vätti, a district of the city of Turku, in Finland. Vatti clipping algorithm, a computer

Greiner–Hormann clipping algorithm

The Greiner-Hormann algorithm is used in computer graphics for polygon clipping. It performs better than the Vatti clipping algorithm, but cannot handle

Boolean operations on polygons

Greiner–Hormann clipping algorithm Vatti clipping algorithm Sutherland–Hodgman algorithm (special case algorithm) Weiler–Atherton clipping algorithm (special

Clipping (computer graphics)

Weiler–Atherton Vatti Rendering methodologies Painter's algorithm Boolean operations on polygons Bounding volume Clip space Distance fog Guard-band clipping Hidden-surface

List of algorithms

partitioning Clipping Line clipping Cohen–Sutherland Cyrus–Beck Fast-clipping Liang–Barsky Nicholl–Lee–Nicholl Polygon clipping Sutherland–Hodgman Vatti Weiler–Atherton

Kai Hormann

him. The algorithm is known for being more performant than the Vatti clipping algorithm, but it cannot handle degeneracies. His research interests are