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 ae1d802892f7e66058ae216ee577ed9d43945b41..b83d7accba9251fe5bf8d0984f0cfed0bde980af 100644
(file)
--- a/
src/GEOM/GEOM_PythonDump.cxx
+++ b/
src/GEOM/GEOM_PythonDump.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16 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;
}