]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023247: [CEA 1771] Problem in computing dimensions of objects in GEOM module
authorskv <skv@opencascade.com>
Tue, 22 Mar 2016 14:02:05 +0000 (17:02 +0300)
committerskv <skv@opencascade.com>
Tue, 22 Mar 2016 14:02:05 +0000 (17:02 +0300)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx

index 5d163c40ac6a9d39473cd7fb3dec92adbda25ea9..080d8b858fdfb53d59928de740eb7eaeae84198f 100644 (file)
@@ -984,19 +984,20 @@ void GEOMImpl_IMeasureOperations::GetBasicProperties (Handle(GEOM_Object) theSha
 
   //Compute the parameters
   GProp_GProps LProps, SProps;
+  Standard_Real anEps = 1.e-6;
   try {
     OCC_CATCH_SIGNALS;
     BRepGProp::LinearProperties(aShape, LProps);
     theLength = LProps.Mass();
 
-    BRepGProp::SurfaceProperties(aShape, SProps);
+    BRepGProp::SurfaceProperties(aShape, SProps, anEps);
     theSurfArea = SProps.Mass();
 
     theVolume = 0.0;
     if (aShape.ShapeType() < TopAbs_SHELL) {
       for (TopExp_Explorer Exp (aShape, TopAbs_SOLID); Exp.More(); Exp.Next()) {
         GProp_GProps VProps;
-        BRepGProp::VolumeProperties(Exp.Current(), VProps);
+        BRepGProp::VolumeProperties(Exp.Current(), VProps, anEps);
         theVolume += VProps.Mass();
       }
     }