/Users/lyon/j4p/src/ip/raul/Object3D.java

1    package ip.raul; 
2     
3    public class Object3D { 
4     
5        public String name; 
6        public int Type; 
7        public String Texture; 
8        public Point3D Pos = new Point3D(0, 0, 0); 
9        public Point3D Rot = new Point3D(0, 0, 0); 
10       public Point3D Sca = new Point3D(0, 0, 0); 
11       public Point3D Cen = new Point3D(0, 0, 0); 
12       public float Radius; 
13       public float Height, Width, Length; 
14       public int textureIndex; 
15    
16   //type can be as follows" 
17   //1 sphere 
18   //2 cylinder 
19   //3 cube (paralelipiped) 
20   //more to be added... 
21    
22    
23       public Object3D(String _name, int _Type) { 
24           name = _name; 
25           Type = _Type; 
26           Radius = 1; 
27           Height = Length = Width = 1; 
28           textureIndex = -1; 
29           Texture = "none"; 
30       } 
31   } 
32    
33    
34    
35