Normand Briere
2019-05-05 623dc0fa8cbd9473830a1786f6d49fa808a09439
Object3D.java
....@@ -954,7 +954,7 @@
954954
955955 public Object clone()
956956 {
957
- return GrafreeD.clone(this);
957
+ return Grafreed.clone(this);
958958 }
959959
960960 Object3D copyExpand()
....@@ -1729,7 +1729,7 @@
17291729 Object3D o = new Object3D((clone?"Ge:":"Li:") + this.name);
17301730 o.bRep = transientrep;
17311731 if (clone)
1732
- o.bRep = (BoundaryRep) GrafreeD.clone(transientrep);
1732
+ o.bRep = (BoundaryRep) Grafreed.clone(transientrep);
17331733 o.CreateMaterial();
17341734 o.SetAttributes(this, -1);
17351735 //parent
....@@ -1742,7 +1742,7 @@
17421742 Object3D o = new Object3D((clone?"Ge:":"Li:") + this.name);
17431743 o.bRep = bRep;
17441744 if (clone)
1745
- o.bRep = (BoundaryRep) GrafreeD.clone(bRep);
1745
+ o.bRep = (BoundaryRep) Grafreed.clone(bRep);
17461746 o.CreateMaterial();
17471747 //o.overwriteThis(this, -1);
17481748 o.SetAttributes(this, -1);
....@@ -2477,13 +2477,13 @@
24772477 return retval;
24782478 }
24792479
2480
- void doEditDrag(ClickInfo info)
2480
+ void doEditDrag(ClickInfo info, boolean opposite)
24812481 {
24822482 switch (doSomething)
24832483 {
24842484 case 1: // '\001'
24852485 //super.
2486
- doEditDrag0(info);
2486
+ doEditDrag0(info, opposite);
24872487 break;
24882488
24892489 case 2: // '\002'
....@@ -2496,11 +2496,11 @@
24962496 {
24972497 //sel.hitSomething = childToDrag.hitSomething;
24982498 //childToDrag.doEditDrag(info);
2499
- sel.doEditDrag(info);
2499
+ sel.doEditDrag(info, opposite);
25002500 } else
25012501 {
25022502 //super.
2503
- doEditDrag0(info);
2503
+ doEditDrag0(info, opposite);
25042504 }
25052505 }
25062506 break;
....@@ -3204,7 +3204,7 @@
32043204
32053205 BoundaryRep sup = bRep.support;
32063206 bRep.support = null;
3207
- BoundaryRep temprep = (BoundaryRep) GrafreeD.clone(bRep);
3207
+ BoundaryRep temprep = (BoundaryRep) Grafreed.clone(bRep);
32083208 // bRep.SplitInTwo(onlyone); // thread...
32093209 temprep.SplitInTwo(reduction34, onlyone);
32103210 bRep = temprep;
....@@ -3728,7 +3728,7 @@
37283728 if (child == null)
37293729 continue;
37303730
3731
- if (GrafreeD.RENDERME > 0)
3731
+ if (Grafreed.RENDERME > 0)
37323732 {
37333733 if (child instanceof Merge)
37343734 ((Merge)child).renderme();
....@@ -3879,7 +3879,7 @@
38793879 if (child == null)
38803880 continue;
38813881
3882
- if (GrafreeD.RENDERME > 0)
3882
+ if (Grafreed.RENDERME > 0)
38833883 {
38843884 if (child instanceof Merge)
38853885 ((Merge)child).renderme();
....@@ -4074,7 +4074,7 @@
40744074 if (child == null)
40754075 continue;
40764076
4077
- if (GrafreeD.RENDERME > 0)
4077
+ if (Grafreed.RENDERME > 0)
40784078 {
40794079 if (child instanceof Merge)
40804080 ((Merge)child).renderme();
....@@ -7012,7 +7012,7 @@
70127012 return true;
70137013 }
70147014
7015
- void doEditDrag0(ClickInfo info)
7015
+ void doEditDrag0(ClickInfo info, boolean opposite)
70167016 {
70177017 if (hitSomething == 0)
70187018 {
....@@ -7039,7 +7039,7 @@
70397039
70407040 scale *= 0.05f * Globals.theRenderer.RenderCamera().Distance();
70417041
7042
- if (modified)
7042
+ if (modified || opposite)
70437043 {
70447044 //assert(false);
70457045 /*
....@@ -7133,6 +7133,7 @@
71337133
71347134 if (modified)
71357135 {
7136
+ // Rotate 90 degrees
71367137 angle /= (Math.PI / 4);
71377138 angle = Math.floor(angle + 0.5);
71387139 angle *= (Math.PI / 4);
....@@ -7566,7 +7567,7 @@
75667567 {
75677568 assert(bRep != null);
75687569 if (!(support instanceof GenericJoint)) // support.bRep != null)
7569
- GrafreeD.Assert(support.bRep == bRep.support);
7570
+ Grafreed.Assert(support.bRep == bRep.support);
75707571 }
75717572 else
75727573 {