Part: issue #6727: Missing B-Spline in STEP file after Part Offset2D

This commit is contained in:
wmayer
2022-04-11 14:16:29 +02:00
parent 3d249e0e67
commit a13e251ad4

View File

@@ -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!");