Project 4: the search for polygons

Here's the test applet my polygon stuff:

I started working on this before the sample code came out, so PolyTest.java is a weird mix of Project 3 and Pipeline. You can use the mouse to rotate the cow.

PolyTest.java is a big mess now. It has a lot of code that should be moved into TriPoly.java, but I don't want to risk the bugs at this late date.

My program supports the basic features as well as: an arbitrary number of light sources (untested :). In addition, I clip the triangles on all six planes of the view frustum.

Hmmm, I think I have some funky bugs in my clipping code. It seems to be creating way too many tmp polys sometimes, and doesn't draw the right ones other times. It seems to work fine for the row, though. Too bad the code is so messed up that I can't debug it. My Triangle.java still has some drawing bugs, but nothing major.

Here is my code: