From 72eae3a076b141d3c030870884193145bd527e5c Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Thu, 20 Sep 2018 00:49:43 -0700 Subject: [PATCH] fix plane parallel to face option --- web/app/cad/craft/primitives/planeOperation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/cad/craft/primitives/planeOperation.js b/web/app/cad/craft/primitives/planeOperation.js index 38ed152d..50c371e3 100644 --- a/web/app/cad/craft/primitives/planeOperation.js +++ b/web/app/cad/craft/primitives/planeOperation.js @@ -17,7 +17,8 @@ function paramsToPlane({orientation, parallelTo, depth}, cadRegistry) { const normal = STANDARD_BASES[orientation][2]; plane = new Plane(normal, depth); } else { - plane = new Plane(face.surface.normalInMiddle(), depth); + let base = face.surface.tangentPlaneInMiddle(); + plane = new Plane(base.normal, base.w + depth); } return plane; }