/Users/lyon/j4p/src/graphics/raytracers/raytracer/tracer/Polygon.java

1    package graphics.raytracers.raytracer.tracer; 
2     
3    import java.util.Vector; 
4     
5    class Polygon 
6            implements Target { 
7        private Vector vertexList; 
8        private Vec3f planeNormal; 
9        private static Scene scene; 
10    
11       public Polygon(Vector vl, Vec3f pn) { 
12           planeNormal = new Vec3f(pn); 
13           vertexList = (Vector) vl.clone(); 
14       } 
15    
16       public float intersectTest( 
17               Vec3f R0, Vec3f R1, int object) { 
18           System.out.println("Polygon intersect Test"); 
19           return 0; 
20       } 
21    
22       public void initScene(Scene s) { 
23       } 
24    
25       public int shade(int object, Vec3f R1, float t[]) { 
26           return 0; 
27       } 
28    
29       public boolean initScene() { 
30           return false; 
31       } 
32   } 
33