mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-10 16:47:27 +05:00
DumpPython Filter / Controls
This commit is contained in:
parent
36f8af7f1d
commit
48d2b1fd90
@ -488,7 +488,6 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
|
|||||||
|
|
||||||
aScript += "def RebuildData(theStudy):";
|
aScript += "def RebuildData(theStudy):";
|
||||||
aScript += "\n\tsmesh = salome.lcc.FindOrLoadComponent(\"FactoryServer\", \"SMESH\")";
|
aScript += "\n\tsmesh = salome.lcc.FindOrLoadComponent(\"FactoryServer\", \"SMESH\")";
|
||||||
aScript += "\n\taFilterManager = smesh.CreateFilterManager()";
|
|
||||||
if ( isPublished )
|
if ( isPublished )
|
||||||
aScript += "\n\tsmesh.SetCurrentStudy(theStudy)";
|
aScript += "\n\tsmesh.SetCurrentStudy(theStudy)";
|
||||||
else
|
else
|
||||||
|
@ -1867,8 +1867,8 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
|
|||||||
long aPrecision = theCriteria[ i ].Precision;
|
long aPrecision = theCriteria[ i ].Precision;
|
||||||
|
|
||||||
TPythonDump()<<"aCriteria.append(SMESH.Filter.Criterion("<<
|
TPythonDump()<<"aCriteria.append(SMESH.Filter.Criterion("<<
|
||||||
aCriterion<<","<<aCompare<<","<<aThreshold<<","<<aUnary<<","<<aBinary<<","<<
|
aCriterion<<","<<aCompare<<","<<aThreshold<<",'"<<aThresholdStr<<"',"<<
|
||||||
aTolerance<<",'"<<aThresholdStr<<"',"<<aTypeOfElem<<","<<aPrecision<<"))";
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user