From 2cef19994d33f9bb0477359168bd1d8886233ee8 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Mon, 5 Oct 2015 01:18:49 -0700 Subject: [PATCH] fix bug --- web/app/engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/engine.js b/web/app/engine.js index 375a579f..3518d951 100644 --- a/web/app/engine.js +++ b/web/app/engine.js @@ -601,8 +601,8 @@ TCAD.Solid.SMOOTH_LIMIT = 10 * Math.PI / 180; TCAD.Solid.prototype.processWires = function() { var solid = this; this.wires.entries(function(edge, data) { + var u = TCAD.utils; if (data.sharedPlanes.length > 1) { - var u = TCAD.utils; var plane0 = data.sharedPlanes[0]; var plane1 = data.sharedPlanes[1]; var angle = Math.acos(plane0.normal.dot(plane1.normal));