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

View File

@@ -111,9 +111,6 @@ void TaskPadParameters::onModeChanged(int index)
break;
case Modes::TwoDimensions:
pcPad->Type.setValue("TwoLengths");
// symmetric is then not possible
if (ui->checkBoxMidplane->isChecked())
ui->checkBoxMidplane->setChecked(false);
break;
}

View File

@@ -122,9 +122,6 @@ void TaskPocketParameters::onModeChanged(int index)
case Modes::TwoDimensions:
oldLength = pcPocket->Length.getValue();
pcPocket->Type.setValue("TwoLengths");
// symmetric is then not possible
if (ui->checkBoxMidplane->isChecked())
ui->checkBoxMidplane->setChecked(false);
break;
}