riveDroite = 'garonne_1_riveDroite',
riveGauche = 'garonne_1_riveGauche',
)
+
+# --- méthode d'interpolation sur les nuages de points de bathymétrie
+# interpolMethod = 0 : interpolation au point le plus proche
+# interpolMethod = 1 : interpolation linéaire de l'altitude par triangulation du nuage de points
+interpolMethod = 0
+
# --- valeur de Z à prendre quand le noeud n'est pas trouvé dans la région (détection de problèmes)
zUndef = 90
theStudy = salome.myStudy
theStudyId = salome.myStudyId
-from salome.hydrotools.interpolZ import interpolZ, createZfield2
+from salome.hydrotools.interpolZ import interpolZ
# --- Z interpolation Z sur la bathymetrie/altimetrie aux noeuds du maillage
-statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef)
-
-# --- ajout d'un champ aux noeud, de nom "BOTTOM", content les valeurs Z
-createZfield2(fichierMaillage)
+statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef, interpolMethod)