Sutherland-Hodgman Polygon Clipping
Clipping polygon vertices sequentially against individual clipping boundaries.
Boundary Checking Cases
For each polygon edge from vertex $S$ to $P$ against a clip edge:
- Both Inside: Add $P$ to output.
- Out to In: Add intersection $I$ and then $P$ to output.
- In to Out: Add intersection $I$ to output.
- Both Outside: Add nothing.
Sequential Pipeline
Clips vertices progressively:
- Clip against Left boundary.
- Pass intermediate list to Right boundary.
- Pass result to Bottom boundary.
- Pass result to Top boundary to yield final polygon vertices.
Ready to Visualize Polygon Clipping?
Launch our interactive visualizer to step through calculations in real-time.
Launch Sutherland-Hodgman Visualizer →