psyclone20 / Sutherland-Hodgman-Polygon-Clipping

An implementation of the Sutherland–Hodgman algorithm used for clipping polygons in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sutherland-Hodgman Polygon Clipping

An implementation of the Sutherland–Hodgman algorithm used for clipping polygons in C

Input

The user must provide the following inputs:

  • Top left and bottom right co-ordinates of the clipping window
  • Co-ordinates of the vertices of the polygon

Output

The portion of the polygon remaining after performing left, top, right and bottom clipping using the clipping window.

About

An implementation of the Sutherland–Hodgman algorithm used for clipping polygons in C

License:MIT License


Languages

Language:C 100.0%