]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Tune the parametric update in the big model test
authormpv <mpv@opencascade.com>
Fri, 19 May 2017 08:04:49 +0000 (11:04 +0300)
committermpv <mpv@opencascade.com>
Fri, 19 May 2017 08:04:49 +0000 (11:04 +0300)
src/ModelHighAPI/ModelHighAPI_FeatureStore.cpp
test.models/piece_12.py

index a900563c41340d74b499127f6a463db76b8a2211..20ca1084c55cb7e5f2d20f31325997d426c93596 100644 (file)
@@ -345,7 +345,7 @@ std::string ModelHighAPI_FeatureStore::dumpShape(std::shared_ptr<GeomAPI_Shape>&
   std::shared_ptr<GeomAPI_Pnt> aCenter = GeomAlgoAPI_ShapeTools::centreOfMass(theShape);
   aResult<<"Center of mass: ";
   double aCenterVals[3] = {aCenter->x(), aCenter->y(), aCenter->z()};
-  dumpArray(aResult, aCenterVals, 3);
+  dumpArray(aResult, aCenterVals, 3, 5);
   aResult<<std::endl;
   return aResult.str();
 }
index f3e4655eb8fb9f1f32b64169ffd4bfea7a9142e3..e695ce24e3023ec99faaa9ad40d13469a3314976 100644 (file)
@@ -756,9 +756,9 @@ model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [888])
 model.testResultsVolumes(Part_1, [118190.673218984])
 
 # checking for parametric update
-Parameter_Epaisseur.setValue(33)
+Parameter_Epaisseur.setValue(33.9)
 model.do()
-model.testResultsVolumes(Part_1, [117340.407981679])
+model.testResultsVolumes(Part_1, [118105.9369682])
 Parameter_Epaisseur.setValue(34)
 model.end()