mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
fix Python Dump
This commit is contained in:
parent
df0c7d3f2c
commit
c539a4181c
@ -1995,7 +1995,7 @@ FilterLibrary_ptr FilterManager_i::LoadLibrary( const char* aFileName )
|
|||||||
{
|
{
|
||||||
SMESH::FilterLibrary_i* aServant = new SMESH::FilterLibrary_i( aFileName );
|
SMESH::FilterLibrary_i* aServant = new SMESH::FilterLibrary_i( aFileName );
|
||||||
SMESH::FilterLibrary_var anObj = aServant->_this();
|
SMESH::FilterLibrary_var anObj = aServant->_this();
|
||||||
TPythonDump()<<aServant<<" = "<<this<<".LoadLibrary("<<aFileName<<")";
|
TPythonDump()<<aServant<<" = "<<this<<".LoadLibrary('"<<aFileName<<"')";
|
||||||
return anObj._retn();
|
return anObj._retn();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2380,9 +2380,10 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
|
|||||||
TPythonDump pd;
|
TPythonDump pd;
|
||||||
pd << "aCriterion = SMESH.Filter.Criterion(" << aCriterion << "," << aCompare
|
pd << "aCriterion = SMESH.Filter.Criterion(" << aCriterion << "," << aCompare
|
||||||
<< "," << aThreshold << ",'" << aThresholdStr;
|
<< "," << aThreshold << ",'" << aThresholdStr;
|
||||||
if (aThresholdID)
|
if (aThresholdID && strlen(aThresholdID))
|
||||||
pd << "',salome.ObjectToID(" << aThresholdID
|
//pd << "',salome.ObjectToID(" << aThresholdID
|
||||||
<< ")," << aUnary << "," << aBinary << "," << aTolerance
|
pd << "','" << aThresholdID
|
||||||
|
<< "'," << aUnary << "," << aBinary << "," << aTolerance
|
||||||
<< "," << aTypeOfElem << "," << aPrecision << ")";
|
<< "," << aTypeOfElem << "," << aPrecision << ")";
|
||||||
else
|
else
|
||||||
pd << "',''," << aUnary << "," << aBinary << "," << aTolerance
|
pd << "',''," << aUnary << "," << aBinary << "," << aTolerance
|
||||||
|
Loading…
Reference in New Issue
Block a user