[PD Pad/Pocket] Fix bug with midplane usage in TwoLengths mode (#7216)

* [PD Pad/Pocket] Fix bug with midplane usage in TwoLengths mode
This commit is contained in:
adrianinsaval
2022-07-19 21:13:01 -04:00
committed by GitHub
parent 31bc9f3913
commit 0e22ada9dd
3 changed files with 0 additions and 9 deletions

View File

@@ -144,12 +144,9 @@ void FeatureExtrude::generatePrism(TopoDS_Shape& prism,
if (method == "TwoLengths") {
// midplane makes no sense here
Ltotal += L2;
if (reversed)
Loffset = -L;
else if (midplane)
Loffset = -0.5 * (L2 + L);
else
Loffset = -L2;
}