From fdde14b8f8cb41313bd2f6147c2cf22afc16d7a1 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Sat, 28 Apr 2018 21:18:04 -0700 Subject: [PATCH] use surface directly --- web/app/cad/craft/primitives/planeOperation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/cad/craft/primitives/planeOperation.js b/web/app/cad/craft/primitives/planeOperation.js index 45624ad8..7e28c5fa 100644 --- a/web/app/cad/craft/primitives/planeOperation.js +++ b/web/app/cad/craft/primitives/planeOperation.js @@ -21,7 +21,7 @@ function paramsToPlane({orientation, parallelTo, depth}, cadRegistry) { const normal = STANDARD_BASES[orientation][2]; plane = new Plane(normal, depth); } else { - plane = new Plane(face.brepFace.surface.normalInMiddle(), depth); + plane = new Plane(face.surface().normalInMiddle(), depth); } return plane; }