From 83f3b2188ae34b425b932a17f8b5434885a15f23 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Fri, 16 Jan 2015 14:32:20 -0800 Subject: [PATCH] fix a bug --- web/app/workbench.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/workbench.js b/web/app/workbench.js index 827ae072..d09ab4bb 100644 --- a/web/app/workbench.js +++ b/web/app/workbench.js @@ -190,7 +190,7 @@ TCAD.craft._mergeCSGPolygons = function(__cgsPolygons) { normal : roundV(vec(cp.plane.normal)) }; }); - //polygons = polygons.filter(function(e){return e.normal.equals(new TCAD.Vector(0,1,0)) }); + //polygons = polygons.filter(function(e){return e.normal.equals(new TCAD.Vector(-1,0,0)) }); return polygons; } @@ -447,7 +447,7 @@ TCAD.craft._mergeCSGPolygons = function(__cgsPolygons) { } } path = deleteRedundantPoints(path); - if (path.length > 3) { + if (path.length > 2) { paths.push({ vertices : path, normal : normal