Girish Mahajan (Editor)

Boolean operations on polygons

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Boolean operations on polygons

Boolean operations on polygons are a set of Boolean operations (AND, OR, NOT, XOR, ...) operating on one or more sets of polygons in computer graphics. These sets of operations are widely used in computer graphics, CAD, and in EDA (in integrated circuit physical design and verification software).

Contents

Algorithms

  • Greiner–Hormann clipping algorithm
  • Vatti clipping algorithm
  • Sutherland–Hodgman algorithm (special case algorithm)
  • Weiler–Atherton clipping algorithm (special case algorithm)
  • Uses in software

    Early algorithms for Boolean operations on polygons were based on the use of bitmaps. Using bitmaps in modeling polygon shapes has many drawbacks. One of the drawbacks is that the memory usage can be very large, since the resolution of polygons is proportional to the number of bits used to represent polygons. The higher the resolution is desired, the more the number of bits is required.

    Modern implementations for Boolean operations on polygons tend to use plane sweep algorithms (or Sweep line algorithms). A list of papers using plane sweep algorithms for Boolean operations on polygons can be found in References below.

    Boolean operations on convex polygons and monotone polygons of the same direction may be performed in linear time.

    References

    Boolean operations on polygons Wikipedia