From 56793b53d1b42075b688ac58dbd418c5f901fb8f Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 23 Jun 2011 12:20:30 +0000 Subject: [PATCH] 0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups Fix dump of SMESH_IDSource which is Filter --- src/SMESH_I/SMESH_DumpPython.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index c882aa2ed..013824fc8 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -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( theArg )) + return *this << filter; SMESH::SMESH_Mesh_var mesh = theArg->GetMesh(); if ( !theArg->_is_equivalent( mesh )) {