From a13e251ad45c3562875e6bcc8e1c7e84882a4d52 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 11 Apr 2022 14:16:29 +0200 Subject: [PATCH] Part: issue #6727: Missing B-Spline in STEP file after Part Offset2D --- src/Mod/Part/App/TopoShape.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index 5cecc40b30..4fca2e6975 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -2967,6 +2967,11 @@ TopoDS_Shape TopoShape::makeOffset2D(double offset, short joinType, bool fill, b } offsetShape = mkOffset.Shape(); + // Replace OffsetCurve with B-Spline + if (!offsetShape.IsNull()) { + offsetShape = mkOffset.Replace(GeomAbs_OffsetCurve, offsetShape); + } + if (offsetShape.IsNull()) throw Base::CADKernelError("makeOffset2D: result of offsetting is null!");