]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
DumpPython Filter / Controls
authorapo <apo@opencascade.com>
Thu, 31 Mar 2005 10:13:38 +0000 (10:13 +0000)
committerapo <apo@opencascade.com>
Thu, 31 Mar 2005 10:13:38 +0000 (10:13 +0000)
src/SMESH_I/SMESH_DumpPython.cxx
src/SMESH_I/SMESH_Filter_i.cxx

index 44483535fb25a2978db03b2f9d1d41b7d7698179..7016fb3bedfa14c2eb425b308abe3501f5897a5d 100644 (file)
@@ -488,7 +488,6 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
   
   aScript += "def RebuildData(theStudy):";
   aScript += "\n\tsmesh = salome.lcc.FindOrLoadComponent(\"FactoryServer\", \"SMESH\")";
-  aScript += "\n\taFilterManager = smesh.CreateFilterManager()";
   if ( isPublished )
     aScript += "\n\tsmesh.SetCurrentStudy(theStudy)";
   else
index 76b2e8e796e851c01650801e852f43239b7cd65b..05d5f38482a1137aeee5e536db301aca76912719 100644 (file)
@@ -1867,9 +1867,9 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
     long        aPrecision    = theCriteria[ i ].Precision;
 
     TPythonDump()<<"aCriteria.append(SMESH.Filter.Criterion("<<
-      aCriterion<<","<<aCompare<<","<<aThreshold<<","<<aUnary<<","<<aBinary<<","<<
-      aTolerance<<",'"<<aThresholdStr<<"',"<<aTypeOfElem<<","<<aPrecision<<"))";
-
+      aCriterion<<","<<aCompare<<","<<aThreshold<<",'"<<aThresholdStr<<"',"<<
+      aUnary<<","<<aBinary<<","<<aTolerance<<","<<aTypeOfElem<<","<<aPrecision<<"))";
+    
     SMESH::Predicate_ptr aPredicate = SMESH::Predicate::_nil();
     SMESH::NumericalFunctor_ptr aFunctor = SMESH::NumericalFunctor::_nil();