]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
bos #19940: [CEA] Wrong dump offset if join by pipes is unticked. V9_6_0a1
authorjfa <jfa@opencascade.com>
Wed, 26 Aug 2020 12:04:50 +0000 (15:04 +0300)
committerjfa <jfa@opencascade.com>
Wed, 26 Aug 2020 12:04:50 +0000 (15:04 +0300)
src/GEOMImpl/GEOMImpl_ITransformOperations.cxx

index 7a414ba080de76de63fc31eae824ab7466ad2c4a..7d560fc6315b60b289457ee6d71ca156b401d200 100644 (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;