mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Fix bad dump produced in case if ExtractShapes() function is called with 'FLAT' shape type
This commit is contained in:
parent
2f5ed2c56a
commit
a41868ac87
@ -110,7 +110,14 @@ namespace GEOM
|
||||
TPythonDump& TPythonDump::operator<< (const TopAbs_ShapeEnum theArg)
|
||||
{
|
||||
myStream<<"geompy.ShapeType[\"";
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user