mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
bos #19940: [CEA] Wrong dump offset if join by pipes is unticked.
This commit is contained in:
parent
bbdad62780
commit
6fbe1acba9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user