]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups
authoreap <eap@opencascade.com>
Thu, 23 Jun 2011 12:20:30 +0000 (12:20 +0000)
committereap <eap@opencascade.com>
Thu, 23 Jun 2011 12:20:30 +0000 (12:20 +0000)
   Fix dump of SMESH_IDSource which is Filter

src/SMESH_I/SMESH_DumpPython.cxx

index c882aa2edb16090c25caf4d7120f267d70010345..013824fc8ed01552084021f5fadd20341e4e32e0 100644 (file)
@@ -126,6 +126,7 @@ namespace SMESH
     case FACE:  myStream<<"FACE";break;
     case VOLUME:myStream<<"VOLUME";break;
     case ELEM0D:myStream<<"ELEM0D";break;
+    default:    myStream<<"__UNKNOWN__ElementType: " << theArg;
     }
     return *this;
   }
@@ -146,7 +147,8 @@ namespace SMESH
     case Geom_HEXA:       myStream<<"Geom_HEXA";       break;
     case Geom_PENTA:      myStream<<"Geom_PENTA";      break;
     case Geom_POLYHEDRA:  myStream<<"Geom_POLYHEDRA";  break;
-   }
+    default:    myStream<<"__UNKNOWN__GeometryType: " << theArg;
+    }
     return *this;
   }
 
@@ -232,6 +234,8 @@ namespace SMESH
     SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
     if(!aSObject->_is_nil())
       return *this << aSObject;
+    if ( SMESH::Filter_i* filter = SMESH::DownCast<SMESH::Filter_i*>( theArg ))
+      return *this << filter;
     SMESH::SMESH_Mesh_var mesh = theArg->GetMesh();
     if ( !theArg->_is_equivalent( mesh ))
     {