18
Extra Credit (cont.)
•7. Define a “skeleton” of connected line segments, and replace (x,y) coordinates of vertices with (u,v) offsets from skeleton. Interpolate the skeleton, then use the offsets to calculate vertex positions. (draw sketch)
•
•8. Implement polygon clipping.
•Scissoring means not sending pixel values to the canvas when they would be out of bounds (this is the required functionality). Full clipping means trimming the edge of the polygon so it fits within the screen, which can greatly reduce the time spent performing rasterization.
scissoring
clipping