Polygon trimming code ultimately destined for use in the NURBS module of Blender 3D along with simple immediate-mode GLUT code for debug visualization.