-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <GEOM_PythonDump.hxx>
#include "utilities.h"
-#include <OpUtil.hxx>
#include <Utils_ExceptHandlers.hxx>
#include <TFunction_DriverTable.hxx>
}
//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;
}
//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;