Normand Briere
2019-08-16 83d0c2fa0bd2e96448f776144e1a89cdb1bb6998
SwitchNode.java
....@@ -20,7 +20,7 @@
2020 {
2121 CreateMaterial();
2222 switchobject.get(0).bRep.SaveSupports();
23
- bRep = (BoundaryRep) GraphreeD.clone(switchobject.get(0).bRep);
23
+ bRep = (BoundaryRep) Grafreed.clone(switchobject.get(0).bRep);
2424 switchobject.get(0).bRep.RestoreSupports();
2525 }
2626
....@@ -30,7 +30,7 @@
3030 Object3D par = duplicate.parent;
3131 duplicate.parent = null;
3232 duplicate.SaveSupports();
33
- addChild((Object3D)GraphreeD.clone(duplicate));
33
+ addChild((Object3D)Grafreed.clone(duplicate));
3434 duplicate.parent = par;
3535 duplicate.RestoreSupports();
3636 }
....@@ -41,12 +41,12 @@
4141 switchobject.count = 1; // hide
4242 }
4343
44
- transient boolean restarted;
44
+ //transient boolean restarted;
4545 transient int countspeed;
4646
4747 transient boolean toggleneutral;
4848
49
- void DrawNode(CameraPane display, Object3D /*Composite*/ root, boolean selected)
49
+ void DrawNode(iCameraPane display, Object3D /*Composite*/ root, boolean selected)
5050 {
5151 //System.err.println("Frame # " + frame);
5252
....@@ -57,9 +57,9 @@
5757 parent = super.parent;
5858
5959 }
60
- if (live && display.isLIVE() && display.drawMode == display.SHADOW)
60
+ if (live && Globals.isLIVE() && display.DrawMode() == display.SHADOW)
6161 {
62
- if (countspeed == 0)
62
+ if (countspeed <= 0)
6363 {
6464 countspeed = speed;
6565
....@@ -92,15 +92,21 @@
9292
9393 }
9494 else
95
- countspeed--;
95
+ {
96
+ if (CameraPane.FAST)
97
+ countspeed -= CameraPane.STEP;
98
+ else
99
+ countspeed--;
100
+ }
96101 }
97102
98103 if (bRep == null)
99104 {
100
- bRep = (BoundaryRep) GraphreeD.clone(switchobject.get(0).bRep);
105
+ // The switch mesh will be used to interpolate poaes (maybe).
106
+ bRep = (BoundaryRep)Grafreed.clone(switchobject.get(0).bRep);
101107 }
102108
103
- if (CameraPane.SUPPORT && display.drawMode == display.SHADOW)
109
+ if (CameraPane.SUPPORT && display.DrawMode() == display.SHADOW)
104110 {
105111 Update();
106112 }