[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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user