PartDesign: [skip ci] fixes #0004494: Error "Result is empty" for Pads and Pockets with non zero Offset

This commit is contained in:
wmayer
2020-11-16 14:45:55 +01:00
parent 1cce61670c
commit 385e4df10c
2 changed files with 5 additions and 3 deletions

View File

@@ -273,7 +273,8 @@ App::DocumentObjectExecReturn *Pad::execute(void)
return new App::DocumentObjectExecReturn("Pad: Up to face: Could not extrude the sketch!");
prism = PrismMaker.Shape();
#else
generatePrism(prism, method, base, sketchshape, supportface, upToFace, dir, 2, 1);
Standard_Integer fuse = fabs(Offset.getValue()) > Precision::Confusion() ? 1 : 2;
generatePrism(prism, method, base, sketchshape, supportface, upToFace, dir, fuse, Standard_True);
#endif
base.Nullify();
} else {
@@ -298,7 +299,8 @@ App::DocumentObjectExecReturn *Pad::execute(void)
return new App::DocumentObjectExecReturn("Pad: Up to face: Could not extrude the sketch!");
prism = PrismMaker.Shape();
#else
generatePrism(prism, method, base, sketchshape, supportface, upToFace, dir, 2, 1);
Standard_Integer fuse = fabs(Offset.getValue()) > Precision::Confusion() ? 1 : 2;
generatePrism(prism, method, base, sketchshape, supportface, upToFace, dir, fuse, Standard_True);
#endif
}
} else {

View File

@@ -188,7 +188,7 @@ App::DocumentObjectExecReturn *Pocket::execute(void)
TopoDS_Shape prism = PrismMaker.Shape();
#else
TopoDS_Shape prism;
generatePrism(prism, method, base, profileshape, supportface, upToFace, dir, 0, 1);
generatePrism(prism, method, base, profileshape, supportface, upToFace, dir, 0, Standard_True);
#endif
// And the really expensive way to get the SubShape...