Sutherland–Hodgman algorithm: Difference between revisions

Content deleted Content added
No edit summary
Line 14:
Given a list of edges in a clip polygon, and a list of vertices in a subject polygon, the following procedure clips the subject polygon against the clip polygon.
 
List outputList = subjectPolygon;
List /* The heck does "List" mean causing indentation here? Another loop? */
for (Edge clipEdge in clipPolygon) do
List inputList = outputList;
outputList.clear();
Point S = inputList.last;
for (Point E in inputList) do