Sutherland–Hodgman algorithm: Difference between revisions

Content deleted Content added
typo
Pseudo Code: ComputeIntersection must return multiple intersections if there is any. Besides the algorithm above cannot identify the part of the poligon if it intersects the clipping plane twice.
Line 36:
'''Output''' and '''ComputeIntersection''' are functions that have not been implemented here for ease of readability (and they are not very complex).
 
'''Output''' is generally some function or code that adds a vertexvertices to an array.
 
'''ComputeIntersection''' finds the intersection pointpoints of a line segment and a clip plane and returns that valuevalues (a vertexvertices) in order from S to P.
 
==See also==