NPAL18095: Pb. with dump python and mesh group by filter.

This commit is contained in:
jfa 2007-12-06 11:23:55 +00:00
parent e913c3429b
commit bee39a08f4

View File

@ -2056,10 +2056,18 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
ElementType aTypeOfElem = theCriteria[ i ].TypeOfElement; ElementType aTypeOfElem = theCriteria[ i ].TypeOfElement;
long aPrecision = theCriteria[ i ].Precision; long aPrecision = theCriteria[ i ].Precision;
TPythonDump() << "aCriterion = SMESH.Filter.Criterion(" << aCriterion << "," << aCompare {
<< "," << aThreshold << ",'" << aThresholdStr << "',salome.ObjectToID(" TPythonDump pd;
<< aThresholdID << ")," << aUnary << "," << aBinary << "," << aTolerance pd << "aCriterion = SMESH.Filter.Criterion(" << aCriterion << "," << aCompare
<< "," << aTypeOfElem << "," << aPrecision << ")"; << "," << aThreshold << ",'" << aThresholdStr;
if (strlen(aThresholdID) > 0)
pd << "',salome.ObjectToID(" << aThresholdID
<< ")," << aUnary << "," << aBinary << "," << aTolerance
<< "," << aTypeOfElem << "," << aPrecision << ")";
else
pd << "',''," << aUnary << "," << aBinary << "," << aTolerance
<< "," << aTypeOfElem << "," << aPrecision << ")";
}
SMESH::Predicate_ptr aPredicate = SMESH::Predicate::_nil(); SMESH::Predicate_ptr aPredicate = SMESH::Predicate::_nil();
SMESH::NumericalFunctor_ptr aFunctor = SMESH::NumericalFunctor::_nil(); SMESH::NumericalFunctor_ptr aFunctor = SMESH::NumericalFunctor::_nil();