use surface directly

This commit is contained in:
Val Erastov 2018-04-28 21:18:04 -07:00
parent 838b1041fa
commit fdde14b8f8

View file

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