mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 19:40:33 +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)
|
TPythonDump& TPythonDump::operator<< (const TopAbs_ShapeEnum theArg)
|
||||||
{
|
{
|
||||||
myStream<<"geompy.ShapeType[\"";
|
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<<"\"]";
|
myStream<<"\"]";
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user