From: skv Date: Tue, 22 Mar 2016 14:02:05 +0000 (+0300) Subject: 0023247: [CEA 1771] Problem in computing dimensions of objects in GEOM module X-Git-Tag: V7_8_0a2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cfa4be5d95ed4d518bdad2bdd7d6739e9da33d7b;p=modules%2Fgeom.git 0023247: [CEA 1771] Problem in computing dimensions of objects in GEOM module --- diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index 5d163c40a..080d8b858 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -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(); } }