mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 18:02:50 +01:00
fix plane parallel to face option
This commit is contained in:
parent
4fb7aef203
commit
72eae3a076
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue