From: secher Date: Wed, 23 Jan 2008 08:51:18 +0000 (+0000) Subject: add comment on test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9345732c419488b2db9d29a7cadb39983b8c7843;p=modules%2Ffilter.git add comment on test --- diff --git a/src/FILTER/test_filter.py b/src/FILTER/test_filter.py index ad06ffe..73577ab 100644 --- a/src/FILTER/test_filter.py +++ b/src/FILTER/test_filter.py @@ -23,22 +23,23 @@ import salome import SALOME_FILTER import libSALOME_LifeCycleCORBA lcc=libSALOME_LifeCycleCORBA.SALOME_LifeCycleCORBA() -filter=lcc.FindOrLoad_Component("FactoryServer","FILTER") +# load FILTER module +filter=lcc.FindOrLoad_Component("","FILTER") inputFile=os.getenv("FILTER_ROOT_DIR")+"/share/salome/resources/filter/xx.aa.med" -inputMesh="MeshFromEnsight" -inputField="FieldFromEnsight" -inputTS=0 -nbth=1 -fth=2.2 -sth=0.0 -flag=True -rf=SALOME_FILTER.F_FIELD outputFile="filtered.med" +# load input MED file filter.loadMED(inputFile) -filter.readReferenceField(inputMesh,inputField,inputTS) -filter.generateCriteria(nbth,fth,sth,flag,rf) +# read reference field for filtering +filter.readReferenceField("MeshFromEnsight","FieldFromEnsight",0) +# generate filtering criteria from thersholds on reference filed +filter.generateCriteria(1,2.2,0.,True,SALOME_FILTER.F_FIELD) +# create ensight input files for DISTENE filtoo tool filter.createEnsightInputFiles() +# call DISTENNE filtoo tool filter.filtering() +# project input fileds on new mesh filter.projectFieldsOnDecimateMesh() +# create output MED file filter.createMedOutputFile(outputFile) +# unload MED object filter.unloadMED()