bos #19940: [CEA] Wrong dump offset if join by pipes is unticked.

This commit is contained in:
jfa 2020-08-26 15:04:50 +03:00
parent bbdad62780
commit 6fbe1acba9

View File

@ -1075,8 +1075,12 @@ GEOMImpl_ITransformOperations::OffsetShape (Handle(GEOM_Object) theObject,
}
//Make a Python command
GEOM::TPythonDump(aFunction) << "geompy.Offset("
<< theObject << ", " << theOffset << ")";
if (theJoinByPipes)
GEOM::TPythonDump(aFunction) << "geompy.Offset("
<< theObject << ", " << theOffset << ")";
else
GEOM::TPythonDump(aFunction) << theObject << " = geompy.MakeOffsetIntersectionJoin("
<< theObject << ", " << theOffset << ")";
SetErrorCode(OK);
return theObject;
@ -1129,8 +1133,12 @@ GEOMImpl_ITransformOperations::OffsetShapeCopy( Handle(GEOM_Object) theObject,
}
//Make a Python command
GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeOffset("
<< theObject << ", " << theOffset << ")";
if (theJoinByPipes)
GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeOffset("
<< theObject << ", " << theOffset << ")";
else
GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeOffsetIntersectionJoin("
<< theObject << ", " << theOffset << ")";
SetErrorCode(OK);
return aCopy;