]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix a bug reported to SALOME Forum http://www.salome-platform.org/forum/forum_10...
authoreap <eap@opencascade.com>
Thu, 13 Oct 2011 13:08:51 +0000 (13:08 +0000)
committereap <eap@opencascade.com>
Thu, 13 Oct 2011 13:08:51 +0000 (13:08 +0000)
-      if ( helper.IsSubShape( *e, F ) && BRep_Tool::Curve( *e, loc,f,l))
+      if ( helper.IsSubShape( *e, F ) && !BRep_Tool::Curve( *e, loc,f,l).IsNull() )

src/StdMeshers/StdMeshers_ViscousLayers.cxx

index e164282c6c0dd7b27d77feea80eb52c062eccdb8..912815839ed30849fe91ffc7359330af4a0450cc 100644 (file)
@@ -694,7 +694,7 @@ namespace
     while ( eIt->more())
     {
       const TopoDS_Edge* e = static_cast<const TopoDS_Edge*>( eIt->next() );
-      if ( helper.IsSubShape( *e, F ) && BRep_Tool::Curve( *e, loc,f,l))
+      if ( helper.IsSubShape( *e, F ) && !BRep_Tool::Curve( *e, loc,f,l).IsNull() )
         edges.push_back( *e );
     }
     gp_XYZ dir(0,0,0);