Skip to content

psyclone20/Sutherland-Hodgman-Polygon-Clipping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages