Z = new Vector3D();
X = new Vector3D();
Y = new Vector3D();
planes = new Plane[]{
new Plane(Vector3D.ZERO_VECTOR,Vector3D.ZERO_VECTOR)
,new Plane(Vector3D.ZERO_VECTOR,Vector3D.ZERO_VECTOR)
,new Plane(Vector3D.ZERO_VECTOR,Vector3D.ZERO_VECTOR)
,new Plane(Vector3D.ZERO_VECTOR,Vector3D.ZERO_VECTOR)
,new Plane(Vector3D.ZERO_VECTOR,Vector3D.ZERO_VECTOR)
,new Plane(Vector3D.ZERO_VECTOR,Vector3D.ZERO_VECTOR)
};
PGraphics3D p3d = ((PGraphics3D)pa.g);
//This has to be called if the perspective is changed!!