print "Geom shape:", Case_1_geom
print "Geom shape name:", Case_1_geom.GetName()
-controlGeomProps(geompy, Case_1_geom, 1218.7373973, 49697.2117918)
+controlGeomProps(geompy, Case_1_geom, 1218.7373973, 49578.1516521)
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
geompy.addToStudyInFather( HYDRO_garonne_1, litMineur, 'litMineur' )
geompy.addToStudyInFather( HYDRO_garonne_1, riveDroite, 'riveDroite' )
-controlGeomProps(geompy, riveGauche, 29149.36918, 35992556.454929)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 29149.36918, 35948828.352061)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
geompy.addToStudyInFather( HYDRO_garonne_1, bordDroiteDomaine, 'bordDroiteDomaine' )
# --- basic properties control: edges length, surfaces
-controlGeomProps(geompy, riveGauche, 29149.36918, 35992556.454929)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 29149.36918, 35948828.352061)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
#----------------------
# --- Meshing
geompy.addToStudyInFather( HYDRO_garonne_1, bordDroiteDomaine, 'bordDroiteDomaine' )
# --- basic properties control: edges length, surfaces
-controlGeomProps(geompy, riveGauche, 29149.36918, 35992556.454929)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 29149.36918, 35948828.352061)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
#----------------------
# --- Meshing
geompy.addToStudyInFather( HYDRO_garonne_2, litMineur, 'litMineur' )
geompy.addToStudyInFather( HYDRO_garonne_2, riveDroite, 'riveDroite' )
-controlGeomProps(geompy, riveGauche, 39493.270103, 35885901.558025)
-controlGeomProps(geompy, digue, 10343.900923, 103893.397004)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 39493.270283, 35845790.613557)
+controlGeomProps(geompy, digue, 10343.901103, 103037.738504)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
#garonne_2_digue_Right_Bank = geompy.CreateGroup(HYDRO_garonne_2, geompy.ShapeType["EDGE"])
#geompy.UnionIDs(garonne_2_digue_Right_Bank, [48])
-controlGeomProps(geompy, riveGauche, 39493.270103, 35885901.558025)
-controlGeomProps(geompy, digue, 10343.900923, 103893.397004)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 39493.270283, 35845790.613557)
+controlGeomProps(geompy, digue, 10343.901103, 103037.738504)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
#----------------------
# --- Meshing
#garonne_2_digue_Right_Bank = geompy.CreateGroup(HYDRO_garonne_2, geompy.ShapeType["EDGE"])
#geompy.UnionIDs(garonne_2_digue_Right_Bank, [48])
-controlGeomProps(geompy, riveGauche, 39493.270103, 35885901.558025)
-controlGeomProps(geompy, digue, 10343.900923, 103893.397004)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 39493.270283, 35845790.613557)
+controlGeomProps(geompy, digue, 10343.901103, 103037.738504)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
#----------------------
# --- Meshing
geompy.addToStudyInFather( HYDRO_garonne_1, bordDroiteDomaine, 'bordDroiteDomaine' )
# --- basic properties control: edges length, surfaces
-controlGeomProps(geompy, riveGauche, 29149.36918, 35992556.454929)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 29149.36918, 35948828.352061)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
#----------------------
# --- Meshing
def controlGeomProps(geompy, geomShape, refLength, refArea):
"""
compare area and length of a geometric face with a reference,
- with relative precision of 1.E-7
+ with relative precision of 1.E-3
"""
props = geompy.BasicProperties(geomShape)
print " Wires length: ", props[0]