fix plane parallel to face option

This commit is contained in:
Val Erastov 2018-09-20 00:49:43 -07:00
parent 4fb7aef203
commit 72eae3a076

View file

@ -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;
}