[PD] allow to pad in any direction
It saves a lot of work if one can directly pad in any direction and OCC allows this. This PR adds the possibility to define a custom vector for the padding direction.
This commit is contained in:
@@ -579,7 +579,7 @@ void ProfileBased::generatePrism(TopoDS_Shape& prism,
|
||||
|
||||
// Its better not to use BRepFeat_MakePrism here even if we have a support because the
|
||||
// resulting shape creates problems with Pocket
|
||||
BRepPrimAPI_MakePrism PrismMaker(from, Ltotal*gp_Vec(dir), 0,1); // finite prism
|
||||
BRepPrimAPI_MakePrism PrismMaker(from, Ltotal*gp_Vec(dir), 0, 1); // finite prism
|
||||
if (!PrismMaker.IsDone())
|
||||
throw Base::RuntimeError("ProfileBased: Length: Could not extrude the sketch!");
|
||||
prism = PrismMaker.Shape();
|
||||
|
||||
Reference in New Issue
Block a user