Clipping to a Cube
Determine which parts of the scene lie within cube
We will consider the 2D version: clip to rectangle
This has its own uses (viewport clipping)
Two approaches:
- clip during scan conversion (rasterization) - check per pixel or end-point
- clip before scan conversion
We will cover
- clip to rectangular viewport before scan conversion