PartDesign: Fix throughall distance when throughall is used together with midplane

This commit is contained in:
David Osterberg
2021-02-20 19:59:15 +01:00
committed by wwmayer
parent 7405dd0ef9
commit 43de589732

View File

@@ -555,7 +555,8 @@ double ProfileBased::getThroughAllLength() const
box.SetGap(0.0);
// The diagonal of the bounding box, plus 1% extra to eliminate risk of
// co-planar issues, gives a length that is guaranteed to go through all.
return 1.01 * sqrt(box.SquareExtent());
// The result is multiplied by 2 for the guarantee to work also for the midplane option.
return 2.02 * sqrt(box.SquareExtent());
}
void ProfileBased::generatePrism(TopoDS_Shape& prism,