X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fh017_interpolationLineaire.py;h=88e77ad7cfff65f9361b216344466999f00c0f04;hb=ccf1fc3746f78940dffc56d4958695c39a2a3088;hp=47ccfa5b3c8a87486ead342b2aec4a58ffc9531d;hpb=fd7e5d3c89a0100771a0d6e29334a5213d5e0536;p=modules%2Fhydro.git diff --git a/doc/salome/examples/h017_interpolationLineaire.py b/doc/salome/examples/h017_interpolationLineaire.py index 47ccfa5b..88e77ad7 100644 --- a/doc/salome/examples/h017_interpolationLineaire.py +++ b/doc/salome/examples/h017_interpolationLineaire.py @@ -14,8 +14,8 @@ theStudy = salome.myStudy ### from HYDROPy import * -from PyQt4.QtCore import * -from PyQt4.QtGui import * +from PyQt5.QtCore import * +from PyQt5.QtGui import * hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() ) @@ -282,10 +282,6 @@ import SALOMEDS geompy = geomBuilder.New(theStudy) -#geomObj_1 = geompy.CreateGroup(HYDRO_etude, geompy.ShapeType["EDGE"]) -#geompy.UnionIDs(geomObj_1, [7, 9]) -#geomObj_3 = geompy.CreateGroup(HYDRO_etude, geompy.ShapeType["EDGE"]) -#geompy.UnionIDs(geomObj_3, [4, 11, 17, 24, 26, 28, 14, 19, 20, 22, 31, 39, 41, 33, 35, 37]) etude_domaine_Outer = geompy.CreateGroup(HYDRO_etude_1, geompy.ShapeType["EDGE"]) geompy.UnionIDs(etude_domaine_Outer, [3, 6, 8, 10]) domaine = geompy.CreateGroup(HYDRO_etude_1, geompy.ShapeType["FACE"]) @@ -369,7 +365,8 @@ zUndef = 90 # --- Z interpolation Z sur la bathymetrie/altimetrie aux noeuds du maillage statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef, interpolMethod) -refstatz = {'domaine': (27.101, 168.257)} +#print statz +refstatz = {'domaine': (27.10, 168.28, 91.77, 46.047, 28.637, 161.17)} controlStatZ(statz, refstatz) # --- add a field on nodes of type double with z values, named "BOTTOM"