Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'V9_11_BR'
[modules/geom.git]
/
src
/
GEOM
/
GEOM_PythonDump.cxx
diff --git
a/src/GEOM/GEOM_PythonDump.cxx
b/src/GEOM/GEOM_PythonDump.cxx
index 486a12fde51cc8874228b6363c096531b5ef3153..b83d7accba9251fe5bf8d0984f0cfed0bde980af 100644
(file)
--- a/
src/GEOM/GEOM_PythonDump.cxx
+++ b/
src/GEOM/GEOM_PythonDump.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
19 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
23 CEA, EDF
, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-110,7
+110,14
@@
namespace GEOM
TPythonDump& TPythonDump::operator<< (const TopAbs_ShapeEnum theArg)
{
myStream<<"geompy.ShapeType[\"";
TPythonDump& TPythonDump::operator<< (const TopAbs_ShapeEnum theArg)
{
myStream<<"geompy.ShapeType[\"";
- TopAbs::Print(theArg, myStream);
+ if (theArg == -1)
+ myStream<<"AUTO";
+ else if (theArg == 9)
+ myStream<<"FLAT";
+ else if (theArg >= TopAbs_COMPOUND && theArg <= TopAbs_SHAPE)
+ TopAbs::Print(theArg, myStream);
+ else
+ myStream<<int(theArg);
myStream<<"\"]";
return *this;
}
myStream<<"\"]";
return *this;
}