Sutherland–Hodgman algorithm: Difference between revisions

Content deleted Content added
WikitanvirBot (talk | contribs)
Line 17:
for (Edge clipEdge in clipPolygon) do
List inputList = outputList;
Point S = outputList.clear()last;
for (Point SE in =outputList) inputList.last;do
for (Point E in inputList) do
if (E inside clipEdge) then
if (S not inside clipEdge) then
outputListintputList.add(ComputeIntersection(S,E,clipEdge));
end if
outputListinputList.add(E);
else if (S inside clipEdge) then
outputList.add(ComputeIntersection(S,E,clipEdge));