Overview
Sutherland-Hodgman processes polygon vertices edge by edge, emitting new vertices where polygon edges cross clip boundaries.
Clips a polygon against each boundary of a convex clipping region.
Compact metadata for implementation and discovery.
Sutherland-Hodgman processes polygon vertices edge by edge, emitting new vertices where polygon edges cross clip boundaries.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n * m)
Average
O(n * m)
Worst
O(n * m)
Space
O(n + m)
p = p1 + t * (p2 - p1)Computes the boundary crossing point along a polygon edge.
Show a polygon being clipped one boundary at a time until only the inside portion remains.
The standard algorithm assumes a convex clipping polygon.
What each reference supports for this entry.
Original polygon clipping paper for clipping ordered vertex sequences against convex regions.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Polygon clipping computes intersections between polygon edges and clip boundaries.
Both clip polygons against boundaries with different support for complex cases.