Fix bad dump produced in case if ExtractShapes() function is called with 'FLAT' shape type

This commit is contained in:
vsr 2019-03-26 13:31:26 +03:00
parent 2f5ed2c56a
commit a41868ac87

View File

@ -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;
}