[Part] extend BRepOffsetAPI_MakeOffsetFix and use it for padding

BRepOffsetAPI_MakeOffsetFix provides already a workaround for an OCC bug. To use it for Pad/pocket, only the Init feature has to be added
we take the same implementation like it if for BRepOffsetAPI_MakeOffset
This commit is contained in:
Uwe
2022-04-09 06:43:46 +02:00
parent 2cea4dc1b8
commit ead05ae30e
3 changed files with 30 additions and 25 deletions

View File

@@ -55,6 +55,19 @@ public:
//! Builds the resulting shape (redefined from MakeShape).
void Build();
//! Initializes the algorithm to construct parallels to the spine Spine.
//! Join defines the type of parallel generated by the
//! salient vertices of the spine.
//! The default type is GeomAbs_Arc where the vertices generate
//! sections of a circle.
//! If join type is GeomAbs_Intersection, the edges that
//! intersect in a salient vertex generate the edges
//! prolonged until intersection.
void Init(const TopoDS_Face& Spine, const GeomAbs_JoinType Join = GeomAbs_Arc, const Standard_Boolean IsOpenResult = Standard_False);
//! Initialize the evaluation of Offseting.
void Init(const GeomAbs_JoinType Join = GeomAbs_Arc, const Standard_Boolean IsOpenResult = Standard_False);
virtual Standard_Boolean IsDone() const;
//! Returns a shape built by the shape construction algorithm.