From 85634d969f503037d1a5d098754b0db3d3bc5e9f Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 21 May 2007 07:34:58 +0000 Subject: [PATCH] NPAL15983 (EDF PAL 413: Bug when displaying empty groups) void GEOM_AssemblyBuilder::MeshShape() { ... Bnd_Box B; BRepBndLib::Add(myShape, B); + if ( B.IsVoid() ) return; --- src/OBJECT/GEOM_AssemblyBuilder.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2