]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
NPAL15983 (EDF PAL 413: Bug when displaying empty groups)
authoreap <eap@opencascade.com>
Mon, 21 May 2007 07:34:58 +0000 (07:34 +0000)
committereap <eap@opencascade.com>
Mon, 21 May 2007 07:34:58 +0000 (07:34 +0000)
void GEOM_AssemblyBuilder::MeshShape()
{ ...
       Bnd_Box B;
       BRepBndLib::Add(myShape, B);
+      if ( B.IsVoid() ) return;

src/OBJECT/GEOM_AssemblyBuilder.cxx

index cb1a8ba03cd8e09df2f6aadf63ac50fa1a1e6991..af6e55537190b0087a22977c2628df086de0b582 100644 (file)
@@ -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;