Sutherland–Hodgman algorithm: Difference between revisions

Content deleted Content added
The inside is only on the left side if we proceed counter-clockwise, as stated in the referenced lecture on slide 3
No edit summary
Line 15:
 
List outputList = subjectPolygon;
List inputList = outputList;
outputList.clear();
for (Edge clipEdge in clipPolygon) do
List inputList = outputList;
outputList.clear();
Point S = inputList.last;
for (Point E in inputList) do