Salome HOME
Initial merge of branch 'BR_HYDRO_IMPS_2016' into BR_PORTING_OCCT_7
[modules/hydro.git] / doc / salome / examples / h016_pilesPontManualMesh.py
index 35a4e795b0fe3d911d9bb471481b7042caadc505..f47928f995fa04c49084ab51d415a121b2737651 100644 (file)
@@ -1123,7 +1123,12 @@ geompy.addToStudyInFather( HYDRO_casGaronne_1, bordGauche, 'bordGauche' )
 geompy.addToStudyInFather( HYDRO_casGaronne_1, piles, 'piles' )
 
 # --- basic properties control: edges length, surfaces
-controlGeomProps(geompy, riveGauche,  29149.1353799,  35949580.6716)
+#controlGeomProps(geompy, riveGauche,  29149.1353799,  35950762.8967)
+#controlGeomProps(geompy, litMineur_aval,   7965.23431497,  938890.904721)
+#controlGeomProps(geompy, litMineur_pont,   961.8255222,  19618.0787789)
+#controlGeomProps(geompy, litMineur_amont,   22635.6212065,  2548509.17447)
+#controlGeomProps(geompy, riveDroite,  32012.2241814,  26188706.2202)
+ontrolGeomProps(geompy, riveGauche,  29149.1353799,  35949580.6716)
 controlGeomProps(geompy, litMineur_aval,   7965.23431497,  935955.786347)
 controlGeomProps(geompy, litMineur_pont,   961.8255222,  19618.016847)
 controlGeomProps(geompy, litMineur_amont,   22635.6212065,  2531409.65041)
@@ -1218,9 +1223,23 @@ smesh.SetName(nbseg_litMineur_aval, 'nbseg_litMineur_aval')
 smesh.SetName(nbseg_litMineur_amont, 'nbseg_litMineur_amont')
 smesh.SetName(sections_1, 'sections')
 
-casGaronne_1.SetAutoColor( 1 )
-casGaronne_1.ExportMED( r'/tmp/casGaronne_1.med', 0, SMESH.MED_V2_2, 1, None ,1)
+med_file = r'/tmp/casGaronne_1.med'
+
+try:
+  os.remove(med_file)
+except OSError:
+  pass
 
+
+casGaronne_1.SetAutoColor( 1 )
+casGaronne_1.ExportMED( med_file, 0, SMESH.MED_V2_2, 1, None ,1)
+
+#controlMeshStats(casGaronne_1, 7040, 746, 13871)
+#controlSubMeshStats(litMineur_pont_2, 204)
+#controlSubMeshStats(litMineur_amont_2, 3000)
+#controlSubMeshStats(litMineur_aval_2, 2000)
+#controlSubMeshStats(riveDroite_1, 4040)
+#controlSubMeshStats(riveGauche_1, 4627)
 controlMeshStats(casGaronne_1, 6985, 745, 13761)
 controlSubMeshStats(litMineur_pont_2, 185)
 controlSubMeshStats(litMineur_amont_2, 3000)