From: eap Date: Mon, 21 May 2007 07:34:58 +0000 (+0000) Subject: NPAL15983 (EDF PAL 413: Bug when displaying empty groups) X-Git-Tag: V3_2_7~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=85634d969f503037d1a5d098754b0db3d3bc5e9f;p=modules%2Fgeom.git NPAL15983 (EDF PAL 413: Bug when displaying empty groups) void GEOM_AssemblyBuilder::MeshShape() { ... Bnd_Box B; BRepBndLib::Add(myShape, B); + if ( B.IsVoid() ) return; --- diff --git a/src/OBJECT/GEOM_AssemblyBuilder.cxx b/src/OBJECT/GEOM_AssemblyBuilder.cxx index cb1a8ba03..af6e55537 100644 --- a/src/OBJECT/GEOM_AssemblyBuilder.cxx +++ b/src/OBJECT/GEOM_AssemblyBuilder.cxx @@ -174,6 +174,7 @@ void GEOM_AssemblyBuilder::MeshShape(const TopoDS_Shape myShape, // Compute default deflection Bnd_Box B; BRepBndLib::Add(myShape, B); + if ( B.IsVoid() ) return; // NPAL15983 (Bug when displaying empty groups) Standard_Real aXmin, aYmin, aZmin, aXmax, aYmax, aZmax; B.Get(aXmin, aYmin, aZmin, aXmax, aYmax, aZmax); deflection = MAX3( aXmax-aXmin , aYmax-aYmin , aZmax-aZmin) * 0.001 *4;