Part: Add function BRepOffsetAPI_MakeOffsetFix::Replace() to replace unwanted curve type with a B-Spline curve

This commit is contained in:
wmayer
2022-04-11 14:13:36 +02:00
parent ef5d7fa64e
commit 60442c2712
2 changed files with 72 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
#include <Mod/Part/PartGlobal.h>
#include <BRepOffsetAPI_MakeOffset.hxx>
#include <GeomAbs_CurveType.hxx>
#include <list>
#include <map>
@@ -85,7 +86,12 @@ public:
//! Returns true if the shape S has been deleted.
virtual Standard_Boolean IsDeleted (const TopoDS_Shape& S);
//! Replaces the given curve type with a B-Spline. Input shape <S>
//! must be a wire or a compound of wires
TopoDS_Shape Replace(GeomAbs_CurveType, const TopoDS_Shape& S) const;
private:
TopoDS_Wire ReplaceEdges(GeomAbs_CurveType, const TopoDS_Wire& S) const;
void MakeWire(TopoDS_Shape&);
private: