PartDesign: [skip ci] fixes #0004494: Error "Result is empty" for Pads and Pockets with non zero Offset
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user