PD: Fix TwoLengths and Midplane both enabled

This scenario makes no sense, so it is removed from the code.
This commit is contained in:
Kacper Donat
2024-10-23 21:13:37 +02:00
parent 4974a5d381
commit d1451b2502

View File

@@ -305,16 +305,11 @@ void FeatureExtrude::generatePrism(TopoShape& prism,
Ltotal = getThroughAllLength();
}
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;
}