Geometry Clipping

Sutherland-Hodgman Polygon Clipping

Sequentially clip any arbitrary polygon against Left, Right, Bottom, and Top view edges, keeping track of inside/outside status.

4
Input Vertices
4
Output Vertices
Convex Clip
Clipper Type
60 FPS
Render Cycle
Polygon Clipping Viewport

Live C++ OpenGL Code

Parameters

5
Read Guide

Mathematical Trace

Adjust clip boundary to watch the polygon output vertex list adapt.