aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/draw-utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/3D/draw-utils.js')
-rwxr-xr-xjs/helper-classes/3D/draw-utils.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index 6f4c287d..65a2647e 100755
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
@@ -869,7 +869,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
869 tmpPt, 869 tmpPt,
870 ssMat, 870 ssMat,
871 elt; 871 elt;
872 872
873 if (len === 0) return; 873 if (len === 0) return;
874 var context = this._drawingContext; 874 var context = this._drawingContext;
875 if (!context) return; 875 if (!context) return;
@@ -910,7 +910,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
910 910
911 this._selectionCtr = MathUtils.getCenterFromBounds(3, bounds3D); 911 this._selectionCtr = MathUtils.getCenterFromBounds(3, bounds3D);
912// console.log("selection center, single elt case - ", this._selectionCtr); 912// console.log("selection center, single elt case - ", this._selectionCtr);
913 913
914 this.viewUtils.popViewportObj(); 914 this.viewUtils.popViewportObj();
915 } 915 }
916 else 916 else
@@ -1328,7 +1328,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
1328 var arrowSize = 50 / zoomFactor; 1328 var arrowSize = 50 / zoomFactor;
1329 var xAxis = [arrowSize,0,0,1]; 1329 var xAxis = [arrowSize,0,0,1];
1330 //var rO = resMat.multiply(origin); 1330 //var rO = resMat.multiply(origin);
1331 var rO = glmat4.multiplyVec3( resMat, origin, []); 1331 var rO = glmat4.multiplyVec3( resMat, origin, []);
1332 //var xO = resMat.multiply(xAxis); 1332 //var xO = resMat.multiply(xAxis);
1333 var xO = glmat4.multiplyVec3( resMat, xAxis, []); 1333 var xO = glmat4.multiplyVec3( resMat, xAxis, []);
1334 1334