Content deleted Content added
m Cleaning up a randomly generated list, removed stub tag using AWB |
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;
for (Edge clipEdge in clipPolygon) do
List inputList = outputList;
outputList.clear();
Point
//
for (Point if (
if (
outputList.add(ComputeIntersection(
end if
outputList.add(
else if (
outputList.add(ComputeIntersection(
end if
done
done
|