PD: fixes #0004567: Pattern from a feature type UpToFace and Offset > copy whole body

This commit is contained in:
wmayer
2021-02-24 17:08:20 +01:00
parent 4c18734d2e
commit 145eb8ea8c
4 changed files with 22 additions and 9 deletions

View File

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